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::GoalI<br />
This method returns the value of the variable var in the solution of the current node<br />
relaxation.<br />
public IloNum getValue(const IloNumVar var)<br />
This method returns the value of the variable var in the solution of the current node<br />
relaxation.<br />
public IloNum getValue(const IloExpr expr)<br />
This method returns the value of the expression expr in the solution of the current node<br />
relaxation.<br />
public void getValues(IloNumArray vals,<br />
const IloIntVarArray vars)<br />
This method puts the current node relaxation solution value of each variable in the array<br />
vars into the corresponding element of the array vals.<br />
public void getValues(IloNumArray vals,<br />
const IloNumVarArray vars)<br />
This method puts the current node relaxation solution value of each variable in the array<br />
vars into the corresponding element of the array vals.<br />
public static IloCplex::Goal GlobalCutGoal(IloConstraintArray con)<br />
This method creates a goal that when executed adds the constraints (provided in the<br />
paramter array con) as global cuts to the model. These global cuts must be valid for the<br />
entire model, not only for the current subtree. In other words, these global cuts will be<br />
respected at every node.<br />
IloCplex takes over memory managment for the cuts passed to the method<br />
GlobalCutGoal. Thus IloCplex will call the method end as soon as it can be<br />
discarded after the goal executes. Calling end yourself or the constraints in the array<br />
con passed to method GlobalCutGoal or the array itself is an error and must be<br />
avoided.<br />
public static IloCplex::Goal GlobalCutGoal(IloConstraint con)<br />
This method creates a goal that when executed adds the constraint con (provided as a<br />
parameter) as global cuts to the model. These global cuts must be valid for the entire<br />
model, not only for the current subtree. In other words, these global cuts will be<br />
respected at every node.<br />
IloCplex takes over memory managment for the cut passed to the method<br />
GlobalCutGoal. Thus IloCplex will call the method end as soon as it can be<br />
discarded after the goal executes. Calling end yourself for the constraint passed to<br />
method GlobalCutGoal is an error and must be avoided.<br />
public IloBool hasIncumbent()<br />
This method returns IloTrue if an integer feasible solution has been found.<br />
<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 145