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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by