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

Merge branch 'steady_nan' into 'master'

steady state computation: trap cases where parameters are NaN

See merge request Dynare/dynare!2119
parents 5b72a304 64d61c32
No related branches found
No related tags found
No related merge requests found
...@@ -221,7 +221,11 @@ if info(1) ...@@ -221,7 +221,11 @@ if info(1)
info(1) == 411 || info(1) == 412 || info(1) == 413 % logarithmic reduction info(1) == 411 || info(1) == 412 || info(1) == 413 % logarithmic reduction
%meaningful second entry of output that can be used %meaningful second entry of output that can be used
fval = Inf; fval = Inf;
if isnan(info(2))
info(4) = 0.1;
else
info(4) = info(2); info(4) = info(2);
end
exit_flag = 0; exit_flag = 0;
if analytic_derivation if analytic_derivation
DLIK=ones(length(xparam1),1); DLIK=ones(length(xparam1),1);
......
...@@ -85,7 +85,7 @@ end ...@@ -85,7 +85,7 @@ end
if updated_params_flag && ~isreal(params1) if updated_params_flag && ~isreal(params1)
info(1) = 23; info(1) = 23;
info(2) = sum(imag(params).^2); info(2) = sum(imag(params).^2,'omitnan');
if M.set_auxiliary_variables if M.set_auxiliary_variables
ys = h_set_auxiliary_variables(ys,exo_ss,params); ys = h_set_auxiliary_variables(ys,exo_ss,params);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment