powered by
TOPSIS
TOPSIS(decision, weights, cb)
cb(i)='max'
cb(i)='min'
d <- matrix(rpois(12, 5), nrow = 4) w <- c(0.2, 0.2, 0.6) cb <- c('max','min','max') TOPSIS(d,w,cb)
Run the code above in your browser using DataLab