expand_components

(function from pyomo.dae.misc)

pyomo.dae.misc.expand_components(block)[source]

Loop over block components and try expanding them. If expansion fails then save the component and try again later. This function has some built-in robustness for block-hierarchical models with circular references but will not work for all cases.