Error in ga (line 363)
[x,fval,exitFlag,output,population,scores] = gacon(FitnessFcn,nvars, ...
Error in gmm_2stage_estimation (line 80)
[x_1st, trialfval] = ga(@msmf_corr_coeff, K+S+3*is_flexible, [], [], [], [], LB, UB, @nonlinearcons_msm, options_ga);
Error in master (line 564)
gmm_2stage_estimation;
Run: monte-compare-fminunc