#include <OSIpoptSolver.h>
Inheritance diagram for IpoptSolver:
Public Member Functions | |
IpoptSolver () | |
the IpoptSolver class constructor | |
~IpoptSolver () | |
the IpoptSolver class destructor | |
virtual void | solve () throw (ErrorClass) |
solve results in an instance being read into the Ipopt data structrues and optimized | |
virtual void | buildSolverInstance () throw (ErrorClass) |
The implementation of the virtual functions. | |
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 | |
Public Attributes | |
SmartPtr< TNLP > | nlp |
SmartPtr< IpoptApplication > | app |
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 | |
Private Attributes | |
OSrLWriter * | osrlwriter |
std::string * | ipoptErrorMsg |
Definition at line 196 of file OSIpoptSolver.h.
IpoptSolver::IpoptSolver | ( | ) |
the IpoptSolver class constructor
Definition at line 35 of file OSIpoptSolver.cpp.
References ipoptErrorMsg, m_osilreader, m_osolreader, DefaultSolver::osresult, and osrlwriter.
IpoptSolver::~IpoptSolver | ( | ) |
the IpoptSolver class destructor
Definition at line 43 of file OSIpoptSolver.cpp.
References ipoptErrorMsg, m_osilreader, m_osolreader, DefaultSolver::osresult, and osrlwriter.
void IpoptSolver::solve | ( | ) | throw (ErrorClass) [virtual] |
solve results in an instance being read into the Ipopt data structrues and optimized
Implements DefaultSolver.
Definition at line 817 of file OSIpoptSolver.cpp.
Referenced by OSMatlab::solve().
void IpoptSolver::buildSolverInstance | ( | ) | throw (ErrorClass) [virtual] |
The implementation of the virtual functions.
Implements DefaultSolver.
Definition at line 790 of file OSIpoptSolver.cpp.
References app, DefaultSolver::bCallbuildSolverInstance, ipoptErrorMsg, m_osilreader, nlp, DefaultSolver::osil, DefaultSolver::osinstance, DefaultSolver::osoption, DefaultSolver::osresult, and OSiLReader::readOSiL().
void IpoptSolver::setSolverOptions | ( | ) | throw (ErrorClass) [virtual] |
The implementation of the virtual functions.
Implements DefaultSolver.
Definition at line 722 of file OSIpoptSolver.cpp.
References app, DefaultSolver::bSetSolverOptions, OSInstance::getNumberOfQuadraticTerms(), OSOption::getNumberOfSolverOptions(), OSInstance::getObjectiveNumber(), OSOption::getSolverOptions(), OSInstance::instanceData, m_osolreader, Objective::maxOrMin, Objectives::obj, InstanceData::objectives, os_strtod(), DefaultSolver::osinstance, DefaultSolver::osol, DefaultSolver::osoption, and OSoLReader::readOSoL().
void IpoptSolver::dataEchoCheck | ( | ) |
use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file
Definition at line 862 of file OSIpoptSolver.cpp.
References OSInstance::getVariableLowerBounds(), OSInstance::getVariableNames(), OSInstance::getVariableNumber(), OSInstance::getVariableTypes(), OSInstance::getVariableUpperBounds(), and DefaultSolver::osinstance.
SmartPtr<TNLP> IpoptSolver::nlp |
SmartPtr<IpoptApplication> IpoptSolver::app |
Definition at line 209 of file OSIpoptSolver.h.
Referenced by buildSolverInstance(), and setSolverOptions().
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed
Definition at line 239 of file OSIpoptSolver.h.
Referenced by buildSolverInstance(), IpoptSolver(), and ~IpoptSolver().
m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed
Definition at line 245 of file OSIpoptSolver.h.
Referenced by IpoptSolver(), setSolverOptions(), and ~IpoptSolver().
OSrLWriter* IpoptSolver::osrlwriter [private] |
std::string* IpoptSolver::ipoptErrorMsg [private] |
Definition at line 267 of file OSIpoptSolver.h.
Referenced by buildSolverInstance(), IpoptSolver(), and ~IpoptSolver().