Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
sani ars
sani ars le 23 Juil 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??..

Réponses (1)

Hector
Hector le 30 Oct 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.

Community Treasure Hunt

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

Start Hunting!

Translated by