Public Member Functions | Private Attributes | List of all members
Bonmin::TNLPSolver::UnsolvedError Class Referenceabstract

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

#include <BonTNLPSolver.hpp>

Inheritance diagram for Bonmin::TNLPSolver::UnsolvedError:
Inheritance graph
[legend]
Collaboration diagram for Bonmin::TNLPSolver::UnsolvedError:
Collaboration graph
[legend]

Public Member Functions

 UnsolvedError (int errorNum=-10000, Ipopt::SmartPtr< TMINLP2TNLP > model=NULL, std::string name="")
 Constructor. More...
 
void printError (std::ostream &os)
 Print error message. More...
 
virtual const std::string & errorName () const =0
 Get the string corresponding to error. More...
 
virtual const std::string & solverName () const =0
 Return the name of the solver. 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...
 

Private Attributes

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

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.

virtual Bonmin::TNLPSolver::UnsolvedError::~UnsolvedError ( )
inlinevirtual

destructor.

Definition at line 79 of file BonTNLPSolver.hpp.

Member Function Documentation

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

Print error message.

Definition at line 164 of file BonTNLPSolver.cpp.

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.

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

write files with differences between input model and this one

Reader variables names.

Definition at line 170 of file BonTNLPSolver.cpp.

Member Data Documentation

int Bonmin::TNLPSolver::UnsolvedError::errorNum_
private

Error code (solver dependent).

Definition at line 85 of file BonTNLPSolver.hpp.

Ipopt::SmartPtr< TMINLP2TNLP > Bonmin::TNLPSolver::UnsolvedError::model_
private

model_ on which error occured

Definition at line 88 of file BonTNLPSolver.hpp.

std::string Bonmin::TNLPSolver::UnsolvedError::name_
private

name of the model on which error occured.

Definition at line 91 of file BonTNLPSolver.hpp.


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