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
......@@ -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
......
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