row_order2row_map

(function from pyomo.repn.util)

pyomo.repn.util.row_order2row_map(config)[source]

Convert a row_order (list or ComponentMap) into a dict mapping constraint id -> row index. Returns an empty dict if no ordering.