diff --git a/matlab/dsge_likelihood.m b/matlab/dsge_likelihood.m index b0a00a151b8bb123612919c211fb16915597b3e5..72395f1667b5e8d5874c64baaff951c01809ee7c 100644 --- a/matlab/dsge_likelihood.m +++ b/matlab/dsge_likelihood.m @@ -217,7 +217,8 @@ if info(1) if info(1) == 3 || info(1) == 4 || info(1) == 5 || info(1)==6 ||info(1) == 19 ||... info(1) == 20 || info(1) == 21 || info(1) == 23 || info(1) == 26 || ... info(1) == 81 || info(1) == 84 || info(1) == 85 || info(1) == 86 || ... - info(1) == 401 || info(1) == 402 || info(1) == 403 %cycle reduction + info(1) == 401 || info(1) == 402 || info(1) == 403 || ... %cycle reduction + info(1) == 411 || info(1) == 412 || info(1) == 413 % logarithmic reduction %meaningful second entry of output that can be used fval = Inf; info(4) = info(2); diff --git a/matlab/get_error_message.m b/matlab/get_error_message.m index 7612e2f0d9ef04b4b8496b9c4311b8187925d6bb..8b463f619b5b0e6480a88d4cb5e3d2de386cfea8 100644 --- a/matlab/get_error_message.m +++ b/matlab/get_error_message.m @@ -196,6 +196,12 @@ switch info(1) message = 'Cycle reduction terminated with NaN/Inf.'; case 403 message = 'Cycle reduction converged to a solution that does not solve the matrix equation.'; + case 411 + message = 'Logarithmic reduction reached the iteration limit. Try increasing maxit.'; + case 412 + message = 'Logarithmic reduction terminated with NaN/Inf.'; + case 413 + message = 'Logarithmic reduction converged to a solution that does not solve the matrix equation.'; otherwise message = 'This case shouldn''t happen. Contact the authors of Dynare'; end \ No newline at end of file