Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
sani ars
sani ars am 23 Jul. 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??..

Antworten (1)

Hector
Hector am 30 Okt. 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