Pareto Front algorithm?

こ雲淡風輕ζ 提交于 2020-01-26 03:16:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!