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. More... | |
virtual SolveStatus | getStatus ()=0 |
get status of the last solve More... | |
void | setIface (MINOTAUR_AMPL::AMPLInterface *iface) |
Protected Member Functions | |
virtual int | writeSol_ (EnvPtr env, VarVector *orig_v, PresolverPtr pres, SolutionPtr sol, SolveStatus status, MINOTAUR_AMPL::AMPLInterface *iface) |
Protected Attributes | |
EnvPtr | env_ |
MINOTAUR_AMPL::AMPLInterface * | iface_ |
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 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.