Cosmetic changes.

time-shift
Stéphane Adjemian (Charybdis) 2013-10-03 11:06:07 +02:00
parent 62cad6ff44
commit 49989504ea
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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;