Borrar filtros
Borrar filtros

how to access population matrix generated by genetic algo??..

1 visualización (últimos 30 días)
sani ars
sani ars el 23 de Jul. de 2012
can someone plz tell how can I have access on population matrix generated by Genetic algorithm??
I am working in MATLAB 2012a
and using function ga();
ALL population options have been set by gaoptimset();
but now there is need to access the initial population matrix as I have to use it in some other .m file
How can I do that??..

Respuestas (1)

Hector
Hector el 30 de Oct. de 2012
You have to define this:
options = gaoptimset ('PopulationType','custom','PopInitRange',[1;Range]);
Them you have to create the initial population by modeling your problem. 'custom' can be a .m file.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by