Public Member Functions | Static Private Attributes | List of all members
Bonmin::IpoptSolver::UnsolvedIpoptError Class Reference

#include <BonIpoptSolver.hpp>

Inheritance diagram for Bonmin::IpoptSolver::UnsolvedIpoptError:
Inheritance graph
[legend]
Collaboration diagram for Bonmin::IpoptSolver::UnsolvedIpoptError:
Collaboration graph
[legend]

Public Member Functions

 UnsolvedIpoptError (int errorNum, Ipopt::SmartPtr< TMINLP2TNLP > problem, std::string name)
 
virtual const std::string & errorName () const
 Get the string corresponding to error. More...
 
virtual const std::string & solverName () const
 Return the name of the solver. More...
 
virtual ~UnsolvedIpoptError ()
 
- Public Member Functions inherited from Bonmin::TNLPSolver::UnsolvedError
 UnsolvedError (int errorNum=-10000, Ipopt::SmartPtr< TMINLP2TNLP > model=NULL, std::string name="")
 Constructor. More...
 
void printError (std::ostream &os)
 Print error message. More...
 
int errorNum () const
 Return error number. More...
 
virtual ~UnsolvedError ()
 destructor. More...
 
void writeDiffFiles (const std::string prefix=std::string()) const
 write files with differences between input model and this one More...
 

Static Private Attributes

static std::string errorNames [17]
 
static std::string solverName_ = "Ipopt"
 

Detailed Description

Definition at line 21 of file BonIpoptSolver.hpp.

Constructor & Destructor Documentation

Bonmin::IpoptSolver::UnsolvedIpoptError::UnsolvedIpoptError ( int  errorNum,
Ipopt::SmartPtr< TMINLP2TNLP problem,
std::string  name 
)
inline

Definition at line 24 of file BonIpoptSolver.hpp.

virtual Bonmin::IpoptSolver::UnsolvedIpoptError::~UnsolvedIpoptError ( )
inlinevirtual

Definition at line 32 of file BonIpoptSolver.hpp.

Member Function Documentation

const std::string & Bonmin::IpoptSolver::UnsolvedIpoptError::errorName ( ) const
virtual

Get the string corresponding to error.

Implements Bonmin::TNLPSolver::UnsolvedError.

Definition at line 463 of file BonIpoptSolver.cpp.

const std::string & Bonmin::IpoptSolver::UnsolvedIpoptError::solverName ( ) const
virtual

Return the name of the solver.

Implements Bonmin::TNLPSolver::UnsolvedError.

Definition at line 484 of file BonIpoptSolver.cpp.

Member Data Documentation

std::string Bonmin::IpoptSolver::UnsolvedIpoptError::errorNames
staticprivate
Initial value:
={"Solve succeeded",
"Solved to acceptable level",
"Infeasible problem detected",
"Search direction becomes too small",
"Diverging iterates",
"User requested stop",
"Maximum iterations exceeded",
"Restoration failed",
"Error in step computation",
"Not enough degrees of freedom",
"Invalid problem definition",
"Invalid option",
"Invalid number detected",
"Unrecoverable exception",
"NonIpopt exception thrown",
"Insufficient memory",
"Internal error"}

Definition at line 35 of file BonIpoptSolver.hpp.

std::string Bonmin::IpoptSolver::UnsolvedIpoptError::solverName_ = "Ipopt"
staticprivate

Definition at line 36 of file BonIpoptSolver.hpp.


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