(class from pyomo.core.base.initializer)
pyomo.core.base.initializer
Bases: InitializerBase
InitializerBase
Initializer wrapper that maps exceptions to default values.
initializer (:py:class`InitializerBase`) – the Initializer instance to wrap
default – the value to return inlieu of the caught exception(s)
exceptions (Exception or tuple) – the single Exception or tuple of Exceptions to catch and return the default value.
Methods
__init__(initializer, default, exceptions)
__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