Skip to content
Snippets Groups Projects
Verified Commit 18d1d172 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Ramsey steady state computation could fail if expectation or diff operator is present

If auxiliary variables were created *before* the Lagrange multipliers (e.g. aux
vars related to the expectation or diff operators), then the vector of
residuals of the reduced Ramsey steady state problem (with respect to original
variables, as computed by the dyn_ramsey_static_1 subfunction) was incorrect.

(cherry picked from commit 674ebce8)
parent 9aef068c
Branches
Tags
No related merge requests found
Pipeline #8302 passed
......@@ -187,7 +187,7 @@ end
if options_.steadystate_flag
resids = r1;
else
resids = [res(orig_endo_nbr+(1:orig_endo_nbr-inst_nbr)); r1];
resids = [res(orig_endo_aux_nbr+(1:orig_endo_nbr-inst_nbr)); r1];
end
rJ = [];
if needs_set_auxiliary_variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment