How to draw pareto front of my given code
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Please help me to find pareto front of given objective functions. I am beginner in matlab so please give little explanation. If my question is not clear please let me know I will more explain. thanks
function [f]=task1(x)
clc
i=1;
pop_size=100;
V=13;
y=randi([0 1],pop_size,V);
y(:,2)=~y(:,1);
y(:,3)=~y(:,4);
y(:,5)=~y(:,6);
y(:,12)=~y(:,13);
while i:pop_size
x=y(i,:);
f(1)=15*x(1)+20*x(2)+30*x(3)+25*x(4)+40*x(5)+35*x(6)+35*x(7)+50*x(8)+20*x(9)+23*x(10)+30*x(11)+45*x(12)+50*x(13);
y(i,V+1)=f(1);
f(2)=5*x(1)+3*x(2)+4*x(3)+5*x(4)+4*x(5)+6*x(6)+5*x(7)+8*x(8)+5*x(9)+3*x(10)+2*x(11)+7*x(12)+6*x(13);
y(i,V+2)=f(2);
f(3)=6*x(1)+4*x(2)+2*x(3)+2*x(4)+3*x(5)+4*x(6)+4*x(7)+4*x(8)+2*x(9)+3*x(10)+3*x(11)+4*x(12)+3*x(13);
y(i,V+3)=f(3);
f(4)=2048*x(1)+1024*x(2)+256*x(3)+512*x(4)+256*x(5)+512*x(6)+1024*x(7)+1024*x(8)+512*x(9)+512*x(10)+256*x(11)+1024*x(12)+512*x(13);
y(i,V+4)=f(4);
a= [y(i,[14 15 16 17])];
i=i+1;
end
end
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Multiobjective Optimization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!