Trap error when the model does not solve for point estimation (prior mean-mode posterior mean-mode)

time-shift
Marco Ratto 2012-08-24 17:09:13 +02:00
parent 9edce5414f
commit a7ba2b51e7
1 changed files with 12 additions and 1 deletions

View File

@ -258,8 +258,18 @@ if iload <=0,
parameters = 'Current_params';
disp('Testing current parameter values')
end
[idehess_point, idemoments_point, idemodel_point, idelre_point, derivatives_info_point] = ...
[idehess_point, idemoments_point, idemodel_point, idelre_point, derivatives_info_point, info] = ...
identification_analysis(params,indx,indexo,options_ident,dataset_, prior_exist, name_tex,1);
if info(1)~=0,
disp(' ')
disp('----------- ')
disp('Parameter error:')
disp(['The model does not solve for ', parameters, ' with error code info = ', int2str(info(1))]),
disp('Identification stopped ')
disp('----------- ')
disp(' ')
return,
else
idehess_point.params=params;
% siH = idemodel_point.siH;
% siJ = idemoments_point.siJ;
@ -272,6 +282,7 @@ if iload <=0,
if ~options_.nograph,
plot_identification(params,idemoments_point,idehess_point,idemodel_point,idelre_point,advanced,parameters,name,IdentifDirectoryName);
end
end
if SampleSize > 1,
disp(' ')