Bug fix. Added new exceptions (steady state with NaNs, M_.params with NaNs or complex numbers) in DsgeLikelihood.

time-shift
Stéphane Adjemian (Sedna) 2011-05-18 12:20:42 +02:00 committed by Stéphane Adjemian (Scylla)
parent 7076fe31e9
commit e8d40906d9
1 changed files with 2 additions and 2 deletions

View File

@ -133,11 +133,11 @@ M_.H = H;
%------------------------------------------------------------------------------
[T,R,SteadyState,info] = dynare_resolve('restrict');
if info(1) == 1 || info(1) == 2 || info(1) == 5
if info(1) == 1 || info(1) == 2 || info(1) == 5 || info(1) == 22 || info(1) == 24
fval = bayestopt_.penalty+1;
cost_flag = 0;
return
elseif info(1) == 3 || info(1) == 4 || info(1)==6 ||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 || info(1) == 23
fval = bayestopt_.penalty+info(2);
cost_flag = 0;
return