OR-Tools  8.2
Decisionabstract

Detailed Description

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...
 

Constructor & Destructor Documentation

◆ Decision()

Decision ( )
inline

Definition at line 3230 of file constraint_solver.h.

◆ ~Decision()

~Decision ( )
inlineoverride

Definition at line 3231 of file constraint_solver.h.

Member Function Documentation

◆ Accept()

void Accept ( DecisionVisitor *const  visitor) const
virtual

Accepts the given visitor.

Definition at line 2536 of file constraint_solver.cc.

◆ Apply()

virtual void Apply ( Solver *const  s)
pure virtual

Apply will be called first when the decision is executed.

◆ DebugString()

std::string DebugString ( ) const
inlineoverridevirtual

Reimplemented from BaseObject.

Definition at line 3239 of file constraint_solver.h.

◆ Refute()

virtual void Refute ( Solver *const  s)
pure virtual

Refute will be called after a backtrack.


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