![]() |
OR-Tools
8.2
|
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 5377 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 |
|
inline |
Definition at line 5379 of file constraint_solver.h.
|
inlineoverride |
Definition at line 5380 of file constraint_solver.h.
|
inlinevirtualinherited |
Reimplemented in Trace, LocalSearchMonitorMaster, PropagationBaseObject, Decision, DecisionBuilder, Demon, Constraint, IntVarIterator, SolutionCollector, OptimizeVar, SearchLimit, RegularLimit, SequenceVar, Assignment, Pack, CallMethod0< T >, CallMethod1< T, P >, CallMethod2< T, P, Q >, CallMethod3< T, P, Q, R >, DelayedCallMethod0< T >, DelayedCallMethod1< T, P >, DelayedCallMethod2< T, P, Q >, LocalSearchFilterManager, PropagationMonitor, LocalSearchMonitor, BooleanVar, SearchLog, ArrayWithOffset< T >, DemonProfiler, IfThenElseCt, PiecewiseLinearExpr, TwoOpt, Relocate, Exchange, Cross, MakeActiveOperator, RelocateAndMakeActiveOperator, MakeActiveAndRelocate, MakeInactiveOperator, RelocateAndMakeInactiveOperator, MakeChainInactiveOperator, SwapActiveOperator, ExtendedSwapActiveOperator, TSPOpt, TSPLns, LinKernighan, PathLns, NeighborhoodLimit, LocalSearchProfiler, FindOneNeighbor, LocalSearchPhaseParameters, Dimension, GlobalVehicleBreaksConstraint, IntVarFilteredDecisionBuilder, CPFeasibilityFilter, MakeRelocateNeighborsOperator, MakePairActiveOperator, MakePairInactiveOperator, PairRelocateOperator, LightPairRelocateOperator, PairExchangeOperator, PairExchangeRelocateOperator, SwapIndexPairOperator, IndexPairSwapActiveOperator, FilteredHeuristicPathLNSOperator, RelocatePathAndHeuristicInsertUnperformedOperator, FilteredHeuristicExpensiveChainLNSOperator, FilteredHeuristicCloseNodesLNSOperator, RelocateExpensiveChain, PairNodeSwapActiveOperator< swap_first >, RelocateSubtrip, ExchangeSubtrip, and SymmetryManager.
Definition at line 3156 of file constraint_solver.h.
|
pure virtual |
This method is called when the local search starts a new neighborhood to initialize the default assignment.
|
pure virtual |
This method is called to initialize the solution pool with the assignment from the local search.
|
pure virtual |
This method is called when a new solution has been accepted by the local search.
|
pure virtual |
This method checks if the local solution needs to be updated with an external one.