3.1 问题描述
设某多属性决策问题有 m m m个方案 Y i ( i = 1 , 2 , ⋯ , m ) Y_{i}\left(i=1,2,\cdots,m\right) Yi(i=1,2,⋯,m),组成方案集 Y = { Y 1 , Y 2 , ⋯ , Y m } Y=\left\{Y_{1},Y_{2},\cdots,Y_{m}\right\} Y={Y1,Y2,⋯,Ym}评价每个方案的属性(或指标)为 G j ( j = 1 , 2 , ⋯ , n ) G_{j}\left(j=1,2,\cdots,n\right) Gj(j=1,2,⋯,n),记属性集为 G = { G 1 , G 2 , ⋯ , G n } G=\left\{G_{1},G_{2},\cdots,G_{n}\right\} G={G1,G2,⋯,Gn},属性 G j ( j = 1 , 2 , ⋯ , n ) G_{j}\left(j=1,2,\cdots,n\right) Gj(j=1,2,⋯,n)的权重向量 ω = ( ω 1 , ω 2 , ⋯ , ω n ) \boldsymbol{\omega}=\left(\omega_{1},\omega_{2},\cdots,\omega_{n}\right) ω=(ω1,ω2,⋯,ωn)完全未知或信息不完全。假设方案 Y i ∈ Y Y_{i} \in Y Yi∈Y关于属性 G j ∈ G G_{j} \in G Gj∈G的评价值可以表示为 F ~ i j = ⟨ μ i j , ν i j ⟩ ( i = 1 , 2 , ⋯ , m ; j = 1 , 2 , ⋯ , n ) \tilde{F}_{ij} = \left\langle \mu_{ij},\nu_{ij} \right\rangle \left(i=1,2,\cdots,m; j=1,2,\cdots,n\right) F~ij=⟨μij,νij⟩(i=1,2,⋯,m;j=1,2,⋯,n), F ~ i j \tilde{F}_{ij} F~ij为直觉模糊集,其中 μ i j ∈ [ 0 , 1 ] \mu_{ij} \in \left[0,1\right] μij∈[0,1]和 ν i j ∈ [ 0 , 1 ] \nu_{ij} \in \left[0,1\right] νij∈[0,1]分别表示方案 Y i ∈ Y Y_{i} \in Y Yi∈Y满足属性 G j ∈ G G_{j} \in G Gj∈G和不满足属性 G j ∈ G G_{j} \in G Gj∈G的程度,且 0 ≤ μ i j + ν i j ≤ 1 0 \leq \mu_{ij}+\nu_{ij} \leq 1 0≤μij+νij≤1。则矩阵 F = ( ⟨ μ i j , ν i j ⟩ ) m × n F = \left( \left\langle \mu_{ij},\nu_{ij} \right\rangle \right)_{m×n} F=(⟨μij,νij⟩)m×n为该多属性决策问题的直觉模糊决策矩阵。
现在假设决策者对方案 Y i ( i = 1 , 2 , ⋯ , m ) Y_{i}\left(i=1,2,\cdots,m\right) Yi(i=1,2,⋯,m)有一定的主观偏好,设主观偏好值为直觉模糊数 θ ~ i = ⟨ α i , β i ⟩ \tilde{\theta}_{i} = \left\langle \alpha_{i},\beta_{i} \right\rangle θ~i=⟨αi,βi⟩,现在的问题是依据直觉模糊决策矩阵 F F F,如何通过确定属性权重 ω = ( ω 1 , ω 2 , ⋯ , ω n ) T \boldsymbol{\omega} = {\left(\omega_{1},\omega_{2},\cdots,\omega_{n}\right)}^{T} ω=(ω1,ω2,⋯,ωn)T,得到一个有效的决策分析方法对所有方案进行优劣排序。
3.2 属性权重的确定方法
由于种种条件的制约,决策者的主观偏好与客观偏好之间往往存在一定的差距。为了使决策更具合理性,属性权重的选择应使决策者的主观偏好值与客观偏好值(属性值)的总偏差最小化。
对于属性 G i ( j = 1 , 2 , ⋯ , n ) G_{i}\left(j=1,2,\cdots,n\right) Gi(j=1,2,⋯,n),如果 d ( F ~ i j , θ ~ i ) d\left(\tilde{F}_{ij},\tilde{\theta}_{i}\right) d(F~ij,θ~i)表示决策者对方案 Y i ( i = 1 , 2 , ⋯ , m ) Y_{i}\left(i=1,2,\cdots,m\right) Yi(i=1,2,⋯,m)的主观偏好值 θ ~ i \tilde{\theta}_{i} θ~i与相应的客观偏好值(属性值) F ~ i j \tilde{F}_{ij} F~ij)之间的偏差,可定义为:
则对属性 G i ( j = 1 , 2 , ⋯ , n ) G_{i}\left(j=1,2,\cdots,n\right) Gi(j=1,2,⋯,n)而言,所有方案的主观偏好值与客观偏好值(属性值)之间的偏差为:
D j ( ω ) = ∑ i = 1 m d ( F ~ i j , θ ~ i ) = 1 2 ∑ i = 1 m ω j ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) ( i = 1 , 2 , ⋯ , m ; j = 1 , 2 , ⋯ , n ) (3.2) \begin{aligned} D_{j}\left(\omega\right) &= \sum_{i=1}^{m} d\left(\tilde{F}_{ij},\tilde{\theta}_{i}\right) \\ &= \frac{1}{2}\sum_{i=1}^{m} {\omega_{j}\left(|\mu_{ij}-\alpha_{i}| + |\nu_{ij}-\beta_{i}|\right)} \left(i=1,2,\cdots,m;j=1,2,\cdots,n\right) \tag{3.2} \end{aligned} Dj(ω)=i=1∑md(F~ij,θ~i)=21i=1∑mωj(∣μij−αi∣+∣νij−βi∣)(i=1,2,⋯,m;j=1,2,⋯,n)(3.2)
那么,所有方案 Y i ( i = 1 , 2 , ⋯ , m ) Y_{i}\left(i=1,2,\cdots,m\right) Yi(i=1,2,⋯,m)对所有属性 G j ( j = 1 , 2 , ⋯ , n ) G_{j}\left(j=1,2,\cdots,n\right) Gj(j=1,2,⋯,n)的主观偏好值与客观偏好值(属性值)之间的总偏差为
D ( ω ) = ∑ j = 1 n D j ( ω ) = 1 2 ∑ j = 1 n ∑ i = 1 m ω j ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) ( i = 1 , 2 , ⋯ , m ; j = 1 , 2 , ⋯ , n ) (3.3) \color{blue} { \begin{aligned} D\left(\omega\right) &= \sum_{j=1}^{n} D_{j}\left(\omega\right) \\ &= \frac{1}{2} \sum_{j=1}^{n} \sum_{i=1}^{m} {\omega_{j}\left(|\mu_{ij}-\alpha_{i}| + |\nu_{ij}-\beta_{i}|\right)} \left(i=1,2,\cdots,m;j=1,2,\cdots,n\right) \tag{3.3} \end{aligned} } D(ω)=j=1∑nDj(ω)=21j=1∑ni=1∑mωj(∣μij−αi∣+∣νij−βi∣)(i=1,2,⋯,m;j=1,2,⋯,n)(3.3)
由此,权重向量 ω \omega ω的选择应使 D ( ω ) D\left(\omega\right) D(ω)最小化,即
min D ( ω ) = 1 2 ∑ j = 1 n ∑ i = 1 m ω j ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) ( i = 1 , 2 , ⋯ , m ; j = 1 , 2 , ⋯ , n ) (3.4) \color{blue} { \min D\left(\omega\right) = \frac{1}{2}\sum_{j=1}^{n} \sum_{i=1}^{m} {\omega_{j}\left(|\mu_{ij}-\alpha_{i}| + |\nu_{ij}-\beta_{i}|\right)} \left(i=1,2,\cdots,m;j=1,2,\cdots,n\right) \tag{3.4} } minD(ω)=21j=1∑ni=1∑mωj(∣μij−αi∣+∣νij−βi∣)(i=1,2,⋯,m;j=1,2,⋯,n)(3.4)
当 属 性 权 重 完 全 未 知 \color{red}{属性权重完全未知} 属性权重完全未知时,可以建立如下最优化模型
{ min D ( ω ) = 1 2 ∑ j = 1 n ∑ i = 1 m ω j ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) s . t . ∑ j = 1 n ω j 2 = 1 , ω j ≥ 0 ( j = 1 , 2 , ⋯ , n ) (3.5) \color{blue} { \left\{ \begin{aligned} & \min D\left(\omega\right) = \frac{1}{2}\sum_{j=1}^{n} \sum_{i=1}^{m} {\omega_{j}\left(|\mu_{ij}-\alpha_{i}| + |\nu_{ij}-\beta_{i}|\right)} \\ & s.t. \sum_{j=1}^{n}\omega_{j}^{2} = 1, \omega_{j} \geq 0 \left(j=1,2,\cdots,n\right) \end{aligned} \right. \tag{3.5} } ⎩⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎧minD(ω)=21j=1∑ni=1∑mωj(∣μij−αi∣+∣νij−βi∣)s.t.j=1∑nωj2=1,ωj≥0(j=1,2,⋯,n)(3.5)
为了求解最优化模型 ( 3.5 ) \left(3.5\right) (3.5),构造拉格朗日函数
L ( ω , λ ) = 1 2 ∑ j = 1 n ∑ i = 1 m ω j ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) + λ 4 ( ∑ j = 1 n ω j 2 − 1 ) (3.6) L\left(\omega,\lambda\right)=\frac{1}{2} {\sum_{j=1}^{n} \sum_{i=1}^{m} {\omega_{j}\left(\left|\mu_{i j}-\alpha_{i}\right|+\left|\nu_{i j}-\beta_{i}\right|\right)}}+\frac{\lambda}{4}\left(\sum_{j=1}^{n} {\omega_{j}^{2}-1}\right) \tag{3.6} L(ω,λ)=21j=1∑ni=1∑mωj(∣μij−αi∣+∣νij−βi∣)+4λ(j=1∑nωj2−1)(3.6)
对其求偏导数,并令偏导数等于0,可得
{ ∂ L ∂ ω j = 1 2 ∑ i = 1 m ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) + 1 2 λ ω j = 0 ∂ L ∂ λ = 1 4 ( ∑ j = 1 n ω j 2 − 1 ) = 0 (3.7) \color{blue} { \left\{ \begin{aligned} & \frac{\partial{L}}{\partial{\omega_{j}}} = \frac{1}{2} \sum_{i=1}^{m}\left( \left|\mu_{i j}-\alpha_{i}\right|+\left|\nu_{i j}-\beta_{i}\right|\right)+\frac{1}{2} \lambda \omega_{j}=0 \\ & \frac{\partial{L}}{\partial{\lambda}}=\frac{1}{4}\left(\sum_{j=1}^{n} \omega_{j}^{2}-1\right)=0 \end{aligned} \right. \tag{3.7} } ⎩⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎧∂ωj∂L=21i=1∑m(∣μij−αi∣+∣νij−βi∣)+21λωj=0∂λ∂L=41(j=1∑nωj2−1)=0(3.7)
则有
ω j ∗ = ∑ i = 1 m ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) ∑ j = 1 n [ ∑ i = 1 m ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) ] 2 (3.8) \color{blue} { \omega_{j}^{*}=\frac{\sum_{i=1}^{m}{\left(\left|\mu_{ij}-\alpha_{i}\right|+\left|\nu_{i j}-\beta_{i}\right|\right)}}{\sqrt{\sum_{j=1}^{n}\left[\sum_{i=1}^{m}\left(\left|\mu_{ij}-\alpha_{i}\right|+\left|\nu_{ij}-\beta_{i}\right|\right)\right]^{2}}} \tag{3.8} } ωj∗=∑j=1n[∑i=1m(∣μij−αi∣+∣νij−βi∣)]2∑i=1m(∣μij−αi∣+∣νij−βi∣)(3.8)
对 ω j ∗ \omega_{j}^{*} ωj∗进行归一化处理,可以得到属性权重:
ω j = ∑ i = 1 m ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) ∑ j = 1 n ∑ i = 1 m ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) (3.9) \color{red} { \omega_{j}=\frac{\sum_{i=1}^{m}\left(\left|\mu_{i j}-\alpha_{i}\right|+\left|\nu_{ij}-\beta_{i}\right|\right)}{\sum_{j=1}^{n} \sum_{i=1}^{m}\left(\left|\mu_{ij}-\alpha_{i}\right|+\left|\nu_{ij}-\beta_{i}\right|\right)} \tag{3.9} } ωj=∑j=1n∑i=1m(∣μij−αi∣+∣νij−βi∣)∑i=1m(∣μij−αi∣+∣νij−βi∣)(3.9)
当属性权重信息不完全确定时,如果权重向量 ω = ( ω 1 , ω 2 , . . . , ω n ) T \boldsymbol{\omega} = \left(\omega_{1},\omega_{2},...,\omega_{n}\right)^{T} ω=(ω1,ω2,...,ωn)T满足条件 ω ‾ j ≤ ω j ω ‾ j , ∑ j = 1 n ω j = 1 , ω j ≥ 0 ( j = 1 , 2 , . . . , n ) \underline{\omega}_{j} \leq \omega_{j} \overline{\omega}_{j}, \sum_{j=1}^{n} \omega_{j} = 1, \omega_{j} \geq 0 \left(j=1,2,...,n\right) ωj≤ωjωj,∑j=1nωj=1,ωj≥0(j=1,2,...,n),则求解权重向量 ω \omega ω等价于求解以下最优化模型:
{ max D ( ω ) = ∑ j = 1 n D j ( ω ) = 1 2 ∑ j = 1 n ∑ i = 1 m ω j ( ∣ μ i j − α i ∣ + ∣ ν i j − β i ∣ ) s.t. ω ‾ j ⩽ ω j ≤ ω ˉ j , ∑ j = 1 n ω j = 1 , ω j ≥ 0 ( j = 1 , 2 , ⋯ , n ) (3.10) \color{red} { \left\{ \begin{aligned} & \max D(\omega)=\sum_{j=1}^{n} D_{j}(\omega)=\frac{1}{2} \sum_{j=1}^{n} \sum_{i=1}^{m} \omega_{j}\left(\left|\mu_{ij}-\alpha_{i}\right|+\left|\nu_{i j}-\beta_{i}\right|\right) \\ & \text {s.t.} \underline{\omega}_{j} \leqslant \omega_{j} \leq \bar{\omega}_{j}, \sum_{j=1}^{n} \omega_{j}=1, \omega_{j} \geq 0 \left(j=1,2, \cdots, n\right) \end{aligned} \right. \tag{3.10} } ⎩⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎧maxD(ω)=j=1∑nDj(ω)=21j=1∑ni=1∑mωj(∣μij−αi∣+∣νij−βi∣)s.t.ωj⩽ωj≤ωˉj,j=1∑nωj=1,ωj≥0(j=1,2,⋯,n)(3.10)
3.3 分析步骤
根据以上分析,决策者对方案有主观偏好情形下的直觉模糊多属性决策步骤可归纳如下:
S.1 确定多属性决策问题的方案集 Y = { Y 1 , Y 2 , ⋯ , Y m } Y=\left\{Y_{1},Y_{2},\cdots, Y_{m}\right\} Y={Y1,Y2,⋯,Ym}和属性集 G = { G 1 , G 2 , ⋯ , G n } G = \left\{G_{1},G_{2},\cdots, G_{n}\right\} G={G1,G2,⋯,Gn}。
S.2 获取多属性决策问题中方案 Y i ∈ Y Y_{i} \in Y Yi∈Y关于属性 G j ∈ G G_{j} \in G Gj∈G的直觉模糊特征信息,构建直觉模糊决策矩阵 F F F,同时决策者给出对决策方案 Y i ∈ Y Y_{i} \in Y Yi∈Y的主观偏好值 θ ~ i = ⟨ α i , β i ⟩ \tilde{\theta}_{i} = \left\langle\alpha_{i},\beta_{i}\right\rangle θ~i=⟨αi,βi⟩。
S.3 利用式 ( 3.9 ) \left(3.9\right) (3.9)或求解最优化模型 ( 3.10 ) \left(3.10\right) (3.10)确定各属性的权重,得到属性权重向量 ω = ( ω 1 , ω 2 , ⋯ , ω n ) T \omega = {\left(\omega_{1},\omega_{2},\cdots,\omega_{n}\right)}^{T} ω=(ω1,ω2,⋯,ωn)T。
S.4 计算方案 Y i Y_{i} Yi的综合属性值 d ~ i \tilde{d}_{i} d~i:
d ~ i = ⟨ μ i , ν i ⟩ = IFWA ω ( F ~ i 1 , F ~ i 2 , ⋯ , F ~ i n ) = ⟨ 1 − ∏ j = 1 n ( 1 − μ i j ) ω j , ∏ j = 1 n ( ν i j ) ω j ⟩ (3.11) \color{red} { \begin{aligned} \tilde{d}_{i} &= \left\langle \mu_{i},\nu_{i} \right\rangle \\ &= \operatorname{IFWA}_{\omega}\left(\tilde{F}_{i1},\tilde{F}_{i2},\cdots,\tilde{F}_{in}\right) \\ &= \left\langle 1-\prod_{j=1}^{n}{\left(1-\mu_{ij}\right)}^{\omega_{j}}, \prod_{j=1}^{n}{\left(\nu_{ij}\right)}^{\omega_{j}} \right\rangle \tag{3.11} \end{aligned} } d~i=⟨μi,νi⟩=IFWAω(F~i1,F~i2,⋯,F~in)=⟨1−j=1∏n(1−μij)ωj,j=1∏n(νij)ωj⟩(3.11)
或
d ~ i = ⟨ μ i , ν i ⟩ = IFWG ω ( F ~ i 1 , F ~ i 2 , ⋯ , F ~ i n ) = ⟨ ∏ j = 1 n ( μ i j ) ω j , 1 − ∏ j = 1 n ( 1 − ν i j ) ω j ⟩ (3.12) \color{red} { \begin{aligned} \tilde{d}_{i} &= \left\langle \mu_{i},\nu_{i} \right\rangle \\ &= \operatorname{IFWG}_{\omega}\left(\tilde{F}_{i1},\tilde{F}_{i2},\cdots,\tilde{F}_{in}\right) \\ &= \left\langle \prod_{j=1}^{n}{\left(\mu_{ij}\right)}^{\omega_{j}}, 1 - \prod_{j=1}^{n}{\left(1 - \nu_{ij}\right)}^{\omega_{j}} \right\rangle \tag{3.12} \end{aligned} } d~i=⟨μi,νi⟩=IFWGω(F~i1,F~i2,⋯,F~in)=⟨j=1∏n(μij)ωj,1−j=1∏n(1−νij)ωj⟩(3.12)
S.5 利用直觉模糊数的得分函数和精确度公式,计算方案 Y i Y_{i} Yi的综合属性值 d ~ i \tilde{d}_{i} d~i的得分值 s ( d ~ i ) s \left( \tilde{d}_{i} \right) s(d~i)和精确值 h ( d ~ i ) h \left( \tilde{d}_{i} \right) h(d~i),确定 d ~ i ( i = 1 , 2 , ⋯ , m ) \tilde{d}_{i}\left({i=1,2,\cdots,m}\right) d~i(i=1,2,⋯,m)的不增排列顺序,并利用排序结果对方案 Y i ( i = 1 , 2 , ⋯ , m ) Y_{i}\left(i=1,2,\cdots,m\right) Yi(i=1,2,⋯,m)进行优劣排序。
3.4 实例分析
考虑企业质量管理体系有效性评价问题企业进行质量管理体系运行有效性评价的主要目的是发现质量管理体系运行过程中不完善或不适应环境变化的情况,提高组织的管理能力和经营业绩。通常从质量方针目标( G 1 G_{1} G1)、产品质量稳定性( G 2 G_{2} G2)、质量改进与创新( G 3 G_{3} G3)、资源管理状况( G 4 G_{4} G4)、财务运行状况( G 5 G_{5} G5)等五个方面进行评价。假设通过市场调研和专家咨询获得五家企业 Y i ( i = 1 , 2 , 3 , 4 , 5 ) Y_{i}\left(i=1,2,3,4,5\right) Yi(i=1,2,3,4,5)关于属性 G j ( j = 1 , 2 , 3 , 4 , 5 ) G_{j}\left(j=1,2,3,4,5\right) Gj(j=1,2,3,4,5)的直觉模糊评价结果如表3-5所示。
G 1 G_1 G1 | G 2 G_2 G2 | G 3 G_3 G3 | G 4 G_4 G4 | G 5 G_5 G5 | |
---|---|---|---|---|---|
Y 1 Y_1 Y1 | ⟨ 0.3 , 0.4 ⟩ \left\langle0.3,0.4\right\rangle ⟨0.3,0.4⟩ | ⟨ 0.2 , 0.2 ⟩ \left\langle0.2,0.2\right\rangle ⟨0.2,0.2⟩ | ⟨ 0.2 , 0.4 ⟩ \left\langle0.2,0.4\right\rangle ⟨0.2,0.4⟩ | ⟨ 0.3 , 0.5 ⟩ \left\langle0.3,0.5\right\rangle ⟨0.3,0.5⟩ | ⟨ 0.4 , 0.5 ⟩ \left\langle0.4,0.5\right\rangle ⟨0.4,0.5⟩ |
Y 2 Y_2 Y2 | ⟨ 0.4 , 0.2 ⟩ \left\langle0.4,0.2\right\rangle ⟨0.4,0.2⟩ | ⟨ 0.4 , 0.3 ⟩ \left\langle0.4,0.3\right\rangle ⟨0.4,0.3⟩ | ⟨ 0.3 , 0.4 ⟩ \left\langle0.3,0.4\right\rangle ⟨0.3,0.4⟩ | ⟨ 0.6 , 0.2 ⟩ \left\langle0.6,0.2\right\rangle ⟨0.6,0.2⟩ | ⟨ 0.8 , 0.1 ⟩ \left\langle0.8,0.1\right\rangle ⟨0.8,0.1⟩ |
Y 3 Y_3 Y3 | ⟨ 0.3 , 0.5 ⟩ \left\langle0.3,0.5\right\rangle ⟨0.3,0.5⟩ | ⟨ 0.5 , 0.2 ⟩ \left\langle0.5,0.2\right\rangle ⟨0.5,0.2⟩ | ⟨ 0.6 , 0.3 ⟩ \left\langle0.6,0.3\right\rangle ⟨0.6,0.3⟩ | ⟨ 0.5 , 0.2 ⟩ \left\langle0.5,0.2\right\rangle ⟨0.5,0.2⟩ | ⟨ 0.9 , 0.0 ⟩ \left\langle0.9,0.0\right\rangle ⟨0.9,0.0⟩ |
Y 4 Y_4 Y4 | ⟨ 0.6 , 0.3 ⟩ \left\langle0.6,0.3\right\rangle ⟨0.6,0.3⟩ | ⟨ 0.7 , 0.2 ⟩ \left\langle0.7,0.2\right\rangle ⟨0.7,0.2⟩ | ⟨ 0.4 , 0.4 ⟩ \left\langle0.4,0.4\right\rangle ⟨0.4,0.4⟩ | ⟨ 0.4 , 0.1 ⟩ \left\langle0.4,0.1\right\rangle ⟨0.4,0.1⟩ | ⟨ 0.7 , 0.2 ⟩ \left\langle0.7,0.2\right\rangle ⟨0.7,0.2⟩ |
Y 5 Y_5 Y5 | ⟨ 0.6 , 0.1 ⟩ \left\langle0.6,0.1\right\rangle ⟨0.6,0.1⟩ | ⟨ 0.3 , 0.1 ⟩ \left\langle0.3,0.1\right\rangle ⟨0.3,0.1⟩ | ⟨ 0.1 , 0.4 ⟩ \left\langle0.1,0.4\right\rangle ⟨0.1,0.4⟩ | ⟨ 0.7 , 0.1 ⟩ \left\langle0.7,0.1\right\rangle ⟨0.7,0.1⟩ | ⟨ 0.5 , 0.2 ⟩ \left\langle0.5,0.2\right\rangle ⟨0.5,0.2⟩ |
如果决策者对方案 Y i ( i = 1 , 2 , 3 , 4 , 5 ) Y_{i}\left(i=1,2,3,4,5\right) Yi(i=1,2,3,4,5)的主观偏好值为直觉模糊数,分别为 θ ~ 1 = ⟨ 0.3 , 0.5 ⟩ \tilde{\theta}_{1}=\left\langle0.3,0.5\right\rangle θ~1=⟨0.3,0.5⟩, θ ~ 1 = ⟨ 0.5 , 0.2 ⟩ \tilde{\theta}_{1}=\left\langle0.5,0.2\right\rangle θ~1=⟨0.5,0.2⟩, θ ~ 1 = ⟨ 0.4 , 0.3 ⟩ \tilde{\theta}_{1}=\left\langle0.4,0.3\right\rangle θ~1=⟨0.4,0.3⟩, θ ~ 1 = ⟨ 0.7 , 0.2 ⟩ \tilde{\theta}_{1}=\left\langle0.7,0.2\right\rangle θ~1=⟨0.7,0.2⟩, θ ~ 1 = ⟨ 0.6 , 0.3 ⟩ \tilde{\theta}_{1}=\left\langle0.6,0.3\right\rangle θ~1=⟨0.6,0.3⟩。下面对企业 Y i ( i = 1 , 2 , 3 , 4 , 5 ) Y_{i}\left(i=1,2,3,4,5\right) Yi(i=1,2,3,4,5)的质量管理体系有效性进行优劣排序。
代码如下:
## 考虑专家主观偏好的模糊直觉评价--<权重信息完全未知>
import numpy as np
# 属性权重计算函数
def calculate_attribute_weight(IFDM,ORIFM):
'''
输入参数:
IFDM:觉模糊决策矩阵,尺寸为(m,n,2),其中m表示方案数,n表示属性数
ORIFM:决策者对各个方案的主观偏好直觉模糊矩阵,尺寸为(m,2),其中m表示方案数
返回值:
attribute_weight:属性权重向量,尺寸为(n)
'''
# 按公式3.30计算各个属性的权重
attribute_weight = np.zeros((IFDM.shape[1]))
sum_all = 0
for j in range(IFDM.shape[1]):
sum_j = 0
for i in range(IFDM.shape[0]):
sum_j += np.abs(IFDM[i][j][0] - ORIFM[i][0]) + np.abs(IFDM[i][j][1] - ORIFM[i][1])
attribute_weight[j] = sum_j
sum_all += sum_j
attribute_weight /= sum_all
# 返回结果
return attribute_weight
# 各方案的综合评价直觉模糊数计算函数
def calculate_comprehensive_IFM(IFDM,attribute_weight,operator_type='IFWA'):
'''
输入参数:
IFDM:觉模糊决策矩阵,尺寸为(m,n,2),其中m表示方案数,n表示属性数
attribute_weight:属性权重向量,尺寸为(n)
operator_type:操作算子类型,可取值“IFWA”或“IFWG”,分别表示直
觉模糊加权平均算子、直觉模糊加权几何算子,默认值为
“IFWA”
返回值:
comprehensive_IFM:综合评价直觉模糊矩阵,尺寸为(m,2)
'''
# 初始化
comprehensive_IFM = np.zeros((IFDM.shape[0],2))
# 计算综合评价直觉模糊矩阵
if operator_type == 'IFWA': # IFWA算子
for i in range(IFDM.shape[0]):
mu = 1
nu = 1
for j in range(IFDM.shape[1]):
mu *= np.power(1-IFDM[i][j][0],attribute_weight[j])
nu *= np.power(IFDM[i][j][1],attribute_weight[j])
comprehensive_IFM[i][0] = 1 - mu
comprehensive_IFM[i][1] = nu
elif operator_type == 'IFWG': # IFWG算子
for i in range(IFDM.shape[0]):
mu = 1
nu = 1
for j in range(IFDM.shape[1]):
mu *= np.power(IFDM[i][j][0],attribute_weight[j])
nu *= np.power(1 - IFDM[i][j][1],attribute_weight[j])
comprehensive_IFM[i][0] = mu
comprehensive_IFM[i][1] = 1 - nu
else:
print("输入操作算子类型错误:operator_type参数可取值“IFWA”或“IFWG”!")
# 返回计算结果
return comprehensive_IFM
# 方案得分值与排序函数
def calculate_score_and_sort(comprehensive_IFM):
'''
输入参数:
comprehensive_IFM:综合评价直觉模糊矩阵,尺寸为(m,2),m表示方案数
返回值:
scores:各方案的得分值,尺寸为(1,m)
sorted_index:降序排序结果,尺寸为(1,m)
'''
# 计算得分值
scores = np.zeros((comprehensive_IFM.shape[0]))
for i in range(comprehensive_IFM.shape[0]):
scores[i] = comprehensive_IFM[i][0] - comprehensive_IFM.shape[1]
# 降序排序
sorted_index = np.argsort(-scores)
# 返回计算结果
return scores,sorted_index
# S.0: 确定直觉模糊评价决策矩阵IFDM和专家对各个方案的主观偏好直觉模糊矩阵ORIFM
IFDM = np.array([[[0.3,0.4],[0.2,0.2],[0.2,0.4],[0.3,0.5],[0.4,0.5]],
[[0.4,0.2],[0.4,0.3],[0.3,0.4],[0.6,0.2],[0.8,0.1]],
[[0.3,0.5],[0.5,0.2],[0.6,0.3],[0.5,0.2],[0.9,0.0]],
[[0.6,0.3],[0.7,0.2],[0.4,0.4],[0.4,0.1],[0.7,0.2]],
[[0.6,0.1],[0.3,0.1],[0.1,0.4],[0.7,0.1],[0.5,0.2]]])
ORIFM = np.array([[0.3,0.5],
[0.5,0.2],
[0.4,0.3],
[0.7,0.2],
[0.6,0.3]])
# S.1:计算各属性的权重
attribute_weight = calculate_attribute_weight(IFDM,ORIFM)
print("\n","#"*75)
print("各属性的权重向量为:\n",attribute_weight)
print("#"*75)
# S.2:计算各方案的综合属性直觉模糊数
comprehensive_IFM_IFWA = calculate_comprehensive_IFM(IFDM,attribute_weight)
comprehensive_IFM_IFWG = calculate_comprehensive_IFM(IFDM,attribute_weight,operator_type='IFWG')
print("\n","#"*75)
print("各方案的综合评价直觉模糊矩阵(IFWA)为:\n",comprehensive_IFM_IFWA)
print("各方案的综合评价直觉模糊矩阵(IFWG)为:\n",comprehensive_IFM_IFWG)
print("#"*75)
# S.3:计算各方案的得分值并按降序排序
scores_IFWA,sorted_index_IFWA = calculate_score_and_sort(comprehensive_IFM_IFWA)
scores_IFWG,sorted_index_IFWG = calculate_score_and_sort(comprehensive_IFM_IFWG)
print("\n","#"*75)
print("各方案的综合得分值(IFWA)为:\n",scores_IFWA)
print("各方案的综合排序(IFWA)为:\n\n",sorted_index_IFWA + 1)
print("各方案的综合得分值(IFWG)为:\n",scores_IFWG)
print("各方案的综合排序(IFWG)为:\n",sorted_index_IFWG + 1)
print("#"*75)
计算结果如下:
###########################################################################
各属性的权重向量为:
[0.13636364 0.1969697 0.28787879 0.15151515 0.22727273]
###########################################################################
###########################################################################
各方案的综合评价直觉模糊矩阵(IFWA)为:
[[0.27889224 0.37972968]
[0.54047762 0.22592219]
[0.65948096 0. ]
[0.57691356 0.23232288]
[0.43191687 0.17447621]]
各方案的综合评价直觉模糊矩阵(IFWG)为:
[[0.2631109 0.40739201]
[0.4583415 0.26324059]
[0.56173176 0.24039853]
[0.53601814 0.26385195]
[0.3068965 0.22030635]]
###########################################################################
###########################################################################
各方案的综合得分值(IFWA)为:
[-1.72110776 -1.45952238 -1.34051904 -1.42308644 -1.56808313]
各方案的综合排序(IFWA)为:
[3 4 2 5 1]
各方案的综合得分值(IFWG)为:
[-1.7368891 -1.5416585 -1.43826824 -1.46398186 -1.6931035 ]
各方案的综合排序(IFWG)为:
[3 4 2 5 1]
###########################################################################