Couenne 0.5.8
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:
+ Collaboration diagram for Couenne::CouenneInfo:

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 OsiAuxInfoclone () 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)
 
 BabInfo (const OsiBabSolver &other)
 
 BabInfo (const BabInfo &other)
 
virtual ~BabInfo ()
 
virtual OsiAuxInfoclone () const
 
void setBabPtr (Bab *babPtr)
 
BabbabPtr ()
 
bool hasSolution () const
 
- Public Member Functions inherited from Bonmin::AuxInfo
 AuxInfo (int type)
 
 AuxInfo (const OsiBabSolver &other)
 
 AuxInfo (const AuxInfo &other)
 
virtual ~AuxInfo ()
 
virtual OsiAuxInfoclone () const
 
void setFeasibleNode ()
 
void setInfeasibleNode ()
 
bool infeasibleNode ()
 
const double * nlpSolution ()
 
double nlpObjValue ()
 
void setNlpSolution (const double *sol, int numcols, double objValue)
 
void setHasNlpSolution (bool b)
 
const std::vector< double > & bestSolution2 () const
 
double bestObj2 () const
 
void setBestObj2 (double o)
 
void setBestSolution2 (int n, double *d)
 
- Public Member Functions inherited from OsiBabSolver
 OsiBabSolver (int solverType=0)
 
 OsiBabSolver (const OsiBabSolver &rhs)
 
virtual ~OsiBabSolver ()
 
virtual OsiAuxInfoclone () const
 
OsiBabSolveroperator= (const OsiBabSolver &rhs)
 
void setSolver (const OsiSolverInterface *solver)
 
void setSolver (const OsiSolverInterface &solver)
 
int solution (double &objectiveValue, double *newSolution, int numberColumns)
 
void setSolution (const double *solution, int numberColumns, double objectiveValue)
 
bool hasSolution (double &solutionValue, double *solution)
 
void setSolverType (int value)
 
int solverType () const
 
bool solutionAddsCuts () const
 
bool alwaysTryCutsAtRootNode () const
 
bool solverAccurate () const
 
bool reducedCostsAccurate () const
 
double mipBound () const
 
bool mipFeasible () const
 
void setMipBound (double value)
 
double bestObjectiveValue () const
 
bool tryCuts () const
 
bool warmStart () const
 
int extraCharacteristics () const
 
void setExtraCharacteristics (int value)
 
const double * beforeLower () const
 
void setBeforeLower (const double *array)
 
const double * beforeUpper () const
 
void setBeforeUpper (const double *array)
 
void setExtraPointer (void *extraInfo)
 
void * getExtraPointer () const
 
- Public Member Functions inherited from OsiAuxInfo
 OsiAuxInfo (void *appData=NULL)
 
 OsiAuxInfo (const OsiAuxInfo &rhs)
 
virtual ~OsiAuxInfo ()
 
virtual OsiAuxInfoclone () const
 
OsiAuxInfooperator= (const OsiAuxInfo &rhs)
 
void * getApplicationData () const
 

Protected Attributes

std::list< Ipopt::SmartPtr< const NlpSolution > > nlpSols_
 
- Protected Attributes inherited from Bonmin::BabInfo
BabbabPtr_
 
- Protected Attributes inherited from Bonmin::AuxInfo
bool infeasibleNode_
 
double objValue_
 
double * nlpSolution_
 
int numcols_
 
bool hasNlpSolution_
 
Coin::SmartPtr< SimpleReferenced< std::vector< double > > > bestSolution2_
 
Coin::SmartPtr< SimpleReferenced< double > > bestObj2_
 
- Protected Attributes inherited from OsiBabSolver
double bestObjectiveValue_
 
double mipBound_
 
const OsiSolverInterfacesolver_
 
double * bestSolution_
 
const double * beforeLower_
 
const double * beforeUpper_
 
void * extraInfo_
 
int solverType_
 
int sizeSolution_
 
int extraCharacteristics_
 
- Protected Attributes inherited from OsiAuxInfo
void * appData_
 

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() [1/3]

Couenne::CouenneInfo::CouenneInfo ( int  type)

Default constructor.

◆ CouenneInfo() [2/3]

Couenne::CouenneInfo::CouenneInfo ( const OsiBabSolver other)

Constructor from OsiBabSolver.

◆ CouenneInfo() [3/3]

Couenne::CouenneInfo::CouenneInfo ( const CouenneInfo other)

Copy constructor.

◆ ~CouenneInfo()

virtual Couenne::CouenneInfo::~CouenneInfo ( )
virtual

Destructor.

Member Function Documentation

◆ clone()

virtual OsiAuxInfo * Couenne::CouenneInfo::clone ( ) const
virtual

Virtual copy constructor.

Reimplemented from Bonmin::BabInfo.

◆ NlpSolutions()

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.

◆ addSolution()

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

◆ nlpSols_

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 file: