iter_component
(function from pyomo.util.components)
- pyomo.util.components.iter_component(obj)[source]
Yield “child” objects from a component that is defined with either the base or kernel APIs. If the component is not indexed, it returns itself.
- Parameters:
obj (ComponentType) – eg. TupleContainer, ListContainer, DictContainer, IndexedComponent, or Component
- Returns:
Iterator[ComponentType]
- Return type:
Iterator of the component data objects.