Bonmin
1.8.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. 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< TMINLP2TNLP > | model_ |
model_ on which error occured More... | |
std::string | name_ |
name of the model on which error occured. More... | |
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.
|
inline |
|
inlinevirtual |
destructor.
Definition at line 79 of file BonTNLPSolver.hpp.
void Bonmin::TNLPSolver::UnsolvedError::printError | ( | std::ostream & | os | ) |
Print error message.
|
pure virtual |
Get the string corresponding to error.
Implemented in Bonmin::BqpdSolver::UnsolvedBqpdError, Bonmin::FilterSolver::UnsolvedFilterError, and Bonmin::IpoptSolver::UnsolvedIpoptError.
|
pure virtual |
Return the name of the solver.
Implemented in Bonmin::BqpdSolver::UnsolvedBqpdError, Bonmin::FilterSolver::UnsolvedFilterError, and Bonmin::IpoptSolver::UnsolvedIpoptError.
|
inline |
void Bonmin::TNLPSolver::UnsolvedError::writeDiffFiles | ( | const std::string | prefix = std::string() | ) | const |
write files with differences between input model and this one
|
private |
Error code (solver dependent).
Definition at line 85 of file BonTNLPSolver.hpp.
Referenced by errorNum().
|
private |
model_ on which error occured
Definition at line 88 of file BonTNLPSolver.hpp.
|
private |
name of the model on which error occured.
Definition at line 91 of file BonTNLPSolver.hpp.
Referenced by UnsolvedError().