(function from pyomo.core.expr.calculus.diff_with_sympy)
pyomo.core.expr.calculus.diff_with_sympy
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’
expr (Expression) – Pyomo expression
wrt (Var) – Pyomo variable
wrt_list (list) – list of Pyomo variables
Expression or list of Expression objects