Creates and returns an empty IRange object with the specified name and upper and lower bounds.

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

Syntax

C#
IRange Range(
	double lb,
	double ub,
	string name
)
Visual Basic
Function Range ( _
	lb As Double, _
	ub As Double, _
	name As String _
) As IRange

Parameters

lb
Type: System..::..Double
The lower bound of the new IRange constraint.
ub
Type: System..::..Double
The upper bound of the new IRange constraint.
name
Type: System..::..String
The name assigned to the new IRange constraint.

Return Value

A new IRange object initialized to represent the constraint lb <= 0 <= ub.

Remarks

The new IRange object is initialized to represent the constraint lb <= 0 <= ub. The new IRange object is assigned name as its name. This method is typically used in an application that applies column-wise modeling to fill in the expression for the ranged constraint while creating the variables.

See Also