sasoptpy.exp_range¶
-
exp_range
(start, stop, step=1)[source]¶ Creates a set within specified range
- Parameters
- start
Expression
First value of the range
- stop
Expression
Last value of the range
- step
Expression
, optional Step size of the range
- start
- 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;