![]() |
OR-Tools
8.2
|
A Decision represents a choice point in the search tree.
The two main methods are Apply() to go left, or Refute() to go right.
Definition at line 3228 of file constraint_solver.h.
Public Member Functions | |
Decision () | |
~Decision () override | |
virtual void | Apply (Solver *const s)=0 |
Apply will be called first when the decision is executed. More... | |
virtual void | Refute (Solver *const s)=0 |
Refute will be called after a backtrack. More... | |
std::string | DebugString () const override |
virtual void | Accept (DecisionVisitor *const visitor) const |
Accepts the given visitor. More... | |
|
inline |
Definition at line 3230 of file constraint_solver.h.
|
inlineoverride |
Definition at line 3231 of file constraint_solver.h.
|
virtual |
Accepts the given visitor.
Definition at line 2536 of file constraint_solver.cc.
|
pure virtual |
Apply will be called first when the decision is executed.
|
inlineoverridevirtual |
Reimplemented from BaseObject.
Definition at line 3239 of file constraint_solver.h.
|
pure virtual |
Refute will be called after a backtrack.