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

-------— Local Search Monitor Primary -------— More...

Inheritance diagram for operations_research::LocalSearchMonitorPrimary:
operations_research::LocalSearchMonitor operations_research::SearchMonitor operations_research::BaseObject

Public Member Functions

 LocalSearchMonitorPrimary (Solver *solver)
 
void BeginOperatorStart () override
 Local search operator events.
 
void EndOperatorStart () override
 
void BeginMakeNextNeighbor (const LocalSearchOperator *op) override
 
void EndMakeNextNeighbor (const LocalSearchOperator *op, bool neighbor_found, const Assignment *delta, const Assignment *deltadelta) override
 
void BeginFilterNeighbor (const LocalSearchOperator *op) override
 
void EndFilterNeighbor (const LocalSearchOperator *op, bool neighbor_found) override
 
void BeginAcceptNeighbor (const LocalSearchOperator *op) override
 
void EndAcceptNeighbor (const LocalSearchOperator *op, bool neighbor_found) override
 
void BeginFiltering (const LocalSearchFilter *filter) override
 
void EndFiltering (const LocalSearchFilter *filter, bool reject) override
 
bool IsActive () const override
 
void Add (LocalSearchMonitor *monitor)
 Does not take ownership of monitor.
 
void Install () override
 
std::string DebugString () const override
 
- Public Member Functions inherited from operations_research::LocalSearchMonitor
 LocalSearchMonitor (Solver *solver)
 -------— Local Search Monitor --------—
 
 ~LocalSearchMonitor () override
 
- Public Member Functions inherited from operations_research::SearchMonitor
 SearchMonitor (Solver *const s)
 
 SearchMonitor (const SearchMonitor &)=delete
 This type is neither copyable nor movable.
 
SearchMonitoroperator= (const SearchMonitor &)=delete
 
 ~SearchMonitor () override
 
virtual void EnterSearch ()
 Beginning of the search.
 
virtual void RestartSearch ()
 Restart the search.
 
virtual void ExitSearch ()
 End of the search.
 
virtual void BeginNextDecision (DecisionBuilder *b)
 Before calling DecisionBuilder::Next.
 
virtual void EndNextDecision (DecisionBuilder *b, Decision *d)
 After calling DecisionBuilder::Next, along with the returned decision.
 
virtual void ApplyDecision (Decision *d)
 Before applying the decision.
 
virtual void RefuteDecision (Decision *d)
 Before refuting the decision.
 
virtual void AfterDecision (Decision *d, bool apply)
 
virtual void BeginFail ()
 Just when the failure occurs.
 
virtual void EndFail ()
 After completing the backtrack.
 
virtual void BeginInitialPropagation ()
 Before the initial propagation.
 
virtual void EndInitialPropagation ()
 After the initial propagation.
 
virtual bool AcceptSolution ()
 
virtual bool AtSolution ()
 
virtual void NoMoreSolutions ()
 When the search tree is finished.
 
virtual bool LocalOptimum ()
 
virtual bool AcceptDelta (Assignment *delta, Assignment *deltadelta)
 
virtual void AcceptNeighbor ()
 After accepting a neighbor during local search.
 
virtual void AcceptUncheckedNeighbor ()
 After accepting an unchecked neighbor during local search.
 
virtual bool IsUncheckedSolutionLimitReached ()
 
virtual void PeriodicCheck ()
 Periodic call to check limits in long running methods.
 
virtual int ProgressPercent ()
 
virtual void Accept (ModelVisitor *visitor) const
 Accepts the given model visitor.
 
Solversolver () const
 
- 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 ()
 

Additional Inherited Members

- Static Public Attributes inherited from operations_research::SearchMonitor
static constexpr int kNoProgress = -1
 
- Protected Member Functions inherited from operations_research::SearchMonitor
void ListenToEvent (Solver::MonitorEvent event)
 

Detailed Description

-------— Local Search Monitor Primary -------—

Definition at line 3164 of file constraint_solver.cc.

Constructor & Destructor Documentation

◆ LocalSearchMonitorPrimary()

operations_research::LocalSearchMonitorPrimary::LocalSearchMonitorPrimary ( Solver * solver)
inlineexplicit

Definition at line 3166 of file constraint_solver.cc.

Member Function Documentation

◆ Add()

void operations_research::LocalSearchMonitorPrimary::Add ( LocalSearchMonitor * monitor)
inline

Does not take ownership of monitor.

Definition at line 3209 of file constraint_solver.cc.

◆ BeginAcceptNeighbor()

void operations_research::LocalSearchMonitorPrimary::BeginAcceptNeighbor ( const LocalSearchOperator * op)
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3192 of file constraint_solver.cc.

◆ BeginFiltering()

void operations_research::LocalSearchMonitorPrimary::BeginFiltering ( const LocalSearchFilter * filter)
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3200 of file constraint_solver.cc.

◆ BeginFilterNeighbor()

void operations_research::LocalSearchMonitorPrimary::BeginFilterNeighbor ( const LocalSearchOperator * op)
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3184 of file constraint_solver.cc.

◆ BeginMakeNextNeighbor()

void operations_research::LocalSearchMonitorPrimary::BeginMakeNextNeighbor ( const LocalSearchOperator * op)
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3175 of file constraint_solver.cc.

◆ BeginOperatorStart()

void operations_research::LocalSearchMonitorPrimary::BeginOperatorStart ( )
inlineoverridevirtual

Local search operator events.

Implements operations_research::LocalSearchMonitor.

Definition at line 3169 of file constraint_solver.cc.

◆ DebugString()

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

Reimplemented from operations_research::LocalSearchMonitor.

Definition at line 3219 of file constraint_solver.cc.

◆ EndAcceptNeighbor()

void operations_research::LocalSearchMonitorPrimary::EndAcceptNeighbor ( const LocalSearchOperator * op,
bool neighbor_found )
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3195 of file constraint_solver.cc.

◆ EndFiltering()

void operations_research::LocalSearchMonitorPrimary::EndFiltering ( const LocalSearchFilter * filter,
bool reject )
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3203 of file constraint_solver.cc.

◆ EndFilterNeighbor()

void operations_research::LocalSearchMonitorPrimary::EndFilterNeighbor ( const LocalSearchOperator * op,
bool neighbor_found )
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3187 of file constraint_solver.cc.

◆ EndMakeNextNeighbor()

void operations_research::LocalSearchMonitorPrimary::EndMakeNextNeighbor ( const LocalSearchOperator * op,
bool neighbor_found,
const Assignment * delta,
const Assignment * deltadelta )
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3178 of file constraint_solver.cc.

◆ EndOperatorStart()

void operations_research::LocalSearchMonitorPrimary::EndOperatorStart ( )
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3172 of file constraint_solver.cc.

◆ Install()

void operations_research::LocalSearchMonitorPrimary::Install ( )
inlineoverridevirtual

The trace will dispatch propagation events. It needs to listen to search events.

Reimplemented from operations_research::LocalSearchMonitor.

Definition at line 3217 of file constraint_solver.cc.

◆ IsActive()

bool operations_research::LocalSearchMonitorPrimary::IsActive ( ) const
inlineoverridevirtual

Implements operations_research::LocalSearchMonitor.

Definition at line 3206 of file constraint_solver.cc.


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