#include <OSDefaultSolver.h>
Public Member Functions | |
virtual void | solve ()=0 |
solve is a virtual function -- the actual solvers will implement their own solve method | |
virtual void | buildSolverInstance ()=0 |
buildSolverInstance is a virtual function -- the actual solvers will implement their own solve method -- the solver instance is the instance the individual solver sees in its api | |
DefaultSolver () | |
default constructor. | |
virtual | ~DefaultSolver ()=0 |
default destructor. | |
Public Attributes | |
std::string | osil |
osil holds the problem instance as a std::string | |
std::string | osol |
osol holds the options for the solver | |
std::string | osrl |
osrl holds the solution or result of the model | |
OSInstance * | osinstance |
osinstance holds the problem instance in-memory as an OSInstance object | |
OSResult * | osresult |
osresult holds the solution or result of the model in-memory as an OSResult object | |
std::string | insList |
osoption holds the solver options in-memory as an OSOption object | |
std::string | sSolverName |
sSolverName is the name of the Coin solver used, e.g. | |
bool | bCallbuildSolverInstance |
bCallbuildSolverInstance is set to true if buildSolverService has been called |
Definition at line 35 of file OSDefaultSolver.h.
DefaultSolver::DefaultSolver | ( | ) |
DefaultSolver::~DefaultSolver | ( | ) | [pure virtual] |
virtual void DefaultSolver::solve | ( | ) | [pure virtual] |
solve is a virtual function -- the actual solvers will implement their own solve method
Implemented in CoinSolver, IpoptSolver, KnitroSolver, and LindoSolver.
Referenced by main(), solve(), and OSMatlab::solve().
virtual void DefaultSolver::buildSolverInstance | ( | ) | [pure virtual] |
buildSolverInstance is a virtual function -- the actual solvers will implement their own solve method -- the solver instance is the instance the individual solver sees in its api
Implemented in CoinSolver, IpoptSolver, KnitroSolver, and LindoSolver.
std::string DefaultSolver::osil |
osil holds the problem instance as a std::string
Definition at line 42 of file OSDefaultSolver.h.
Referenced by LindoSolver::buildSolverInstance(), IpoptSolver::buildSolverInstance(), CoinSolver::buildSolverInstance(), main(), and KnitroSolver::solve().
std::string DefaultSolver::osol |
osol holds the options for the solver
Definition at line 45 of file OSDefaultSolver.h.
Referenced by main(), solve(), CoinSolver::solve(), and OSMatlab::solve().
std::string DefaultSolver::osrl |
osrl holds the solution or result of the model
Definition at line 49 of file OSDefaultSolver.h.
Referenced by LindoSolver::buildSolverInstance(), KnitroSolver::buildSolverInstance(), IpoptSolver::buildSolverInstance(), CoinSolver::buildSolverInstance(), LindoSolver::generateLindoModel(), CoinSolver::getCoinSolverType(), main(), LindoSolver::optimize(), LindoSolver::processConstraints(), LindoSolver::processNonlinearExpressions(), LindoSolver::processQuadraticTerms(), LindoSolver::processVariables(), CoinSolver::setCoinPackedMatrix(), solve(), LindoSolver::solve(), KnitroSolver::solve(), IpoptSolver::solve(), CoinSolver::solve(), and OSMatlab::solve().
osinstance holds the problem instance in-memory as an OSInstance object
Definition at line 53 of file OSDefaultSolver.h.
Referenced by LindoSolver::buildSolverInstance(), IpoptSolver::buildSolverInstance(), CoinSolver::buildSolverInstance(), LindoSolver::dataEchoCheck(), KnitroSolver::dataEchoCheck(), IpoptSolver::dataEchoCheck(), CoinSolver::dataEchoCheck(), LindoSolver::generateLindoModel(), main(), LindoSolver::optimize(), LindoSolver::processConstraints(), LindoSolver::processNonlinearExpressions(), LindoSolver::processQuadraticTerms(), LindoSolver::processVariables(), CoinSolver::setCoinPackedMatrix(), solve(), KnitroSolver::solve(), IpoptSolver::solve(), CoinSolver::solve(), and OSMatlab::solve().
osresult holds the solution or result of the model in-memory as an OSResult object
Definition at line 57 of file OSDefaultSolver.h.
Referenced by LindoSolver::buildSolverInstance(), KnitroSolver::buildSolverInstance(), IpoptSolver::buildSolverInstance(), CoinSolver::buildSolverInstance(), LindoSolver::generateLindoModel(), CoinSolver::getCoinSolverType(), IpoptSolver::IpoptSolver(), KnitroSolver::KnitroSolver(), LindoSolver::optimize(), LindoSolver::processConstraints(), LindoSolver::processNonlinearExpressions(), LindoSolver::processQuadraticTerms(), LindoSolver::processVariables(), CoinSolver::setCoinPackedMatrix(), LindoSolver::solve(), KnitroSolver::solve(), IpoptSolver::solve(), CoinSolver::solve(), CoinSolver::~CoinSolver(), IpoptSolver::~IpoptSolver(), KnitroSolver::~KnitroSolver(), and LindoSolver::~LindoSolver().
std::string DefaultSolver::insList |
osoption holds the solver options in-memory as an OSOption object
osinsList holds the solution or result of the model
Definition at line 65 of file OSDefaultSolver.h.
Referenced by LindoSolver::processNonlinearExpressions().
std::string DefaultSolver::sSolverName |
sSolverName is the name of the Coin solver used, e.g.
glpk, or clp
Definition at line 72 of file OSDefaultSolver.h.
Referenced by CoinSolver::buildSolverInstance(), main(), solve(), CoinSolver::solve(), and OSMatlab::solve().
bCallbuildSolverInstance is set to true if buildSolverService has been called
Definition at line 79 of file OSDefaultSolver.h.
Referenced by LindoSolver::buildSolverInstance(), IpoptSolver::buildSolverInstance(), and CoinSolver::buildSolverInstance().