Methods based on a similarity between alternatives.
- skcriteria.madm.similarity.topsis(matrix, objectives, weights, metric='euclidean', **kwargs)¶
Execute TOPSIS without any validation.
- class skcriteria.madm.similarity.TOPSIS(*, metric='euclidean')¶
The Technique for Order of Preference by Similarity to Ideal Solution.
TOPSIS is based on the concept that the chosen alternative should have the shortest geometric distance from the ideal solution and the longest euclidean distance from the worst solution.
An assumption of TOPSIS is that the criteria are monotonically increasing or decreasing, and also allow trade-offs between criteria, where a poor result in one criterion can be negated by a good result in another criterion.
metric (str or callable, optional) – The distance metric to use. If a string, the distance function can be
If some objective is to minimize.
- property metric¶
Which distance metric will be used.