Couenne 0.5.8
Loading...
Searching...
No Matches
Couenne::CouenneFPpool Class Reference

Pool of solutions. More...

#include <CouenneFPpool.hpp>

+ Collaboration diagram for Couenne::CouenneFPpool:

Public Member Functions

 CouenneFPpool (CouenneProblem *p, enum what_to_compare c)
 simple constructor (empty pool)
 
 CouenneFPpool (const CouenneFPpool &src)
 copy constructor
 
CouenneFPpooloperator= (const CouenneFPpool &src)
 assignment
 
std::set< CouenneFPsolution, compareSol > & Set ()
 return the main object in this class
 
CouenneProblemProblem ()
 return the problem pointer
 
void findClosestAndReplace (double *&sol, const double *nSol, int nvars)
 finds, in pool, solution x closest to sol; removes it from the pool and overwrites it to sol
 

Protected Attributes

std::set< CouenneFPsolution, compareSolset_
 Pool.
 
CouenneProblemproblem_
 Problem pointer.
 

Detailed Description

Pool of solutions.

Definition at line 91 of file CouenneFPpool.hpp.

Constructor & Destructor Documentation

◆ CouenneFPpool() [1/2]

Couenne::CouenneFPpool::CouenneFPpool ( CouenneProblem * p,
enum what_to_compare c )
inline

simple constructor (empty pool)

Definition at line 104 of file CouenneFPpool.hpp.

◆ CouenneFPpool() [2/2]

Couenne::CouenneFPpool::CouenneFPpool ( const CouenneFPpool & src)

copy constructor

Member Function Documentation

◆ operator=()

CouenneFPpool & Couenne::CouenneFPpool::operator= ( const CouenneFPpool & src)

assignment

◆ Set()

std::set< CouenneFPsolution, compareSol > & Couenne::CouenneFPpool::Set ( )
inline

return the main object in this class

Definition at line 114 of file CouenneFPpool.hpp.

◆ Problem()

CouenneProblem * Couenne::CouenneFPpool::Problem ( )
inline

return the problem pointer

Definition at line 118 of file CouenneFPpool.hpp.

◆ findClosestAndReplace()

void Couenne::CouenneFPpool::findClosestAndReplace ( double *& sol,
const double * nSol,
int nvars )

finds, in pool, solution x closest to sol; removes it from the pool and overwrites it to sol

Member Data Documentation

◆ set_

std::set<CouenneFPsolution, compareSol> Couenne::CouenneFPpool::set_
protected

Pool.

Definition at line 96 of file CouenneFPpool.hpp.

◆ problem_

CouenneProblem* Couenne::CouenneFPpool::problem_
protected

Problem pointer.

Definition at line 99 of file CouenneFPpool.hpp.


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