Returns the current upper bound for the variable var.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
protected virtual double GetUB(
	INumVar var
)
Visual Basic
Protected Overridable Function GetUB ( _
	var As INumVar _
) As Double

Parameters

var
Type: ILOG.Concert..::..INumVar
The variable whose current upper bound is being queried.

Return Value

The upper bound for the 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