ILOG CPLEX .NET Reference Manual

Cplex.BranchCallback.GetBranches Method (INumVar[][], Double[][], BranchDirection[][])

Queries the branches Cplex would create at the current node if not overridden by the invoking callback.

protected virtual double[] GetBranches(
   INumVar[][] vars,
   double[][] bounds,
   BranchDirection[][] dirs
);

Parameters

vars
An array of length at least getNbranches of arrays. Upon completion, vars[i] will contain the list of variables whose bounds will be changed in child i of the current node.
bounds
An array of length at least getNbranches of arrays. Upon completion, bounds[i] will contain the list of new bounds used for child i. One bound of variable vars[i][j] will be set to bounds[i][j] for all possible pairs i, j.
dirs
An array of length at least getNbranches of arrays. Upon completion of this method dirs[i] will contain the list of branch directions used for child i. If dirs[i][j] is Cplex.BranchDirection.Up the lower bound of variable vars[i][j] will be set to bounds[i][j] for all possible pairs i, j. Similarly, if dirs[i][j] is Cplex.BranchDirection.Down the upper bound of variable vars[i][j] will be set to bounds[i][j] for all possible pairs i, j.

Return Value

An array of double values containing the node estimates for the branches.

Remarks

The returned branch will be performed if the callback does not call the method makeBranch or prune.

See Also

Cplex.BranchCallback Class | ILOG.CPLEX Namespace | Cplex.BranchCallback.GetBranches Overload List