Professional Documents
Culture Documents
Abstract— Time-table scheduling in an educational institution one day. When the soft constraint is fulfilled, it will increase
is a very complex problem. This is because of many regulations the satisfaction and the comforts of the teachers and students.
that must be considered, which are often referred as hard and
soft constraints. Unlike in college whose students can be at school Several previous research applied genetic algorithms to
only if they have any classes, in junior and senior high schools the solve scheduling problems [3][4]. Genetic algorithms are used
schedule amounted to remain a full set of periods every day, so because of its ability to search for optimal solutions in large
each student must follow a series of all learning process from search space. For example, Ghasemi [2] used a genetic
morning till afternoon. The crowded schedule can make students algorithm to improve solutions feasibility integrated with the
too tired and distracted during the learning process. The purpose neighborhood in the bee colony algorithm to solve time-table
of this research is to make time-table scheduling within the right scheduling problem. Previous studies have suggested that
time window due to the consideration that each subject requires a genetic algorithms are used successfully to find the optimum
different thinking portion. Considering the proper time window solution for scheduling problems.
and the hardness of manual scheduling, we proposed a modified
genetic algorithm with a fuzzy time window to solve this problem. Most of the previous research has solved the problem of
Genetic algorithm with modified mutation operation has been subject scheduling at the college level. However, the time-table
implemented to find the optimum solution for this time-table scheduling problem in junior and senior high schools is
scheduling. The modified mutation operator provides a different from time-table scheduling at the college level. At the
guarantee in producing offspring that has better fitness value college level, a student may get a different number of courses
compared to the parent because this operator utilizes fuzzy each day. For example, they can have 3 courses on Monday,
values as a reference in the exchange of genes. With these but there are only 2 courses on Tuesday, and there is no class
guarantees, most offspring generated from the mutation process on Wednesday. The schedule allows students to come to school
can be a feasible offspring and can save time to avoid repair only when they have classes to follow. Unlike in the university,
mechanisms, so the proposed method can get the optimum the time-table scheduling in junior and senior high schools
solution faster. includes the same number of periods for each day. Students are
required to attend a series of lessons from morning till
Keywords— fuzzy time window, genetic algorithm, time-table
afternoon. The wrong scheduling may lead the students to feel
scheduling
bored and be easily distracted. For example, students will feel
bored when all of the subjects that they have in a day are exact
I. INTRODUCTION subjects, like Math, Physics, and Biology. On the other hand,
The time-table scheduling problem is a complex problem students can be easily distracted when all of the subjects in a
and classified as NP-Hard problems [1][2]. That means, to find day are the fun subjects, like arts, physical education, which
an optimum solution can take a very long time. The complexity don’t require much thinking portion. The exact subjects need
of the scheduling problems determined by some variables more thinking portion than social subjects because in the exact
associated with it, such as the number of rooms, the number of subjects students will have many equation problems to solve,
teachers, as well as the number of classes available. The which need logical and computational thinking. This kind of
number of classes, limited rooms, and teachers will increase the subjects needs to be placed in the morning when students still
complexity of the scheduling problem. There are two kinds of have a fresh time to think so they can follow the lesson well.
constraint in time-table scheduling are a hard constraint and Recognizing that each subject requires a different thinking
soft constraint. Hard constraints associated with the restrictions portion, this study aims to solve the scheduling problem by
that should not be violated, like a room should not be used by considering the right time window for each subject. For
more than one learning activity at the same time, a class may example, physical education will have higher satisfaction level
not be scheduled to follow two learning activities at the same for students and teachers when placed in the first period than
time. While the soft constraint is a non-essential restriction, for the last period. This is due to environmental conditions (the air
example, the maximum number of exact scheduling lessons in and the sunlight) in the morning is very good for the body.
When sports lessons are placed in the last period, students may
89
shows all periods remaining in a week (7 periods x 5 result of the proposed method (GA with the proposed mutation
days), while 6 shows the number of classes. Each gene operation) with the ordinary GA with the reciprocal exchange
is represented using an integer number. This integer as the mutation operation.
number is the key to distinguish every job-teacher who
teach in each different class. For example, Teacher A
teaching all classes by two hours each class, then the
teacher will have 6 integer numbers, which the number A. Result of Parameter Testing
should only appear 2 times for each class. 1) Pop Size Testing
Pop size testing is done to find the best pop size to
• Fitness function in this scheduling problem will be
achieve the optimum solution. Pop size testing will be shown
shown at (2)
in Fig 3.
(2)
90
before convergence condition occurred. This test uses the best regulating the amount of frequency of a subject in a day. For
pop size number and crossover rate and mutation rate that has example, class 8A must follow Indonesian lessons in 3
been found in the previous testings. Fig 5 will show the result different periods in Friday, and of course, this can make the
of maximum iteration testing. students bored and saturated.
Meanwhile, the crossover operations play an important
role in maintaining the diversity of solutions during the process
of the genetic algorithm. Meanwhile, the mutation operation
proposed in this case has a major role in modifying a solution
so the solution has an offspring with better fitness value. The
novelty of this research is the usage of fuzzy output
(satisfaction level) is not only for calculating the fitness value,
but also used as a reference to modify the chromosome in the
mutation operation. This modified mutation operation assists in
finding solutions with better fitness values faster than the
original reciprocal exchange mutation operation. This is
because the modified mutation operator directly selects some
points that have great potential in making the solution not
feasible and violates many soft constraints then exchanges it
with the satisfied points. However, the crossover and mutation
Fig 4. Crossover rate and mutation rate testing result processes will probably produce an unfeasible offspring. An
unfeasible offspring occurs when there is at least one code
which frequency of occurrence exceeds or is less than the
specified in a class. Fig 6 will show the illustration of an
unfeasible solution.
Based on Fig 5, the proposed algorithm will obtain its 4 Math Bible SS Bible Bio PE
5 Indo Bible Phy SS PE Phy
maximum fitness function at the 80th iteration and there is no 6 SS Indo Comp Indo ELL Bible
improvement for several next iterations. The computation time 7 SS ELL Civic Music ELL SS
for generating 80 iterations is 8 seconds by using the GA with 1 Cha Cha Cha Cha Cha Cha
a fuzzy time window. Meanwhile, the original GA needs 10 2 Bio Art Music Indo PE Music
Wednesday
seconds for executing 80 iterations, although the fitness value 3 ELL Bio Bio Math Bible SS
4 Bible Math Bio PE Math Bio
obtained is much less than the proposed method.
5 Math Music Math Phy Music Math
6 SS Comp SS Art ELL Bible
7 Art Bible ELL Comp SS ELL
B. Discussion
1 Comp Math Art Bio Math Bio
Based on the best parameters achieved from parameter 2 Math PE PE Music Music Math
testings, the near-optimum solution is shown in Table II.
Thursday
91
Based on the illustration shown in Fig 6, the code 1 supposed solution was found in 80th generation with the computing time
to appear only 2 times in a class. Child 2 (offspring) is an needed is 8 seconds.
unfeasible solution because the code 1 appears more than two
times, so we need to repair this solution using the repair For further research, the algorithm can be modified so it
mechanism. The repair mechanism introduced by the following can address more complex scheduling problems, such as,
pseudocode at Algorithm 1. setting the subject’s maximum frequency of occurrence in one
day, as well as ensuring the schedule of a subject close
together if the subject appears more than one period in one day
required. The adaptive GA can also be tried to solve time-table
scheduling problem [10].
ACKNOWLEDGMENT
We especially thank to Charis National Academy who has
shared the scheduling data for this research.
Fig 6. Unfeasible solution illustration
92