x = x_est(min(mlefval)==mlefval, :);
'''Run: monte-MSM-ga'''
Error using makeState (line 56)
Your fitness function must return a scalar value.
Error in gacon (line 39)
state = makeState(GenomeLength,SubFitness,Iterate,subtype,options);
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 517)
gmm_2stage_estimation;
'''Run: monte-MSM-fminunc'''