Valdecy / pyDecision

pyDecision is a comprehensive Python library that encompasses a wide array of Multi-Criteria Decision Analysis (MCDA) methods. These powerful and versatile tools assist in making effective decisions by comparing alternatives based on multiple criteria, making it a valuable resource for researchers, analysts, and decision-makers.
Other
261 stars 62 forks source link

PROMETHEE Distance and Preference Degree Matrices Dimensions #11

Closed Sabir97 closed 1 year ago

Sabir97 commented 1 year ago

In the promethee methods, i think the distance_array and pd_array have incorrect dimensions. Distance matrix x axis has: n(n-1) elements (n being number of alternatives) and y axis has: m criteria. Because each alternative is compared to other alternatives except itself, and those comparisons are done for each criterion. Meaning the matrix dimensions for distance and preference are: n(n-1) x m I found this after i was using memory_profiler to calculate the space complexity of different methods, and found that suprinsigly PROMETHEE 2 had took less space than MAUT, SAW and TOPSIS. Which is shouldn't happen.

Valdecy commented 1 year ago

That's what I did, in a different way. I calculate for an nxn matrix (ignoring the diagonal not to compare an alternative with itself) for a criterion. I do the same thing for the following criteria but accumulate the last value.