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 Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by