Merge branch 'MoM' of git.dynare.org:JohannesPfeifer/dynare

time-shift
Sébastien Villemot 2021-01-13 15:59:05 +01:00
commit 6639cd8a41
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 4 additions and 1 deletions

View File

@ -788,7 +788,7 @@ for i = 1:length(optimizer_vec)
case 10
fprintf('\n %s=10): simpsa',str);
case 11
fprintf('\n %s=11): online_auxiliary_filter',str);
error('\nmethod_of_moments: online_auxiliary_filter (mode_compute=11) is only supported with likelihood-based estimation techniques');
case 12
fprintf('\n %s=12): particleswarm',str);
case 101

View File

@ -64,6 +64,9 @@ junk2 = [];
% 1. Get the structural parameters & define penalties
%--------------------------------------------------------------------------
% Ensure that xparam1 is a column vector; particleswarm.m requires this.
xparam1 = xparam1(:);
M_ = set_all_parameters(xparam1, estim_params_, M_);
[fval,info,exit_flag]=check_bounds_and_definiteness_estimation(xparam1, M_, estim_params_, Bounds);