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::IncumbentCallbackI<br />

protected IloNum getSlack(const IloRange rng)<br />

This method returns the slack value for the range indicated by rng for the potential<br />

incumbent.<br />

protected void getSlacks(IloNumArray val,<br />

const IloRangeArray con)<br />

This method puts the slack value for each range in the array of ranges con into the<br />

corresponding element of the array val for the potential incumbent. For this <strong>CPLEX</strong><br />

resizes array val to match the size of array con.<br />

protected IloNum getValue(const IloIntVar var)<br />

This method returns the query value of the variable var in the potential incumbent<br />

solution.<br />

protected IloNum getValue(const IloNumVar var)<br />

This method returns the value of the variable var in the potential incumbent solution.<br />

protected IloNum getValue(const IloExprArg expr)<br />

This method returns the value of the expr for the potential incumbent solution.<br />

protected void getValues(IloNumArray val,<br />

const IloIntVarArray vars)<br />

This method returns the query values of the variables in the array vars in the potential<br />

incumbent solution and copies them to val. <strong>CPLEX</strong> automatically resizes the array<br />

val to match the size of the array vars.<br />

protected void getValues(IloNumArray val,<br />

const IloNumVarArray vars)<br />

This method returns the query values of the variables in the array vars in the potential<br />

incumbent solution and copies them to val. <strong>CPLEX</strong> automatically resizes the array<br />

val to match the length of the array vars.<br />

protected void reject()<br />

This method rejects the proposed incumbent.<br />

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

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

Saved successfully!

Ooh no, something went wrong!