|
Minotaur 0.4.1
Docs for developers
|
Public Member Functions | |
| SolutionPool () | |
| Default constructor. | |
| ~SolutionPool () | |
| Destroy. | |
| SolutionPool (EnvPtr env, ProblemPtr problem, UInt limit=100) | |
| Construct a solution pool of a given size for a given problem. | |
| void | addSolution (ConstSolutionPtr) |
| Add Solution to the pool. | |
| UInt | getNumSols () const |
| Save the root relaxation solution. | |
| UInt | getNumSolsFound () const |
| Get number of solutions in the pool. | |
| UInt | getSizeLimit () const |
| Get the limit on the number of solutions in the pool. | |
| void | setSizeLimit (UInt limit) |
| Get wall clock time. | |
| SolutionIterator | solsBegin () |
| Get iterator for the first solution ... | |
| SolutionIterator | solsEnd () |
| ... and the end. | |
| void | addSolution (const double *x, double obj_value) |
| Create a solution from a double array and add Solution to the pool. | |
| SolutionPtr | getBestSolution () |
| double | getBestSolutionValue () const |
| Get the best objective function value. | |
| void | writeStats (std::ostream &out) const |
| Get the best objective function value. | |
| SolutionPtr SolutionPool::getBestSolution | ( | ) |
Get a solution with the best objective function value. Return NULL if the pool is empty.
| double SolutionPool::getBestSolutionValue | ( | ) | const |
Get the best objective function value.
Get a solution with the best objective function value. Return NULL if the pool is empty.
| UInt SolutionPool::getNumSols | ( | ) | const |
Save the root relaxation solution.
Get number of solutions in the pool
| void Minotaur::SolutionPool::setSizeLimit | ( | UInt | limit | ) |
Get wall clock time.
Put a limit on the number of solutions in the pool
| void SolutionPool::writeStats | ( | std::ostream & | out | ) | const |
Get the best objective function value.
Write statistics to the outstream.