Skip to content
Open access

Implementation of a Genetic Algorithm for Web-Based Course Timetabling Optimization at SMA IT Miftahul Huda

Oct 2026 · Journal of Artificial Intelligence and Engineering Applications (JAIEA) · 0 citations · 10 references

Abstract

Manual class scheduling at SMA IT Miftahul Huda frequently results in teacher and room conflicts, violations of institutional constraints, and lengthy preparation time, since the process must accommodate 30 teachers, 12 classes, and 18 subjects across 42 weekly time slots. This study proposes a Genetic Algorithm (GA) to optimize subject scheduling and produce a conflict-free, web-based timetable. The GA chromosome represents each teaching activity as a combination of class, time slot, subject, teacher, and room, while hard constraints—such as teacher and room availability—and soft constraints—such as maximum daily teaching load and subject distribution—are encoded into the fitness function. The algorithm applies tournament selection, one-point crossover, and swap mutation with a population size of 100 across a maximum of 500 generations. Testing shows that the GA eliminates teacher conflicts (from 14 to 0) and room conflicts (from 5 to 0), reduces hard constraint violations from 19 to 0 and soft constraint violations from 12 to 2, shortens scheduling time from approximately 5 hours to 25 seconds, and raises the best fitness value from 0.68 to 0.99. These results indicate that the GA-based web scheduling system significantly outperforms manual scheduling in accuracy, efficiency, and constraint compliance, making it a viable solution for school timetable generation.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.