is_in_block_indexed_by
(function from pyomo.dae.set_utils
)
- pyomo.dae.set_utils.is_in_block_indexed_by(comp, s, stop_at=None)[source]
Function for determining whether a component is contained in a block that is indexed by a particular set.
- Parameters:
comp – Component whose parent blocks are checked
s – Set for which indices are checked
stop_at – Block at which to stop searching if reached, regardless of whether or not it is indexed by s
- Returns:
Bool that is true if comp is contained in a block indexed by s