how can i change Pareto front axis in genetic algorithm?

4 ビュー (過去 30 日間)
Gali Musa
Gali Musa 2017 年 8 月 20 日
編集済み: Gali Musa 2017 年 8 月 27 日
how can i change the axis in Pareto front plot in genetic algorithm? is there a way to plot the two objective functions on the y axis and indicate the optimal solution since there is an axis. Thank you

採用された回答

Elizabeth Reese
Elizabeth Reese 2017 年 8 月 23 日
I am not exactly sure how you would like to "indicate the optimal solution" using the Pareto front, but here are a few ways to visualize the information about a Pareto front. I am elaborating on the example found at the link below which uses two fitness functions of one bounded variable.
The two fitness functions are cos(x) and sin(x) for 0 <= x <= 2*pi. If we want to visualize the two functions on the y-axis, we can execute the following code. This will plot black lines at each x on the Pareto front.
>> xs = linspace(lb,ub,500)';
>> figure
>> plot(xs,fitnessfcn(xs))
>> xlabel('x');
>> hold on;
>> plot([x';x'],fitnessfcn(x)','k')
>> legend('sin(x)','cos(x)','Pareto front')
Another way to visualize the Pareto front is to plot the parametric curve of the two objective functions over the input variable. This will look like the following.
>> fEvals = fitnessfcn(xs);
>> fEvalsPareto = fitnessfcn(x);
>> figure
>> plot(fEvals(:,1),fEvals(:,2))
>> hold on
>> plot(fEvalsPareto(:,1),fEvalsPareto(:,2),'*')
>> xlabel('sin(x)')
>> ylabel('cos(x)')
>> legend('fitness function','Pareto front')
  4 件のコメント
Gali Musa
Gali Musa 2017 年 8 月 26 日
Thank you so much for the useful information.
Gali Musa
Gali Musa 2017 年 8 月 27 日
編集済み: Gali Musa 2017 年 8 月 27 日
how can i get an optimal solution from Pareto front graph. i noticed the Pareto front gives many solutions. Is it normal that i got a linear Pareto front rather than convex or non-convex front.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by