Skip to content
Snippets Groups Projects
Commit 16fa6efc authored by Marco Ratto's avatar Marco Ratto
Browse files

Replace NaN with numeric penalty when diffuse filter does not kill unit roots.

parent 4fd6ebca
No related branches found
No related tags found
No related merge requests found
......@@ -428,8 +428,8 @@ switch DynareOptions.lik_init
diffuse_periods = length(dlik);
end
if isnan(dLIK),
fval=dLIK;
info = 45;
fval = objective_function_penalty_base + 100;
exit_flag = 0;
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment