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

1 view (last 30 days)
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??..

Answers (1)

Hector
Hector on 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!