BoundInitializer
(class from pyomo.core.base.initializer
)
- class pyomo.core.base.initializer.BoundInitializer(arg=None, obj=NOTSET)[source]
Bases:
InitializerBase
Initializer wrapper for processing bounds (mapping scalars to 2-tuples)
Note that this class is meant to mimic the behavior of
Initializer()
and will returnNone
if the initializer that it is wrapping isNone
.- Parameters:
arg – As with
Initializer()
, this is the raw argument passed to the component constructor.obj (
Component
) – The component that “owns” the initializer. This initializer will treat sequences as mappings only if the owning component is indexed and the sequence passed to the initializer is not of length 2
Methods
__init__
(arg[, obj])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
Attributes
verified
Member Documentation