30.01.2015 Views

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IloCplex<br />

public IloCplex::PWLFormulation getPWLFormulation()<br />

This method queries the way piecewise linear expressions are represented when<br />

<strong>CPLEX</strong> automatically transforms them during extraction.<br />

public IloNum getQuality(IloCplex::Quality q,<br />

IloNumVar * var,<br />

IloConstraint * rng)<br />

These method return the requested quality measure.<br />

Some quality measures are related to a variable or a constraint. For example<br />

IloCplex::MaxPrimalInfeas is related to the variable or range constraint where<br />

the maximum infeasibility (bound violation) occurs. If this information is also<br />

requested, pointers to IloNumVar or IloConstraint objects may be passed for<br />

the optional parameters where the relevant variable or range will be written.<br />

public void getRangeSA(IloNumArray lblower,<br />

IloNumArray lbupper,<br />

IloNumArray ublower,<br />

IloNumArray ubupper,<br />

const IloRangeArray con)<br />

This method performs sensistivity analysis for the upper and lower bounds of the<br />

ranged constraints passed in the array con. When the method returns, lblower[i]<br />

and lbupper[i] will contain, respecitively, the lowest and the highest value that the<br />

lower bound of constraint con[i] can assume without affecting the optimality of the<br />

solution. Similarly, ublower[i] and ubupper[i] will contain, respectively, the<br />

lowest and the highest value that the upper bound of the constraint con[i] can assume<br />

without affecting the optimality of the solution. The arrays lblower, lbupper,<br />

ublower, and ubupper will be resized to the size of array con. If any of the<br />

information is not requested, 0 can be passed for the corresponding array parameter.<br />

public void getRay(IloNumArray vals,<br />

IloNumVarArray vars)<br />

This method returns an unbounded direction (also known as a ray) corresponding to the<br />

present basis for an LP that has been determined to be an unbounded problem. <strong>CPLEX</strong><br />

puts the the variables of the extracted model into the array vars and it puts the<br />

corresponding values of the unbounded direction into the array vals.<br />

Note:<strong>CPLEX</strong> resizes these arrays for you.<br />

public IloNum getReducedCost(const IloIntVar var)<br />

This method returns the reduced cost associated with var in the invoking algorithm.<br />

public IloNum getReducedCost(const IloNumVar var)<br />

<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 66

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!