Java Reference
Java Reference
Detailed Description
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 14 of file SolutionPool.java.
Public Member Functions | |
| synchronized void | delete () |
| void | initialize (Assignment assignment) |
| This method is called to initialize the solution pool with the assignment from the local search. More... | |
| void | registerNewSolution (Assignment assignment) |
| This method is called when a new solution has been accepted by the local search. More... | |
| void | getNextSolution (Assignment assignment) |
| This method is called when the local search starts a new neighborhood to initialize the default assignment. More... | |
| boolean | syncNeeded (Assignment local_assignment) |
| This method checks if the local solution needs to be updated with an external one. More... | |
| String | toString () |
Protected Member Functions | |
| SolutionPool (long cPtr, boolean cMemoryOwn) | |
Constructor & Destructor Documentation
◆ SolutionPool()
|
inlineprotected |
Definition at line 17 of file SolutionPool.java.
Member Function Documentation
◆ delete()
|
inline |
Reimplemented from BaseObject.
Definition at line 31 of file SolutionPool.java.
◆ getNextSolution()
|
inline |
This method is called when the local search starts a new neighborhood to initialize the default assignment.
Definition at line 59 of file SolutionPool.java.
◆ initialize()
|
inline |
This method is called to initialize the solution pool with the assignment from the local search.
Definition at line 45 of file SolutionPool.java.
◆ registerNewSolution()
|
inline |
This method is called when a new solution has been accepted by the local search.
Definition at line 52 of file SolutionPool.java.
◆ syncNeeded()
|
inline |
This method checks if the local solution needs to be updated with an external one.
Definition at line 66 of file SolutionPool.java.
◆ toString()
|
inlineinherited |
Reimplemented in Assignment, Pack, BooleanVar, RegularLimit, SearchLog, SearchLimit, OptimizeVar, Decision, IntVarIterator, DecisionBuilder, Constraint, Demon, SolutionCollector, CPFeasibilityFilter, GlobalVehicleBreaksConstraint, PropagationBaseObject, SequenceVar, LocalSearchMonitor, and PropagationMonitor.
Definition at line 46 of file BaseObject.java.
The documentation for this class was generated from the following file: