Minotaur 0.4.1
Docs for developers
Public Member Functions | List of all members
Minotaur::SolutionPool Class Reference

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. More...
 
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. More...
 
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. More...
 
void writeStats (std::ostream &out) const
 Get the best objective function value. More...
 

Member Function Documentation

◆ getBestSolution()

SolutionPtr SolutionPool::getBestSolution ( )

Get a solution with the best objective function value. Return NULL if the pool is empty.

◆ getBestSolutionValue()

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.

◆ getNumSols()

UInt SolutionPool::getNumSols ( ) const

Save the root relaxation solution.

Get number of solutions in the pool

◆ setSizeLimit()

void Minotaur::SolutionPool::setSizeLimit ( UInt  limit)

Get wall clock time.

Put a limit on the number of solutions in the pool

◆ writeStats()

void SolutionPool::writeStats ( std::ostream &  out) const

Get the best objective function value.

Write statistics to the outstream.


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

Minotaur source code documented by Doxygen 1.9.4 on Thu Apr 24 2025