Loading

Amberdots (Amberdots Concepts) is a digital agency and product studio focused on building practical software systems, web applications, and technical solutions.

Responds within 24 hours
University Timetable System Matrix

University Timetable Management System: Constraint-Based Scheduling Engine

A university timetable system that uses Timefold constraint solving to automatically generate conflict-free academic schedules at institutional scale. The system coordinates courses, room capacities, campus zones, lecturer availability, and student group cohorts—transforming a complex manual ordeal into an automated solver run.

Why I Built It

Creating a university timetable sounds deceptively simple until all competing variables are cataloged: classes need specific rooms, lecturers have restricted working timeslots, cohorts have overlapping course registrations, and rooms possess varying capacities and specialized amenities. In many institutions, administrative staff spend two to four weeks manually wrestling with timetable grids, only to encounter room clashes and instructor conflicts on the first day of lectures.

I set out to engineer an automated scheduling engine that formulates timetable generation as a mathematical constraint satisfaction problem (CSP), programmatically searching for optimal configurations rather than relying on manual trial and error.

How It Works

Administrators configure courses, student groups, lecturers, rooms, campus zones, and available timeslot periods. The system executes through a rigorous multi-stage pipeline:

  • Pre-Solve Feasibility Checking: Analyzes whether physical room capacities and total available timeslot hours can mathematically accommodate the requested curriculum hours before executing the solver.
  • Constraint Optimization Engine: Solves through competing variables using Timefold Solver algorithms, balancing hard operational rules with soft institutional preferences.
  • Lesson Pinning & Incremental Re-Solving: Allows administrators to approve and lock in specific class allocations, resolving only the remaining unscheduled lessons.
  • Comprehensive Matrix Filters & Exports: View generated schedules filtered by student group, individual lecturer, or specific room, and export print-ready PDF and Excel matrices.
Scheduling Rules and Constraint Configuration
Generated Print-Ready Timetable Export

Hard vs. Soft Constraints

The critical engineering challenge was structuring constraints so that generated schedules are not just mathematically valid, but pedagogically practical:

  • Hard Constraints (Never Broken): No lecturer can be scheduled for two concurrent lectures; no room can host multiple classes simultaneously; no class can be assigned to a room smaller than its enrolled cohort.
  • Soft Constraints (Optimized Preferences): Minimize excessive consecutive lecture hours for student cohorts, reduce awkward three-hour idle gaps between classes, and minimize campus zone transit times for instructors.

What This Project Taught Me

Building a constraint-based timetable engine taught me that solving complex software challenges is not just about finding any valid permutation; it is about accurately modeling competing real-world constraints and engineering efficient search strategies that consistently produce practical, balanced solutions.

Previous Project
Next Project