Skip to content
Snippets Groups Projects
Commit a7ba2b51 authored by Marco Ratto's avatar Marco Ratto
Browse files

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

parent 9edce541
No related branches found
No related tags found
No related merge requests found
......@@ -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(' ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment