topsis: TOPSIS method for multiple-criteria decision making (MCDM)

Description Usage Arguments Value Author(s) References Examples

View source: R/topsis.R

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)

Example output

  alt.row     score rank
1       1 0.4397485    3
2       2 0.5760510    2
3       3 0.7182405    1
4       4 0.3958535    4

topsis documentation built on May 2, 2019, 4:17 a.m.

Related to topsis in topsis...