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

IloCplex::BranchDirectionArray dirs,<br />

IloInt i)<br />

This method accesses branching information for the i-th branch that the invoking<br />

instance of IloCplex is about to create. The parameter i must be between 0 (zero)<br />

and (getNbranches - 1); that is, it must be a valid index of a branch; normally, it<br />

will be zero or one.<br />

A branch is normally defined by a set of variables and the bounds for these variables.<br />

Branches that are more complex cannot be queried. The return value is the node estimate<br />

for that branch.<br />

◆<br />

◆<br />

The parameter vars contains the variables for which new bounds will be set in the<br />

i-th branch.<br />

The parameter bounds contains the new bounds for the variables listed in vars;<br />

that is, bounds[j] is the new bound for vars[j].<br />

◆ The parameter dirs indicates the branching direction for the variables in vars.<br />

dir[j] == IloCplex::BranchUp<br />

means that bounds[j] specifies a lower bound for vars[j].<br />

dirs[j] == IloCplex::BranchDown<br />

means that bounds[j] specifies an upper bound for vars[j].<br />

protected BranchCallbackI::BranchType getBranchType()<br />

This method returns the type of branching IloCplex is going to do for the current<br />

node.<br />

protected IloInt getNbranches()<br />

This method returns the number of branches IloCplex is going to create at the current<br />

node.<br />

protected NodeId getNodeId()<br />

Returns the NodeId of the current node.<br />

protected IloBool isIntegerFeasible()<br />

This method returns IloTrue if the solution of the current node is integer feasible.<br />

protected NodeId makeBranch(const IloConstraintArray cons,<br />

const IloIntVarArray vars,<br />

const IloNumArray bounds,<br />

const IloCplex::BranchDirectionArray dirs,<br />

IloNum objestimate,<br />

NodeData * data)<br />

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

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

Saved successfully!

Ooh no, something went wrong!