![]() |
Google OR-Tools v9.12
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 |
![]() | |
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 |
![]() | |
BaseObject () | |
BaseObject (const BaseObject &)=delete | |
This type is neither copyable nor movable. | |
BaseObject & | operator= (const BaseObject &)=delete |
virtual | ~BaseObject () |
Definition at line 3599 of file constraint_solver.h.
|
explicit |
--------------— ProfiledDecisionBuilder ---------—
Definition at line 3264 of file constraint_solver.cc.
|
inlineoverride |
Definition at line 3602 of file constraint_solver.h.
|
overridevirtual |
Reimplemented from operations_research::DecisionBuilder.
Definition at line 3296 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 3291 of file constraint_solver.cc.
|
overridevirtual |
-------— Decision Builder -------—
Reimplemented from operations_research::DecisionBuilder.
Definition at line 3287 of file constraint_solver.cc.
|
inline |
Definition at line 3603 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 3267 of file constraint_solver.cc.
|
inline |
Definition at line 3604 of file constraint_solver.h.