ILOG CPLEX .NET Reference Manual

Cplex.Goal.GetUB Method 

Returns the current upper bound for variable var.

protected double GetUB(
   INumVar var
);

Parameters

var
The variable whose current upper bound is being queried.

Return Value

The upper bound for variable var at the current node.

Remarks

This may be different from the bound the variable has in the active model, since branching or bound strengthening may have been applied to it.

See Also

Cplex.Goal Class | ILOG.CPLEX Namespace