Classes | Public Member Functions | Protected Attributes | List of all members
Couenne::CouenneInfo Class Reference

Bonmin class for passing info between components of branch-and-cuts. More...

#include <BonCouenneInfo.hpp>

Inheritance diagram for Couenne::CouenneInfo:
Inheritance graph
[legend]
Collaboration diagram for Couenne::CouenneInfo:
Collaboration graph
[legend]

Classes

class  NlpSolution
 Class for storing an Nlp Solution. More...
 

Public Member Functions

 CouenneInfo (int type)
 Default constructor. More...
 
 CouenneInfo (const OsiBabSolver &other)
 Constructor from OsiBabSolver. More...
 
 CouenneInfo (const CouenneInfo &other)
 Copy constructor. More...
 
virtual ~CouenneInfo ()
 Destructor. More...
 
virtual OsiAuxInfo * clone () const
 Virtual copy constructor. More...
 
const std::list
< Ipopt::SmartPtr< const
NlpSolution > > & 
NlpSolutions () const
 List of all stored NLP solutions. More...
 
void addSolution (Ipopt::SmartPtr< const NlpSolution > newSol)
 Add a new NLP solution. More...
 
- Public Member Functions inherited from Bonmin::BabInfo
 BabInfo (int type)
 Default constructor. More...
 
 BabInfo (const OsiBabSolver &other)
 Constructor from OsiBabSolver. More...
 
 BabInfo (const BabInfo &other)
 Copy constructor. More...
 
virtual ~BabInfo ()
 Destructor. More...
 
void setBabPtr (Bab *babPtr)
 Set pointer to the branch-and-bound algorithm (to access CbcModel). More...
 
BabbabPtr ()
 Pointer to the branch-and-bound algorithm (to access CbcModel). More...
 
bool hasSolution () const
 
- Public Member Functions inherited from Bonmin::AuxInfo
 AuxInfo (int type)
 Default constructor. More...
 
 AuxInfo (const OsiBabSolver &other)
 Constructor from OsiBabSolver. More...
 
 AuxInfo (const AuxInfo &other)
 Copy constructor. More...
 
virtual ~AuxInfo ()
 Destructor. More...
 
void setFeasibleNode ()
 Declare the node to be feasible. More...
 
void setInfeasibleNode ()
 Declare the node to be infeasible. More...
 
bool infeasibleNode ()
 Say if current node is found feasible by cut generators. More...
 
const double * nlpSolution ()
 Get solution found by nlp solver (or NULL if none found). More...
 
double nlpObjValue ()
 Get objective value of nlp solution found, or +infinity if none exists. More...
 
void setNlpSolution (const double *sol, int numcols, double objValue)
 Pass a solution found by an nlp solver. More...
 
void setHasNlpSolution (bool b)
 Say if has an nlp solution. More...
 
const std::vector< double > & bestSolution2 () const
 get the best solution computed with alternative objective function. More...
 
double bestObj2 () const
 return objective value of the best solution computed with alternative objective function. More...
 
void setBestObj2 (double o)
 Set an alternate objective value. More...
 
void setBestSolution2 (int n, double *d)
 

Protected Attributes

std::list< Ipopt::SmartPtr
< const NlpSolution > > 
nlpSols_
 
- Protected Attributes inherited from Bonmin::BabInfo
BabbabPtr_
 Pointer to branch-and-bound algorithm. More...
 
- Protected Attributes inherited from Bonmin::AuxInfo
bool infeasibleNode_
 Say if current node was found infeasible during cut generation. More...
 
double objValue_
 value of the objective function of this nlp solution More...
 
double * nlpSolution_
 nlp solution found by heuristic if any. More...
 
int numcols_
 numcols_ gives the size of nlpSolution_. More...
 
bool hasNlpSolution_
 say if has a solution. More...
 
Coin::SmartPtr
< SimpleReferenced
< std::vector< double > > > 
bestSolution2_
 Stores the solution with alternate objective. More...
 
Coin::SmartPtr
< SimpleReferenced< double > > 
bestObj2_
 Alternate solution objective value. More...
 

Detailed Description

Bonmin class for passing info between components of branch-and-cuts.

Definition at line 22 of file BonCouenneInfo.hpp.

Constructor & Destructor Documentation

CouenneInfo::CouenneInfo ( int  type)

Default constructor.

Definition at line 17 of file BonCouenneInfo.cpp.

CouenneInfo::CouenneInfo ( const OsiBabSolver &  other)

Constructor from OsiBabSolver.

Definition at line 22 of file BonCouenneInfo.cpp.

CouenneInfo::CouenneInfo ( const CouenneInfo other)

Copy constructor.

Definition at line 27 of file BonCouenneInfo.cpp.

CouenneInfo::~CouenneInfo ( )
virtual

Destructor.

Definition at line 32 of file BonCouenneInfo.cpp.

Member Function Documentation

OsiAuxInfo * CouenneInfo::clone ( ) const
virtual

Virtual copy constructor.

Reimplemented from Bonmin::BabInfo.

Definition at line 37 of file BonCouenneInfo.cpp.

const std::list<Ipopt::SmartPtr<const NlpSolution> >& Couenne::CouenneInfo::NlpSolutions ( ) const
inline

List of all stored NLP solutions.

Definition at line 81 of file BonCouenneInfo.hpp.

void Couenne::CouenneInfo::addSolution ( Ipopt::SmartPtr< const NlpSolution newSol)
inline

Add a new NLP solution.

Definition at line 86 of file BonCouenneInfo.hpp.

Member Data Documentation

std::list<Ipopt::SmartPtr<const NlpSolution> > Couenne::CouenneInfo::nlpSols_
protected

Definition at line 92 of file BonCouenneInfo.hpp.


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