setting-up input variable in genetic algorithm
古いコメントを表示
How can I set up an input variable in my ga that varies from 1 to 2 with steps of 0,1?
The results of my ga has too many significant digits after comma ( precisely 4).
Thank you
1 件のコメント
Walter Roberson
2021 年 2 月 17 日
If you are seeing exactly 4 significant digits, chances are that you have
format short
in effect, and that you would see more digits if you used
format long g
採用された回答
その他の回答 (1 件)
Shiva Kalyan Diwakaruni
2021 年 2 月 10 日
0 投票
Hi,
You can try using optimoptions for genetic algorithm where you can many options for passing extra parameters either in form of variables or a user defined function.
please refer the below link for more information on optimoptions for ga function
below is the link to see how we can pass extra paramters for customization of ga function
hope it helps,
thanks
カテゴリ
ヘルプ センター および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!