What to do in these cases where I can't rank by the VIKOR multicriteria method because Q
has no value?
library(MCDM)
df1<-structure(c(14509.9423478068, 4648.5779693212, 922, 876), .Dim = c(2L,
2L), .Dimnames = list(NULL, c("Criteria1", "Criteria2")))
> df1
Criteria1 Criteria2
[1,] 14509.942 922
[2,] 4648.578 876
w <- c(0.5,0.5)
cb <- c('min','max')
v <- 0.5
result1<-VIKOR(df1,w,cb,v)
> result1
Alternatives S R Q Ranking
1 1 0.5 0.5 NaN -
2 2 0.5 0.5 NaN -