Merge branch 'cycle_reduction' into 'master'
Cycle reduction: account for new error codes See merge request Dynare/dynare!2088bgp-dev
commit
01f471ae8a
|
@ -216,7 +216,8 @@ end
|
|||
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) == 81 || info(1) == 84 || info(1) == 85 || info(1) == 86 || ...
|
||||
info(1) == 401 || info(1) == 402 || info(1) == 403 %cycle reduction
|
||||
%meaningful second entry of output that can be used
|
||||
fval = Inf;
|
||||
info(4) = info(2);
|
||||
|
|
|
@ -189,7 +189,13 @@ switch info(1)
|
|||
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.';
|
||||
message = 'Piecewise linear Kalman filter: There was a problem in obtaining the likelihood.';
|
||||
case 401
|
||||
message = 'Cycle reduction reached the iteration limit. Try increasing maxit.';
|
||||
case 402
|
||||
message = 'Cycle reduction terminated with NaN/Inf.';
|
||||
case 403
|
||||
message = 'Cycle 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
|
Loading…
Reference in New Issue