![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
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) | |
![]() | |
__init__ (self, s) | |
DebugString (self) | |
solver (self) | |
Name (self) | |
__disown__ (self) | |
![]() | |
__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") | |
![]() | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
![]() | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
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 3094 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Definition at line 3110 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.__repr__ | ( | self | ) |
Definition at line 3346 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.__str__ | ( | self | ) |
Definition at line 3349 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.AvoidsDate | ( | self, | |
date ) |
Definition at line 3343 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.CannotBePerformed | ( | self | ) |
Definition at line 3210 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.CrossesDate | ( | self, | |
date ) |
Definition at line 3340 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.DurationExpr | ( | self | ) |
Definition at line 3245 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.DurationMax | ( | self | ) |
Definition at line 3148 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 3144 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndExpr | ( | self | ) |
Definition at line 3248 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndMax | ( | self | ) |
Definition at line 3176 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 3172 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfter | ( | self, | |
date ) |
Definition at line 3322 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterEnd | ( | self, | |
other ) |
Definition at line 3268 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterEndWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3271 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterStart | ( | self, | |
other ) |
Definition at line 3274 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAfterStartWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3277 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAt | ( | self, | |
date ) |
Definition at line 3325 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtEnd | ( | self, | |
other ) |
Definition at line 3280 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtEndWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3283 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtStart | ( | self, | |
other ) |
Definition at line 3286 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsAtStartWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3289 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.EndsBefore | ( | self, | |
date ) |
Definition at line 3328 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.IsPerformedBound | ( | self | ) |
Definition at line 3213 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.MayBePerformed | ( | self | ) |
Definition at line 3207 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 3200 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.OldDurationMax | ( | self | ) |
Definition at line 3163 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.OldDurationMin | ( | self | ) |
Definition at line 3160 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.OldEndMax | ( | self | ) |
Definition at line 3191 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.OldEndMin | ( | self | ) |
Definition at line 3188 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.OldStartMax | ( | self | ) |
Definition at line 3135 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.OldStartMin | ( | self | ) |
Definition at line 3132 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.PerformedExpr | ( | self | ) |
Definition at line 3251 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SafeDurationExpr | ( | self, | |
unperformed_value ) |
Definition at line 3262 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SafeEndExpr | ( | self, | |
unperformed_value ) |
Definition at line 3265 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 3254 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetDurationMax | ( | self, | |
m ) |
Definition at line 3154 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetDurationMin | ( | self, | |
m ) |
Definition at line 3151 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetDurationRange | ( | self, | |
mi, | |||
ma ) |
Definition at line 3157 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetEndMax | ( | self, | |
m ) |
Definition at line 3182 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetEndMin | ( | self, | |
m ) |
Definition at line 3179 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetEndRange | ( | self, | |
mi, | |||
ma ) |
Definition at line 3185 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetPerformed | ( | self, | |
val ) |
Definition at line 3216 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetStartMax | ( | self, | |
m ) |
Definition at line 3126 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetStartMin | ( | self, | |
m ) |
Definition at line 3123 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.SetStartRange | ( | self, | |
mi, | |||
ma ) |
Definition at line 3129 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 3237 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartMax | ( | self | ) |
Definition at line 3120 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 3113 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfter | ( | self, | |
date ) |
Definition at line 3331 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterEnd | ( | self, | |
other ) |
Definition at line 3292 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterEndWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3295 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterStart | ( | self, | |
other ) |
Definition at line 3298 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAfterStartWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3301 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAt | ( | self, | |
date ) |
Definition at line 3334 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtEnd | ( | self, | |
other ) |
Definition at line 3304 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtEndWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3307 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtStart | ( | self, | |
other ) |
Definition at line 3310 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsAtStartWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3313 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StartsBefore | ( | self, | |
date ) |
Definition at line 3337 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StaysInSync | ( | self, | |
other ) |
Definition at line 3316 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.StaysInSyncWithDelay | ( | self, | |
other, | |||
delay ) |
Definition at line 3319 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WasPerformedBound | ( | self | ) |
Definition at line 3219 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 3225 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenDurationBound | ( | self, | |
* | args ) |
Definition at line 3169 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenDurationRange | ( | self, | |
* | args ) |
Definition at line 3166 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenEndBound | ( | self, | |
* | args ) |
Definition at line 3197 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenEndRange | ( | self, | |
* | args ) |
Definition at line 3194 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenPerformedBound | ( | self, | |
* | args ) |
Definition at line 3222 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenStartBound | ( | self, | |
* | args ) |
Definition at line 3141 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.IntervalVar.WhenStartRange | ( | self, | |
* | args ) |
Definition at line 3138 of file pywrapcp.py.
|
static |
Definition at line 3108 of file pywrapcp.py.