# the performance table
performanceTable <- rbind(c(10,10,9),c(10,9,10),c(9,10,10),c(9,9,10),c(9,10,9),c(10,9,9),
c(10,10,7),c(10,7,10),c(7,10,10),c(9,9,17),c(9,17,9),c(17,9,9),
c(7,10,17),c(10,17,7),c(17,7,10),c(7,17,10),c(17,10,7),c(10,7,17),
c(7,9,17),c(9,17,7),c(17,7,9),c(7,17,9),c(17,9,7),c(9,7,17))
referenceProfiles <- rbind(c(5,5,5),c(10,10,10),c(15,15,15))
lexicographicOrder <- c(2,1,3)
weights <- c(0.2,0.44,0.36)
criteriaMinMax <- c("max","max","max")
rownames(performanceTable) <- c("a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12",
"a13","a14","a15","a16","a17","a18","a19","a20","a21","a22",
"a23","a24")
colnames(performanceTable) <- c("c1","c2","c3")
colnames(referenceProfiles) <- c("c1","c2","c3")
names(weights) <- c("c1","c2","c3")
names(criteriaMinMax) <- colnames(performanceTable)
expectedpreorder <- list('a16','a13',c('a3','a9'),'a14','a17',c('a1','a7'),'a18','a15',
c('a2','a8'),c('a11','a20','a22'),'a5',c('a10','a19','a24'),
'a4',c('a12','a21','a23'),'a6')
preorder<-SRMP(performanceTable, referenceProfiles, lexicographicOrder, weights, criteriaMinMax)
Run the code above in your browser using DataLab