Skip to content
Snippets Groups Projects
Verified Commit d54222b8 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

Ramsey with multiple instruments: return properly sized vector if residuals are complex

(cherry picked from commit 0a52dedf)
parent 2650dcf2
Branches
Tags
No related merge requests found
......@@ -121,7 +121,7 @@ if options_.steadystate_flag
oo.exo_det_steady_state], ...
M,options_,~options_.steadystate.nocheck);
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment