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 5273 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 5275 of file constraint_solver.h.
|
inlineoverride |
Definition at line 5276 of file constraint_solver.h.
|
inlinevirtualinherited |
Reimplemented in operations_research::Pack, operations_research::Assignment, operations_research::SequenceVar, operations_research::RegularLimit, operations_research::SearchLimit, operations_research::OptimizeVar, operations_research::SolutionCollector, operations_research::IntVarIterator, operations_research::Constraint, operations_research::CPFeasibilityFilter, operations_research::Demon, operations_research::DecisionBuilder, operations_research::Decision, operations_research::ChristofidesFilteredDecisionBuilder, operations_research::ParallelSavingsFilteredDecisionBuilder, operations_research::PropagationBaseObject, operations_research::SequentialSavingsFilteredDecisionBuilder, operations_research::ComparatorCheapestAdditionFilteredDecisionBuilder, operations_research::EvaluatorCheapestAdditionFilteredDecisionBuilder, operations_research::LocalCheapestInsertionFilteredDecisionBuilder, operations_research::GlobalCheapestInsertionFilteredDecisionBuilder, operations_research::ArrayWithOffset< T >, operations_research::SearchLog, operations_research::BooleanVar, operations_research::LocalSearchMonitor, operations_research::PropagationMonitor, operations_research::LocalSearchFilterManager, operations_research::PathWithPreviousNodesOperator, operations_research::DelayedCallMethod2< T, P, Q >, operations_research::DelayedCallMethod1< T, P >, operations_research::DelayedCallMethod0< T >, operations_research::CallMethod3< T, P, Q, R >, operations_research::CallMethod2< T, P, Q >, operations_research::CallMethod1< T, P >, operations_research::ExchangeSubtrip, operations_research::RelocateSubtrip, operations_research::CallMethod0< T >, operations_research::PairNodeSwapActiveOperator< swap_first >, operations_research::RelocateExpensiveChain, operations_research::IndexPairSwapActiveOperator, operations_research::SwapIndexPairOperator, operations_research::PairExchangeRelocateOperator, operations_research::PairExchangeOperator, operations_research::LightPairRelocateOperator, operations_research::PairRelocateOperator, operations_research::MakePairInactiveOperator, operations_research::MakePairActiveOperator, and operations_research::MakeRelocateNeighborsOperator.
Definition at line 3093 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.