Feeds
提问
genetic algorithm fintess function
Hi, I need help with figuring out how to start with my genetic algorithm code for my problem. Especially figuring out the firne...
7 years 前 | 1 个回答 | 0
1
个回答提问
ga solver or gamult solver
Hi i typed in "optimtool" into the command window and a prompt came up. However when i look through the solver options there i...
7 years 前 | 1 个回答 | 0
1
个回答提问
Does anyone know what these lines of code are doing? Thanks
ma=RandChooseN(probs,M); %function probs with the argument m pa=RandChooseN(probs,M); xp=ceil(rand(1,M)*(Nt-1...
7 years 前 | 1 个回答 | 0
1
个回答提问
I get an error "Error : undefined function or variable 'randcoosen' " from line 1 and I dont fully understand what the lines 3 to 10 are doing? Thanks
ma=RandChooseN(probs,M); --line1 pa=RandChooseN(probs,M); --line2 xp=ceil(rand(1,M)*(Nt-1)); --line3 pop(1:2:popsize,:...
7 years 前 | 2 个回答 | 0
2
个回答提问
In the code below, what does ind do?
cost=feval(ff,pop); %evaluate function [cost,ind]=sort(cost,'descend'); %sorts in descending order pop=pop(ind,:);
7 years 前 | 1 个回答 | 0

