apply.TOPSIS {RMCDA}R Documentation

Apply TOPSIS on matrix A with weight of criteria stored in vector w

Description

Apply TOPSIS on matrix A with weight of criteria stored in vector w

Usage

apply.TOPSIS(A, w)

Arguments

A

the matrix A with row names corresponding to alternatives and column names corresponding to criteria

w

the weight vector corresponding to the weight of each criteria

Value

performance scores obtained through TOPSIS

Examples

A <- matrix(c(250, 200, 300, 275,
 225, 16, 16, 32,
  32, 16, 12, 8,
   16, 8, 16, 5,
    3, 4, 4, 2), nrow=5, ncol=4)
colnames(A)<-c("Price", "Storage space",
 "Camera", "Looks")
rownames(A)<-paste0("Mobile ", seq(1, 5, 1))
A[,"Price"] <- -A[,"Price"]
apply.TOPSIS(A, c(1/4, 1/4, 1/4, 1/4))

[Package RMCDA version 0.3 Index]