How to display every parameter value at every iteration while using Genetic algorithm
8 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am using GA to solve for 6 parameters. I need to define constraints on this parameter like a>b, which I have done. However, I would like to define a stopping criteria for the fitness function. Not sure how to do that.
Most importantly, how can I look at the parameter values at every iteration of GA. I can use display or iter but it doesn't necessarily display the parameter values.
Thank you
2 件のコメント
John D'Errico
2017 年 4 月 12 日
You can't just dump them out of the objective function in the command window?
回答 (2 件)
Alan Weiss
2017 年 4 月 13 日
Use an Output Function to report whatever you like, and/or to stop the algorithm's iterations when you like.
Alan Weiss
MATLAB mathematical toolbox documentation
0 件のコメント
Vidhya Shree
2017 年 4 月 13 日
Also, the parameter values can be simply displayed using [x,fval,output, scores,population,best]=ga[@fitnessfunction,....]
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!