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

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 number of semi-integer variables in the matrix representation of<br />

the active model in the invoking IloCplex object.<br />

public IloInt getNsiftingIterations()<br />

This method returns the number of sifting iterations performed for solving the last LP<br />

with algorithm type IloCplex::Sifting, or, equivalently, the number of work LPs<br />

that have been solved for it.<br />

public IloInt getNsiftingPhaseOneIterations()<br />

This method returns the number of sifting iterations performed for solving the last LP<br />

with algorithm type IloCplex::Sifting in order to achieve primal feasibility.<br />

public IloInt getNSOSs()<br />

This method returns the number of SOSs extracted for the invoking algorithm. There<br />

may be differences in the number returned by this function and the number of<br />

IloNumVar, etc. in the model that is extracted. This is because piecewise linear<br />

functions are extracted to a set of SOS.<br />

public void getObjSA(IloNumArray lower,<br />

IloNumArray upper,<br />

const IloNumVarArray vars)<br />

This method performs objecitve sensitivity analysis for the variables specified in array<br />

vars. When this method returns lower[i] and upper[i] will contain the lowest<br />

and highest value the objective function coefficient for variable vars[i] can assume<br />

without affecting the optimality of the solution. The arrays lower and upper will be<br />

resized to the size of array vars. If any of the information is not requested, 0 (zero) can<br />

be passed for the corresponding array parameter.<br />

public IloBool getParam(IloCplex::BoolParam parameter)<br />

This method returns the current setting of parameter in the invoking algorithm.<br />

See the reference manual <strong>ILOG</strong> <strong>CPLEX</strong> Parameters and the <strong>ILOG</strong> <strong>CPLEX</strong> User's<br />

<strong>Manual</strong> for more information about these parameters. Also see the user's manual for<br />

examples of their use.<br />

public void getPriorities(IloNumArray pri,<br />

const IloNumVarArray var)<br />

This method returns query branch priorities previously assigned to variables listed in<br />

var with the method setPriority or setPriorities. When the function<br />

returns, pri[i] will contain the priority value assigned for variables var[i]. If no<br />

priority has been assigned to var[i], pri[i] will contain 0 (zero).<br />

public IloNum getPriority(IloNumVar var)<br />

This method returns the priority previously assigned to the variable var with the<br />

method setPriority or setPriorities. It returns 0 (zero) if no priority has<br />

been assigned.<br />

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

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

Saved successfully!

Ooh no, something went wrong!