operations_research::SolutionCollector Class Reference
Solution Collectors.
More...
#include <constraint_solver.h>
List of all members.
Detailed Description
Solution Collectors.
This class is the root class of all solution collectors It implements a basic query API to be used independently from the collector used.
Definition at line 3858 of file constraint_solver.h.
Constructor & Destructor Documentation
operations_research::SolutionCollector::SolutionCollector |
( |
Solver *const |
s, |
|
|
const Assignment * |
assignment | |
|
) |
| | |
Solution Collectors.
Base Class
Definition at line 2044 of file search.cc.
operations_research::SolutionCollector::SolutionCollector |
( |
Solver *const |
s |
) |
[explicit] |
operations_research::SolutionCollector::~SolutionCollector |
( |
|
) |
[virtual] |
Member Function Documentation
void operations_research::SolutionCollector::Add |
( |
IntVar *const |
var |
) |
|
void operations_research::SolutionCollector::Add |
( |
const std::vector< IntVar * > & |
vars |
) |
|
void operations_research::SolutionCollector::Add |
( |
IntervalVar *const |
var |
) |
|
void operations_research::SolutionCollector::Add |
( |
const std::vector< IntervalVar * > & |
vars |
) |
|
void operations_research::SolutionCollector::AddObjective |
( |
IntVar *const |
objective |
) |
|
void operations_research::SolutionCollector::EnterSearch |
( |
|
) |
[virtual] |
int operations_research::SolutionCollector::solution_count |
( |
|
) |
const |
Returns how many solutions were stored during the search.
Definition at line 2144 of file search.cc.
Assignment * operations_research::SolutionCollector::solution |
( |
int |
n |
) |
const |
Returns the nth solution.
Definition at line 2139 of file search.cc.
int64 operations_research::SolutionCollector::wall_time |
( |
int |
n |
) |
const |
Returns the wall time in ms for the nth solution.
Definition at line 2148 of file search.cc.
int64 operations_research::SolutionCollector::branches |
( |
int |
n |
) |
const |
Returns the number of branches when the nth solution was found.
Definition at line 2153 of file search.cc.
int64 operations_research::SolutionCollector::failures |
( |
int |
n |
) |
const |
Returns the number of failures encountered at the time of the nth solution.
Definition at line 2158 of file search.cc.
int64 operations_research::SolutionCollector::objective_value |
( |
int |
n |
) |
const |
Returns the objective value of the nth solution.
Definition at line 2163 of file search.cc.
int64 operations_research::SolutionCollector::Value |
( |
int |
n, |
|
|
IntVar *const |
var | |
|
) |
| | const |
This is a short-cut to get the Value of 'var' in the nth solution.
Definition at line 2168 of file search.cc.
int64 operations_research::SolutionCollector::StartValue |
( |
int |
n, |
|
|
IntervalVar *const |
var | |
|
) |
| | const |
This is a short-cut to get the StartValue of 'var' in the nth solution.
Definition at line 2173 of file search.cc.
int64 operations_research::SolutionCollector::EndValue |
( |
int |
n, |
|
|
IntervalVar *const |
var | |
|
) |
| | const |
This is a short-cut to get the EndValue of 'var' in the nth solution.
Definition at line 2183 of file search.cc.
int64 operations_research::SolutionCollector::DurationValue |
( |
int |
n, |
|
|
IntervalVar *const |
var | |
|
) |
| | const |
This is a short-cut to get the DurationValue of 'var' in the nth solution.
Definition at line 2178 of file search.cc.
int64 operations_research::SolutionCollector::PerformedValue |
( |
int |
n, |
|
|
IntervalVar *const |
var | |
|
) |
| | const |
This is a short-cut to get the PerformedValue of 'var' in the nth solution.
Definition at line 2188 of file search.cc.
void operations_research::SolutionCollector::PushSolution |
( |
|
) |
[protected] |
Push the current state as a new solution.
Definition at line 2096 of file search.cc.
void operations_research::SolutionCollector::PopSolution |
( |
|
) |
[protected] |
Remove and delete the last popped solution.
Definition at line 2120 of file search.cc.
void operations_research::SolutionCollector::check_index |
( |
int |
n |
) |
const [protected] |
Member Data Documentation
The documentation for this class was generated from the following files: