Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.constraint_solver.pywrapcp.PathOperator Class Reference
Inheritance diagram for ortools.constraint_solver.pywrapcp.PathOperator:
ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator ortools.constraint_solver.pywrapcp.LocalSearchOperator ortools.constraint_solver.pywrapcp.BaseObject

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")
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.PathOperator.__init__ ( self,
* args,
** kwargs )

Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.

Definition at line 4208 of file pywrapcp.py.

Member Function Documentation

◆ Neighbor()

ortools.constraint_solver.pywrapcp.PathOperator.Neighbor ( self)

Definition at line 4212 of file pywrapcp.py.

Property Documentation

◆ thisown

ortools.constraint_solver.pywrapcp.PathOperator.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 4206 of file pywrapcp.py.


The documentation for this class was generated from the following file: