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:

Inheritance graph
[legend]
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 50 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 54 of file BonTNLPSolver.hpp.

References name_.

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

destructor.

Definition at line 77 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]

Get the string corresponding to error.

Implemented in Bonmin::BqpdSolver::UnsolvedBqpdError, Bonmin::FilterSolver::UnsolvedFilterError, and Bonmin::IpoptSolver::UnsolvedIpoptError.

virtual const std::string& Bonmin::TNLPSolver::UnsolvedError::solverName (  )  const [pure virtual]

Return the name of the solver.

Implemented in Bonmin::BqpdSolver::UnsolvedBqpdError, Bonmin::FilterSolver::UnsolvedFilterError, and Bonmin::IpoptSolver::UnsolvedIpoptError.

int Bonmin::TNLPSolver::UnsolvedError::errorNum (  )  const [inline]

Return error number.

Definition at line 74 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

int Bonmin::TNLPSolver::UnsolvedError::errorNum_ [private]

Error code (solver dependent).

Definition at line 83 of file BonTNLPSolver.hpp.

Referenced by errorNum().

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

model_ on which error occured

Definition at line 86 of file BonTNLPSolver.hpp.

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

name of the model on which error occured.

Definition at line 89 of file BonTNLPSolver.hpp.

Referenced by UnsolvedError().


The documentation for this class was generated from the following file:
Generated on Thu Jun 26 03:21:27 2008 for Bonmin by  doxygen 1.4.7