![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
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 4415 of file pywrapcp.py.
Public Member Functions | |
| __init__ (self, vars) | |
| ModifyValue (self, index, value) | |
| OneNeighbor (self) | |
| __disown__ (self) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator | |
| __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) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.LocalSearchOperator | |
| __init__ (self, *args, **kwargs) | |
| __disown__ (self) | |
| Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject | |
| __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") | |
| 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") | |
| ortools.constraint_solver.pywrapcp.ChangeValue.__init__ | ( | self, | |
| vars ) |
Definition at line 4426 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.ChangeValue.__disown__ | ( | self | ) |
Definition at line 4440 of file pywrapcp.py.
| ortools.constraint_solver.pywrapcp.ChangeValue.ModifyValue | ( | self, | |
| index, | |||
| value ) |
Definition at line 4434 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 4437 of file pywrapcp.py.
|
static |
Definition at line 4423 of file pywrapcp.py.