![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
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 5951 of file constraint_solver.h.
#include <constraint_solver.h>
Public Member Functions | |
| SolutionPool () | |
| ~SolutionPool () override | |
| virtual void | Initialize (Assignment *assignment)=0 |
| virtual void | RegisterNewSolution (Assignment *assignment)=0 |
| virtual void | GetNextSolution (Assignment *assignment)=0 |
| virtual bool | SyncNeeded (Assignment *local_assignment)=0 |
| Public Member Functions inherited from operations_research::BaseObject | |
| BaseObject () | |
| BaseObject (const BaseObject &)=delete | |
| This type is neither copyable nor movable. | |
| BaseObject & | operator= (const BaseObject &)=delete |
| virtual | ~BaseObject ()=default |
| virtual std::string | DebugString () const |
|
inline |
Definition at line 5953 of file constraint_solver.h.
|
inlineoverride |
Definition at line 5954 of file constraint_solver.h.
|
pure virtual |
This method is called when the local search starts a new neighborhood to initialize the default assignment.
Implemented in operations_research::DefaultSolutionPool.
|
pure virtual |
This method is called to initialize the solution pool with the assignment from the local search.
Implemented in operations_research::DefaultSolutionPool.
|
pure virtual |
This method is called when a new solution has been accepted by the local search.
Implemented in operations_research::DefaultSolutionPool.
|
pure virtual |
This method checks if the local solution needs to be updated with an external one.
Implemented in operations_research::DefaultSolutionPool.