can anybody verify this code example,

i have bi-ojective function and wish to sort non-dominated solution. This program is running but  again if any error or problem then Please help to correct the existing code or send any example please.

clc

clear

nPop=5;

for k=1:nPop;

pop(k).Cost(:,1)=(2*sin(rand));

pop(k).Cost(:,2)=(5*sin(rand));

end

for l=1:nPop

pop(l).Dominated=false;

end

for i=1:nPop-1

for j=i+1:nPop

x=pop(i).Cost;

y=pop(j).Cost;

if all(x

More Mahesh Kumar's questions See All
Similar questions and discussions