Choosing the Right Optimisation Tool
To tackle this problem, the project turned to Timefold Solver (formerly OptaPlanner), a powerful, open-source constraint solver known for its flexibility in handling complex scheduling tasks. Timefold’s strengths lie in its ability to optimise large-scale, multi-variable problems, making it ideal for this highly variable academic environment.
Key Technical Innovations
Early iterations of the timetable generator revealed critical performance bottlenecks, prompting the intern to refine the underlying data structures. Shifting from list-based to set-based data structures significantly improved access speeds and computational efficiency, enhancing the solver’s capacity to manage the massive search space inherent in academic scheduling.
Additionally, the project incorporated advanced optimisation strategies, including score calculation adjustments and constraint refinement. By employing a dual execution strategy—separating hard and soft constraint processing—the system achieved faster convergence on viable solutions, dramatically reducing computation times.