sequence
(function from pyomo.core.util)
- pyomo.core.util.sequence([start, ]stop[, step]) generator for a list of integers[source]
Return a generator that containing an arithmetic progression of integers.
sequence(i, j)returns[i, i+1, i+2, ..., j];start defaults to 1.
step specifies the increment (or decrement)
For example,
sequence(4)returns[1, 2, 3, 4].