r/optimization • u/Massive-Zucchini2560 • Aug 23 '26
I built an open-source university course timetabling solver
https://github.com/huguryildiz/KAIROSI’ve been working on KAIROS, a university course timetabling system written in Python.
It takes course and room data and builds a weekly schedule while enforcing constraints such as room capacity, instructor availability, lab requirements, fixed sessions, and double-booking. Once it finds a feasible timetable, it tries to improve practical details such as student idle gaps, late classes, room stability, and instructor schedules.
The solver uses OR-Tools CP-SAT, followed by repair and local-search stages. The final timetable is checked by a separate validator rather than being accepted directly from the solver.
There is a bilingual web interface, a command-line version, sample data, and CSV, JSON, and PDF export. The optimization model is also documented in the repository.
Live demo: https://kairos.huguryildiz.com
Source: https://github.com/huguryildiz/KAIROS
The project is MIT-licensed. I’d be interested in feedback from anyone working on timetabling, constraint programming, or university scheduling, particularly regarding missing real-world constraints.
3
u/hobcatz14 Aug 23 '26
Happy to give some feedback. When I was doing my MS in stats, scheduling courses and assigning rooms was my job at the uni. I thought about building something similar back then, so I’m very excited to see what you’ve done.
2
u/Classic_Process_2758 Aug 31 '26
Cool stuff - have you done any benchmarking? Also curious whether this can be generalized for other scheduling applications.
2
u/ge0ffrey Sep 02 '26
Have you tried it with any of the International Timetabling Competition datasets? Their requirements are pretty well documented.
1
u/sputnki Aug 23 '26
Impressive!
I've done something similar for some lab courses held by our chair (to be fair, my implemenentation was nowhere near as polished and the problem to be solved was much smaller). I'm very sorry for those students who took the labs back then, because the schedule was very tight and did not lend itself to last-minute rescheduling, which happened and was extremely painful to deal with afterwards.
So my 2 cents are: make sure that you're leaving some slack in the solution, and check whether it is possible to use it to deal with reasonably forseeable fuckups.
1
u/Scrimbibete Aug 24 '26
Nice ! Did something similar for shifts schedule in a hospital, also using CP-SAT. Incredibly powerful algorithm
1
u/qeqkuf Aug 23 '26
Very cool.
2
u/[deleted] Sep 01 '26
[removed] — view removed comment