Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Firas Al-Kharabsheh
Firas Al-Kharabsheh el 16 de Abr. de 2016
Comentada: John D'Errico el 16 de Abr. de 2016
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 comentario
John D'Errico
John D'Errico el 16 de Abr. de 2016
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by