get_slice_for_set

(function from pyomo.dae.flatten)

pyomo.dae.flatten.get_slice_for_set(s)[source]

Get the slice of the proper dimension for a set.