if i have fitness function how to generate the genetic algorithm ?

조회 수: 1 (최근 30일)
Firas Al-Kharabsheh
Firas Al-Kharabsheh 2016년 4월 16일
댓글: John D'Errico 2016년 4월 16일
how to make this code
[n,m]=size(A);
A1=randi([0 1],n,m);
S=(sum(sum(A ~= A1)))
to be a fitness function and then make the genetic algorithm to give the min value of this function
  댓글 수: 1
John D'Errico
John D'Errico 2016년 4월 16일
read the help for the genetic algorithm. First, you may need the proper toolbox. Or you need to write the code for a genetic algorithm. Or find one on the file exchange.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by