Fix bug in dynare_identification.m that led to missing output and crashes if the initial parameterization was invalid

If the initial parameters did not solve, the code for displaying results and saving was not reached. The also led to later crashes with saving as the -append option was used and no file existed. If no valid draw can be found, the function exits in any case, so no additional check is needed.
time-shift
Johannes Pfeifer 2014-07-23 12:10:00 +02:00
parent 0efcef8f20
commit 4c6aad3d2d
1 changed files with 1 additions and 2 deletions

View File

@ -328,7 +328,7 @@ if iload <=0,
else
parameters = 'Random_prior_params';
end
else
end
idehess_point.params=params;
% siH = idemodel_point.siH;
% siJ = idemoments_point.siJ;
@ -342,7 +342,6 @@ 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,
skipline()