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
parent
9c733de40a
commit
def9ee92e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue