OR-Tools  8.2
FindOneNeighbor

Detailed Description

Definition at line 3998 of file local_search.cc.

Public Member Functions

 FindOneNeighbor (Assignment *const assignment, IntVar *objective, SolutionPool *const pool, LocalSearchOperator *const ls_operator, DecisionBuilder *const sub_decision_builder, const RegularLimit *const limit, LocalSearchFilterManager *filter_manager)
 
 ~FindOneNeighbor () override
 
DecisionNext (Solver *const solver) override
 This is the main method of the decision builder class. More...
 
std::string DebugString () const override
 
virtual void AppendMonitors (Solver *const solver, std::vector< SearchMonitor * > *const extras)
 This method will be called at the start of the search. More...
 
virtual void Accept (ModelVisitor *const visitor) const
 

Constructor & Destructor Documentation

◆ FindOneNeighbor()

FindOneNeighbor ( Assignment *const  assignment,
IntVar objective,
SolutionPool *const  pool,
LocalSearchOperator *const  ls_operator,
DecisionBuilder *const  sub_decision_builder,
const RegularLimit *const  limit,
LocalSearchFilterManager filter_manager 
)

Definition at line 4034 of file local_search.cc.

◆ ~FindOneNeighbor()

~FindOneNeighbor ( )
inlineoverride

Definition at line 4006 of file local_search.cc.

Member Function Documentation

◆ Accept()

void Accept ( ModelVisitor *const  visitor) const
virtualinherited

Definition at line 2532 of file constraint_solver.cc.

◆ AppendMonitors()

void AppendMonitors ( Solver *const  solver,
std::vector< SearchMonitor * > *const  extras 
)
virtualinherited

This method will be called at the start of the search.

It asks the decision builder if it wants to append search monitors to the list of active monitors for this search. Please note there are no checks at this point for duplication.

Definition at line 2529 of file constraint_solver.cc.

◆ DebugString()

std::string DebugString ( ) const
inlineoverridevirtual

Reimplemented from DecisionBuilder.

Definition at line 4008 of file local_search.cc.

◆ Next()

Decision * Next ( Solver *const  s)
overridevirtual

This is the main method of the decision builder class.

It must return a decision (an instance of the class Decision). If it returns nullptr, this means that the decision builder has finished its work.

Implements DecisionBuilder.

Definition at line 4083 of file local_search.cc.


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