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.
time-shift
Sébastien Villemot 2014-07-08 15:05:53 +02:00
parent 9c733de40a
commit def9ee92e5
1 changed files with 2 additions and 2 deletions

View File

@ -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