Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
__init__ (self, vars) | |
ModifyValue (self, index, value) | |
OneNeighbor (self) | |
__disown__ (self) | |
Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator | |
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) | |
Public Member Functions inherited from ortools.constraint_solver.pywrapcp.LocalSearchOperator | |
Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject | |
DebugString (self) | |
__str__ (self) | |
__repr__ (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.IntVarLocalSearchOperator | |
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.LocalSearchOperator | |
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") | |
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 4157 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.__init__ | ( | self, | |
vars ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.
Definition at line 4168 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.__disown__ | ( | self | ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.
Definition at line 4182 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.ChangeValue.ModifyValue | ( | self, | |
index, | |||
value ) |
Definition at line 4176 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 4179 of file pywrapcp.py.
|
static |
Definition at line 4165 of file pywrapcp.py.