Plotting a 3-axis pareto front

3 次查看(过去 30 天)
Brendan Chou
Brendan Chou 2018-5-9
I am doing PSO for 3 objective functions with the code:
function PlotCosts(pop,rep)
pop_costs=[pop.Cost];
sc=size(pop_costs,2);
pop_costs=reshape(pop_costs,3,sc/3);
plot(pop_costs(1,:),pop_costs(2,:),'ko');
hold on;
rep_costs=[rep.Cost];
sc=size(rep_costs,2);
rep_costs=reshape(rep_costs,3,sc/3);
plot(rep_costs(1,:),rep_costs(2,:),'r*');
xlabel('Energetic efficiency (%)');
ylabel('Life cycle cost (RM)');
grid on;
hold off;
end;
May I know how should i modify the above code to plot a 3-d pareto front?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multiobjective Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by