Genetic Algorithm for Solving 3 Dimensional Time Table Problem Based on Traveling Salesman Problem (TSP) Method
Dwi Fatul Oktafiani, Muhammad Ardhi Khalif
{"title":"Genetic Algorithm for Solving 3 Dimensional Time Table Problem Based on Traveling Salesman Problem (TSP) Method","authors":"Dwi Fatul Oktafiani, Muhammad Ardhi Khalif","doi":"10.21580/jnsmr.2018.4.1.10958","DOIUrl":null,"url":null,"abstract":"Scheduling problems are problems that are often faced by educational institutions, especially at the university level. This is because there are several obstacles in the preparation of the schedule, namely first, there should be no duplication of space, day, and hour. Second, there should be no duplication of lecturers on the same day and time, even though in different rooms and in different subjects. Third, there should be no duplication of group classes (study groups). Therefore, the purpose of this study is to obtain a genetic algorithm as a solution in overcoming the three constraints of preparing the schedule by using the Traveling Salesman Problem (TSP) method in the crossover process. To make it easier to organize the schedule, a 3-dimensional matrix is used with the x-axis representing (space, day, hour), the y-axis representing (courses, lecturers, credits) and the z-axis representing (classes). This study simulates the scheduling of 20 courses, 50 credits, 8 lecturers, and 19 classes. Chromosomes in this study are permutations of integers 1-20. Each gene in a chromosome represents a course package. From the scheduling results, the fitness function is 0.96 for 48 schedule slots (2 rooms x 3 days x 8 hours). For schedule slots greater than 50 (3 rooms x 3 days x 8 hours, 2 rooms x 4 days x 8 hours, and 2 rooms x 3 days x 9 hours), this algorithm is successful in getting fitness function 1. ©2018 JNSMR UIN Walisongo. All rights reserved.","PeriodicalId":191192,"journal":{"name":"Journal of Natural Sciences and Mathematics Research","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-06-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Natural Sciences and Mathematics Research","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.21580/jnsmr.2018.4.1.10958","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Scheduling problems are problems that are often faced by educational institutions, especially at the university level. This is because there are several obstacles in the preparation of the schedule, namely first, there should be no duplication of space, day, and hour. Second, there should be no duplication of lecturers on the same day and time, even though in different rooms and in different subjects. Third, there should be no duplication of group classes (study groups). Therefore, the purpose of this study is to obtain a genetic algorithm as a solution in overcoming the three constraints of preparing the schedule by using the Traveling Salesman Problem (TSP) method in the crossover process. To make it easier to organize the schedule, a 3-dimensional matrix is used with the x-axis representing (space, day, hour), the y-axis representing (courses, lecturers, credits) and the z-axis representing (classes). This study simulates the scheduling of 20 courses, 50 credits, 8 lecturers, and 19 classes. Chromosomes in this study are permutations of integers 1-20. Each gene in a chromosome represents a course package. From the scheduling results, the fitness function is 0.96 for 48 schedule slots (2 rooms x 3 days x 8 hours). For schedule slots greater than 50 (3 rooms x 3 days x 8 hours, 2 rooms x 4 days x 8 hours, and 2 rooms x 3 days x 9 hours), this algorithm is successful in getting fitness function 1. ©2018 JNSMR UIN Walisongo. All rights reserved.
基于旅行商问题(TSP)方法求解三维时间表问题的遗传算法
日程安排问题是教育机构经常面临的问题,特别是在大学层面。这是因为在制定时间表的过程中有几个障碍,即第一,不应该有重复的空间、日期和时间。第二,即使在不同的教室和不同的科目上,也不应该在同一天和同一时间有重复的讲师。第三,不要重复小组上课(学习小组)。因此,本研究的目的是利用旅行商问题(TSP)方法,在交叉过程中,获得一种遗传算法作为克服计划编制三个约束的解决方案。为了更容易组织时间表,我们使用了一个三维矩阵,其中x轴表示(空间、日期、小时),y轴表示(课程、讲师、学分),z轴表示(班级)。本研究模拟20门课程、50学分、8位讲师、19个班级的课程安排。本研究中的染色体是整数1-20的排列。染色体中的每个基因代表一个课程包。从调度结果来看,48个调度时段(2个房间x 3天x 8小时)的适应度函数为0.96。对于大于50个时间段(3个房间× 3天× 8小时,2个房间× 4天× 8小时,2个房间× 3天× 9小时),该算法成功得到适应度函数1。©2018 JNSMR UIN Walisongo。版权所有。
本文章由计算机程序翻译,如有差异,请以英文原文为准。