23 std::cout <<
"INSIDE OSDipBlockCoinSolver CONSTRUCTOR" << std::endl;
43 std::cout <<
"INSIDED ~OSDipBlockSlpSolver()" << std::endl;
46 std::vector<IndexValuePair*>::iterator vit;
60 std::vector<IndexValuePair*>::iterator vit;
79 primalValPair->
value = 0.0;
80 primalValPair->
idx = i;
84 *optVal = *optVal + cost[ i];
85 primalValPair->
value = 1.0;
96 primalValPair->
idx = m_numberOfVar - 1;
100 primalValPair->
value = 1.0;
101 *optVal = *optVal + cost[ m_numberOfVar - 1];
105 primalValPair->
value = 0.0;
115 std::cout <<
"NUMBER OF VARIABLES m_primalVals = " <<
m_primalVals.size() << std::endl;
double value
value is a double that holds the value of the entity
int getVariableNumber()
Get number of variables.
std::string printModel()
Print the infix representation of the problem.
A commonly used structure holding an index-value pair.
std::string errormsg
errormsg is the error that is causing the exception to be thrown
ObjCoef ** coef
coef is pointer to an array of ObjCoef object pointers
OSInstance * m_osinstance
~OSDipBlockSlpSolver()
Default destructor.
OSDipBlockSlpSolver()
Default Constructor.
std::vector< IndexValuePair * > m_primalVals
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...
int idx
idx holds the index of an entity (such as a variable, constraint, objective) that is part of a sparse...
InstanceData * instanceData
A pointer to an InstanceData object.
Objective ** obj
coef is pointer to an array of ObjCoef object pointers
Objectives * objectives
objectives is a pointer to a Objectives object
The in-memory representation of an OSiL instance..
used for throwing exceptions.
virtual void solve(double *cost, std::vector< IndexValuePair * > *solIndexValPair, double *optVal)