Uses of Class
com.google.ortools.constraintsolver.IntVarLocalSearchOperator
| Package | Description |
|---|---|
| com.google.ortools.constraintsolver |
-
Uses of IntVarLocalSearchOperator in com.google.ortools.constraintsolver
Subclasses of IntVarLocalSearchOperator in com.google.ortools.constraintsolver Modifier and Type Class Description classBaseLnsThis is the base class for building an Lns operator.classChangeValueDefines 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).classPathOperatorBase 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).Constructors in com.google.ortools.constraintsolver with parameters of type IntVarLocalSearchOperator Constructor Description IntVarLocalSearchHandler(IntVarLocalSearchOperator op)