Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::SolutionPool Class Referenceabstract

#include <constraint_solver.h>

Inheritance diagram for operations_research::SolutionPool:
operations_research::BaseObject operations_research::DefaultSolutionPool

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.
 
BaseObjectoperator= (const BaseObject &)=delete
 
virtual ~BaseObject ()
 
virtual std::string DebugString () const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SolutionPool()

operations_research::SolutionPool::SolutionPool ( )
inline

Definition at line 5854 of file constraint_solver.h.

◆ ~SolutionPool()

operations_research::SolutionPool::~SolutionPool ( )
inlineoverride

Definition at line 5855 of file constraint_solver.h.

Member Function Documentation

◆ GetNextSolution()

virtual void operations_research::SolutionPool::GetNextSolution ( Assignment * assignment)
pure virtual

This method is called when the local search starts a new neighborhood to initialize the default assignment.

Implemented in operations_research::DefaultSolutionPool.

◆ Initialize()

virtual void operations_research::SolutionPool::Initialize ( Assignment * assignment)
pure virtual

This method is called to initialize the solution pool with the assignment from the local search.

Implemented in operations_research::DefaultSolutionPool.

◆ RegisterNewSolution()

virtual void operations_research::SolutionPool::RegisterNewSolution ( Assignment * assignment)
pure virtual

This method is called when a new solution has been accepted by the local search.

Implemented in operations_research::DefaultSolutionPool.

◆ SyncNeeded()

virtual bool operations_research::SolutionPool::SyncNeeded ( Assignment * local_assignment)
pure virtual

This method checks if the local solution needs to be updated with an external one.

Implemented in operations_research::DefaultSolutionPool.


The documentation for this class was generated from the following file: