15#ifndef MINOTAURSOLUTIONPOOL_H
16#define MINOTAURSOLUTIONPOOL_H
68 SolutionIterator
solsBegin() {
return sols_.begin(); }
71 SolutionIterator
solsEnd() {
return sols_.end(); }
74 void addSolution(
const double *x,
double obj_value);
99 std::vector<SolutionPtr> sols_;
114 const static std::string me_;
139 typedef SolutionPool* SolutionPoolPtr;
Declare the base class Modification.
Implement base class Solution.
Declare important 'types' used in Minotaur.
Definition: Environment.h:28
Definition: SolutionPool.h:28
~SolutionPool()
Destroy.
Definition: SolutionPool.cpp:37
SolutionPool()
Default constructor.
double getBestSolutionValue() const
Get the best objective function value.
Definition: SolutionPool.cpp:82
SolutionIterator solsEnd()
... and the end.
Definition: SolutionPool.h:71
void setSizeLimit(UInt limit)
Get wall clock time.
UInt getNumSolsFound() const
Get number of solutions in the pool.
Definition: SolutionPool.cpp:98
UInt getSizeLimit() const
Get the limit on the number of solutions in the pool.
SolutionPtr getBestSolution()
Definition: SolutionPool.cpp:76
SolutionIterator solsBegin()
Get iterator for the first solution ...
Definition: SolutionPool.h:68
void writeStats(std::ostream &out) const
Get the best objective function value.
Definition: SolutionPool.cpp:104
UInt getNumSols() const
Save the root relaxation solution.
Definition: SolutionPool.cpp:92
void addSolution(ConstSolutionPtr)
Add Solution to the pool.
Definition: SolutionPool.cpp:46
Definition: Solution.h:30
Definition: ActiveNodeStore.h:20
unsigned int UInt
Unsigned integer.
Definition: Types.h:30