问题二 穷举法
clc, clear, close all
a=readmatrix('数据.txt');
b=[0,0,0,0,0,0,0];
maxi=0;
id=[];
w=[0.15218741,0.083072708,0.102457361,0.408327392,0.09413388,...
    0.016964106,0.142857143];
for i=1:18
    for j=i+1:19
        for k=j+1:20
            for d=1:7
                b(d)=max([a(i,d),a(j,d),a(k,d)]);
            end
            if maxi<sum(b.*w,2)
                maxi=sum(b.*w,2);
                id=[i,j,k];
            end
        end
    end
end
id
maxi