Creates and returns an empty IRange object with
the specified upper and lower bound.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
IRange Range( double lb, double ub ) |
| Visual Basic |
|---|
Function Range ( _ lb As Double, _ ub As Double _ ) 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.
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. 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.