I am trying to run VIKOR
from MCDM
R package using the following code
library(MCDM)
d <- matrix(c(1,2,5,3000,3750,4500),nrow = 3,ncol = 2)
w <- c(0.5,0.5)
cb <- c('min','max')
v <- 0.5
VIKOR(d,w,cb,v)
But it returns me following error
Error in (Q == "NaN") || (Q == "Inf") : 'length = 3' in coercion to 'logical(1)'
How can I solve this error?
The source code for VIKOR is available here.
I have solved this problem by modifying the source code like
Now it is working fine like