Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
Neighbor (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) | |
OneNeighbor (self) | |
__disown__ (self) | |
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") | |
Base class of the local search operators dedicated to path modifications (a path is a set of nodes linked together by arcs). This family of neighborhoods supposes they are handling next variables representing the arcs (var[i] represents the node immediately after i on a path). Several services are provided: - arc manipulators (SetNext(), ReverseChain(), MoveChain()) - path inspectors (Next(), Prev(), IsPathEnd()) - path iterators: operators need a given number of nodes to define a neighbor; this class provides the iteration on a given number of (base) nodes which can be used to define a neighbor (through the BaseNode method) Subclasses only need to override MakeNeighbor to create neighbors using the services above (no direct manipulation of assignments).
Definition at line 4189 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.PathOperator.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.
Definition at line 4208 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.PathOperator.Neighbor | ( | self | ) |
Definition at line 4212 of file pywrapcp.py.
|
static |
Definition at line 4206 of file pywrapcp.py.