Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ constraint_solver/ |
#include <constraint_solver.h>
Public Member Functions | |
DecisionBuilder () | |
virtual | ~DecisionBuilder () |
virtual Decision * | Next (Solver *const s)=0 |
This is the main method of the decision builder class. | |
virtual string | DebugString () const |
Decision Builder. | |
virtual void | AppendMonitors (Solver *const solver, std::vector< SearchMonitor * > *const extras) |
This method will be called at the start of the search. | |
virtual void | Accept (ModelVisitor *const visitor) const |
The important method is Next() that returns the next decision to execute.
Definition at line 3120 of file constraint_solver.h.
operations_research::DecisionBuilder::DecisionBuilder | ( | ) | [inline] |
Definition at line 3122 of file constraint_solver.h.
virtual operations_research::DecisionBuilder::~DecisionBuilder | ( | ) | [inline, virtual] |
Definition at line 3123 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 NULL, this means that the decision builder has finished its work.
Implemented in operations_research::FindOneNeighbor, operations_research::FastOnePathBuilder, and operations_research::AllUnperformed.
string operations_research::DecisionBuilder::DebugString | ( | ) | const [virtual] |
Decision Builder.
Reimplemented from operations_research::BaseObject.
Reimplemented in operations_research::FindOneNeighbor.
Definition at line 2558 of file constraint_solver.cc.
void operations_research::DecisionBuilder::AppendMonitors | ( | Solver *const | solver, | |
std::vector< SearchMonitor * > *const | extras | |||
) | [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.
Definition at line 2562 of file constraint_solver.cc.
void operations_research::DecisionBuilder::Accept | ( | ModelVisitor *const | visitor | ) | const [virtual] |
Definition at line 2565 of file constraint_solver.cc.