I'm scheduling an exam for a course (using R).
I have 36 students, which all need to be fitted with time-slots to 8 teachers on the exam day (1:1 exams).
Each student or teacher can obviously only be in one place at a time.
How do I run an optimisation to find a solution using the least amount of time slots?
# Teachers
examiners <- c(seq(from=1, to=8, by= 1))
#students
students <- c(seq(from=1, to=36))
Some packages of interest: ompr
, ROI
?
Many thanks!
x <- matrix(rep(1:36, 8), ncol = 8, byrow = TRUE)
and then rename the columnscolnames(x) <- paste("Teacher", LETTERS[1:8], sep = "_")
and rowsrownames(x) <- paste("Session", 1:36, sep = "_")