Automated Timetable Generator Using Particle Swarm Optimization
Automated Timetable Generator Using Particle Swarm Optimization
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
Kawaljeet Singh
University Computer Centre
Punjabi University, Patiala
Punjab, India
[email protected]
Neeraj Sharma
Dept. of Computer Science
Punjabi University, Patiala
Punjab, India
[email protected]
______________________________________________________________________
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
J
K
L
M
C
(1)
M)
(5)
(2)
In the equation
687
IJRITCC | September 2013, Available @ http://www.ijritcc.org
______________________________________________________________________
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
4. Department Timetabling Problem
The four main factors in course timetabling are teachers,
courses, timeslots and classrooms together with other
teaching facilities. The combination of these four factors is
defined as the particle position and each particle represents
a solution group. The objective is to obtain the optimal
particle position.
First we set the four parameters of the PSO that are
number of iterations, learning factors (cognitive and social)
and inertia weight factor. We take the Gbest values for
different number of iterations for 10, 20 ,, 240, 250,
different values of learning factors and different values of
inertia weights. For which value of these parameters, Gbest
is maximum that value is given optimal solution. We set
these parameters and use dataset in our algorithm. We are
generating the automatic timetable for Department of
Computer Centre, Punjabi University Patiala. Thus we take
the dataset from department and use this in our technique.
[7]
The evolving process isas follows and then shows the
department-timetabling flowchart.
(1)
______________________________________________________________________
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
5. Results: This study was conducted by analyzing a
situation involving 14 lecturers, 7 classrooms, 28 subjects,
12 software labs and 5 classes. The goal was to produce the
most satisfactory class schedule to meet the various
constraints as well as the expectations of the teachers. In
order to demonstrate the efficiency and performance of the
proposed PSO algorithm, several experiment results were
carried out.
5.1 Iteration Quantity Iteration:
Figure 5.1 shows the results of analysis of the evolution of
10, 20, 30 ., 240, 250 iterations on the given data set
and find the Global best (fitness) value of course
timetabling problem. When the evolution of each iteration
of particles is conducted, the best Fitness value comes from
when the number of iterations is 140.
5.2 Learning Factor Analysis
Using the better average satisfaction value obtained,
analyzing learning factor c1 and c2, testing results with
PSO are shown in figure 5.2 and 5.3.The average fitness
value for c1= 0.1is higher than the other values (figure 5.2).
Same as the average fitness value for c2= 1.8 is higher than
others (figure 5.3).
5.3 Inertia Weight Analysis:
The inertia weight value is used to balance the global
search ability and the local search ability. If the w value
setting is inappropriate, it is impossible to explore unknown
areas and the search for the personal best and global best
will also be affected. Figure 5.4 shows the satisfaction
value obtained from tests conducted with PSO using
different w values. Apparently, there is higher satisfaction
obtained when w= 0.9.
689
IJRITCC | September 2013, Available @ http://www.ijritcc.org
______________________________________________________________________
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
Fig 5.2 c1 verse Gbest (faculty 14, iterations 140, c2=1.2, w=0.9)
Fig 5.4w verse Gbest (faculty 14, iterations 140, c1=0.1,c2= 1.8)
Finally, course timetabling that achieves the optimal
satisfaction for the dataset from department of computer
science is simulated using PSO when iterations=140,
c1=0.9, c2=1.8 and w=0.9. We take twenty eight subjects
(S1, S2, ., S27, S28), twelve labs (L29, L30,..,
L40) and fourteen teachers (T1, T2. T14) in our
paper. T1 to T6 are professors, T7 is associate professor
______________________________________________________________________
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
subjects and two software labs. They give a weight for
every preferred subject 6 for most preferred subject, 5 for
average and so onand 1 for least preferred subject.
Similarly 3 for most preferred software lab, 2 for average
and 1 for least preferred software labs. Table 5.1 shows the
preferences for subjects given by teachers and table 5.2
shows the lab preferences and table 5.3 shows the subjects
and
labs
that
allocate
to
teachers.
S1
S2
S3
S4
S5
S6
S7
S8
S9
S10
S11
S12
S13
S14
S15
S16
S17
S18
S19
S20
S21
S22
S23
S24
S25
S26
S27
S28
T1
2
0
0
3
0
0
0
0
0
0
0
0
4
0
0
0
0
0
5
0
0
1
0
0
0
6
0
0
T2
0
0
2
0
0
1
0
3
0
0
0
0
0
0
0
4
0
0
0
0
0
0
0
5
0
0
0
6
T3
T4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
0
0
3
0
0
1
0
0
0
T11
0
0
3
0
0
0
2
0
0
0
1
0
T12
2
0
0
0
0
0
3
0
0
0
0
1
T13
0
2
0
0
3
0
0
1
0
0
0
0
T14
1
0
0
2
0
0
0
0
0
3
0
0
______________________________________________________________________
ISSN: 2321-8169
686 692
Volume: 1 Issue: 9
______________________________________________________________________
We implement this dataset in our system using particle
swarm optimization and subjects and
TEACHER ID
ALLOCATED SUBJECTS AND SOFTWARE LABS ID
S26,P37
T1
P39,S28
T2
S21,P38
T3
S27,P31
T4
S17,P36
T5
S7,S19,P33
T6
S3,S12,S23
T7
S6,S10,P29
T8
S24,S4,P40
T9
S25,S14,P34
T10
S22,S18,S2,P35
T11
S20,S11,S15
T12
S4,S16,S8,P30
T13
S13,S9,S1,P32
T14
Table 5.3 subjects and software labs allocated to teachers
After the allocation of subjects to teachers system calculate
the objective function. The objective function should be
maximized. As much as objective function large the results
would be more optimize. When we run our system the
calculated objective function is 173. This value gives more
satisfaction results. From our results we see linear model
try to satisfy the all faculty members not only professors.
We observe that junior teachers more satisfy using this
technique.
______________________________________________________________________