19 #include "OSInstance.h"
33 # error "don't have header file for time"
62 virtual void solve() ;
double m_mdObjConstant
m_mdObjConstant holds an array of objective function constants.
the LindoSolver class solves problems using Lindo.
bool optimize()
invoke the Lindo API solver
OSrLWriter * osrlwriter
osrlwriter object used to write osrl from an OSResult object
double * m_mdVarUB
m_mdUb holds an array of variable upper bounds.
void dataEchoCheck()
use this for debugging, print out the instance that the solver thinks it has and compare this with th...
int m_iNumberNewSlacks
m_iNumberNewSlacks is the number of slack variables to add
Take an OSResult object and write a string that validates against OSrL.
double * m_mdConUB
m_mdRhs holds an array of the constraint upper bounds.
bool processNonlinearExpressions()
read the nonlinear terms in the model
void lindoAPIErrorCheck(std::string errormsg)
Lindo's generalized error Reporting function.
double * m_mdRhsValue
m_mdRhsValue is used to the store the constraint rhs if we do not use row upper and lower bounds ...
int * m_miSlackIdx
because LINDO API does not take row ranges we need some extra stuff m_miSlackIdx indexes the rows tha...
bool processVariables()
read the OSiL instance variables and put these into the LINDO API variables
Used to read an OSiL string.
bool addSlackVars()
LINDO does not handle constraints with upper and lower bounds this method is part of kludge where we ...
std::string * m_msVarName
m_msVarName holds an array of variable std::string names.
double * m_mdConLB
m_mdLhs holds an array of the constraint lower bounds.
LindoSolver()
the LindoSolver class constructor
The Default Solver Class.
int m_iLindoErrorCode
m_iErrorCode is a variable for LINDO error codes
char * m_mcVarType
m_vcVarType holds an array of variable types (character), e.g.
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...
~LindoSolver()
the LindoSolver class destructor
char * m_mcRowType
m_mcRowType - E for equality, L for less than, G for greater than – used if we do not store rows usin...
bool generateLindoModel()
create the LINDO environment and read the problem into the internal LINDO data structures ...
double * m_mdVarLB
m_mdLb holds an array of variable lower bounds.
virtual void setSolverOptions()
The implementation of the virtual functions.
bool processConstraints()
read the OSiL instance constraints and put these into the LINDO API constraints
pLSenv pEnv_
declare an instance of the LINDO environment object
used for throwing exceptions.
virtual void solve()
solve results in an instance being read into the Lindo data structures and optimized ...
OSiLReader * m_osilreader
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed ...
std::string * m_msConName
m_msConName holds an array of constraint std::string names.
pLSmodel pModel_
declare an instance of the LINDO model object
char ** m_mmcVarName
m_mmcVarName holds an array of char arrays.