How to plot GA best value over Generations?

9 visualizaciones (últimos 30 días)
Felix Rist
Felix Rist el 24 de Feb. de 2021
Respondida: Pratyush Roy el 31 de Mzo. de 2021
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!

Respuestas (1)

Pratyush Roy
Pratyush Roy el 31 de Mzo. de 2021
Hi Felix,
You can refer to this answer which tries to address a similar problem.
Hope this helps!

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by