operations_research::OptimizeVar Class Reference
This class encapsulate an objective.
More...
#include <constraint_solver.h>
List of all members.
Detailed Description
This class encapsulate an objective.
- Todo:
- TODO(user): Refactor this into an Objective class:
- print methods for AtNode and AtSolution.
- support for weighted objective and lexicographical objective.
Objective Management It requires the direction (minimize or maximize), the variable to optimize and the improvement step.
Definition at line 3936 of file constraint_solver.h.
Constructor & Destructor Documentation
operations_research::OptimizeVar::OptimizeVar |
( |
Solver *const |
s, |
|
|
bool |
maximize, |
|
|
IntVar *const |
a, |
|
|
int64 |
step | |
|
) |
| | |
operations_research::OptimizeVar::~OptimizeVar |
( |
|
) |
[virtual] |
Member Function Documentation
int64 operations_research::OptimizeVar::best |
( |
|
) |
const [inline] |
IntVar* operations_research::OptimizeVar::Var |
( |
|
) |
const [inline] |
void operations_research::OptimizeVar::EnterSearch |
( |
|
) |
[virtual] |
void operations_research::OptimizeVar::RestartSearch |
( |
|
) |
[virtual] |
void operations_research::OptimizeVar::RefuteDecision |
( |
Decision * |
d |
) |
[virtual] |
bool operations_research::OptimizeVar::AtSolution |
( |
|
) |
[virtual] |
This method is called when a valid solution is found.
If the return value is true, then search will resume after. If the result is false, then search will stop there.
Reimplemented from operations_research::SearchMonitor.
Definition at line 2466 of file search.cc.
bool operations_research::OptimizeVar::AcceptSolution |
( |
|
) |
[virtual] |
This method is called when a solution is found.
It asserts of the solution is valid. A value of false indicate that the solution should be discarded.
Reimplemented from operations_research::SearchMonitor.
Definition at line 2454 of file search.cc.
string operations_research::OptimizeVar::Print |
( |
|
) |
const [virtual] |
string operations_research::OptimizeVar::DebugString |
( |
|
) |
const [virtual] |
void operations_research::OptimizeVar::Accept |
( |
ModelVisitor *const |
visitor |
) |
const [virtual] |
void operations_research::OptimizeVar::ApplyBound |
( |
|
) |
|
The documentation for this class was generated from the following files: