C++ Reference
C++ Reference: Routing
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 5289 of file constraint_solver.h.
Public Member Functions | |
| SolutionPool () | |
| ~SolutionPool () override | |
| virtual void | Initialize (Assignment *const assignment)=0 |
| This method is called to initialize the solution pool with the assignment from the local search. More... | |
| virtual void | RegisterNewSolution (Assignment *const assignment)=0 |
| This method is called when a new solution has been accepted by the local search. More... | |
| virtual void | GetNextSolution (Assignment *const assignment)=0 |
| This method is called when the local search starts a new neighborhood to initialize the default assignment. More... | |
| virtual bool | SyncNeeded (Assignment *const local_assignment)=0 |
| This method checks if the local solution needs to be updated with an external one. More... | |
| virtual std::string | DebugString () const |
Constructor & Destructor Documentation
◆ SolutionPool()
|
inline |
Definition at line 5291 of file constraint_solver.h.
◆ ~SolutionPool()
|
inlineoverride |
Definition at line 5292 of file constraint_solver.h.
Member Function Documentation
◆ DebugString()
|
inlinevirtualinherited |
Reimplemented in Pack, Assignment, SequenceVar, RegularLimit, SearchLimit, OptimizeVar, SolutionCollector, IntVarIterator, CPFeasibilityFilter, Constraint, Demon, DecisionBuilder, Decision, PropagationBaseObject, IntVarFilteredDecisionBuilder, ArrayWithOffset< T >, SearchLog, BooleanVar, LocalSearchMonitor, GlobalVehicleBreaksConstraint, PropagationMonitor, LocalSearchFilterManager, DelayedCallMethod2< T, P, Q >, DelayedCallMethod1< T, P >, DelayedCallMethod0< T >, ExchangeSubtrip, CallMethod3< T, P, Q, R >, RelocateSubtrip, CallMethod2< T, P, Q >, CallMethod1< T, P >, CallMethod0< T >, PairNodeSwapActiveOperator< swap_first >, RelocateExpensiveChain, FilteredHeuristicExpensiveChainLNSOperator, FilteredHeuristicPathLNSOperator, IndexPairSwapActiveOperator, SwapIndexPairOperator, PairExchangeRelocateOperator, PairExchangeOperator, LightPairRelocateOperator, PairRelocateOperator, MakePairInactiveOperator, MakePairActiveOperator, and MakeRelocateNeighborsOperator.
Definition at line 3108 of file constraint_solver.h.
◆ GetNextSolution()
|
pure virtual |
This method is called when the local search starts a new neighborhood to initialize the default assignment.
◆ Initialize()
|
pure virtual |
This method is called to initialize the solution pool with the assignment from the local search.
◆ RegisterNewSolution()
|
pure virtual |
This method is called when a new solution has been accepted by the local search.
◆ SyncNeeded()
|
pure virtual |
This method checks if the local solution needs to be updated with an external one.
The documentation for this class was generated from the following file: