gaplotpareto for 3 objective functions

2 visualizaciones (últimos 30 días)
Ehsan
Ehsan el 11 de Feb. de 2013
Comentada: Lucas Bruck el 15 de Mayo de 2022
is it possible to generate pareto front for 3 objective functions using GAPLOTPARETO in MATLAB? what about drawing first and third objective function pareto front instead of the 2 first objectives by using GAPLOTPARETO?
  1 comentario
Max
Max el 13 de Feb. de 2013
I'm asking myself that same question. When looking at gaplotpareto, it's obvious, that the function is capable of producing 3D plots when treating an optimization problem of equivalent order, since the 'plot3' function and a variable called 'plot3d' appear inside the code.
However, the first comment line of the function says "GAPLOTPARETO Plots a Pareto front for first two objectives."
Maybe someone else can clarify this. Thanks!

Iniciar sesión para comentar.

Respuestas (1)

Alan Weiss
Alan Weiss el 13 de Feb. de 2013
Editada: Alan Weiss el 13 de Feb. de 2013
Without guaranteeing anything, I think you can plot any two objectives using the syntax
objectivesToPlot = [1,3]; % or whatever two objectives you want
plotfn = @(options,state,flag)gaplotpareto(options,state,flag,objectivesToPlot);
options = gaoptimset('PlotFcns',plotfn);
For three objective functions in a 3-D plot, try setting
objectivesToPlot = [2 4 7]; % or whatever you want
Please let me know if it works for you. If so, maybe I should document it.
Alan Weiss
MATLAB mathematical toolbox documentation
  6 comentarios
Alan Weiss
Alan Weiss el 8 de Nov. de 2021
Editada: Alan Weiss el 8 de Nov. de 2021
I think that the topic Plot 3-D Pareto Front addresses this question.
Alan Weiss
MATLAB mathematical toolbox documentation
Lucas Bruck
Lucas Bruck el 15 de Mayo de 2022
In my case, the suggestion needed a minor fix:
options = gaoptimset(options,'PlotFcns',plotfn);

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by