问题
I'm trying to find the non-dominated solutions of two vectors of random numbers, so that I can plot the Pareto frontier. Here's my code, but I'm currently very stuck so any help with where to go from here would be greatly appreciated :)
x=rand(113,1)
y=rand(113,1)
x=sort(x, 'descend')
v=[x,y]
for i=1:113
m=max(v(i,2))
if v(i,2) > m
n=max(v(i,2))
end
end
来源:https://stackoverflow.com/questions/44036067/pareto-front-algorithm