b (BlockData) – Block whose components will be sliced
index_stack (list) – Sets above b in the block hierarchy, including on its parent
component, that have been sliced. This is necessary to return the
sets that have been sliced.
slice (IndexedComponent_slice or BlockData) – Slice generated so far. This function will yield extensions to
this slice at the current level of the block hierarchy.
sets (ComponentSet of Pyomo sets) – Sets that will be sliced
ctype (Subclass of Component) – Type of components to generate
index_map (ComponentMap) – Map from (some of) the specified sets to a “representative index”
to use when descending into subblocks. While this map does not need
to contain every set in the sliced sets, it must not contain any
sets that will not be sliced.
active (Bool or None) – If not None, this is a boolean flag used to filter component objects
by their active status.