Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <constraint_solver.h>
Public Member Functions | |
ProfiledDecisionBuilder (DecisionBuilder *db) | |
--------------— ProfiledDecisionBuilder ---------— | |
~ProfiledDecisionBuilder () override | |
const std::string & | name () const |
double | seconds () const |
Decision * | Next (Solver *solver) override |
std::string | DebugString () const override |
-------— Decision Builder -------— | |
void | AppendMonitors (Solver *solver, std::vector< SearchMonitor * > *extras) override |
void | Accept (ModelVisitor *visitor) const override |
Public Member Functions inherited from operations_research::DecisionBuilder | |
DecisionBuilder () | |
DecisionBuilder (const DecisionBuilder &)=delete | |
This type is neither copyable nor movable. | |
DecisionBuilder & | operator= (const DecisionBuilder &)=delete |
~DecisionBuilder () override | |
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 () |
Definition at line 3530 of file constraint_solver.h.
|
explicit |
--------------— ProfiledDecisionBuilder ---------—
Definition at line 3263 of file constraint_solver.cc.
|
inlineoverride |
Definition at line 3533 of file constraint_solver.h.
|
overridevirtual |
Reimplemented from operations_research::DecisionBuilder.
Definition at line 3294 of file constraint_solver.cc.
|
overridevirtual |
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 from operations_research::DecisionBuilder.
Definition at line 3289 of file constraint_solver.cc.
|
overridevirtual |
-------— Decision Builder -------—
Reimplemented from operations_research::DecisionBuilder.
Definition at line 3285 of file constraint_solver.cc.
|
inline |
Definition at line 3534 of file constraint_solver.h.
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.
In case db_->Next() fails, gathering the running time on backtrack.
Implements operations_research::DecisionBuilder.
Definition at line 3266 of file constraint_solver.cc.
|
inline |
Definition at line 3535 of file constraint_solver.h.