selection function for ordered chromosomes
Mostra commenti meno recenti
Hi all, how should I implement a selection function for genetic algorithms, in which an order is to be mantained for the chromosomes? Thanks..;)
1 Commento
Sean de Wolski
il 19 Lug 2011
Perhaps you could show a small example?
Risposte (1)
Sean de Wolski
il 19 Lug 2011
x = 1:10;
y = linspace(0,30,10);
keepidx = [1 7 3 2];
keepidx = sort(keepidx);
x = x(keepidx);
y = y(keepidx);
Do you just mean sort the indices for the extraction?
Categorie
Scopri di più su Genetic Algorithm in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!