ILOG CPLEX .NET Reference Manual

Cplex.ControlCallback.GetUBs Method (INumVar[], Int32, Int32)

Returns the current upper bounds for a set of variables.

protected virtual double[] GetUBs(
   INumVar[] var,
   int start,
   int num
);

Parameters

var
An array containing the variables whose current upper bounds are being queried.
start
The index of the first variable in var for which to query the current upper bound.
num
The number of consecutive variables in var for which to query the current upper bounds.

Return Value

An array of double values containing the current upper bounds for the specified variables. If the returned array is called ub, ub[j] contains the upper bound of variable var[j+start] at the current node, for j = 0, ..., num-1.

Remarks

The bounds may be different from the bounds the variables have in the active model, since branching or bound strengthening may have been applied to them. The corresponding solution values from getValues may violate these bounds at a node where a new incumbent has been found because the bounds are tightened when an incumbent is found.

See Also

Cplex.ControlCallback Class | ILOG.CPLEX Namespace | Cplex.ControlCallback.GetUBs Overload List