#include <BonCouenneInterface.hpp>
Inheritance diagram for Couenne::CouenneInterface:
Overloaded methods to build outer approximations | |
virtual void | extractLinearRelaxation (OsiSolverInterface &si, CouenneCutGenerator &couenneCg, bool getObj=1, bool solveNlp=1) |
Extract a linear relaxation of the MINLP. | |
virtual void | setAppDefaultOptions (Ipopt::SmartPtr< Ipopt::OptionsList > Options) |
To set some application specific defaults. | |
bool | haveNlpSolution () |
return value of have_nlp_solution_ | |
bool | have_nlp_solution_ |
true if we got an integer feasible solution from initial solve | |
Public Member Functions | |
CouenneInterface () | |
Default constructor. | |
CouenneInterface (const CouenneInterface &other) | |
Copy constructor. | |
virtual CouenneInterface * | clone (bool CopyData) |
virutal copy constructor. | |
virtual | ~CouenneInterface () |
Destructor. | |
virtual std::string | appName () |
Definition at line 33 of file BonCouenneInterface.hpp.
CouenneInterface::CouenneInterface | ( | ) |
CouenneInterface::CouenneInterface | ( | const CouenneInterface & | other | ) |
CouenneInterface::~CouenneInterface | ( | ) | [virtual] |
CouenneInterface * CouenneInterface::clone | ( | bool | CopyData | ) | [virtual] |
virutal copy constructor.
Reimplemented from Bonmin::AmplInterface.
Definition at line 36 of file BonCouenneInterface.cpp.
References CouenneInterface().
virtual std::string Couenne::CouenneInterface::appName | ( | ) | [inline, virtual] |
Definition at line 49 of file BonCouenneInterface.hpp.
void CouenneInterface::extractLinearRelaxation | ( | OsiSolverInterface & | si, | |
CouenneCutGenerator & | couenneCg, | |||
bool | getObj = 1 , |
|||
bool | solveNlp = 1 | |||
) | [virtual] |
Extract a linear relaxation of the MINLP.
Solve the continuous relaxation and takes first-order outer-approximation constraints at the optimum. The put everything in an OsiSolverInterface.
Definition at line 69 of file BonCouenneInterface.cpp.
References Couenne::AUX, Couenne::t_chg_bounds::CHANGED, Couenne::CouenneProblem::checkNLP2(), COUENNE_EPS, COUENNE_INFINITY, Couenne::CouenneCutGenerator::generateCuts(), Couenne::CouenneProblem::getCutOff(), Couenne::CouenneProblem::getFeasTol(), Couenne::CouenneRecordBestSol::getModSolVal(), Couenne::CouenneProblem::getRecordBestSol(), Couenne::isInteger(), ll, Couenne::CouenneRecordBestSol::modSol, Couenne::CouenneCutGenerator::Problem(), Couenne::t_chg_bounds::setUpper(), and Couenne::CouenneRecordBestSol::update().
void CouenneInterface::setAppDefaultOptions | ( | Ipopt::SmartPtr< Ipopt::OptionsList > | Options | ) | [virtual] |
To set some application specific defaults.
Reimplemented from Bonmin::AmplInterface.
Definition at line 433 of file BonCouenneInterface.cpp.
bool Couenne::CouenneInterface::haveNlpSolution | ( | ) | [inline] |
return value of have_nlp_solution_
Definition at line 73 of file BonCouenneInterface.hpp.
References have_nlp_solution_.
bool Couenne::CouenneInterface::have_nlp_solution_ [protected] |
true if we got an integer feasible solution from initial solve
Definition at line 79 of file BonCouenneInterface.hpp.
Referenced by haveNlpSolution().