The CouenneSolver class solves problems using Ipopt. More...
#include <OSCouenneSolver.h>
Public Member Functions | |
CouenneSolver () | |
the CouenneSolver class constructor | |
~CouenneSolver () | |
the IpoptSolver class destructor | |
virtual void | solve () throw (ErrorClass) |
solve results in an instance being read into the Couenne data structrues and optimized | |
virtual void | buildSolverInstance () throw (ErrorClass) |
buildSolverInstance is a virtual function -- the actual solvers will implement their own buildSolverInstance method -- the solver instance is the instance the individual solver sees in its API | |
virtual void | setSolverOptions () throw (ErrorClass) |
The implementation of the virtual functions. | |
void | dataEchoCheck () |
use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file | |
void | writeResult () |
use this to write the solution information to an OSResult object | |
Public Attributes | |
OSiLReader * | m_osilreader |
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed | |
OSoLReader * | m_osolreader |
m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed | |
Couenne::CouenneProblem * | couenne |
Ipopt::SmartPtr< BonminProblem > | tminlp |
Ipopt::SmartPtr < Bonmin::TNLPSolver > | app_ |
Couenne::CouenneBab | bb |
Bonmin::TMINLP::SolverReturn | status |
Couenne::expression * | con_body |
Couenne::expression * | obj_body |
Private Member Functions | |
Couenne::expression * | createCouenneExpression (OSnLNode *node) |
Private Attributes | |
OSrLWriter * | osrlwriter |
Couenne::CouenneSetup | couenneSetup |
std::string | couenneErrorMsg |
The CouenneSolver class solves problems using Ipopt.
Definition at line 62 of file OSCouenneSolver.h.
CouenneSolver::CouenneSolver | ( | ) |
the CouenneSolver class constructor
Definition at line 97 of file OSCouenneSolver.cpp.
CouenneSolver::~CouenneSolver | ( | ) |
the IpoptSolver class destructor
delete couenne;
Definition at line 110 of file OSCouenneSolver.cpp.
void CouenneSolver::solve | ( | ) | throw (ErrorClass) [virtual] |
solve results in an instance being read into the Couenne data structrues and optimized
Implements DefaultSolver.
Definition at line 571 of file OSCouenneSolver.cpp.
void CouenneSolver::buildSolverInstance | ( | ) | throw (ErrorClass) [virtual] |
buildSolverInstance is a virtual function -- the actual solvers will implement their own buildSolverInstance method -- the solver instance is the instance the individual solver sees in its API
Implements DefaultSolver.
Definition at line 152 of file OSCouenneSolver.cpp.
void CouenneSolver::setSolverOptions | ( | ) | throw (ErrorClass) [virtual] |
The implementation of the virtual functions.
Implements DefaultSolver.
Definition at line 468 of file OSCouenneSolver.cpp.
void CouenneSolver::dataEchoCheck | ( | ) |
use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file
void CouenneSolver::writeResult | ( | ) |
use this to write the solution information to an OSResult object
Definition at line 777 of file OSCouenneSolver.cpp.
expression * CouenneSolver::createCouenneExpression | ( | OSnLNode * | node | ) | [private] |
Definition at line 335 of file OSCouenneSolver.cpp.
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed
Definition at line 105 of file OSCouenneSolver.h.
m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed
Definition at line 111 of file OSCouenneSolver.h.
Definition at line 113 of file OSCouenneSolver.h.
Ipopt::SmartPtr<BonminProblem> CouenneSolver::tminlp |
Definition at line 115 of file OSCouenneSolver.h.
Ipopt::SmartPtr<Bonmin::TNLPSolver> CouenneSolver::app_ |
Definition at line 117 of file OSCouenneSolver.h.
Definition at line 122 of file OSCouenneSolver.h.
Bonmin::TMINLP::SolverReturn CouenneSolver::status |
Definition at line 124 of file OSCouenneSolver.h.
Definition at line 126 of file OSCouenneSolver.h.
Definition at line 127 of file OSCouenneSolver.h.
OSrLWriter* CouenneSolver::osrlwriter [private] |
Definition at line 130 of file OSCouenneSolver.h.
Definition at line 132 of file OSCouenneSolver.h.
std::string CouenneSolver::couenneErrorMsg [private] |
Definition at line 133 of file OSCouenneSolver.h.