(function from pyomo.core.expr.calculus.diff_with_pyomo)
pyomo.core.expr.calculus.diff_with_pyomo
First order reverse automatic differentiation
expr (pyomo.core.expr.numeric_expr.NumericExpression) – expression to differentiate
component_map mapping variables to derivatives with respect to the corresponding variable
ComponentMap