Fix mode_compute=12 and filter out mode_compute=11

time-shift
Johannes Pfeifer 2021-01-10 17:30:35 +01:00
parent c397828eb7
commit fbb1272164
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);