sasoptpy.exp_range

exp_range(start, stop, step=1)[source]

Creates a set within specified range

Parameters
startExpression

First value of the range

stopExpression

Last value of the range

stepExpression, optional

Step size of the range

Returns
exsetSet

Set that represents the range

Examples

>>> N = so.Parameter(name='N')
>>> p = so.exp_range(1, N)
>>> print(p._defn())
set 1..N;