differentiate
(function from pyomo.core.expr.calculus.diff_with_sympy
)
- pyomo.core.expr.calculus.diff_with_sympy.differentiate(expr, wrt=None, wrt_list=None)[source]
Return derivative of expression.
This function returns an expression or list of expression objects corresponding to the derivative of the passed expression ‘expr’ with respect to a variable ‘wrt’ or list of variables ‘wrt_list’
- Parameters:
expr (Expression) – Pyomo expression
wrt (Var) – Pyomo variable
wrt_list (list) – list of Pyomo variables
- Returns:
Expression or list of Expression objects