Plotting a 3-axis pareto front
조회 수: 19 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!