Difference between revisions of "Matching Entrepreneurs to VCs"

From edegan.com
Jump to navigation Jump to search
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{McNair Projects
+
{{Project
 +
|Has project output=
 +
|Has sponsor=McNair Center
 
|Has title=Matching Entrepreneurs to VCs
 
|Has title=Matching Entrepreneurs to VCs
|Has owner=Christy Warden,
+
|Has owner=Christy Warden, Ed Egan,
 
|Has start date=2017 04
 
|Has start date=2017 04
|Has keywords=Tool,
+
|Has keywords=Tool
 
|Has project status=Active
 
|Has project status=Active
 
}}
 
}}
'''Notes 04/03'''
+
=Notes 04/03=
  
 
Found problem with opening MATLAB and possible solution https://www.mathworks.com/matlabcentral/answers/96260-why-do-i-receive-the-error-undefined-function-or-variable-usejava-when-trying-to-start-matlab-6 but did not have time to try it.  
 
Found problem with opening MATLAB and possible solution https://www.mathworks.com/matlabcentral/answers/96260-why-do-i-receive-the-error-undefined-function-or-variable-usejava-when-trying-to-start-matlab-6 but did not have time to try it.  
Line 13: Line 15:
  
  
'''Note 04/05'''
+
=Note 04/05=
  
 
Got Matlab working by changing the privileges above. I had to also give everyone the right to modify pathdef before Matlab accepted it. When opening Matlab, there are a bunch of files that we don't have permission to run because they are in Amir's user folder but they do not seem important to the Entrep code so I am ignoring this for now.  
 
Got Matlab working by changing the privileges above. I had to also give everyone the right to modify pathdef before Matlab accepted it. When opening Matlab, there are a bunch of files that we don't have permission to run because they are in Amir's user folder but they do not seem important to the Entrep code so I am ignoring this for now.  
Line 24: Line 26:
  
  
'''Note 04/12'''
+
=Note 04/12=
  
 
I went through to fix the permission denied error that displays at the beginning of every time one opens Matlab. First, I used admin privildeges to let myself into Amir's account, then copy and pasted all the folders that he had added to the pathdef.m file. Then I copied them into E:/McNair/Software/Scripts/MatlabFolders. Then, I took myself off the permissions for Amir's folders. Next, I changed all of the path definitions that had lead to Amir's folder to start with this new path. Now, the permission denied error does not show up.  
 
I went through to fix the permission denied error that displays at the beginning of every time one opens Matlab. First, I used admin privildeges to let myself into Amir's account, then copy and pasted all the folders that he had added to the pathdef.m file. Then I copied them into E:/McNair/Software/Scripts/MatlabFolders. Then, I took myself off the permissions for Amir's folders. Next, I changed all of the path definitions that had lead to Amir's folder to start with this new path. Now, the permission denied error does not show up.  
Line 30: Line 32:
  
  
'''Notes 04/17'''
+
=Notes 04/17=
  
 
Running code on all potential variable paths and saving error code.  
 
Running code on all potential variable paths and saving error code.  
Line 62: Line 64:
 
Error in master (line 564)
 
Error in master (line 564)
 
gmm_2stage_estimation;
 
gmm_2stage_estimation;
 +
 +
'''Run: monte-compare-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 564)
 +
 +
gmm_2stage_estimation;
 +
 +
'''Run: monte-compare-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 564)
 +
gmm_2stage_estimation;
 +
 +
'''Run: monte-MLE-ga'''
 +
 +
Error using save
 +
 +
Variable 'obj_hess' not found.
 +
 +
Error in master (line 594)
 +
 +
