TOPSIS method for multiple-criteria decision making (MCDM)

Share:

Description

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multiple-criteria decision making (MCDM) method.

Usage

1
topsis(decision = NULL, weights = NULL, impacts = NULL)

Arguments

decision

A numeric matrix with m rows for m alternatives and n columns for n criterions.

weights

A numeric vector with length equal to number of columns in decision matrix for weights of criterions.

impacts

A character vector of "+" and "-" signs for the way that each criterion influences on the alternatives.

Value

A data frame including elements

alt.row

Row number of alternatives in decision matrix.

score

TOPSIS score of alternatives.

rank

Rank of alternatives based on TOPSIS scores.

Author(s)

Mahmoud Mosalman Yazdi <m.mosalman@gmail.com>

References

Yoon, K.P.; Hwang, C. (1995). _Multiple Attribute Decision Making: An Introduction_. California: SAGE publications.

Examples

1
2
3
4
d <- matrix(rpois(12, 5), nrow = 4)
w <- c(1, 1, 2)
i <- c("+", "-", "+")
topsis(d, w, i)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.