Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
synchronized void | delete () |
void | swigReleaseOwnership () |
void | swigTakeOwnership () |
LocalSearchOperator () | |
boolean | nextNeighbor (Assignment delta, Assignment deltadelta) |
void | start (Assignment assignment) |
void | reset () |
boolean | HasFragments () |
boolean | HoldsDelta () |
Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject () | |
String | toString () |
Protected Member Functions | |
LocalSearchOperator (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
void | swigDirectorDisconnect () |
Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject (long cPtr, boolean cMemoryOwn) | |
Static Protected Member Functions | |
static long | getCPtr (LocalSearchOperator obj) |
static long | swigRelease (LocalSearchOperator obj) |
Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
static long | getCPtr (BaseObject obj) |
static long | swigRelease (BaseObject obj) |
Additional Inherited Members | |
Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject | |
transient boolean | swigCMemOwn |
The base class for all local search operators.
A local search operator is an object that defines the neighborhood of a
solution. In other words, a neighborhood is the set of solutions which can
be reached from a given solution using an operator.
The behavior of the LocalSearchOperator class is similar to iterators.
The operator is synchronized with an assignment (gives the
current values of the variables); this is done in the Start() method.
Then one can iterate over the neighbors using the MakeNextNeighbor method.
This method returns an assignment which represents the incremental changes
to the current solution. It also returns a second assignment representing
the changes to the last solution defined by the neighborhood operator; this
assignment is empty if the neighborhood operator cannot track this
information.
Definition at line 29 of file LocalSearchOperator.java.
|
protected |
Definition at line 32 of file LocalSearchOperator.java.
com.google.ortools.constraintsolver.LocalSearchOperator.LocalSearchOperator | ( | ) |
Definition at line 84 of file LocalSearchOperator.java.
synchronized void com.google.ortools.constraintsolver.LocalSearchOperator.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Reimplemented in com.google.ortools.constraintsolver.BaseLns, com.google.ortools.constraintsolver.ChangeValue, com.google.ortools.constraintsolver.IntVarLocalSearchOperator, and com.google.ortools.constraintsolver.PathOperator.
Definition at line 58 of file LocalSearchOperator.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Reimplemented in com.google.ortools.constraintsolver.BaseLns, com.google.ortools.constraintsolver.ChangeValue, com.google.ortools.constraintsolver.IntVarLocalSearchOperator, and com.google.ortools.constraintsolver.PathOperator.
Definition at line 54 of file LocalSearchOperator.java.
|
staticprotected |
Definition at line 37 of file LocalSearchOperator.java.
boolean com.google.ortools.constraintsolver.LocalSearchOperator.HasFragments | ( | ) |
Reimplemented in com.google.ortools.constraintsolver.BaseLns.
Definition at line 101 of file LocalSearchOperator.java.
boolean com.google.ortools.constraintsolver.LocalSearchOperator.HoldsDelta | ( | ) |
Reimplemented in com.google.ortools.constraintsolver.IntVarLocalSearchOperator.
Definition at line 105 of file LocalSearchOperator.java.
boolean com.google.ortools.constraintsolver.LocalSearchOperator.nextNeighbor | ( | Assignment | delta, |
Assignment | deltadelta ) |
Definition at line 89 of file LocalSearchOperator.java.
void com.google.ortools.constraintsolver.LocalSearchOperator.reset | ( | ) |
Reimplemented in com.google.ortools.constraintsolver.PathOperator.
Definition at line 97 of file LocalSearchOperator.java.
void com.google.ortools.constraintsolver.LocalSearchOperator.start | ( | Assignment | assignment | ) |
Reimplemented in com.google.ortools.constraintsolver.IntVarLocalSearchOperator.
Definition at line 93 of file LocalSearchOperator.java.
|
protected |
Reimplemented in com.google.ortools.constraintsolver.BaseLns, com.google.ortools.constraintsolver.ChangeValue, com.google.ortools.constraintsolver.IntVarLocalSearchOperator, and com.google.ortools.constraintsolver.PathOperator.
Definition at line 69 of file LocalSearchOperator.java.
|
staticprotected |
Definition at line 41 of file LocalSearchOperator.java.
void com.google.ortools.constraintsolver.LocalSearchOperator.swigReleaseOwnership | ( | ) |
Reimplemented in com.google.ortools.constraintsolver.BaseLns, com.google.ortools.constraintsolver.ChangeValue, com.google.ortools.constraintsolver.IntVarLocalSearchOperator, and com.google.ortools.constraintsolver.PathOperator.
Definition at line 74 of file LocalSearchOperator.java.
void com.google.ortools.constraintsolver.LocalSearchOperator.swigTakeOwnership | ( | ) |
Reimplemented in com.google.ortools.constraintsolver.BaseLns, com.google.ortools.constraintsolver.ChangeValue, com.google.ortools.constraintsolver.IntVarLocalSearchOperator, and com.google.ortools.constraintsolver.PathOperator.
Definition at line 79 of file LocalSearchOperator.java.