ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
IloCplex::HeuristicCallbackI<br />
protected IloAlgorithm::Status getStatus()<br />
This method returns the status of the solution found by the instance of IloCplex at the<br />
current node during the last call to solve (which may have been called directly in the<br />
callback or by IloCplex when processing the node).<br />
The enumeration IloAlgorithm::Status lists the possible status values.<br />
protected IloBool isDualFeasible()<br />
This method returns IloTrue if the solution provided by the last solve call is dual<br />
feasible. Note that an IloFalse return value does not necessarily mean that the<br />
solution is not dual feasible. It simply means that the relevant algorithm was not able to<br />
conclude it was dual feasible when it terminated.<br />
protected IloBool isPrimalFeasible()<br />
This method returns IloTrue if the solution provided by the last solve call is primal<br />
feasible. Note that an IloFalse return value does not necessarily mean that the<br />
solution is not primal feasible. It simply means that the relevant algorithm was not able<br />
to conclude it was primal feasible when it terminated.<br />
protected void setBounds(const IloIntVarArray var,<br />
const IloNumArray lb,<br />
const IloNumArray ub)<br />
For each variable in the array var, this method sets its upper bound to the<br />
corresponding value in the array ub and its lower bound to the corresponding value in<br />
the array lb. Setting bounds has no effect beyond the scope of the current invocation of<br />
the callback.<br />
protected void setBounds(const IloNumVarArray var,<br />
const IloNumArray lb,<br />
const IloNumArray ub)<br />
For each variable in the array var, this method sets its upper bound to the<br />
corresponding value in the array ub and its lower bound to the corresponding value in<br />
the array lb. Setting bounds has no effect beyond the scope of the current invocation of<br />
the callback.<br />
protected void setBounds(const IloIntVar var,<br />
IloNum lb,<br />
IloNum ub)<br />
This method sets the lower bound to lb and the upper bound to ub for the variable var<br />
at the current node. Setting bounds has no effect beyond the scope of the current<br />
invocation of the callback.<br />
protected void setBounds(const IloNumVar var,<br />
IloNum lb,<br />
IloNum ub)<br />
<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 154