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

Authors

  • Dede Subhan Sabani Cipasung University
  • Robby Maududy Cipasung University
  • - Cipasung University

DOI:

https://doi.org/10.59934/jaiea.v6i1.2852

Keywords:

fitness function; Genetic Algorithm; scheduling optimization; timetabling; web-based system

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.

Downloads

Download data is not yet available.

References

X. Han, P. Li, and X. Zhou, "Gradual optimization of university course scheduling using GA and local search," Algorithms, vol. 15, no. 12, 2022.

C. Wang, Y. Zhang, and H. Zhou, "Improved genetic algorithm for educational timetabling using adaptive fitness functions," Appl. Intell., vol. 53, no. 7, pp. 9214–9233, 2023, doi: 10.1007/s10489-022-03600-7.

R. E. Wiratna, A. L. Nurlaili, and A. M. Rizki, "Pembuatan aplikasi penjadwalan mata kuliah menggunakan algoritma genetika," J. Teknol. dan Manaj., vol. 4, no. 1, pp. 13–20, 2023, doi: 10.31284/j.jtm.2023.v4i1.3990.

R. A. Nasution and A. Simangunsong, "Penerapan algoritma genetika untuk penjadwalan mata pelajaran (Studi kasus: SMK AKP Galang)," J. Sist. Inf. dan Teknol. Jar., vol. 4, no. 2, pp. 42–46, 2023.

A. D. Putra and B. Kurniawan, "Sistem penjadwalan mata pelajaran berbasis algoritma genetika pada sekolah menengah atas," J. RESTI (Rekayasa Sist. dan Teknol. Inf.), vol. 6, no. 4, pp. 657–665, 2022.

M. Irfan, M. Lubis, and Z. Masruro, "Implementation of genetic algorithm for subject scheduling at SD Taman Cahya Pematangsiantar," JOMLAI: J. Mach. Learn. Artif. Intell., vol. 1, no. 2, 2022, doi: 10.55123/jomlai.v1i2.940.

Q. A. A. Siagian, M. S. Hasibuan, and S. Suhardi, "Sistem penjadwalan mata pelajaran memakai algoritma genetika berbasis web," INFOMATEK: J. Inform. Manaj. dan Teknol., vol. 26, no. 2, pp. 285–296, 2024, doi: 10.23969/infomatek.v26i2.19378.

R. Abo-Alsabeh and A. Salhi, "The genetic algorithm: A study survey," Iraqi J. Sci., vol. 63, no. 3, pp. 1215–1231, 2022.

D. Yang, Z. Yu, H. Yuan, and Y. Cui, "An improved genetic algorithm and its application in neural network adversarial attack," PLOS ONE, vol. 17, no. 5, e0267970, 2022, doi: 10.1371/journal.pone.0267970.

H. K. Thakkar and P. K. Sahoo, "The genetic algorithm," in Cognitive Big Data Intelligence with a Metaheuristic Approach, Elsevier, 2022.

P. K. Ayuningtyas, D. Atmodjo WP, and P. Rachmadi, "Performance and functional testing with the black box testing method," Int. J. Progress. Sci. Technol., vol. 39, no. 2, pp. 212–218, 2023.

Downloads

Published

2026-10-15

How to Cite

Dede Subhan Sabani, Robby Maududy, & -. (2026). Implementation of a Genetic Algorithm for Web-Based Course Timetabling Optimization at SMA IT Miftahul Huda. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 6(1), 1165–1170. https://doi.org/10.59934/jaiea.v6i1.2852