I know you are familiar with Fuzzy Topsis method. write the Python code for this method…
- User
I know you are familiar with Fuzzy Topsis method. write the Python code for this method for the following inputs: about the decision matrix. the first criteria is cost meaning it is negative and the other two are profit and positive.
Decision matrices
d1 = [[[233.4, 233.4, 233.4], [1, 3, 5], [5, 7, 9]], [[256.2, 256.2, 256.2], [7, 9, 10], [3, 5, 7]], [[248.2, 248.2, 248.2], [3, 5, 7], [7, 9, 10]]]
d2 = [[[233.4, 233.4, 233.4], [0, 1, 3], [9, 10, 10]], [[256.2, 256.2,256.2], [3, 5, 7], [9, 10, 10]], [[248.2, 248.2,248.2], [7, 9, 10], [7, 9, 10]]]
Weight matrices
w1 = ([[[0.7, 0.1, 0], [0.9, 0.3, 0.1], [1, 0.5, 0.3]]]) w2 = ([[[0.7, 0.5, 0.7], [0.9, 0.7, 0.9], [1, 0.9, 1]]])
be cautious that there are two decision makers. therefore first we need to make an average for each type of matrix, therefore ending up with a single decision matrix and a single weight matrix. because there are two decision makers the formula will be like this: an example for the Alternative1, Criteria 2: 1/2[(1,3,5)+(0,1,3)]
Now if you have fully understood what I am saying, write the full code in python with the Relative Closeness as an answer, however if you have any misunderstandings, ask first
- Assistant