Skip to content
Snippets Groups Projects
Commit 7400c2c1 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

evaluate_steady_state.m: fix bugs when static and dynamic models differ.

Closes #661
parent def9ee92
Branches
Tags
No related merge requests found
......@@ -128,12 +128,12 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
% Evaluate residual of *dynamic* model using the steady state
% computed on the *static* one
z = repmat(ys,1,M.maximum_lead + M.maximum_lag + 1);
zx = repmat([oo.exo_simul oo.exo_det_simul],M.maximum_lead + M.maximum_lag + 1, 1);
zx = repmat([exo_ss'], M.maximum_lead + M.maximum_lag + 1, 1);
if options.bytecode
[chck, r, junk]= bytecode('dynamic','evaluate', z, zx, M.params, ys, 1);
mexErrCheck('bytecode', chck);
elseif options.block
[r, data] = feval([M.fname '_dynamic'], z', zx, M.params, ys, M.maximum_lag+1, data);
[r, oo.dr] = feval([M.fname '_dynamic'], z', zx, M.params, ys, M.maximum_lag+1, oo.dr);
else
iyv = M.lead_lag_incidence';
iyr0 = find(iyv(:));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment