Commit debae9c4 authored by Sébastien Villemot's avatar Sébastien Villemot

Merge branch 'ramsey_bug' into 'master'

Fix two bugs in Ramsey steady state finding

See merge request !1720
parents 50685207 2004641a
Pipeline #3343 passed with stages
in 96 minutes and 7 seconds
...@@ -121,7 +121,12 @@ if options_.steadystate_flag ...@@ -121,7 +121,12 @@ if options_.steadystate_flag
oo.exo_det_steady_state], ... oo.exo_det_steady_state], ...
M,options_,~options_.steadystate.nocheck); M,options_,~options_.steadystate.nocheck);
if any(imag(x(1:M.orig_endo_nbr))) %return with penalty if any(imag(x(1:M.orig_endo_nbr))) %return with penalty
resids=1+sum(abs(imag(x(1:M.orig_endo_nbr)))); %return with penalty resids=ones(inst_nbr,1)+sum(abs(imag(x(1:M.orig_endo_nbr)))); %return with penalty
steady_state=NaN(endo_nbr,1);
return
end
if check %return
resids=ones(inst_nbr,1)+sum(abs(x(1:M.orig_endo_nbr))); %return with penalty
steady_state=NaN(endo_nbr,1); steady_state=NaN(endo_nbr,1);
return return
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment