Bonmin  1.7
Public Member Functions | Private Attributes
Bonmin::TNLPSolver::UnsolvedError Class Reference

We will throw this error when a problem is not solved. More...

#include <BonTNLPSolver.hpp>

Inheritance diagram for Bonmin::TNLPSolver::UnsolvedError:
Bonmin::BqpdSolver::UnsolvedBqpdError Bonmin::FilterSolver::UnsolvedFilterError Bonmin::IpoptSolver::UnsolvedIpoptError

List of all members.

Public Member Functions

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

Private Attributes

int errorNum_
 Error code (solver dependent).
Ipopt::SmartPtr< TMINLP2TNLPmodel_
 model_ on which error occured
std::string name_
 name of the model on which error occured.

Detailed Description

We will throw this error when a problem is not solved.

Eventually store the error code from solver

Definition at line 52 of file BonTNLPSolver.hpp.


Constructor & Destructor Documentation

Bonmin::TNLPSolver::UnsolvedError::UnsolvedError ( int  errorNum = -10000,
Ipopt::SmartPtr< TMINLP2TNLP model = NULL,
std::string  name = "" 
) [inline]

Constructor.

Definition at line 56 of file BonTNLPSolver.hpp.

References name_.

virtual Bonmin::TNLPSolver::UnsolvedError::~UnsolvedError ( ) [inline, virtual]

destructor.

Definition at line 79 of file BonTNLPSolver.hpp.


Member Function Documentation

void Bonmin::TNLPSolver::UnsolvedError::printError ( std::ostream &  os)

Print error message.

virtual const std::string& Bonmin::TNLPSolver::UnsolvedError::errorName ( ) const [pure virtual]
virtual const std::string& Bonmin::TNLPSolver::UnsolvedError::solverName ( ) const [pure virtual]
int Bonmin::TNLPSolver::UnsolvedError::errorNum ( ) const [inline]

Return error number.

Definition at line 76 of file BonTNLPSolver.hpp.

References errorNum_.

void Bonmin::TNLPSolver::UnsolvedError::writeDiffFiles ( const std::string  prefix = std::string()) const

write files with differences between input model and this one


Member Data Documentation

Error code (solver dependent).

Definition at line 85 of file BonTNLPSolver.hpp.

Referenced by errorNum().

model_ on which error occured

Definition at line 88 of file BonTNLPSolver.hpp.

name of the model on which error occured.

Definition at line 91 of file BonTNLPSolver.hpp.

Referenced by UnsolvedError().


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