33 # error "don't have header file for time"
149 int m_iLindoErrorCode;
156 int m_iNumberNewSlacks;
161 double *m_mdRhsValue;
196 std::
string* m_msVarName;
201 std::
string* m_msConName;
211 double m_mdObjConstant;
This file defines the OSInstance class along with its supporting classes.
The Default Solver Class.
used for throwing exceptions.
the LindoSolver class solves problems using Lindo.
bool generateLindoModel()
create the LINDO environment and read the problem into the internal LINDO data structures
void dataEchoCheck()
use this for debugging, print out the instance that the solver thinks it has and compare this with th...
LindoSolver()
the LindoSolver class constructor
bool processConstraints()
read the OSiL instance constraints and put these into the LINDO API constraints
bool addSlackVars()
LINDO does not handle constraints with upper and lower bounds this method is part of kludge where we ...
bool processVariables()
read the OSiL instance variables and put these into the LINDO API variables
OSiLReader * m_osilreader
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed
~LindoSolver()
the LindoSolver class destructor
bool processNonlinearExpressions()
read the nonlinear terms in the model
void lindoAPIErrorCheck(std::string errormsg)
Lindo's generalized error Reporting function.
virtual void setSolverOptions()
The implementation of the virtual functions.
bool processQuadraticTerms()
read the quadratic terms in the model
virtual void buildSolverInstance()
buildSolverInstance is a virtual function – the actual solvers will implement their own buildSolverIn...
bool optimize()
invoke the Lindo API solver
virtual void solve()
solve results in an instance being read into the Lindo data structures and optimized
Used to read an OSiL string.
Take an OSResult object and write a string that validates against OSrL.