(class from pyomo.core.base.initializer)
pyomo.core.base.initializer
Bases: InitializerBase
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 return None if the initializer that it is wrapping is None.
Initializer()
None
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
Component
Methods
__init__(arg[, obj])
__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
Attributes
verified
Member Documentation
This will raise a RuntimeError if this initializer does not contain embedded indices