save(['type_', num2str(error_type), '_monte_mktsize_', num2str(mktsize), '_K_',
 +
 +
num2str(K), '_S_', num2str(S), '_rep_', num2str(montenn)], ...
 +
 +
'''Run: monte-MLE-fminunc'''
 +
 +
Error using save
 +
 +
Variable 'obj_hess' not found.
 +
 +
Error in master (line 594)
 +
 +
save(['type_', num2str(error_type), '_monte_mktsize_', num2str(mktsize), '_K_',
 +
 +
num2str(K), '_S_', num2str(S), '_rep_', num2str(montenn)], ...
 +
 +
'''Run: monte-MLE-patternsearch'''
 +
 +
Error using save
 +
 +
Variable 'obj_hess' not found.
 +
 +
Error in master (line 594)
 +
 +
save(['type_', num2str(error_type), '_monte_mktsize_', num2str(mktsize), '_K_',
 +
 +
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>

Latest revision as of 12:34, 21 September 2020


Project
Matching Entrepreneurs to VCs
Project logo 02.png
Project Information
Has title Matching Entrepreneurs to VCs
Has owner Christy Warden, Ed Egan
Has start date 2017 04
Has deadline date
Has keywords Tool
Has project status Active
Has sponsor McNair Center
Copyright © 2019 edegan.com. All Rights Reserved.

Notes 04/03

Found problem with opening MATLAB and possible solution https://www.mathworks.com/matlabcentral/answers/96260-why-do-i-receive-the-error-undefined-function-or-variable-usejava-when-trying-to-start-matlab-6 but did not have time to try it.

In order to open pathdef.m, I used my admin privileges to change permissions so that everyone can read and execute this file.


Note 04/05

Got Matlab working by changing the privileges above. I had to also give everyone the right to modify pathdef before Matlab accepted it. When opening Matlab, there are a bunch of files that we don't have permission to run because they are in Amir's user folder but they do not seem important to the Entrep code so I am ignoring this for now.

I had issues running the code because the various paths and m folder references in the code do not match our own path variable, so I took an easy route and copied all of the provided files into one big folder called Adjusted Code in the same folder as Original Code. Now, I can actually run the files but they take forever.

I planned on stopping the code at about 30 minutes of runtime, but right then, something mysteriously printed so I decided to let it keep going. Since I don't totally understand what this code is doing, I'll let it run until I come back on Friday and hope I get some output that provides insight into what is going on.

In the meantime, I downloaded Atom and set it up so that I can write julia code in Atom and run it in the terminal. I am reviewing Julia syntax concepts for when I finally start to code.


Note 04/12

I went through to fix the permission denied error that displays at the beginning of every time one opens Matlab. First, I used admin privildeges to let myself into Amir's account, then copy and pasted all the folders that he had added to the pathdef.m file. Then I copied them into E:/McNair/Software/Scripts/MatlabFolders. Then, I took myself off the permissions for Amir's folders. Next, I changed all of the path definitions that had lead to Amir's folder to start with this new path. Now, the permission denied error does not show up. Matlab Usage Julia Usage


Notes 04/17

Running code on all potential variable paths and saving error code.

Run: monte-compare-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 564) gmm_2stage_estimation;

Run: monte-compare-fminunc

Error using / Matrix dimensions must agree.

Error in gmm_2stage_estimation (line 54) trialx = trialx/m_fminunc;

Error in master (line 564) gmm_2stage_estimation;

Run: monte-compare-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 564)

gmm_2stage_estimation;

Run: monte-compare-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 564) gmm_2stage_estimation;

Run: monte-MLE-ga

Error using save

Variable 'obj_hess' not found.

Error in master (line 594)

save(['type_', num2str(error_type), '_monte_mktsize_', num2str(mktsize), '_K_',

num2str(K), '_S_', num2str(S), '_rep_', num2str(montenn)], ...

Run: monte-MLE-fminunc

Error using save

Variable 'obj_hess' not found.

Error in master (line 594)

save(['type_', num2str(error_type), '_monte_mktsize_', num2str(mktsize), '_K_',

num2str(K), '_S_', num2str(S), '_rep_', num2str(montenn)], ...

Run: monte-MLE-patternsearch

Error using save

Variable 'obj_hess' not found.

Error in master (line 594)

save(['type_', num2str(error_type), '_monte_mktsize_', num2str(mktsize), '_K_',

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. 
When it is multiplied by mm-M0 (which always happens to be 0), it returns an empty vector
This is why the error suggests the fitness function must return a scalar value
When I assign W =6 for example, the program runs just fine.
I need to figure out what W does and how it is assigned in order to fix this issue.