How to plot GA best value over Generations?

1 回表示 (過去 30 日間)
Felix Rist
Felix Rist 2021 年 2 月 24 日
回答済み: Pratyush Roy 2021 年 3 月 31 日
Hello everybody,
If I plot the ga with 'gaplotbestf', I get the ' best penalty value' and 'mean penalty value' in one chart. What does the 'mean penalty value' stand for?
Is it possible to plot just the 'best penalty value'?
options = optimoptions('ga','PlotFcn','gaplotbestf','MaxGenerations',100);
[x,fval,exitflag,output,population,scores] = ga(ObjectiveFunction,nvars,[],[],[],[],LB,UB, ...
simple_constraint,IntCon,options);
Thank you very much in advance!

回答 (1 件)

Pratyush Roy
Pratyush Roy 2021 年 3 月 31 日
Hi Felix,
You can refer to this answer which tries to address a similar problem.
Hope this helps!

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by