the LindoSolver class solves problems using Lindo.
More...
#include <OSLindoSolver.h>
the LindoSolver class solves problems using Lindo.
- Author
- Robert Fourer, Jun Ma, Kipp Martin
- Version
- 1.0, 03/14/2004
- Since
- OS 1.0
Definition at line 49 of file OSLindoSolver.h.
◆ LindoSolver()
LindoSolver::LindoSolver |
( |
| ) |
|
◆ ~LindoSolver()
LindoSolver::~LindoSolver |
( |
| ) |
|
◆ solve()
virtual void LindoSolver::solve |
( |
| ) |
|
|
virtual |
solve results in an instance being read into the Lindo data structures and optimized
Implements DefaultSolver.
◆ buildSolverInstance()
virtual void LindoSolver::buildSolverInstance |
( |
| ) |
|
throw | ( | ErrorClass |
| ) | | |
|
virtual |
buildSolverInstance is a virtual function – the actual solvers will implement their own buildSolverInstance method – the solver instance is the instance the individual solver sees in its API
Implements DefaultSolver.
◆ setSolverOptions()
void LindoSolver::setSolverOptions |
( |
| ) |
|
throw | ( | ErrorClass |
| ) | | |
|
virtual |
The implementation of the virtual functions.
- Returns
- void.
Implements DefaultSolver.
◆ optimize()
bool LindoSolver::optimize |
( |
| ) |
|
invoke the Lindo API solver
- Returns
- true if an exception is not thrown.
◆ processVariables()
bool LindoSolver::processVariables |
( |
| ) |
|
read the OSiL instance variables and put these into the LINDO API variables
- Returns
- true if an exception is not thrown.
◆ processConstraints()
bool LindoSolver::processConstraints |
( |
| ) |
|
read the OSiL instance constraints and put these into the LINDO API constraints
- Returns
- true if an exception is not thrown.
◆ generateLindoModel()
bool LindoSolver::generateLindoModel |
( |
| ) |
|
create the LINDO environment and read the problem into the internal LINDO data structures
- Returns
- true if an exception is not thrown.
◆ addSlackVars()
bool LindoSolver::addSlackVars |
( |
| ) |
|
LINDO does not handle constraints with upper and lower bounds this method is part of kludge where we add a new variable to handle the bounds.
- Returns
- true if an exception is not thrown.
◆ processQuadraticTerms()
bool LindoSolver::processQuadraticTerms |
( |
| ) |
|
read the quadratic terms in the model
- Returns
- true if an exception is not thrown.
◆ processNonlinearExpressions()
bool LindoSolver::processNonlinearExpressions |
( |
| ) |
|
read the nonlinear terms in the model
- Returns
- true if an exception is not thrown.
◆ dataEchoCheck()
void LindoSolver::dataEchoCheck |
( |
| ) |
|
use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file
◆ lindoAPIErrorCheck()
void LindoSolver::lindoAPIErrorCheck |
( |
std::string |
errormsg | ) |
|
|
protected |
Lindo's generalized error Reporting function.
◆ m_osilreader
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed
Definition at line 129 of file OSLindoSolver.h.
The documentation for this class was generated from the following file: