|
Minotaur 0.4.1
Docs for developers
|
#include <Solver.h>


Public Member Functions | |
| Solver () | |
| Default constructor. | |
| virtual | ~Solver () |
| Destroy. | |
| virtual FileType | getFileType (std::string fname) |
| Helper function to determin file type (mps, nl etc) | |
| virtual ProblemPtr | readProblem (std::string fname, std::string dname, std::string sname, int &err) |
| virtual bool | timeCheck () |
| virtual int | solve (ProblemPtr p)=0 |
| Solve the problem. | |
| virtual SolveStatus | getStatus ()=0 |
| get status of the last solve | |
| virtual SolutionPtr | getSol ()=0 |
| get solution of the last solve | |
| void | setIface (MINOTAUR_AMPL::AMPLInterface *iface) |
Protected Member Functions | |
| virtual int | writeSol_ (EnvPtr env, VarVector *orig_v, SolutionPtr sol, SolveStatus status, MINOTAUR_AMPL::AMPLInterface *iface) |
Protected Attributes | |
| EnvPtr | env_ |
| Minotaur Environment. | |
| MINOTAUR_AMPL::AMPLInterface * | iface_ |
| AMPL Interface. | |
| bool | ownIface_ |
The Solver base class has methods common for solvers: reading instances, writing files, etc. Solvers like QG, BnB, Glob etc must be derived from this class.
|
pure virtual |
get solution of the last solve
Implemented in Minotaur::Bnb, Minotaur::BnbPar, Minotaur::Glob, Minotaur::MultiStart, Minotaur::QG, Minotaur::QGPar, and Minotaur::SolCheck.
|
pure virtual |
get status of the last solve
Implemented in Minotaur::Bnb, Minotaur::BnbDistPar, Minotaur::BnbPar, Minotaur::Glob, Minotaur::MultiStart, Minotaur::QG, Minotaur::QGPar, and Minotaur::SolCheck.
|
pure virtual |
Solve the problem.
Implemented in Minotaur::Bnb, Minotaur::BnbDistPar, Minotaur::BnbPar, Minotaur::Glob, Minotaur::MultiStart, Minotaur::QG, Minotaur::QGPar, and Minotaur::SolCheck.
|
protected |
True if iface was initialized by this solver, false if provided by a calling function.