analyticGradients
(Model)
Evaluate analytic/symbolic derivatives of model equations
Syntax
[dynamic, steady] = analyticGradients(model)
Input arguments
model
[ Model ]
Model object whose equations will be analytically/symbolically differentiated w.r.t to the model variables present in the respective equation.
Output arguments
dynamic
[ cell ]
A cell array with the derivatives of the dynamic versions of the model equations w.r.t. the variables present in each respective equation
See Description for details.
steady
[ cell ]
A cell array with the derivatives of the steady versions of the model equations (if provided by the user) w.r.t. the variables present in each respective equation
See Description for details.
Description
Each of the dynamic
and steady
output arguments is a 2-by-N
cell array, where N is the number of equations in the model (counting also
measurement trends and dynamic links); the {1, i}
element is a 1-by-K array of
strings with the analytic/symbolic derivatives of the i-th equation
w.r.t. a total of K variables (including their lags and leads) that are
present in the respective equation. The list of the K variables in then in
the {2, i}
element.
If an equation does not have a steady-state version, the corresponding
elements of the steady
cell array are returned empty.