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

time-shift
Marco Ratto 2012-09-26 16:00:18 +02:00
parent 4fd6ebca50
commit 16fa6efc8d
1 changed files with 1 additions and 1 deletions

View File

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