diff --git a/doc/dynare.texi b/doc/dynare.texi index d2e3bfcad..06d7c3904 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -4407,7 +4407,7 @@ Specifies the optimizer for the mode computation: @item 0 The mode isn't computed. When @code{mode_file} option is specified, the -mode is simply read from that file. +mode is simply read from that file. When @code{mode_file} option is not specified, Dynare reports the value of the log posterior (log likelihood) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index cbefcd8a1..c2cfc8dbf 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -241,7 +241,7 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation elseif ~exist('OCTAVE_VERSION') && ~user_has_matlab_license('optimization_toolbox') error('Option mode_compute=3 requires the Optimization Toolbox') end - + % Set default optimization options for fminunc. optim_options = optimset('display','iter','MaxFunEvals',100000,'TolFun',1e-8,'TolX',1e-6); if isfield(options_,'optim_opt') eval(['optim_options = optimset(optim_options,' options_.optim_opt ');']); @@ -256,7 +256,6 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation func = @(x) objective_function(x, dataset_,options_,M_,estim_params_,bayestopt_,oo_); [xparam1,fval,exitflag] = fminunc(func,xparam1,optim_options); end - case 4 H0 = 1e-4*eye(nx); crit = 1e-7;