reverse_ad

(function from pyomo.core.expr.calculus.diff_with_pyomo)

pyomo.core.expr.calculus.diff_with_pyomo.reverse_ad(expr)[source]

First order reverse automatic differentiation

Parameters:

expr (pyomo.core.expr.numeric_expr.NumericExpression) – expression to differentiate

Returns:

component_map mapping variables to derivatives with respect to the corresponding variable

Return type:

ComponentMap