![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
__init__ (self, vars) | |
ModifyValue (self, index, value) | |
OneNeighbor (self) | |
__disown__ (self) | |
![]() | |
__init__ (self, vars, keep_inverse_values=False) | |
Start (self, assignment) | |
IsIncremental (self) | |
Size (self) | |
Value (self, index) | |
Var (self, index) | |
OldValue (self, index) | |
PrevValue (self, index) | |
SetValue (self, index, value) | |
Activated (self, index) | |
Activate (self, index) | |
Deactivate (self, index) | |
AddVars (self, vars) | |
OnStart (self) | |
NextNeighbor (self, delta, deltadelta) | |
__disown__ (self) | |
![]() | |
__init__ (self, *args, **kwargs) | |
__disown__ (self) | |
![]() | |
__init__ (self) | |
DebugString (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") | |
![]() | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Defines operators which change the value of variables; each neighbor corresponds to *one* modified variable. Sub-classes have to define ModifyValue which determines what the new variable value is going to be (given the current value and the variable).
Definition at line 4397 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.__init__ | ( | self, | |
vars ) |
Definition at line 4408 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.__disown__ | ( | self | ) |
Definition at line 4422 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.ModifyValue | ( | self, | |
index, | |||
value ) |
Definition at line 4416 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.OneNeighbor | ( | self | ) |
This method should not be overridden. Override ModifyValue() instead.
Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.
Definition at line 4419 of file pywrapcp.py.
|
static |
Definition at line 4405 of file pywrapcp.py.