![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Interval variables are often used in scheduling. The main characteristics of an IntervalVar are the start position, duration, and end date. All these characteristics can be queried and set, and demons can be posted on their modifications. An important aspect is optionality: an IntervalVar can be performed or not. If unperformed, then it simply does not exist, and its characteristics cannot be accessed any more. An interval var is automatically marked as unperformed when it is not consistent anymore (start greater than end, duration < 0...)
Definition at line 3112 of file pywrapcp.py.
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| StartMin (self) | |
| StartMax (self) | |
| SetStartMin (self, m) | |
| SetStartMax (self, m) | |
| SetStartRange (self, mi, ma) | |
| OldStartMin (self) | |
| OldStartMax (self) | |
| WhenStartRange (self, *args) | |
| WhenStartBound (self, *args) | |
| DurationMin (self) | |
| DurationMax (self) | |
| SetDurationMin (self, m) | |
| SetDurationMax (self, m) | |
| SetDurationRange (self, mi, ma) | |
| OldDurationMin (self) | |
| OldDurationMax (self) | |
| WhenDurationRange (self, *args) | |
| WhenDurationBound (self, *args) | |
| EndMin (self) | |
| EndMax (self) | |
| SetEndMin (self, m) | |
| SetEndMax (self, m) | |
| SetEndRange (self, mi, ma) | |
| OldEndMin (self) | |
| OldEndMax (self) | |
| WhenEndRange (self, *args) | |
| WhenEndBound (self, *args) | |
| MustBePerformed (self) | |
| MayBePerformed (self) | |
| CannotBePerformed (self) | |
| IsPerformedBound (self) | |
| SetPerformed (self, val) | |
| WasPerformedBound (self) | |
| WhenPerformedBound (self, *args) | |
| WhenAnything (self, *args) | |
| StartExpr (self) | |
| DurationExpr (self) | |
| EndExpr (self) | |
| PerformedExpr (self) | |
| SafeStartExpr (self, unperformed_value) | |
| SafeDurationExpr (self, unperformed_value) | |
| SafeEndExpr (self, unperformed_value) | |
| EndsAfterEnd (self, other) | |
| EndsAfterEndWithDelay (self, other, delay) | |
| EndsAfterStart (self, other) | |
| EndsAfterStartWithDelay (self, other, delay) | |
| EndsAtEnd (self, other) | |
| EndsAtEndWithDelay (self, other, delay) | |
| EndsAtStart (self, other) | |
| EndsAtStartWithDelay (self, other, delay) | |
| StartsAfterEnd (self, other) | |
| StartsAfterEndWithDelay (self, other, delay) | |
| StartsAfterStart (self, other) | |
| StartsAfterStartWithDelay (self, other, delay) | |
| StartsAtEnd (self, other) | |
| StartsAtEndWithDelay (self, other, delay) | |
| StartsAtStart (self, other) | |
| StartsAtStartWithDelay (self, other, delay) | |
| StaysInSync (self, other) | |
| StaysInSyncWithDelay (self, other, delay) | |
| EndsAfter (self, date) | |
| EndsAt (self, date) | |
| EndsBefore (self, date) | |
| StartsAfter (self, date) | |
| StartsAt (self, date) | |
| StartsBefore (self, date) | |
| CrossesDate (self, date) | |
| AvoidsDate (self, date) | |
| __repr__ (self) | |
| __str__ (self) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.PropagationBaseObject | |
| __init__ (self, s) | |
| DebugString (self) | |
| solver (self) | |
| Name (self) | |
| __disown__ (self) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject | |
| __init__ (self) | |
| __str__ (self) | |
| __repr__ (self) | |
| __disown__ (self) | |
Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| Properties inherited from ortools.constraint_solver.pywrapcp.PropagationBaseObject | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| Properties inherited from ortools.constraint_solver.pywrapcp.BaseObject | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| ortools.constraint_solver.pywrapcp.IntervalVar.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Definition at line 3128 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.__repr__ | ( | self | ) |
Definition at line 3364 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.__str__ | ( | self | ) |
Definition at line 3367 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.AvoidsDate | ( | self, | |
| date ) |
Definition at line 3361 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.CannotBePerformed | ( | self | ) |
Definition at line 3228 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.CrossesDate | ( | self, | |
| date ) |
Definition at line 3358 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.DurationExpr | ( | self | ) |
Definition at line 3263 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.DurationMax | ( | self | ) |
Definition at line 3166 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.DurationMin | ( | self | ) |
These methods query, set, and watch the duration of the interval var.
Definition at line 3162 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndExpr | ( | self | ) |
Definition at line 3266 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndMax | ( | self | ) |
Definition at line 3194 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndMin | ( | self | ) |
These methods query, set, and watch the end position of the interval var.
Definition at line 3190 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfter | ( | self, | |
| date ) |
Definition at line 3340 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterEnd | ( | self, | |
| other ) |
Definition at line 3286 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterEndWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3289 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterStart | ( | self, | |
| other ) |
Definition at line 3292 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterStartWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3295 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAt | ( | self, | |
| date ) |
Definition at line 3343 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtEnd | ( | self, | |
| other ) |
Definition at line 3298 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtEndWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3301 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtStart | ( | self, | |
| other ) |
Definition at line 3304 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtStartWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3307 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.EndsBefore | ( | self, | |
| date ) |
Definition at line 3346 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.IsPerformedBound | ( | self | ) |
Definition at line 3231 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.MayBePerformed | ( | self | ) |
Definition at line 3225 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.MustBePerformed | ( | self | ) |
These methods query, set, and watch the performed status of the interval var.
Definition at line 3218 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.OldDurationMax | ( | self | ) |
Definition at line 3181 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.OldDurationMin | ( | self | ) |
Definition at line 3178 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.OldEndMax | ( | self | ) |
Definition at line 3209 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.OldEndMin | ( | self | ) |
Definition at line 3206 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.OldStartMax | ( | self | ) |
Definition at line 3153 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.OldStartMin | ( | self | ) |
Definition at line 3150 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.PerformedExpr | ( | self | ) |
Definition at line 3269 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SafeDurationExpr | ( | self, | |
| unperformed_value ) |
Definition at line 3280 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SafeEndExpr | ( | self, | |
| unperformed_value ) |
Definition at line 3283 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SafeStartExpr | ( | self, | |
| unperformed_value ) |
These methods create expressions encapsulating the start, end and duration of the interval var. If the interval var is unperformed, they will return the unperformed_value.
Definition at line 3272 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetDurationMax | ( | self, | |
| m ) |
Definition at line 3172 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetDurationMin | ( | self, | |
| m ) |
Definition at line 3169 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetDurationRange | ( | self, | |
| mi, | |||
| ma ) |
Definition at line 3175 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetEndMax | ( | self, | |
| m ) |
Definition at line 3200 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetEndMin | ( | self, | |
| m ) |
Definition at line 3197 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetEndRange | ( | self, | |
| mi, | |||
| ma ) |
Definition at line 3203 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetPerformed | ( | self, | |
| val ) |
Definition at line 3234 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetStartMax | ( | self, | |
| m ) |
Definition at line 3144 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetStartMin | ( | self, | |
| m ) |
Definition at line 3141 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.SetStartRange | ( | self, | |
| mi, | |||
| ma ) |
Definition at line 3147 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartExpr | ( | self | ) |
These methods create expressions encapsulating the start, end and duration of the interval var. Please note that these must not be used if the interval var is unperformed.
Definition at line 3255 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartMax | ( | self | ) |
Definition at line 3138 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartMin | ( | self | ) |
These methods query, set, and watch the start position of the interval var.
Definition at line 3131 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfter | ( | self, | |
| date ) |
Definition at line 3349 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterEnd | ( | self, | |
| other ) |
Definition at line 3310 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterEndWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3313 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterStart | ( | self, | |
| other ) |
Definition at line 3316 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterStartWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3319 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAt | ( | self, | |
| date ) |
Definition at line 3352 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtEnd | ( | self, | |
| other ) |
Definition at line 3322 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtEndWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3325 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtStart | ( | self, | |
| other ) |
Definition at line 3328 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtStartWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3331 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StartsBefore | ( | self, | |
| date ) |
Definition at line 3355 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StaysInSync | ( | self, | |
| other ) |
Definition at line 3334 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.StaysInSyncWithDelay | ( | self, | |
| other, | |||
| delay ) |
Definition at line 3337 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WasPerformedBound | ( | self | ) |
Definition at line 3237 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenAnything | ( | self, | |
| * | args ) |
*Overload 1:* Attaches a demon awakened when anything about this interval changes. | *Overload 2:* Attaches a closure awakened when anything about this interval changes.
Definition at line 3243 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenDurationBound | ( | self, | |
| * | args ) |
Definition at line 3187 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenDurationRange | ( | self, | |
| * | args ) |
Definition at line 3184 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenEndBound | ( | self, | |
| * | args ) |
Definition at line 3215 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenEndRange | ( | self, | |
| * | args ) |
Definition at line 3212 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenPerformedBound | ( | self, | |
| * | args ) |
Definition at line 3240 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenStartBound | ( | self, | |
| * | args ) |
Definition at line 3159 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.IntervalVar.WhenStartRange | ( | self, | |
| * | args ) |
Definition at line 3156 of file pywrapcp.py.
|
static |
Definition at line 3126 of file pywrapcp.py.