SetInitializer
(class from pyomo.core.base.set
)
- class pyomo.core.base.set.SetInitializer(init, allow_generators=True)[source]
Bases:
InitializerBase
An Initializer wrapper for returning Set objects
This initializer wraps another Initializer and converts the return value to a proper Pyomo Set. If the initializer is None, then Any is returned. This initializer can be ‘intersected’ with another initializer to return the SetIntersect of the Sets returned by the initializers.
Methods
__init__
(init[, allow_generators])constant
()Return True if this initializer is constant across all indices
Return True if this initializer contains embedded indices
indices
()Return a generator over the embedded indices
intersect
(other)setdefault
(val)Attributes
verified
Member Documentation