is_explicitly_indexed_by

(function from pyomo.dae.set_utils)

pyomo.dae.set_utils.is_explicitly_indexed_by(comp, *sets, **kwargs)[source]

Function for determining whether a pyomo component is indexed by a set or group of sets.

Parameters:
  • comp – Some Pyomo component, possibly indexed

  • sets – Pyomo Sets to check indexing by

  • expand_all_set_operators – Whether or not to expand all set operators in the subsets method

Returns:

A bool that is True if comp is directly indexed by every set in sets.