Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <constraint_solver.h>
Public Member Functions | |
DecisionBuilder () | |
DecisionBuilder (const DecisionBuilder &)=delete | |
This type is neither copyable nor movable. | |
DecisionBuilder & | operator= (const DecisionBuilder &)=delete |
~DecisionBuilder () override | |
virtual Decision * | Next (Solver *s)=0 |
std::string | DebugString () const override |
-------— Decision Builder -------— | |
virtual void | AppendMonitors (Solver *solver, std::vector< SearchMonitor * > *extras) |
virtual void | Accept (ModelVisitor *visitor) const |
void | set_name (absl::string_view name) |
std::string | GetName () const |
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 () |
A DecisionBuilder is responsible for creating the search tree. The important method is Next(), which returns the next decision to execute.
Definition at line 3497 of file constraint_solver.h.
|
inline |
Definition at line 3499 of file constraint_solver.h.
|
delete |
This type is neither copyable nor movable.
|
inlineoverride |
Definition at line 3506 of file constraint_solver.h.
|
virtual |
Reimplemented in operations_research::LocalSearch, and operations_research::ProfiledDecisionBuilder.
Definition at line 2526 of file constraint_solver.cc.
|
virtual |
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.
Reimplemented in operations_research::ProfiledDecisionBuilder.
Definition at line 2523 of file constraint_solver.cc.
|
overridevirtual |
-------— Decision Builder -------—
Reimplemented from operations_research::BaseObject.
Reimplemented in operations_research::FindOneNeighbor, operations_research::IntVarFilteredDecisionBuilder, operations_research::LocalSearch, and operations_research::ProfiledDecisionBuilder.
Definition at line 2517 of file constraint_solver.cc.
std::string operations_research::DecisionBuilder::GetName | ( | ) | const |
Definition at line 2519 of file constraint_solver.cc.
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.
Implemented in operations_research::FindOneNeighbor, operations_research::IntVarFilteredDecisionBuilder, operations_research::LocalSearch, operations_research::ProfiledDecisionBuilder, and operations_research::RuinAndRecreateDecisionBuilder.
|
delete |
|
inline |
Definition at line 3522 of file constraint_solver.h.