(function from pyomo.util.slices)
pyomo.util.slices
Use location_set_map to replace values in index with slices or an Ellipsis.
Index whose values to replace
Maps locations (“indices”) within the index to their corresponding set
Contains the sets to replace with slices
tuple: Index with values replaced by slices