Replace NaN with numeric penalty when diffuse filter does not kill unit roots.
parent
4fd6ebca50
commit
16fa6efc8d
|
@ -428,8 +428,8 @@ switch DynareOptions.lik_init
|
||||||
diffuse_periods = length(dlik);
|
diffuse_periods = length(dlik);
|
||||||
end
|
end
|
||||||
if isnan(dLIK),
|
if isnan(dLIK),
|
||||||
fval=dLIK;
|
|
||||||
info = 45;
|
info = 45;
|
||||||
|
fval = objective_function_penalty_base + 100;
|
||||||
exit_flag = 0;
|
exit_flag = 0;
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue