Changes

Jump to navigation Jump to search
no edit summary
{{Project|Has project output=|Has sponsor=McNair ProjectsCenter
|Has title=Matching Entrepreneurs to VCs
|Has owner=Christy Warden, Ed Egan,
|Has start date=2017 04
|Has keywords=Tool,
|Has project status=Active
}}
num2str(K), '_S_', num2str(S), '_rep_', num2str(montenn)], ...
 
'''Run: monte-MLE-cmaes'''
 
Index exceeds matrix dimensions.
 
Error in master (line 558)
 
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'''
 
Error using /
 
Matrix dimensions must agree.
 
Error in gmm_2stage_estimation (line 54)
 
trialx = trialx/m_fminunc;
 
Error in master (line 517)
 
gmm_2stage_estimation;
 
'''Run: monte-MSM-patternsearch'''
 
Error using poptimfcnchk (line 27)
 
Your objective function must return a scalar value.
 
Error in patternsearch (line 348)
 
[Iterate,OUTPUT.funccount] = poptimfcnchk(FUN,nonlcon,initialX,Iterate, ...
 
Error in gmm_2stage_estimation (line 96)
 
[x_est_1st(nn, :), trialfval(nn)] = patternsearch(@msmf_corr_coeff, trialx(nn, :),
 
[], [], [], [], LB, UB, @nonlinearcons_msm, options_ps);
 
Error in master (line 517)
 
gmm_2stage_estimation;
 
'''Run: monte-MSM-cmaes'''
 
In an assignment A(:) = B, the number of elements in A and B must be the same.
 
Error in cmaes (line 642)
 
fitness.hist(1)=feval(fitfun, xmean, varargin{:});
 
Error in gmm_2stage_estimation (line 64)
 
x_1st =cmaes('msmf_corr_coeff', trialx(end, :), 0.5, opts)';
 
Error in master (line 517)
 
gmm_2stage_estimation;
 
==Notes 6/28/17==
The following is for '''MonteData -> MSM -> Genetic Algorithm'''
Figured out that the value "W" in msmf_corr_coeff.m is an empty vector. <br>
When it is multiplied by mm-M0 (which always happens to be 0), it returns an empty vector <br>
This is why the error suggests the fitness function must return a scalar value <br>
When I assign W =6 for example, the program runs just fine. <br>
I need to figure out what W does and how it is assigned in order to fix this issue. <br>

Navigation menu