Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#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 () |
virtual std::string | DebugString () const |
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 5852 of file constraint_solver.h.
|
inline |
Definition at line 5854 of file constraint_solver.h.
|
inlineoverride |
Definition at line 5855 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.