フィルターのクリア

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

1 回表示 (過去 30 日間)
sani ars
sani ars 2012 年 7 月 23 日
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??..

回答 (1 件)

Hector
Hector 2012 年 10 月 30 日
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.

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by