ILOG CPLEX .NET Reference Manual

Cplex.ControlCallback.GetUB Method 

Returns the current upper bound for variable var.

protected virtual 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 bound may be different from the bound the variable has in the active model, since branching or bound strengthening may have been applied to it. The corresponding solution value from getValue may violate this bound at a node where a new incumbent has been found because the bound is tightened when an incumbent is found.

See Also

Cplex.ControlCallback Class | ILOG.CPLEX Namespace