Revision b01a6e3a2c7da193f38631dfe925c65229494d74 authored by criver9 on 13 May 2021, 03:50:36 UTC, committed by GitHub on 13 May 2021, 03:50:36 UTC
1 parent 505c7af
Raw File
findParetoFront.m
function idx = findParetoFront(X)

    d = length(X(1,:));
    N = length(X(:,1));
    
    idx = false(N,1);
    temp = false(N,d);
    for i=1:N
        
        temp(:) = false;
        for j=1:d
            temp(:,j) = X(i,j) < X(:,j);
        end
                
        if max(sum(temp,2)) < d
            idx(i) = true;
        end
        
    end
back to top