ConstantInitializer
(class from pyomo.core.base.initializer
)
- class pyomo.core.base.initializer.ConstantInitializer(val)[source]
Bases:
InitializerBase
Initializer for constant values
Methods
__init__
(val)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
val
verified
Member Documentation
- contains_indices()
Return True if this initializer contains embedded indices
- indices()
Return a generator over the embedded indices
This will raise a RuntimeError if this initializer does not contain embedded indices