22 std::cout <<
"INSIDE OSDipBlockCoinSolver CONSTRUCTOR" << std::endl;
52 std::cout <<
"INSIDED ~OSDipBlockCoinSolver()" << std::endl;
79 std::string solStatus;
85 std::cout <<
"SOLUTION STATUS " << solStatus << std::endl;
87 if( solStatus.find(
"ptimal") != std::string::npos ){
92 throw ErrorClass(
"problem -- did not optimize a subproblem");
120 std::string solStatus;
128 if( solStatus.find(
"ptimal") != std::string::npos ){
132 throw ErrorClass(
"problem -- did not optimize a subproblem");
std::string getSolutionStatusType(int solIdx)
Get the [i]th optimization solution status type, where i equals the given solution index...
int getVariableNumber()
Get number of variables.
std::string printModel()
Print the infix representation of the problem.
std::string osrl
osrl holds the solution or result of the model
std::string errormsg
errormsg is the error that is causing the exception to be thrown
OsiSolverInterface * osiSolver
osiSolver is the osi solver object – in this case clp, glpk, cbc, cplex, symphony or dylp ...
std::vector< IndexValuePair * > getOptimalPrimalVariableValues(int solIdx)
Get one solution of optimal primal variable values.
ObjCoef ** coef
coef is pointer to an array of ObjCoef object pointers
OSResult * osresult
osresult holds the solution or result of the model in-memory as an OSResult object ...
double getOptimalObjValue(int objIdx, int solIdx)
Get one solution's optimal objective value.
OSInstance * m_osinstance
virtual void buildSolverInstance()
The implementation of the corresponding virtual function.
OSDipBlockCoinSolver()
Default Constructor.
bool bObjectivesModified
bObjectivesModified is true if the objective function data has been modified.
double value
value is the value of the objective function coefficient corresponding to the variable with index idx...
OSInstance * osinstance
osinstance holds the problem instance in-memory as an OSInstance object
InstanceData * instanceData
A pointer to an InstanceData object.
Objective ** obj
coef is pointer to an array of ObjCoef object pointers
std::string sSolverName
sSolverName is the name of the Coin solver used, e.g.
Objectives * objectives
objectives is a pointer to a Objectives object
Implements a solve method for the Coin solvers.
~OSDipBlockCoinSolver()
Default destructor.
The in-memory representation of an OSiL instance..
virtual void solve()
The implementation of the corresponding virtual function.
used for throwing exceptions.
virtual void solve(double *cost, std::vector< IndexValuePair * > *solIndexValPair, double *optVal)