selection function for ordered chromosomes

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 件のコメント

Sean de Wolski
Sean de Wolski 2011 年 7 月 19 日
Perhaps you could show a small example?

サインインしてコメントする。

回答 (1 件)

Sean de Wolski
Sean de Wolski 2011 年 7 月 19 日

0 投票

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?

カテゴリ

質問済み:

2011 年 7 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by