A General Formulation for the Teaching Assignment Problem: Computational Analysis Over a Real-World Dataset
Moa Johannesson, Lina Brink, Alvin Combrink, Sabino Francesco Roselli, Martin Fabian
TL;DR
The paper tackles the Teacher Assignment Problem (TAP) by formulating a rigorous mathematical model that captures the structure of Teaching Assistants, courses, and tasks, while incorporating workload, continuity, and preference considerations. It evaluates three solver paradigms—SMT, MILP, and CP-SAT—on five real-world yearly instances (2022–2026) drawn from a Chalmers dataset, benchmarking against manual scheduling. Results show substantial improvements in workload alignment and stability, with CP-SAT often delivering the best trade-off between solution quality and runtime. The work demonstrates practical utility for decision-support in TA assignment and outlines concrete avenues for scalability, data augmentation, and enhanced constraint handling in future work.
Abstract
The Teacher Assignment Problem is a combinatorial optimization problem that involves assigning teachers to courses while guaranteeing that all courses are covered, teachers do not teach too few or too many hours, teachers do not switch assigned courses too often and possibly teach the courses they favor. Typically the problem is solved manually, a task that requires several hours every year. In this work we present a mathematical formulation for the problem and an experimental evaluation of the model implemented using state-of-the-art SMT, CP, and MILP solvers. The implementations are tested over a real-world dataset provided by the Division of Systems and Control at Chalmers University of Technology, and produce teacher assignments with smaller workload deviation, a more even workload distribution among the teachers, and a lower number of switched courses.
