apply.EDAS: Function to apply the Evaluation based on Distance from...

View source: R/EDAS.R

apply.EDASR Documentation

Function to apply the Evaluation based on Distance from Average Solution (EDAS) method

Description

Function to apply the Evaluation based on Distance from Average Solution (EDAS) method

Usage

apply.EDAS(mat, weights)

Arguments

mat

is a matrix and contains the values for different properties of different alternatives. Non-beneficial columns need to have negative values

weights

are the weights of each property in the decision making process

Value

the AS_i index from EDAS from which the final ranking can be found

Examples

mat <- matrix(c(250, 200, 300, 275, 225,
16, 16, 32, 32, 16,
12, 8, 16, 8, 16,
5, 3, 4, 4, 2), nrow=5)
colnames(mat)<-c("Price/cost", "Storage Space", "Camera", "Looks")
rownames(mat)<-paste0("Mobile", 1:5)
mat[,"Price/cost"]<--mat[,"Price/cost"]
weights <- c(0.35, 0.25, 0.25, 0.15)
apply.EDAS(mat, weights)

RMCDA documentation built on June 8, 2025, 11:14 a.m.