ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
IloCplex<br />
This method returns the reduced cost associated with var in the invoking algorithm.<br />
public void getReducedCosts(IloNumArray val,<br />
const IloIntVarArray var)<br />
This method puts the reduced costs associated with the numeric variables of the array<br />
var into the array val. The array val is automatically resized to the same length as<br />
array var, and val[i] will contain the reduced cost for variable var[i].<br />
public void getReducedCosts(IloNumArray val,<br />
const IloNumVarArray var)<br />
This method puts the reduced costs associated with the variables in the array var into<br />
the array val. Array val is resized to the same size as array var, and val[i] will<br />
contain the reduced cost for variable var[i].<br />
public void getRHSSA(IloNumArray lower,<br />
IloNumArray upper,<br />
const IloRangeArray cons)<br />
This method performs righthand side sensitivity analysis for the constraints specified in<br />
array cons. The constraints must be of the form cons[i]: expr[i] rel rhs[i].<br />
When this method returns lower[i] and upper[i] will contain the lowest and<br />
highest value rhs[i] can assume without affecting the optimality of the solution. The<br />
arrays lower and upper will be resized to the size of array cons. If any of the<br />
information is not requested, 0 (zero) can be passed for the corresponding array<br />
parameter.<br />
public IloNum getSlack(const IloRange range)<br />
This method returns the slack value associated with constraint range in the current<br />
solution of the invoking algorithm. For a range with finite lower and upper bounds, the<br />
slack value consists of the difference between the expression of the range and its lower<br />
bound.<br />
public void getSlacks(IloNumArray val,<br />
const IloRangeArray con)<br />
This method puts the slack values associated with the constraints indicated by the array<br />
con into the array val. For a ranged constraint with finite lower and upper bounds, the<br />
slack value consists of the difference between the expression in the range and its lower<br />
bound. Array val is resized to the same size as array con, and val[i] will contain<br />
the slack value for constraint con[i].<br />
public IloAlgorithm::Status getStatus()<br />
This method returns the status of the invoking algorithm. For its <strong>ILOG</strong> <strong>CPLEX</strong> status,<br />
see the method IloCplex::getCplexStatus.<br />
public IloCplex::Algorithm getSubAlgorithm()<br />
This method returns the algorithm type that was used to solve most recent node of a<br />
MIP.<br />
<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 67