Skip to content
Snippets Groups Projects
Verified Commit 576bb480 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

dsge_likelihood.m: distinguish PKF problems with singularity in other KFs

(cherry picked from commit cf548b46)
parent d732338f
Branches
Tags
No related merge requests found
Pipeline #7107 passed
......@@ -708,6 +708,12 @@ if ((kalman_algo==1) || (kalman_algo==3))% Multivariate Kalman Filter
DynareOptions.rescale_prediction_error_covariance, ...
DynareOptions.presample, ...
T,Q,R,H,Z,mm,pp,rr,Zflag,diffuse_periods, occbin_);
if occbin_.status && isinf(LIK)
fval = Inf;
info(1) = 320;
exit_flag = 0;
return
end
end
end
if analytic_derivation
......
......@@ -188,6 +188,8 @@ switch info(1)
message = 'Occbin: Simulation did not converge, increase maxit or check_ahead_periods.';
case 312
message = 'Occbin: Constraint(s) are binding at the end of the sample.';
case 320
message = 'Piecewise linear Kalman filter: There was a problem in obtaining the likelihood.';
otherwise
message = 'This case shouldn''t happen. Contact the authors of Dynare';
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment