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

Public Member Functions

 DefaultSolutionPool ()
 
 ~DefaultSolutionPool () override
 
void Initialize (Assignment *const assignment) override
 
void RegisterNewSolution (Assignment *const assignment) override
 
void GetNextSolution (Assignment *const assignment) override
 
bool SyncNeeded (Assignment *const) override
 
std::string DebugString () const override
 
- Public Member Functions inherited from operations_research::SolutionPool
 SolutionPool ()
 
 ~SolutionPool () override
 
- 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 ()
 

Detailed Description

Definition at line 5536 of file local_search.cc.

Constructor & Destructor Documentation

◆ DefaultSolutionPool()

operations_research::DefaultSolutionPool::DefaultSolutionPool ( )
inline

Definition at line 5538 of file local_search.cc.

◆ ~DefaultSolutionPool()

operations_research::DefaultSolutionPool::~DefaultSolutionPool ( )
inlineoverride

Definition at line 5540 of file local_search.cc.

Member Function Documentation

◆ DebugString()

std::string operations_research::DefaultSolutionPool::DebugString ( ) const
inlineoverridevirtual

Reimplemented from operations_research::BaseObject.

Definition at line 5556 of file local_search.cc.

◆ GetNextSolution()

void operations_research::DefaultSolutionPool::GetNextSolution ( Assignment *const assignment)
inlineoverridevirtual

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

Implements operations_research::SolutionPool.

Definition at line 5550 of file local_search.cc.

◆ Initialize()

void operations_research::DefaultSolutionPool::Initialize ( Assignment *const assignment)
inlineoverridevirtual

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

Implements operations_research::SolutionPool.

Definition at line 5542 of file local_search.cc.

◆ RegisterNewSolution()

void operations_research::DefaultSolutionPool::RegisterNewSolution ( Assignment *const assignment)
inlineoverridevirtual

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

Implements operations_research::SolutionPool.

Definition at line 5546 of file local_search.cc.

◆ SyncNeeded()

bool operations_research::DefaultSolutionPool::SyncNeeded ( Assignment * const local_assignment)
inlineoverridevirtual

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

Implements operations_research::SolutionPool.

Definition at line 5554 of file local_search.cc.


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