From 31ae33939bd449e3c73e17ef7f81cab21e366249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 8 Jul 2014 15:05:53 +0200 Subject: [PATCH] Steady state calculation of Ramsey problem: fix bug when params are updated. If the steady state file was modifying parameters, the changes were not taken fully taken into account. Thanks to Junior Maih for noticing and proposing the fix. (cherry picked from commit def9ee92e560d1eeb7277d4be41315f139316caa) --- matlab/dyn_ramsey_static.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/dyn_ramsey_static.m b/matlab/dyn_ramsey_static.m index 33069c600..32eaa745b 100644 --- a/matlab/dyn_ramsey_static.m +++ b/matlab/dyn_ramsey_static.m @@ -137,11 +137,11 @@ Uyy = reshape(Uyy,endo_nbr,endo_nbr); % depends on multipliers to 0 to compute residuals if (options_.bytecode) [chck, res, junk] = bytecode('static',xx,[oo.exo_simul oo.exo_det_simul], ... - M.params, 'evaluate'); + params, 'evaluate'); fJ = junk.g1; else [res,fJ] = feval([fname '_static'],xx,[oo.exo_simul oo.exo_det_simul], ... - M.params); + params); end % index of multipliers and corresponding equations % the auxiliary variables before the Lagrange multipliers are treated -- GitLab