(!****************************************************** Mosel Example Problems ====================== file i4exam.mos ``````````````` Scheduling exams (c) 2008 Fair Isaac Corporation author: S. Heipcke, Mar. 2002 *******************************************************!) model "I-4 Scheduling exams" uses "mmxprs" declarations EXAM = {"DA","NA","C++","SE","PM","J","GMA","LP","MP","S","DSE"} ! Set of exams TIME = 1..8 ! Set of time slots INCOMP: array(EXAM,EXAM) of integer ! Incompatibility between exams plan: array(EXAM,TIME) of mpvar ! 1 if exam in a time slot, 0 otherwise end-declarations initializations from 'i4exam.dat' INCOMP end-initializations ! Schedule all exams forall(e in EXAM) sum(t in TIME) plan(e,t) = 1 ! Respect incompatibilities forall(d,e in EXAM, t in TIME | d