PseudoMap

(class from pyomo.core.base.block)

class pyomo.core.base.block.PseudoMap(block, ctype, active=None, sort=False)[source]

Bases: 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()}

__init__(block, ctype, active=None, sort=False)[source]

TODO

Methods

__init__(block, ctype[, active, sort])

TODO

items()

Generator returning (name, component) tuples for components defined on the Block

iteritems()

DEPRECATED.

iterkeys()

DEPRECATED.

itervalues()

DEPRECATED.

keys()

Generator returning the component names defined on the Block

values()

Generator returning the components defined on the Block

Member Documentation

items()[source]

Generator returning (name, component) tuples for components defined on the Block

iteritems()[source]

DEPRECATED.

Generator returning (name, component) tuples for components defined on the Block

Deprecated since version 6.0: The iteritems method is deprecated. Use dict.items().

iterkeys()[source]

DEPRECATED.

Generator returning the component names defined on the Block

Deprecated since version 6.0: The iterkeys method is deprecated. Use dict.keys().

itervalues()[source]

DEPRECATED.

Generator returning the components defined on the Block

Deprecated since version 6.0: The itervalues method is deprecated. Use dict.values().

keys()[source]

Generator returning the component names defined on the Block

values()[source]

Generator returning the components defined on the Block