Partial information:
- fix various bugs - do not fallback on full information in case of error, this is confusingtime-shift
parent
f6f96be0a0
commit
a153f81156
|
@ -90,7 +90,7 @@ try
|
||||||
end
|
end
|
||||||
warning('on','MATLAB:singularMatrix');
|
warning('on','MATLAB:singularMatrix');
|
||||||
warning('on','MATLAB:nearlySingularMatrix');
|
warning('on','MATLAB:nearlySingularMatrix');
|
||||||
if (isinf(UAVinv) || isnan(UAVinv))
|
if (any(any(isinf(UAVinv))) || any(any(isnan(UAVinv))))
|
||||||
if(options_.useACES==1)
|
if(options_.useACES==1)
|
||||||
disp('ERROR! saving PI_gensys_data_dump');
|
disp('ERROR! saving PI_gensys_data_dump');
|
||||||
save PI_gensys_data_dump
|
save PI_gensys_data_dump
|
||||||
|
@ -102,7 +102,9 @@ try
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
catch
|
catch
|
||||||
[errmsg, errcode]=lasterror;
|
lerror = lasterror;
|
||||||
|
errmsg = lerror.message;
|
||||||
|
disp(errmsg)
|
||||||
warning(['error callig PI_gensys_singularC: ' errmsg ],'errcode');
|
warning(['error callig PI_gensys_singularC: ' errmsg ],'errcode');
|
||||||
error('errcode',['error callig PI_gensys_singularC: ' errmsg ]);
|
error('errcode',['error callig PI_gensys_singularC: ' errmsg ]);
|
||||||
end
|
end
|
||||||
|
|
|
@ -353,7 +353,7 @@ end % end if useAIM and...
|
||||||
end
|
end
|
||||||
|
|
||||||
% reuse some of the bypassed code and tests that may be needed
|
% reuse some of the bypassed code and tests that may be needed
|
||||||
if eu ~=[1; 1] && options_.ACES_solver==0
|
if (eu(1) ~= 1 || eu(2) ~= 1) && options_.ACES_solver==0
|
||||||
info(1) = abs(eu(1)+eu(2));
|
info(1) = abs(eu(1)+eu(2));
|
||||||
info(2) = 1.0e+8;
|
info(2) = 1.0e+8;
|
||||||
% return
|
% return
|
||||||
|
@ -448,9 +448,8 @@ end % end if useAIM and...
|
||||||
disp('Problem with using Part Info ACES solver:');
|
disp('Problem with using Part Info ACES solver:');
|
||||||
error(lerror.message);
|
error(lerror.message);
|
||||||
else
|
else
|
||||||
disp('Problem with using Part Info solver - Using Dynare solver instead');
|
disp('Problem with using Part Info solver');
|
||||||
disp (lerror.message);
|
error(lerror.message);
|
||||||
options_.partial_information = 0; % and then try mjdgges instead
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue