|
Bonmin 1.8.9
|
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 | |
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 |
Constructor.
Definition at line 56 of file BonTNLPSolver.hpp.
|
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 |
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