(function from pyomo.contrib.sensitivity_toolbox.pynumero)
pyomo.contrib.sensitivity_toolbox.pynumero
Reduce the sensitivity matrix from get_dsdp_dfdp to only a specified set of state variables of interest.
y_list (list) – A list of state variables of interest (a subset of s)
dsdp (csc_matrix) – A sensitivity matrix calculated by get_dsdp_dfdp
row_map (ComponentMap) – A row map from get_dsdp_dfdp
dy/dp and a new row map with only y variables
csc_matrix, ComponentMap