(class from pyomo.core.base.set)
pyomo.core.base.set
Bases: InitializerBase
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])
__init__
constant()
constant
Return True if this initializer is constant across all indices
contains_indices()
contains_indices
Return True if this initializer contains embedded indices
indices()
indices
Return a generator over the embedded indices
intersect(other)
intersect
setdefault(val)
setdefault
Attributes
verified
Member Documentation
This will raise a RuntimeError if this initializer does not contain embedded indices