diff --git a/matlab/DsgeLikelihood.m b/matlab/DsgeLikelihood.m index d0a20c99b..50c4ab7e9 100644 --- a/matlab/DsgeLikelihood.m +++ b/matlab/DsgeLikelihood.m @@ -131,7 +131,7 @@ function [fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data fval = bayestopt_.penalty+1; cost_flag = 0; return - elseif info(1) == 3 || info(1) == 4 || info(1) == 19 || info(1) == 20 || info(1) == 21 + elseif info(1) == 3 || info(1) == 4 || info(1)==6 ||info(1) == 19 || info(1) == 20 || info(1) == 21 fval = bayestopt_.penalty+info(2); cost_flag = 0; return diff --git a/matlab/print_info.m b/matlab/print_info.m index 7edbb908e..f8dfb1e8f 100644 --- a/matlab/print_info.m +++ b/matlab/print_info.m @@ -44,6 +44,8 @@ function print_info(info,noprint) case 5 error(['Blanchard Kahn conditions are not satisfied:' ... ' indeterminacy due to rank failure']) + case 6 + error('The jacobian matrix evaluated at the steady state is complex') case 19 error('The steadystate file did not compute the steady state (inconsistent deep parameters).') case 20