Bonmin
1.7
|
We will throw this error when a problem is not solved. More...
#include <BonTNLPSolver.hpp>
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< TMINLP2TNLP > | model_ |
model_ on which error occured | |
std::string | name_ |
name of the model on which error occured. |
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.
Bonmin::TNLPSolver::UnsolvedError::UnsolvedError | ( | int | errorNum = -10000 , |
Ipopt::SmartPtr< TMINLP2TNLP > | model = NULL , |
||
std::string | name = "" |
||
) | [inline] |
virtual Bonmin::TNLPSolver::UnsolvedError::~UnsolvedError | ( | ) | [inline, virtual] |
destructor.
Definition at line 79 of file BonTNLPSolver.hpp.
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] |
void Bonmin::TNLPSolver::UnsolvedError::writeDiffFiles | ( | const std::string | prefix = std::string() | ) | const |
write files with differences between input model and this one
int Bonmin::TNLPSolver::UnsolvedError::errorNum_ [private] |
Error code (solver dependent).
Definition at line 85 of file BonTNLPSolver.hpp.
Referenced by errorNum().
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.
Referenced by UnsolvedError().