#include <BonTNLPSolver.hpp>
Inheritance diagram for Bonmin::TNLPSolver::UnsolvedError:


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. | |
Eventually store the error code from solver
Definition at line 50 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] |
| 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().
| 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().
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().
1.4.7