第2个回答 推荐于2021-02-02
for i=1:1:40
w0=w0+V3(i,h); end
w23=w23/w0;
for i=1:1:40
for j=1:1:40
B4(i,j)=A(i,4)/A(j,4); end end
[V4,D4]=eig(B4); y=40;
a=D4(1,1); h=1;
for i=1:1:8
for j=1:1:8
if a<D4(i,j) a=D4(i,j); h=j; end end end L24=a;
fprintf('L24=%d\n',L24); for i=1:1:40
w24(i,1)=V4(i,h); end w0=0;
for i=1:1:40
w0=w0+V4(i,h); end
w24=w24/w0;
for i=1:1:40
for j=1:1:40
B5(i,j)=A(i,5)/A(j,5); end end
[V5,D5]=eig(B5); y=40;
a=D5(1,1); h=1;
for i=1:1:8 for j=1:1:8
if a<D5(i,j) a=D5(i,j); h=j; end end end L25=a;
fprintf('L25=%d\n',L25); for i=1:1:40
w25(i,1)=V5(i,h); end w0=0;
for i=1:1:40
w0=w0+V5(i,h); end
w25=w25/w0;
for i=1:1:40
for j=1:1:40
B6(i,j)=A(i,6)/A(j,6); end end
[V6,D6]=eig(B6); y=40;
a=D6(1,1); h=1;
for i=1:1:8
for j=1:1:8
if a<D6(i,j) a=D6(i,j); h=j; end end end L26=a;
fprintf('L26=%d\n',L26); for i=1:1:40
w26(i,1)=V6(i,h); end w0=0;
for i=1:1:40
w0=w0+V6(i,h); end
w26=w26/w0;
for i=1:1:40
for j=1:1:40
B7(i,j)=A(i,7)/A(j,7); end end
[V7,D7]=eig(B7); y=40;
a=D7(1,1); h=1;
for i=1:1:8
for j=1:1:8
if a<D7(i,j) a=D7(i,j); h=j; end end end L27=a;
fprintf('L27=%d\n',L27); for i=1:1:40
w27(i,1)=V7(i,h); end w0=0;
for i=1:1:40
w0=w0+V7(i,h); end
w27=w27/w0;
for i=1:1:40
for j=1:1:40
B8(i,j)=A(i,8)/A(j,8); end end
[V8,D8]=eig(B8); y=40;
a=D8(1,1); h=1;
for i=1:1:8
for j=1:1:8
if a<D8(i,j) a=D8(i,j); h=j;
end end end L28=a;
fprintf('L28=%d\n',L28); for i=1:1:40
w28(i,1)=V8(i,h); end w0=0;
for i=1:1:40
w0=w0+V8(i,h); end
w28=w28/w0;
W2=[w21,w22,w23,w24,w25,w26,w27,w28];
W=W2*w1;
相关数据:
L1=8.288276e+000;CR1=2.920726e-002;L21=4.000000e+001;L22=4.000000e+001;L23=40;L24=4.000000e+001;L25=4.000000e+001;L26=4.000000e+001; L28=40 L27=4.000000e+001
w1 =(0.3313, 0.2307,0.1572,0.1059,0.0709,0.0477,0.0327,0.0236)T W2 =(
0.0418 0.0306 0.0339 0.0208 0.0128 0.0224 0.0277 0.0096
0.0327 0.0232 0.0339 0.0312 0.0256 0.0299 0.0261 0.0481
0.0327 0.0246 0.0339 0.0208 0.0128 0.0299 0.0273 0.0192
0.0327 0.0246 0.0339 0.0208 0.0128 0.0149 0.0257 0.0096
0.0322 0.0278 0.0339 0.0208 0.0128 0.0299 0.0263 0.0288
0.0297 0.0287 0.0339 0.0208 0.0128 0.0149 0.0270 0.0096
0.0267 0.0300 0.0339 0.0208 0.0256 0.0149 0.0276 0.0096
0.0267 0.0236 0.0339 0.0313 0.0385 0.0299 0.0239 0.0385
0.0267 0.0292 0.0339 0.0208 0.0128 0.0149 0.0279 0.0096
0.0267 0.0273 0.0339 0.0313 0.0256 0.0224 0.0267 0.0481
0.0267 0.0276 0.0339 0.0208 0.0128 0.0224 0.0262 0.0096
0.0267 0.0257 0.0339 0.0313 0.0128 0.0299 0.0254 0.0288
0.0267 0.0261 0.0339 0.0208 0.0128 0.0149 0.0249 0.0096
0.0267 0.0260 0.0339 0.0208 0.0256 0.0224 0.0265 0.0096
0.0262 0.0225 0.0169 0.0313 0.0385 0.0224 0.0230 0.0577
0.0237 0.0247 0.0169 0.0313 0.0385 0.0299 0.0255 0.0096
0.0237 0.0260 0.0169 0.0313 0.0256 0.0224 0.0247 0.0192
0.0237 0.0259 0.0169 0.0313 0.0256 0.0224 0.0269 0.0673
0.0237 0.0292 0.0169 0.0104 0.0128 0.0075 0.0268 0.0096
0.0237 0.0272 0.0169 0.0208 0.0256 0.0149 0.0262 0.0096
0.0237 0.0265 0.0169 0.0313 0.0128 0.0299 0.0250 0.0288
0.0237 0.0260 0.0339 0.0208 0.0256 0.0299 0.0260 0.0385
0.0237 0.0253 0.0169 0.0208 0.0128 0.0224 0.0259 0.0096
0.0237 0.0245 0.0169 0.0208 0.0385 0.0224 0.0242 0.0096
0.0237 0.0225 0.0339 0.0313 0.0385 0.0299 0.0248 0.0288
0.0237 0.0251 0.0169 0.0208 0.0256 0.0224 0.0255 0.0096
0.0237 0.0225 0.0169 0.0208 0.0385 0.0299 0.0222 0.0192
0.0237 0.0232 0.0169 0.0208 0.0128 0.0224 0.0241 0.0096
0.0237 0.0225 0.0169 0.0313 0.0385 0.0448 0.0229 0.0577
0.0237 0.0214 0.0169 0.0208 0.0128 0.0224 0.0226 0.0192
0.0207 0.0263 0.0339 0.0208 0.0385 0.0149 0.0252 0.0096
0.0207 0.0236 0.0339 0.0313 0.0385 0.0299 0.0239 0.0288
0.0207 0.0228 0.0339 0.0313 0.0128 0.0448 0.0230 0.0577
0.0207 0.0261 0.0169 0.0313 0.0128 0.0299 0.0259 0.0288
0.0207 0.0225 0.0169 0.0313 0.0385 0.0373 0.0235 0.0385
0.0207 0.0225 0.0169 0.0313 0.0385 0.0373 0.0223 0.0673
0.0207 0.0225 0.0169 0.0208 0.0256 0.0224 0.0223 0.0096
0.0207 0.0213 0.0169 0.0208 0.0385 0.0224 0.0216 0.0096
0.0202 0.0213 0.0169 0.0208 0.0385 0.0224 0.0233 0.0096
0.0176 0.0210 0.0169 0.0313 0.0385 0.0299 0.0235 0.0481)
W =(0.0316,0.0301,0.0277,0.0267,0.0285,0.0267,0.0270,0.0288,0.0259 0.0287,0.0258,0.0273,0.0251,0.0264,0.0257,0.0247,0.0240,0.0252 0.0207,0.0226,0.0238,0.0264,0.0216,0.0232,0.0273,0.0224,0.0232 0.0211,0.0260,0.0208,0.0249,0.0265,0.0259,0.0227,0.0242,0.0248 0.0207,0.0214,0.0213,0.0227)T本回答被提问者采纳