(class from pyomo.core.base.block)
pyomo.core.base.block
Bases: Mixin
Mixin
This class presents a “mock” dict interface to the internal BlockData data structures. We return this object to the user to preserve the historical “{ctype : {name : obj}}” interface without actually regenerating that dict-of-dicts data structure.
We now support {ctype : PseudoMap()}
TODO
Methods
__init__(block, ctype[, active, sort])
__init__
items()
items
Generator returning (name, component) tuples for components defined on the Block
iteritems()
iteritems
DEPRECATED.
iterkeys()
iterkeys
itervalues()
itervalues
keys()
keys
Generator returning the component names defined on the Block
values()
values
Generator returning the components defined on the Block
Member Documentation
Deprecated since version 6.0: The iteritems method is deprecated. Use dict.items().
Deprecated since version 6.0: The iterkeys method is deprecated. Use dict.keys().
Deprecated since version 6.0: The itervalues method is deprecated. Use dict.values().