Professional Documents
Culture Documents
net/publication/2562732
CITATIONS READS
25 105
2 authors, including:
Andrea G. B. Tettamanzi
University of Nice Sophia Antipolis
250 PUBLICATIONS 2,223 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Transport Oriented Model for urban denSification Analysis (TOMSA) View project
Distributed Artificial Intelligence for Uncertain Linked Data Management on the Semantic Web View project
All content following this page was uploaded by Andrea G. B. Tettamanzi on 28 November 2018.
1 Introdu
tion
The time-table problem (TTP) is the planning of a number of meetings (e.g.,
exams, lessons, mat
hes) involving a group of people (e.g., students, tea
hers,
athlets) for a given period and requiring given resour
es (e.g., rooms, laborato-
ries, sports fa
ilities) a
ording with their availability and respe
ting some other
onstraints.
The TTP is an ex
iting
hallenge for
omputational intelligen
e and opera-
tions resear
h, essentially be
ause it is NP-
omplete [7℄. S
hool time-tabling is
often even more
ompli
ated by the details of a given real situation and real-
world problem instan
es often involve
onstraints es
aping an exa
t representa-
tion, su
h as
onstraints related to user personal preferen
es. Advan
ed sear
h
te
hniques exploit various heuristi
s in order to rule out from the sear
h spa
e
those regions where an optimum is not expe
ted to exist. One of these heuristi
s,
namely evolutionary algorithms, have been su
essfully applied to various types
of TTP [6, 1, 4℄ and are among the most promising te
hniques available to date
for solving this kind of problem.
This paper is organized as follows: Se
tion 2 presents the data and the
on-
straints that make up a problem instan
e and the form of a solution, in order to
identify its
hara
terizing aspe
ts. Se
tion 3 des
ribes the evolutionary algorithm
implemented. Finally, Se
tion 4 demonstrated the experiments
arried out with
the algorithm on some real-world problem instan
es, and Se
tion 5 dis
usses the
results.
2 The Problem
2.1 Instan
e Representation
{
lasses (i.e., groups of students, in
luding the degenerate
ase of single stu-
dents), assigned to a given lo
ation (e.g., building) and having their avail-
ability matrix, su
h as the one in Figure 2;
{ lessons, meaning the relation ht; s;
; li, where t is a tea
her, s is the subje
t,
is the
lass attending the lesson and l is the duration in periods. More than
one tea
her and more than one
lass
an parti
ipate in a lesson, in whi
h
ase we speak of grouping.
As the reader will have noti
ed, some
onstraints of the s
hool TTP are most
naturally expressed in fuzzy terms [11℄.
Fig. 2. An availability matrix for a
lass.
2.2 Constraints
The approa
h adopted to solve the problem des
ribed in Se
tion 2 is a quite
standard elitist evolutionary algorithm, ex
ept for the perturbation operator,
whi
h alternates between an intelligent mutation operator and an improvement
operator, whose details are given below.
hard
onstraints soft
onstraints
Constraint Entity Constraint Entity
bounded rooms rooms room availability rooms
physi
al availability tea
hers priority subje
ts
ontra
tual availability tea
hers subje
tive availability tea
hers
o-lo
ation
lasses displa
ement tea
hers
presen
e
lasses
on
entration tea
hers
pre-assignment lessons distribution lessons
sequentiality lessons de
reasing burden lessons
no gaps
lasses lo
ality lessons
non overlap lessons uniformity lessons
Table 1. A possible lassi ation of onstraints for the Italian s hool system.
A dire
t representation has been
hosen, along the lines of [4, 1, 2, 5℄, even though
re
ent work [10℄ would suggest indire
t representation to work mu
h better.
However, given the use of the improvement operator, whi
h is a Lamar
kian
lo
al sear
h operator, one might argue that our method should not really be
lassed as having a dire
t representation. If this operator were always applied
then one
ould possibly des
ribe our algorithm as having an indire
t represen-
tation with the
hromosome providing a parameterisation to the improvement
operator.
So, in the end, our approa
h might show the advantages both of an indire
-
t representation and of a dire
t representation. Moreover, su
h representation
lends itself to spe
ializations of the kinds required by a many-fa
eted reality like
the Italian s
hool system.
1. a simple pro
edure for
al
ulating the penalties to assign to the violation of
ea
h
onstraint;
2. easy design of operators whi
h preserve feasibility, thus allowing signi
ant
savings of
omputational power;
3. last but not least, a parti
ularly eÆ
ient de
oding fun
tion whi
h, given a
genotype, re
onstru
ts the
orresponding timetable.
3.2 Initialization
3.3 Fitness
The tness fun
tion employed by our evolutionary algorithm for s
hool timetabling
is of the form
f (g) =
1
P +
P
1 + i i hi 1 + j j sj
; (1)
where hi 2 IR+ is the penalty asso
iated to the violation of the ith hard
on-
straint, whose relative weight is i 2 IR+ , and sj 2 IR+ is the penalty asso
iated
to the degree of violation of the j th soft
onstraint, whose relative weight is
j 2 IR+ ; nally,
2 f0; 1g is zero until all hard
onstraints are satised, and
one sin
e.
The weights atta
hed to ea
h hard and soft
onstraint allow the algorithm
to be ne-tuned to better dire
t sear
h. In pra
ti
e, the weights were
hosen
a
ording to the relative importan
e of
onstraints in the problem instan
es
treated. It should be stressed that the results are very sensitive to the
hoi
e of
the weights, be
ause soft
onstraints
orrespond to
on
i
ting
riteria.
Satisfa
tion of soft
onstraints begins only after at least one feasible solution
has been found, and
is swit
hed to one: this devi
e does not let evolution trade
o slight violations of hard
onstraints with high satisfa
tion of soft
onstraints.
3.4 Sele
tion
The individuals are
hosen for reprodu
tion using tournament sele
tion [3℄, with
tournament size k 2, whi
h is a parameter of the algorithm. The implementa-
tion of this sele
tion s
heme enfor
es elitism by introdu
ing at least one
opy of
the best individual into the next generation, without perturbation. Apart from
this detail, the algorithm uses a generational repla
ement reprodu
tion strategy.
3.5 Re ombination
Among the
ross-over operators des
ribed in the literature for an integer rep-
resentation like the one adopted by our algorithm (see e.g. [9℄), the one that
proved to be best suited for the TTP, based on experiments on the three sample
problem instan
es dis
ussed in Se
tion 4, was uniform
ross-over, whose me
ha-
nism is illustrated in Figure 4: this operator treats the integer genes atomi
ally.
Re
ombination is performed on ea
h pair of individuals with probability p
ross ,
whi
h is a parameter of the algorithm.
parent 1
child 1
pcross
1/2 1/2 1/2 1/2
child 2
Gene 1 Gene 2 Gene 3 Gene 4 Gene i Gene |L|-1 Gene |L|
parent 2
Gene 1 Gene 2 Gene 3 Gene 4 Gene i Gene |L|-1 Gene |L|
3.6 Perturbation
Typi
ally, mutation in EAs is a blind operator, in the sense that it produ
es
random perturbations, regardless of the fa
t that they improve or worsen the
solution represented by the ae
ted individual.
In
ontrast with that, the two perturbation operators employed in
ombina-
tion by our algorithm are rather of the Lamar
kian type, i.e., based on the law
of use and disuse whi
h, if wrong when referred to natural geneti
s, sometimes
leads to more eÆ
ient sear
h in arti
ial evolutionary systems.
The two mutually ex
lusive perturbation operators are:
{ intelligent mutation , applied with probability pmut , and
{ improvement , applied with probability pimprove .
At ea
h generation, the de
ision whether to enable the intelligent mutation or
the improvement operator is made by tossing a biased
oin. The bias ppert, in
favor of intelligent mutation, is a parameter of the algorithm.
Table 2. Summary of the G. Mar oni model industrial te hni al high-s hool.
Parameter Value
Population size 100
p
ross 0.3
ppert 0.5
pmut 0.02
pimprove 0.02
Tournament size k 30
i , j 1 for all i, j
Table 4. Optimal parameter settings for the evolutionary algorithm.
Figure 5 plots the tness and the penalties asso
iated to
onstraint violations
during a run of the algorithm on the Leonardo ly
ee. The rst feasible solution
was found at generation 2,001, and the run was stopped at generation 10,200
when the degree of satisfa
tion of soft
onstraints did not look likely to in
rease
anymore.
200
180 constraint satisfaction
1,4
160
fitness
1,2 140
120
1
100
0,8 80
60
0,6
40
0,4 20
0
0,2 0 600
conflicts (classes) 1200 1800 2200 2800
conflicts (teachers) 3400
0 4600 6000
0
conflicts (rooms) 8800
600 1200 1800 2200 10200
2800 3400 4600 6000
dissatisfaction (teachers)
worst 8800 10200 distribution (subjects)
average
generation
daily weight (teachers) generation
best distribution (lessons)
Fig. 5.Fitness graph and evolution of
onstraint satisfa
tion during a run for the
Leonardo ly
ee.
5 Dis
ussion
The algorithm des
ribed in Se
tion 3
annot be
onsidered a \pure" evolutionary
algorithm; instead, its eÆ
ien
y and ee
tiveness rely
riti
ally on the hybridiza-
tion with two heuristi
s based on lo
al sear
h, implemented by the intelligent
mutation and improvement operators.
Even without ne tuning of the algorithm parameters and of the relative
onstraint weights i and j , the quality of the results obtained, whi
h
annot
be shown here for la
k of spa
e, was remarkable, all the more so be
ause no
simplifying assumption or
onstraint elimination had to be made to obtain them.
The timetables obtained were submitted to the timetable
ommittee of the
Leonardo da Vin
i s
ienti
state ly
ee, whi
h has been in
harge for years of
assembling the s
hool timetable at every opening of the s
hool year. Their expert
assessment of the results was highly positive and their implementation did not
require any manual adjustment.
The pra
ti
al relevan
e of the results obtained led Geneti
a S.r.l. to pa
k-
age the approa
h de
ribed in this paper into a full-
edged
ommer
ial software
produ
t, EvoS
hool, whi
h has been su
essfully laun
hed on the Italian market.
Adaptations for other
ountries are also under way. EvoS
hool, version 2.0, is
freely available for evaluation at the URL
http://www.geneti
a-soft.
om/eng/evos
hool.html
The demo
omes with the datasets for the three examples des
ribed in Se
tion 4.
Referen
es
1. P. Adamidis and P. Arakapis. Weekly le
ture timetabling with geneti
algorithms.
Pro
eedings of the 2nd International Conferen
e on the Pra
ti
e and Theory of
Automated Timetabling, University of Toronto, Canada, 1997.
2. A.M. Barham and J.B. Westwood. A Simple Heuristi
to Fa
ilitate Course
Timetabling. J. Opnl. Res. So
. 29, 1055-1060.
3. A. Brindle. Geneti
algorithms for fun
tion optimization. Te
hni
al Report TR81-
2, Department of Computer S
ien
e, University of Alberta, Edmonton, 1981.
4. J.P. Caldeira and A.C Rosa. S
hool timetabling using geneti
sear
h. Pro
eedings
of the 2nd International Conferen
e on the Pra
ti
e and Theory of Automated
Timetabling, University of Toronto, Canada, 1997.
5. D. Corne,P. Ross, H. Fang. Evolutionary Timetabling: Pra
ti
e, Prospe
ts and
Work in Progress. Presented at the UK Planning and S
heduling SIG Workshop,
(Strath
lyde, UK, September 1994), organised by P Prosser.
6. W. Erben. A Grouping Geneti
Algorithm for Graph Colouring and Exam
Timetabling. Pro
eedings of the Third International Conferen
e on the Pra
-
ti
e and Theory of Automated Timetabling, Constan
e, Germany, August 16{18,
2000.
7. S. Even, A. Itai, A. Shamir. On the Complexity of Timetable and Multi
ommodity
Flow Problems. Siam Journal of Computing, Vol. 5, No.4, De
ember 1976, 691-
703.
8. D.E. Goldberg. Geneti
Algorithms in Sear
h, Optimization and Ma
hine Learn-
ing. Addison-Wesley, Reading, MA, 1989.
9. Z. Mi
halewi
z. Geneti
Algorithms + Data Stru
tures = Evolution Programs.
Springer-Verlag, Berlin, 1992.
10. B. Pae
hter, R. C. Rankin, A. Cumming. Improving a Le
ture Timetabling System
for University Wide Use. Pra
ti
e and Theory of Automated Timetabling II,
Springer-Verlag, LNCS 1408, Berlin, 1998.
11. L.A. Zadeh. Fuzzy Sets and Appli
ations: Sele
ted Papers. John Wiley & Sons,
New York, 1987.