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]
Collaboration diagram for Bonmin::TNLPSolver::UnsolvedError:

Collaboration 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.

Definition at line 142 of file BonTNLPSolver.cpp.

References errorName(), errorNum_, and solverName().

Referenced by main(), and CouenneSolver::solve().

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.

Referenced by printError().

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.

Referenced by printError().

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

Return error number.

Definition at line 74 of file BonTNLPSolver.hpp.

References errorNum_.

Referenced by Bonmin::IpoptSolver::UnsolvedIpoptError::errorName().

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 148 of file BonTNLPSolver.cpp.

References model_, Bonmin::NamesReader::name(), name_, and Bonmin::NamesReader::readFile().

Referenced by main(), and CouenneSolver::solve().


Member Data Documentation

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

Error code (solver dependent).

Definition at line 83 of file BonTNLPSolver.hpp.

Referenced by errorNum(), and printError().

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

model_ on which error occured

Definition at line 86 of file BonTNLPSolver.hpp.

Referenced by writeDiffFiles().

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(), and writeDiffFiles().


The documentation for this class was generated from the following files:
Generated on Mon Aug 3 03:08:29 2009 by  doxygen 1.4.7