reverse_sd

(函数来自 pyomo.core.expr.calculus.diff_with_pyomo)

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

一阶反向符号微分

Parameters:

expr (pyomo.core.expr.numeric_expr.NumericExpression) – 要微分的表达式

Returns:

component_map 将变量映射到相对于相应变量的导数

Return type:

ComponentMap