apply.RIM | R Documentation |
The apply.RIM function implements the Reference Ideal Method (RIM) for multi-criteria decision making (MCDM) problems, allowing for degenerate intervals, i.e. cases where A == C or D == B.
apply.RIM(mat, weights, AB, CD)
mat |
A matrix m x n containing the values of the m alternatives for the n criteria. |
weights |
A numeric vector of length n, containing the weights for the criteria. The sum of the weights must be equal to 1. |
AB |
A matrix (2 x n), where the first row of AB corresponds to the A extreme, and the second row of AB corresponds to the B extreme of the domain (universe of discourse) for each criterion. |
CD |
A matrix (2 x n), where the first row of CD corresponds to the C extreme, and the second row of CD corresponds to the D extreme of the ideal reference for each criterion. Degenerate intervals:
These fallback rules ensure the function does not stop but, instead, issues a warning and assigns a default. Adjust these defaults if your MCDM context requires different handling. |
A data frame containing:
Alternatives: The index of each alternative.
R: The R index (score) for each alternative.
Ranking: The ranking of the alternatives based on the R score.
Reference: Cables, E.; Lamata, M.T.; Verdegay, J.L. (2016). RIM-reference ideal method in multicriteria decision making. Information Science, 337-338, 1-10.
# Example decision matrix
mat <- matrix(
c(30,40,25,27,45,0,
9,0,0,15,2,1,
3,5,2,3,3,1,
3,2,3,3,3,2,
2,2,1,4,1,2),
nrow = 5, ncol = 6, byrow = TRUE
)
#Example weights vector (must sum to 1)
weights <- c(0.2262,0.2143,0.1786,0.1429,0.119,0.119)
#Example AB matrix
AB <- matrix(
c(23,60,0,15,0,10,
1,3,1,3,1,5),
nrow = 2, ncol = 6, byrow = TRUE
)
#Example CD matrix
CD <- matrix(
c(30,35,10,15,0,0,
3,3,3,3,4,5),
nrow = 2, ncol = 6, byrow = TRUE
)
apply.RIM(mat, weights, AB, CD)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.