ILOG CPLEX .NET Reference Manual

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

Queries the branches Cplex would create at the current node unless overridden by the invoking goal.

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

Parameters

vars
An array of length at least getNbranches of arrays, where the variables the bounds of which would be changed for each branch will be stored. Upon completion vars[i] will contain an array with the list of variables used for branch i.
bounds
An array of length at least getNbranches of arrays where the new bounds for the variables Cplex would branch on each branch will be stored. Upon completion bounds[i] will contain an array with the list of new bounds used for branch 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 where the branch directions for each branch will be stored. Upon completion of this method dirs[i] will contain an array with the list of branch directions used for branch 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.Goal Class | ILOG.CPLEX Namespace | Cplex.Goal.GetBranches Overload List