Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
The code for Generating the initial population is This:
top_x = pop(b(1:options.topSize),:)
. This is done in a for loop. See Here for the entire code
M = 50; % population size n = 2; pop = -50 + 100.*rand(M,n);
figure; scatter(pop(:,1), pop(:,2), 'x'); and figure; scatter(top_x(:,1),top_x(:,2), 'x');
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.