gaplotpareto for 3 objective functions

조회 수: 5 (최근 30일)
Ehsan
Ehsan 2013년 2월 11일
댓글: Lucas Bruck 2022년 5월 15일
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
Max
Max 2013년 2월 13일
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!

댓글을 달려면 로그인하십시오.

답변 (1개)

Alan Weiss
Alan Weiss 2013년 2월 13일
편집: Alan Weiss 2013년 2월 13일
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
Alan Weiss
Alan Weiss 2021년 11월 8일
편집: Alan Weiss 2021년 11월 8일
I think that the topic Plot 3-D Pareto Front addresses this question.
Alan Weiss
MATLAB mathematical toolbox documentation
Lucas Bruck
Lucas Bruck 2022년 5월 15일
In my case, the suggestion needed a minor fix:
options = gaoptimset(options,'PlotFcns',plotfn);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by