Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IloIntRange

IloIntRange

Description:
Note
IloIntRange cannot be used for a range of floats.
Example:
 range r=1..10;

 execute {
   writeln(r.LB);
   writeln(r.UB);
 }
Output:
1
10
Iterating properties:
Iterates on the integer numbers in this range, starting with the lower bound and ending at the upper bound.
Index resolution:
Default behavior.
OPL type:
range

Property Summary
Field Attributes Field Name and Description
all
LB
Lower bound.
all
The width of this collection.
all
UB
Upper bound.
Property Detail
LB
{float} LB
Lower bound.
Available for:
all

size
size
The width of this collection.
Available for:
all

UB
{float} UB
Upper bound.
Available for:
all

©Copyright IBM Corp. 1987-2011.