![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 4550 of file pywrapcp.py.
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| Min (self) | |
| SetMin (self, m) | |
| Max (self) | |
| SetMax (self, m) | |
| SetRange (self, mi, ma) | |
| Bound (self) | |
| Value (self) | |
| RemoveValue (self, v) | |
| RemoveInterval (self, l, u) | |
| WhenBound (self, d) | |
| WhenRange (self, d) | |
| WhenDomain (self, d) | |
| Size (self) | |
| Contains (self, v) | |
| HoleIteratorAux (self, reversible) | |
| DomainIteratorAux (self, reversible) | |
| DebugString (self) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntVar | |
| __init__ (self, *args, **kwargs) | |
| IsVar (self) | |
| Var (self) | |
| RemoveValues (self, values) | |
| SetValues (self, values) | |
| OldMin (self) | |
| OldMax (self) | |
| __repr__ (self) | |
| __str__ (self) | |
| DomainIterator (self) | |
| HoleIterator (self) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntExpr | |
| __init__ (self, *args, **kwargs) | |
| SetValue (self, v) | |
| VarWithName (self, name) | |
| __repr__ (self) | |
| __str__ (self) | |
| __add__ (self, *args) | |
| __radd__ (self, v) | |
| __sub__ (self, *args) | |
| __rsub__ (self, v) | |
| __mul__ (self, *args) | |
| __rmul__ (self, v) | |
| __floordiv__ (self, *args) | |
| __mod__ (self, *args) | |
| __neg__ (self) | |
| __abs__ (self) | |
| Square (self) | |
| __eq__ (self, *args) | |
| __ne__ (self, *args) | |
| __ge__ (self, *args) | |
| __gt__ (self, *args) | |
| __le__ (self, *args) | |
| __lt__ (self, *args) | |
| MapTo (self, vars) | |
| IndexOf (self, *args) | |
| IsMember (self, values) | |
| Member (self, values) | |
| NotMember (self, starts, ends) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.PropagationBaseObject | |
| __init__ (self, s) | |
| 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.IntVar | |
| 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.IntExpr | |
| 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.BooleanVar.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Definition at line 4553 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.Bound | ( | self | ) |
Returns true if the min and the max of the expression are equal.
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4572 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.Contains | ( | self, | |
| v ) |
This method returns whether the value 'v' is in the domain of the variable.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4596 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.DebugString | ( | self | ) |
Reimplemented from ortools.constraint_solver.pywrapcp.PropagationBaseObject.
Definition at line 4605 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.DomainIteratorAux | ( | self, | |
| reversible ) |
Creates a domain iterator. When 'reversible' is false, the returned object is created on the normal C++ heap and the solver does NOT take ownership of the object.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4602 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.HoleIteratorAux | ( | self, | |
| reversible ) |
Creates a hole iterator. When 'reversible' is false, the returned object is created on the normal C++ heap and the solver does NOT take ownership of the object.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4599 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.Max | ( | self | ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4563 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.Min | ( | self | ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4557 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.RemoveInterval | ( | self, | |
| l, | |||
| u ) |
This method removes the interval 'l' .. 'u' from the domain of the variable. It assumes that 'l' <= 'u'.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4581 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.RemoveValue | ( | self, | |
| v ) |
This method removes the value 'v' from the domain of the variable.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4578 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.SetMax | ( | self, | |
| m ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4566 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.SetMin | ( | self, | |
| m ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4560 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.SetRange | ( | self, | |
| l, | |||
| u ) |
This method sets both the min and the max of the expression.
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4569 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.Size | ( | self | ) |
This method returns the number of values in the domain of the variable.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4593 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.Value | ( | self | ) |
This method returns the value of the variable. This method checks before that the variable is bound.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4575 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.WhenBound | ( | self, | |
| args ) |
*Overload 1:* This method attaches a demon that will be awakened when the variable is bound. | *Overload 2:* This method attaches a closure that will be awakened when the variable is bound.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4584 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.WhenDomain | ( | self, | |
| args ) |
*Overload 1:* This method attaches a demon that will watch any domain modification of the domain of the variable. | *Overload 2:* This method attaches a closure that will watch any domain modification of the domain of the variable.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.
Definition at line 4590 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.BooleanVar.WhenRange | ( | self, | |
| args ) |
*Overload 1:* Attach a demon that will watch the min or the max of the expression. | *Overload 2:* Attach a demon that will watch the min or the max of the expression.
Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.
Definition at line 4587 of file pywrapcp.py.
|
static |
Definition at line 4551 of file pywrapcp.py.