上面三张图是三个方案在各个标准上的评分,整个体系的评分如下图:
三个标准权重:C=[0.230,0.648,0.122]
A1的评分:A1=[0.105,0.592,0.149]
A2的评分:A1=[0.258,0.333,0.066]
A3的评分:A1=[0.637,0.075,0.785]
计算各个方案总评分并对方案进行排序:A1、A3、A2
方案A1:A1*C=[0.230,0.648,0.122]*[0.105,0.592,0.149]=0.426
方案A2:A2*C=[0.230,0.648,0.122]*[0.258,0.333,0.066]=0.283
方案A3:A3*C=[0.230,0.648,0.122]*[0.637,0.075,0.785]=0.291
import numpy as np
import pandas as pd
C=np.array([0.230,0.648,0.122])
A1=np.array([0.105,0.592,0.149]).T
A2=np.array([0.258,0.333,0.066]).T
A3=np.array([0.637,0.075,0.785]).T
print(f'方案A1 得分:%.3f' % C.dot(A1)) #矩阵相乘
print(f'方案A2 得分:%.3f' % C.dot(A2))
print(f'方案A3 得分:%.3f' % C.dot(A3))