Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
synchronized void | delete () |
void | initialize (Assignment assignment) |
void | registerNewSolution (Assignment assignment) |
void | getNextSolution (Assignment assignment) |
boolean | syncNeeded (Assignment local_assignment) |
Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject () | |
String | toString () |
Protected Member Functions | |
SolutionPool (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject (long cPtr, boolean cMemoryOwn) | |
Static Protected Member Functions | |
static long | getCPtr (SolutionPool obj) |
static long | swigRelease (SolutionPool 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 |
This class is used to manage a pool of solutions. It can transform
a single point local search into a multipoint local search.
Definition at line 15 of file SolutionPool.java.
|
protected |
Definition at line 18 of file SolutionPool.java.
synchronized void com.google.ortools.constraintsolver.SolutionPool.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Definition at line 44 of file SolutionPool.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Definition at line 40 of file SolutionPool.java.
|
staticprotected |
Definition at line 23 of file SolutionPool.java.
void com.google.ortools.constraintsolver.SolutionPool.getNextSolution | ( | Assignment | assignment | ) |
This method is called when the local search starts a new neighborhood to
initialize the default assignment.
Definition at line 75 of file SolutionPool.java.
void com.google.ortools.constraintsolver.SolutionPool.initialize | ( | Assignment | assignment | ) |
This method is called to initialize the solution pool with the assignment
from the local search.
Definition at line 59 of file SolutionPool.java.
void com.google.ortools.constraintsolver.SolutionPool.registerNewSolution | ( | Assignment | assignment | ) |
This method is called when a new solution has been accepted by the local
search.
Definition at line 67 of file SolutionPool.java.
|
staticprotected |
Definition at line 27 of file SolutionPool.java.
boolean com.google.ortools.constraintsolver.SolutionPool.syncNeeded | ( | Assignment | local_assignment | ) |
This method checks if the local solution needs to be updated with
an external one.
Definition at line 83 of file SolutionPool.java.