![]() |
OR-Tools
9.6
|
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 5514 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 5516 of file constraint_solver.h.
|
inlineoverride |
Definition at line 5517 of file constraint_solver.h.
|
inlinevirtualinherited |
Reimplemented in SymmetryManager, IntVarFilteredDecisionBuilder, ExchangeSubtrip, RelocateSubtrip, PairNodeSwapActiveOperator< swap_first >, RelocateExpensiveChain, FilteredHeuristicCloseNodesLNSOperator, FilteredHeuristicExpensiveChainLNSOperator, RelocatePathAndHeuristicInsertUnperformedOperator, FilteredHeuristicPathLNSOperator, IndexPairSwapActiveOperator, SwapIndexPairOperator, PairExchangeRelocateOperator, PairExchangeOperator, LightPairRelocateOperator, GroupPairAndRelocateOperator, PairRelocateOperator, MakePairInactiveOperator, MakePairActiveOperator, SwapActiveToShortestPathOperator, MakeRelocateNeighborsOperator, GlobalVehicleBreaksConstraint, Dimension, LocalSearchPhaseParameters, FindOneNeighbor, LocalSearchProfiler, NeighborhoodLimit, PathLns, LinKernighan, TSPLns, TSPOpt, ExtendedSwapActiveOperator, SwapActiveOperator, MakeChainInactiveOperator, RelocateAndMakeInactiveOperator, MakeInactiveOperator, MakeActiveAndRelocate, RelocateAndMakeActiveOperator, MakeActiveOperator, Cross, Exchange, Relocate, TwoOpt, PiecewiseLinearExpr, IfThenElseCt, DemonProfiler, ArrayWithOffset< T >, SearchLog, BooleanVar, LocalSearchMonitor, PropagationMonitor, LocalSearchFilterManager, LightIntIntFunctionElementCt< F >, LightIntFunctionElementCt< F >, DelayedCallMethod2< T, P, Q >, DelayedCallMethod1< T, P >, DelayedCallMethod0< T >, CallMethod3< T, P, Q, R >, CallMethod2< T, P, Q >, CallMethod1< T, P >, CallMethod0< T >, Pack, Assignment, SequenceVar, RegularLimit, SearchLimit, OptimizeVar, SolutionCollector, IntVarIterator, Constraint, Demon, ProfiledDecisionBuilder, DecisionBuilder, Decision, PropagationBaseObject, LocalSearchMonitorPrimary, and Trace.
Definition at line 3251 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.