每天資訊週四學習卡——基於三角模糊數的VIKOR演算法(5)

菜單

週四學習卡——基於三角模糊數的VIKOR演算法(5)

分享興趣,傳播快樂,

增長見聞,留下美好!

親愛的您,這裡是LearningYard學苑。

對於基於三角模糊數的VIKOR方法介紹,前面幾期內容已經計算了最大群體效用和最小個體遺憾,今天帶領大家學習的是計算折衷決策指標值並且對結果進行排序。

20211213

20211213

02:42

未知來源

週四學習卡——基於三角模糊數的VIKOR演算法(5)

計算決策指標值

上一步計算得到最大群體效用和最小個體遺憾分別為:

週四學習卡——基於三角模糊數的VIKOR演算法(5)

令折衷值v=0。5,並根據得到的群體效用值Si與個體遺憾值Ri計算折衷決策指標值Qi,其值越小,方案越優。

計算得到:

週四學習卡——基於三角模糊數的VIKOR演算法(5)

# 對結果進行排序 #

然後對Qi進行排序,並分析決策結果。其中sort指令能將向量或矩陣以從小到大的順序對元素進行排列,find指令可以精確找到指定元素在矩陣中的位置。透過上述兩個指令,可以對向量以名次的方式進行排序。

週四學習卡——基於三角模糊數的VIKOR演算法(5)

結果如下所示:

週四學習卡——基於三角模糊數的VIKOR演算法(5)

# 知識拓展:sort()函式

sort()函式是對陣列元素排序的函式。B = sort(A) 按升序對 A 的元素進行排序。

如果 A 是向量,則 sort(A) 對向量元素進行排序。

如果 A 是矩陣,則 sort(A) 會將 A 的列視為向量並對每列進行排序。

如果 A 是多維陣列,則 sort(A) 會沿大小不等於 1 的第一個陣列維度計算,並將這些元素視為向量。

示例:

按升序對向量排序:建立一個行向量,並按升序對其元素排序。

週四學習卡——基於三角模糊數的VIKOR演算法(5)

按升序對行排序:建立一個矩陣,並按升序對每一行排序。

週四學習卡——基於三角模糊數的VIKOR演算法(5)

按降序對列排序建立一個矩陣,並按升序對每一列排序。

週四學習卡——基於三角模糊數的VIKOR演算法(5)

# 英文學習

The maximum group utility and minimum individual regret calculated in the previous step are:

Calculate the value of the compromise decision index:

Let the compromise value v=0。5, and calculate the compromise decision index value Qi according to the obtained group utility value Si and the individual regret value Ri。 The smaller the value, the better the solution。

Calculated:

Then rank Qi and analyze the decision results。 The sort instruction can arrange the elements of a vector or matrix in ascending order, and the find instruction can accurately find the position of the specified element in the matrix。 Through the above two instructions, the vector can be sorted by rank。

The results are as follows:

Knowledge expansion:

sort function

B = sort(A) Sorts the elements of A in ascending order。

If A is a vector, then sort(A) sorts the vector elements。

If A is a matrix, then sort(A) treats the columns of A as vectors and sorts each column。

If A is a multidimensional array, sort(A) will calculate along the first array dimension whose size is not equal to 1, and treat these elements as vectors。

Example:

Sort the vector in ascending order: Create a row vector and sort its elements in ascending order。

Sort matrix rows in ascending order: Create a matrix and sort each row in ascending order。

Sort the matrix columns in descending order to create a matrix, and sort each column in ascending order。

翻譯:谷歌翻譯;參考資料:周師兄學習文件、CSDN。本文由LearningYard學苑原創,如有侵權請聯絡刪除。