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
2011년 7월 19일
Perhaps you could show a small example?
답변 (1개)
Sean de Wolski
2011년 7월 19일
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?
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!