13
Discrete Optimization Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems Rong Qu a, * , Edmund K. Burke a , Barry McCollum b a Automated Scheduling, Optimisation and Planning (ASAP) Group, School of Computer Science, University of Nottingham, Wollaton Road, Nottingham NG8 1BB, UK b School of Computer Science, Queens University, University Road, Belfast BT7 1NN, N. Ireland, UK article info Article history: Received 15 August 2006 Accepted 8 October 2008 Available online 17 October 2008 Keywords: Adaptive Exam timetabling Graph colouring Graph colouring heuristics Hybridisation Hyper-heuristic abstract In this paper, we present a random iterative graph based hyper-heuristic to produce a collection of heu- ristic sequences to construct solutions of different quality. These heuristic sequences can be seen as dynamic hybridisations of different graph colouring heuristics that construct solutions step by step. Based on these sequences, we statistically analyse the way in which graph colouring heuristics are auto- matically hybridised. This, to our knowledge, represents a new direction in hyper-heuristic research. It is observed that spending the search effort on hybridising Largest Weighted Degree with Saturation Degree at the early stage of solution construction tends to generate high quality solutions. Based on these obser- vations, an iterative hybrid approach is developed to adaptively hybridise these two graph colouring heu- ristics at different stages of solution construction. The overall aim here is to automate the heuristic design process, which draws upon an emerging research theme on developing computer methods to design and adapt heuristics automatically. Experimental results on benchmark exam timetabling and graph colour- ing problems demonstrate the effectiveness and generality of this adaptive hybrid approach compared with previous methods on automatically generating and adapting heuristics. Indeed, we also show that the approach is competitive with the state of the art human produced methods. Crown Copyright Ó 2008 Published by Elsevier B.V. All rights reserved. 1. Introduction Since the 1960s exam timetabling has been one of the most studied subjects in timetabling research (see [20,40]). This is partly because it is one of the most important administrative activities that take place several times a year in all academic institutions. In the literature, there is a range of survey papers that overview different aspects of educational timetabling research (e.g. [2,8,11,17,20,24,32,33,37,40,43,45]). In a general exam timetabling problem, a number of exams must be scheduled to a limited number of time periods (timeslots). In doing this, some constraints must be satisfied in any circum- stances (so called hard constraints). In addition, there is also a set of desirable constraints (so called soft constraints), which may be violated when no solutions can be found which satisfy all of them. These constraints are usually different from one institution to an- other. Solutions with no violations of hard constraints are called feasible solutions. How much the soft constraints are satisfied gives an indication of how good the solutions (timetables) are. In a simplified timetabling problem, if we are only concerned with hard constraints, the problem can be represented by a graph colouring model. Vertices in the graph represent exams in the problem, and edges representing the conflicts between exams (i.e. with common students). The problem is to minimise the col- ours used to colour all vertices, while avoiding the assignment of two adjacent vertices to the same colour. Graph colouring prob- lems are among the most important problems in graph theory and are known to be NP-hard [30]. Graph colouring heuristics such as those presented in [4] were widely studied in early timetabling research [11,20], and are still being employed today as either the initialisation method for meta-heuristics, or are being integrated with meta-heuristics in different ways (e.g. [6,13,16,22,26,38]). Meta-heuristics [9,27] have received significant attention in the last two decades and have been very successful over a range of complex timetabling problems [40]. These include Tabu Search (e.g. [25]), Simulated Annealing (e.g. [44] and Evolutionary Algorithms (e.g. [14]). New techniques and methodologies have also been developed in recent timetabling research. For example, Variable Neighbour- hood Search and Very Large Scale Neighbourhood Search have been applied successfully to exam timetabling problems (e.g. [1,35,39]) by employing different neighbourhood structures during the search. Iterative techniques such as GRASP have also obtained 0377-2217/$ - see front matter Crown Copyright Ó 2008 Published by Elsevier B.V. All rights reserved. doi:10.1016/j.ejor.2008.10.001 * Corresponding author. Tel.: +44 115 8466503; fax: +44 115 8467877. E-mail addresses: [email protected] (R. Qu), [email protected] (E.K. Burke), [email protected] (B. McCollum). European Journal of Operational Research 198 (2009) 392–404 Contents lists available at ScienceDirect European Journal of Operational Research journal homepage: www.elsevier.com/locate/ejor

Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

  • Upload
    rong-qu

  • View
    212

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

European Journal of Operational Research 198 (2009) 392–404

Contents lists available at ScienceDirect

European Journal of Operational Research

journal homepage: www.elsevier .com/locate /e jor

Discrete Optimization

Adaptive automated construction of hybrid heuristics for exam timetablingand graph colouring problems

Rong Qu a,*, Edmund K. Burke a, Barry McCollum b

a Automated Scheduling, Optimisation and Planning (ASAP) Group, School of Computer Science, University of Nottingham, Wollaton Road, Nottingham NG8 1BB, UKb School of Computer Science, Queens University, University Road, Belfast BT7 1NN, N. Ireland, UK

a r t i c l e i n f o

Article history:Received 15 August 2006Accepted 8 October 2008Available online 17 October 2008

Keywords:AdaptiveExam timetablingGraph colouringGraph colouring heuristicsHybridisationHyper-heuristic

0377-2217/$ - see front matter Crown Copyright � 2doi:10.1016/j.ejor.2008.10.001

* Corresponding author. Tel.: +44 115 8466503; faxE-mail addresses: [email protected] (R. Qu), ekb

[email protected] (B. McCollum).

a b s t r a c t

In this paper, we present a random iterative graph based hyper-heuristic to produce a collection of heu-ristic sequences to construct solutions of different quality. These heuristic sequences can be seen asdynamic hybridisations of different graph colouring heuristics that construct solutions step by step.Based on these sequences, we statistically analyse the way in which graph colouring heuristics are auto-matically hybridised. This, to our knowledge, represents a new direction in hyper-heuristic research. It isobserved that spending the search effort on hybridising Largest Weighted Degree with Saturation Degreeat the early stage of solution construction tends to generate high quality solutions. Based on these obser-vations, an iterative hybrid approach is developed to adaptively hybridise these two graph colouring heu-ristics at different stages of solution construction. The overall aim here is to automate the heuristic designprocess, which draws upon an emerging research theme on developing computer methods to design andadapt heuristics automatically. Experimental results on benchmark exam timetabling and graph colour-ing problems demonstrate the effectiveness and generality of this adaptive hybrid approach comparedwith previous methods on automatically generating and adapting heuristics. Indeed, we also show thatthe approach is competitive with the state of the art human produced methods.

Crown Copyright � 2008 Published by Elsevier B.V. All rights reserved.

1. Introduction

Since the 1960s exam timetabling has been one of the moststudied subjects in timetabling research (see [20,40]). This is partlybecause it is one of the most important administrative activitiesthat take place several times a year in all academic institutions.In the literature, there is a range of survey papers that overviewdifferent aspects of educational timetabling research (e.g.[2,8,11,17,20,24,32,33,37,40,43,45]).

In a general exam timetabling problem, a number of examsmust be scheduled to a limited number of time periods (timeslots).In doing this, some constraints must be satisfied in any circum-stances (so called hard constraints). In addition, there is also a setof desirable constraints (so called soft constraints), which may beviolated when no solutions can be found which satisfy all of them.These constraints are usually different from one institution to an-other. Solutions with no violations of hard constraints are calledfeasible solutions. How much the soft constraints are satisfied givesan indication of how good the solutions (timetables) are.

008 Published by Elsevier B.V. All

: +44 115 [email protected] (E.K. Burke),

In a simplified timetabling problem, if we are only concernedwith hard constraints, the problem can be represented by a graphcolouring model. Vertices in the graph represent exams in theproblem, and edges representing the conflicts between exams(i.e. with common students). The problem is to minimise the col-ours used to colour all vertices, while avoiding the assignment oftwo adjacent vertices to the same colour. Graph colouring prob-lems are among the most important problems in graph theoryand are known to be NP-hard [30].

Graph colouring heuristics such as those presented in [4] werewidely studied in early timetabling research [11,20], and are stillbeing employed today as either the initialisation method formeta-heuristics, or are being integrated with meta-heuristics indifferent ways (e.g. [6,13,16,22,26,38]). Meta-heuristics [9,27] havereceived significant attention in the last two decades and havebeen very successful over a range of complex timetabling problems[40]. These include Tabu Search (e.g. [25]), Simulated Annealing(e.g. [44] and Evolutionary Algorithms (e.g. [14]).

New techniques and methodologies have also been developedin recent timetabling research. For example, Variable Neighbour-hood Search and Very Large Scale Neighbourhood Search havebeen applied successfully to exam timetabling problems (e.g.[1,35,39]) by employing different neighbourhood structures duringthe search. Iterative techniques such as GRASP have also obtained

rights reserved.

Page 2: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404 393

some success on exam timetabling (e.g. [22,39]). Other new tech-nologies investigated include Case-Based Reasoning e.g. [12,18],fuzzy reasoning (e.g. [31]) and hybrid approaches (e.g.[6,15,19,23,31,34]).

Hyper-heuristics have received some recent attention in the lit-erature. A hyper-heuristic can be thought of as a heuristic to chooseheuristics [7]. A set of low level heuristics (rather than solutions)represents the search space. One of the motivations is to raisethe level of generality of search methodologies, as problem specificinformation can be restricted to the low level heuristics that dealwith the problem solutions directly. This is fundamentally differ-ent from most studies of meta-heuristics, where problem specificinformation is directly incorporated into the design of the algo-rithms. Approaches that are fine-tuned for particular problems inthis way may not work well on different problems, or even differ-ent instances of the same problem. Low level heuristics investi-gated in hyper-heuristic research may be automatically switchedin the hyper-heuristic framework to adapt to different problems.In the literature, these include both moving strategies (e.g.[3,10,36,41]) and constructive strategies (e.g. [6,13,18,39]). Graphheuristics are the most widely studied low level constructive heu-ristics and have provided promising results on a number of timet-abling problems.

Adaptive techniques have been studied recently in timetablingresearch. In an iterative adaptive method developed in [16], order-ings of exams by graph heuristics are adapted iteratively to con-struct solutions by moving forward those exams that are foundto be difficult to schedule in previous iterations. In this paper, wedevelop an iterative approach that hybridises graph heuristicsadaptively. The ordering of exams to be used to construct solutionscan also be seen as being adaptively, but not directly, adjusted. Thisdraws upon earlier work on squeaking wheel optimisation [29].We adaptively call different ordering strategies during the solutionconstruction process. These heuristics are then hybridised andused to deal with actual solutions directly. Note that the goal ofthis paper is not to design another heuristic (or meta-heuristic)methodology to compare with the other human designed methodsin the literature. Rather, the goal is to present a more effectiveautomated way of designing and adapting heuristics.

2. Benchmark exam timetabling and graph colouring problems

The benchmark exam timetabling and graph colouring prob-lems we used to analyse heuristic sequences, and to test the adap-tive hybrid approach (see Section 5) were firstly introduced in1996 [21], and are publicly available at ftp://ftp.mie.utoronto.ca/pub/carter/testprob/ and http://www.cs.nott.ac.uk/~rxq/data.htm.During the last 10 years the datasets have been widely tested bya number of approaches in the literature. However, there has beenan issue with different instances circulating under the same name.Thus, the datasets were clarified and renamed as version I, version

Table 1Characteristics of the benchmark timetabling problems in [21], also see [40].

car91 car92 ear83 I ear8

No. of exams 682 543 190 189No. of timeslots 35 32 24 24No. of students 16925 18419 1125 110Conflict density 0.13 0.14 0.27 0.27

sta83 I sta83 IIc tre92 ute

No. of exams 139 138 261 184No. of timeslots 13 35 23 10No. of students 611 549 4360 275Conflict density 0.14 0.19 0.18 0.8

II and version IIc in [40]. We used all versions of the data [40] andpresent the characteristics of these problems in Table 1. For theproblem instance ‘‘yor83 IIc”, it is observed that no feasible solu-tions can be obtained by using the GHH approach hybridisingLWD, LE or LD. This might be caused by the corrections that weremade on ‘‘yor83 II”, leading to the corrected ‘‘yor83 IIc” too hard tosolve. Thus in the rest of the paper the results are not presented forthis instance. The conflict density in Table 1 can be defined as thedensity of element cij of value 1 in the matrix, if we define a conflictmatrix C, where cij = 1 if exams i and j conflict, cij = 0 otherwise.During the years, variants a (exam timetabling) and b (graph col-ouring) of these benchmarks have been widely tested in the liter-ature. See more details in [40] and http://www.asap.cs.nott.ac.uk/resources/data.shtml.

In variant b of the problem, a set of (80-682) exams need to bescheduled into a limited number of (10–35) timeslots in differentinstances. Hard constraints avoid students taking two exams atthe same time. That is (i – j and Dij > 0)) ti – tj; (Dij: the numberof students in both exams i and j; ti: the timeslot that exam i isscheduled into). Soft constraints are concerned with spreadingthe exams taken by students evenly over the timetable. That is, ex-ams with common students should not be assigned to timeslotsthat are too close to each other (i.e. less than five timeslots apart).The penalty of the solution is calculated by using the evaluationfunction presented in Equation 1.

3

8

92

0

Equation 1. Evaluation function for the benchmark examtimetabling problems in [21]

Xm�1

k¼1

Xm

l¼kþ1

ðwi � sklÞ=S; i 2 f0;1;2;3;4g;

where

skl is the number of students involved in both exams ek andel, if i = jtl � tkj < 5;wi = 2j4�ij is the cost of assigning two conflicted exams el

and ek with i timeslots apart, if i = jtl � tkj < 5, i.e. w1 = 16,w2 = 8, w3 = 4, w4 = 2, w5 = 1; tl and tk as the timeslots ofexam el and ek, respectively;m is the number of exams in the problem;S is the number of students in the problem.

The variant a represents graph colouring problems. They consistof assigning a minimal number of colours to 81-682 vertices in thegraphs while avoiding assigning the same colour to adjacent verti-ces. If considered in the context of a timetabling scenario, thisproblem can be seen as to minimise the number of timeslots toaccommodate all exams into a tight/short timetable. As the num-

IIc hec92 I hec92 II kfu93 lse91

81 80 461 38118 18 20 182823 2823 5349 27260.42 0.42 0.6 0.6

uta92 I uta92 II yor83 I yor83 IIc

622 638 181 18035 35 21 2121266 21329 941 9190.13 0.12 0.29 0.30

Page 3: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

394 R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404

ber of students enrolled in the exams (vertices) and the number ofstudents evolved in conflicted exams (edges) are still playing a rolein the problem, this variant of the benchmark can be seen as a col-lection of specialised graph colouring problems with weighted ver-tices and edges. There is no soft constraint in the problem. Thenumber of colours is usually used as the evaluation of the colour-ings obtained.

3. The graph based hyper-heuristic (GHH)

Graph colouring heuristics on their own are simple constructivetechniques where items in the problem are ordered and used oneby one to construct solutions. For example, by using Largest Degree(see Table 2), vertices in graph colouring problems are ordered bythe number of vertex degrees decreasingly, and are assigned col-ours one by one. In exam timetabling problems, more informationcan be employed to decide the order of the exams to be scheduled(i.e. by the number of students they have, see Largest Enrolment inTable 2), and schedule them one by one to construct timetables.The overall strategy is that the most difficult items in the problemsare dealt with first to construct good quality solutions.

In our previous work on hyper-heuristics [13], heuristic se-quences consisting of the five graph heuristics presented in Table2 and a random ordering strategy were searched by a standardsimple Tabu Search approach and were used to construct solutionsfor exam and course timetabling problems. At each step of theTabu Search, one incumbent heuristic sequence is used to generate

Table 2Ordering strategies used as difficulty measures in graph heuristics in timetabling.

Graph heuristics Ordering strategies that order the events in the problem

LD (Largest Degree) Decreasingly by the number of conflicts the event haswith the others (i.e. two events have common studentsthus are conflicted)

LWD (LargestWeighted Degree)

The same as Largest Degree but weighted by the numberof students involved in both conflicted events

LE (LargestEnrolment)

Decreasingly by the number of enrolments in the event

SD (SaturationDegree)

Increasingly by the number of valid timeslots left for theevent in the partial timetable

CD (Colour Degree) Decreasingly by the number of conflicts the event haswith those already scheduled

initialisation of the heuristic sequence hl//Tabu Search upon heuristic sequences for i = 0 to i = the number of iterations h = change two heuristics in heuristic sequence hl if h is not in the tabu list construct a solution c using heuristic sequence h (see Figure 2)

if c is complete, and its penalty < the least penalty cg obtained save the best solution, cg = c update the tabu list

hl = h //a move in Tabu Search else backtrack

//end if //end of Tabu Search output the best solution with the penalty cg

Fig. 1. The graph based hyper-heuristic with a high level Tabu Search [13].

ord

e1

heuristic sequence

LD LD LD SD LD SD

e1 e2 e3

e4 e5

e6

Fig. 2. An illustrative example of solution constr

one solution. The quality of the solution constructed by this corre-sponding heuristic sequence is used as the objective value to guidethis step of the Tabu Search. Fig. 1 presents the pseudo-code of thisgraph based hyper-heuristic (GHH).

The solution construction at each step of the Tabu Search, usinga heuristic sequence (of length e, which is the number of exams inthe problem), is an iterative process where, at the ith iteration, theith heuristic in the sequence is used to order the events (courses orexams) that are not scheduled yet at that iteration. The first eventin the ordered list is then scheduled to the timeslot that leads tothe least cost in the timetable. This is made by calculating the costof soft constraint violations, and ties are broken by choosing thefirst timeslots leading to the least cost. In the (i + 1)th iteration,the remaining events are re-ordered by the (i + 1)th heuristic,and the first event in the updated list is scheduled to the partialsolution built from the previous i iterations.

Fig. 2 presents an illustrative example of the solution construc-tion process for a simple problem with six events e1, . . ., e6 repre-sented by vertices, conflicts between which are represented byedges in the graph. Assume at a certain step of Tabu Search, theheuristic sequence of length 6 is ‘‘LD LD LD SD LD SD”. A partialsolution has been built iteratively by using the first three heuristicsin the sequence, leaving the shaded events as not yet scheduled. Atthe 4th iteration of the solution construction, the 4th heuristic SDin the sequence is used to order the remaining events as ‘‘e1, e5,e6” increasingly by the number of valid remaining timeslots inthe timetable for them, i.e. 2, 3 and 4, respectively (see SD in Table2). e1 is then scheduled into the partial solution at the 4th itera-tion. At the 5th iteration, LD is used to re-order the remainingevents as ‘‘e5, e6” (see LD in Table 1), and e5 is scheduled. This pro-cess is repeated until all six events are scheduled.

For some heuristic sequences, if at a certain iteration of solutionconstruction the event cannot be scheduled to any feasible time-slot due to its conflict with those already scheduled, this heuristicsequence is then discarded and Tabu Search backtracks and movesto another heuristic sequence to construct another solution.

In [13], the role of Tabu Search was simply to search for the bestheuristic sequences without considering the details of actual solu-tions. The search is thus upon a search space of heuristic se-quences, and moves are made by the performance of the lowlevel heuristic sequences on constructing solutions. This is differ-ent from most standard meta-heuristics, where concrete solutionsand problem dependant constraints are directly considered by thesearch. A meta-heuristic was first defined by Glover and Laguna as‘‘a master strategy that guides and modifies other heuristics” (page17 in [28]). The heuristic here usually refers to the mechanism ofmoves ‘‘for transforming one solution into another” [28], ratherthan moving between heuristic sequences. Most meta-heuristicsin the literature operate directly on a search space of solutionsbut a hyper-heuristic operates on a search space of heuristics. Herewe are using Tabu Search (a meta-heuristic) as a hyper-heuristic.

In GHH, a set of heuristics (rather than solutions themselves)are considered for building solutions. This can be seen as adap-tively calling appropriate heuristics during the solution construc-tion. GHH thus can be seen as being able to, at a higher level,adaptively hybridise different heuristics. However, this hybridisa-tion is more on a random basis with the only guidance of solution

ered events

e5 e6

timetable

slot 1 slot 2 slot 3 slot 4 slot 5

e4 e2 e3

uction using a sequence of graph heuristics.

Page 4: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404 395

quality obtained by the corresponding heuristic sequences at thehigher level [39]. In this paper, we extend the previous GHH ap-proach [13] with the different focus of developing an adaptive ap-proach where heuristics are dynamically hybridised duringsolution construction. It is based upon the observations and statis-tical analysis over a large number of different heuristic sequencesobtained by a random iterative GHH. The same solution construc-tion process that was described above will be used in the ap-proaches developed in this paper but the high level approachesare adaptive methods rather than Tabu Search.

4. Hybridisations of graph colouring heuristics within GHH

4.1. A random iterative GHH

A random iterative GHH is first developed to iteratively generateheuristic sequences of different quality for the benchmark examtimetabling and graph colouring problems described above in Sec-tion 2. Fig. 3 presents the pseudo-code of this random iterativeGHH. At each step, a sequence of graph colouring heuristics is ran-domly generated and employed to construct a solution. Those se-quences that cannot generate feasible solutions will be discardedas we are only interested in good heuristic sequences. After a cer-tain number of steps (e � 50), a large collection of heuristic se-quences and the penalties of their corresponding (feasible)solutions are obtained for further analysis on the characteristicsof good hybridisations of graph heuristics, based on which an adap-tive hybrid approach was developed and is presented in Section 5.

In this work, to investigate clearly how heuristics are hybri-dised, we study heuristic sequences consisting of two graph col-ouring heuristics. It was observed in the literature [16,21] and inour previous work [13] that when being employed on its own,SD performs the best in most cases due to its ability to dynamicallyorder the events according to the number of remaining valid times-lots. However, its efficiency also varies (i.e. other graph colouringheuristics occasionally outperform SD on specific problems). Thuswe use SD as the basic heuristic in heuristic sequences (i.e. the ini-tial sequence only contains SD in Fig. 3). The other heuristics (LD,LWD and LE in Table 2) are randomly hybridised into the list ofSD, respectively. CD in Table 2 was found not to be as effectiveas other heuristics and also very time consuming [13], so it is notconsidered here.

To guarantee a full coverage of different rates of hybridisation, therandom iterative GHH systematically hybridises n LWD, LE or LD,n = [1, . . .,e], in the sequences. For each amount of LWD, LE or LDhybridisations, 50 samples are obtained. Note that, at the first itera-tion of solution construction, SD always returns the same level of dif-ficulty (number of valid timeslots/colours) for all exams/vertices. Forthis reason, at the start, LD, LE or LWD will be employed i.e. the heu-ristic sequences always begin with LD, LWD or LE rather than SD.

4.2. Analysis of heuristic sequences

The random iterative GHH generates a collection of heuristic se-quences hybridising different rates of LWD, LE or LD. The idea is togive each rate of hybridisation an even chance and observe the

for i = 0 to i = e × 50 //e: the number of exams/vertices for n = 1 to n = e

initialise heuristic sequence h = {SD SD … SD SD} h = randomly change n heuristics in h to LD, LWD or LE

construct a solution c using h (see Figure 2) if solution c is feasible save h and the penalty of its corresponding solution c

Fig. 3. The pseudo-code of the random iterative graph based hyper-heuristic.

properties of the best heuristic sequences in developing the adap-tive approach to intelligently hybridise different heuristics.

To analyse how these heuristics are hybridised with SD, allthese heuristic sequences are stored in Microsoft Excel spread-sheets and ranked by their corresponding solution quality. Forexample, one row in the Excel spreadsheet could be ‘‘LD LD LDSD . . .SD 11” (see Fig. 4), meaning that this sequence generates asolution of penalty 11 using the evaluation function in the problem(either exam timetabling or graph colouring problems). Then,based on the processed data, the analysis of heuristic sequencesis carried out in three steps, which are described as follows:

(I) Firstly, all the heuristic sequences are grouped into threesubsets by their corresponding solution quality: those gen-erating the best 5% solutions, the worst 5% solutions, andthose not in these two subsets.

(II) Then, the average appearances of LD, LWD or LE at each posi-tion of the sequences are calculated for each subset. Thisgives a number in [0,1], which is an estimated rate thatLD, LWD or LE is hybridised at the particular position inthe heuristic sequences in each subset. Assume that, inFig. 4, we have five sequences of the best quality for a prob-lem. This will result in an average appearance of LD for eachposition of ‘‘0.8 1 0.2 . . .0.4” in the heuristic sequences. Thisshows that LD when employed more often at the second andthird positions (i.e. the early stage of solution construction)tends to generate the best solutions.

(III) Finally, trendlines of LD, LE or LWD hybridisations in heuris-tic sequences are plotted by using Microsoft Excel regressionanalysis tools. Due to the amount of fluctuation in thehybridisations of LD, LE or LWD, polynomial trendlines oforder 4–5 have been used to plot a ‘‘best fit” curve basedon the appearances of the LD, LE or LWD at different posi-tions of solution construction (of the three subsets of differ-ent quality), respectively.

Note that the ‘‘hybridisation rate” in Fig. 4 is different from theoverall amount of LWD, LE or LD hybridisations (n in heuristic se-quences, see Fig. 3). The former represents the rate at which LWD,LE or LD appears at particular positions of heuristic sequences. Thelatter represents the overall number of LWD, LE or LD appearancein a whole heuristic sequence.

4.2.1. Heuristic sequences for exam timetabling problemsWe first collect the heuristic sequences hybridising LD, LE or

LWD with SD by carrying out the random iterative GHH on thebenchmark exam timetabling problems described in Section 2. Ta-ble 3 presents the penalties of the best and worst solutions ob-tained by these sequences. The corresponding overall amounts ofLD, LE or LWD hybridised (% of LD, LE or LWD in the whole se-quences) are also presented.

It is clear, from Table 3, that sequences hybridised with LWDperformed the best for almost all the exam timetabling problems.One possible reason may be that LWD can be seen as integratingboth LE (the number of students) and LD (the number of conflicts)in an intelligent way.

Sequence 1 LD LD LD SD … … … … SD 11Sequence 2 LD LD LD SD … … … … SD 11.2 Sequence 3 LD LD LD LD … … … … LD 11.5 Sequence 4 LD LD LD SD … … … … SD 12.5 Sequence 5 LD SD LD SD … … … … SD 12.8

Hybridisation Rate 0.8 1 0.2 … … … … 0.2

Fig. 4. Rate of hybridisations of LD with SD at different positions in heuristicsequences.

Page 5: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

Table 3Penalties of the best and worst solutions from the heuristic sequences hybridising different amount of LD, LE or LWD, respectively, by the random iterative GHH (RGH) forbenchmark exam timetabling problems. The best results are in bold. ‘‘%” gives the average overall amount of LWD, LD or LE hybridised in heuristic sequences.

RGH-LE best RGH-LE worst RGH-LD best RGH-LD worst RGH-LWD best RGH-LWD worst

Best % Worst % Best % Worst % Best % Worst %

car91 5.56 29 6.85 27 5.43 29 6.39 23 5.26 36 6.06 25car92 4.75 11 5.96 32 4.47 34 5.77 30 4.43 29 5.2 18ear83 I 41.06 14 52.66 32 40.24 38 49.86 14 37.95 47 49.07 19ear83 IIc 45.70 3 54.55 14 45.10 32 50.61 14 40.74 35 50.01 12hec92 I 13.33 34 21.63 37 12.44 26 16.74 35 12.15 53 15.28 9hec92 II 13.23 10 17.25 23 12.35 22 17.87 44 12.26 59 15.26 15kfu93 16.05 24 21.76 37 16.06 40 21.01 43 15.37 36 20.27 10lse91 12.2 10 17.14 44 12.41 42 16.59 45 12.01 23 15.23 12sta83 I 165.53 26 184.93 36 163.18 10 185.02 39 159.58 34 180.47 31sta83 IIc 34.52 14 46.14 37 34.7 16 40.13 67 34.31 27 40.74 35ute92 29.38 12 38.56 45 29.88 11 38.6 24 28.98 63 34.38 10tre92 9.48 15 11.83 26 8.87 30 11.63 30 8.76 34 11.09 19uta93 I 4.18 18 5.29 28 4.13 26 5.37 15 3.95 29 4.95 17uta93 II 3.8 3 4.6 7 3.69 6 4.42 7 3.62 7 3.92 3yor83 I 44.45 13 51.67 27 41.72 10 48.81 23 42 27 48.15 19

Box-whisker plot of LWD hybridisations

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

hec9

2 I

sta83

I

yor83

Iute

92ea

r83 I

tre92

lse91

kfu93

car92

uta93

Ica

r91

ear83

IIc

hec9

2 II

sta83

IIc

uta93

II

Rat

e of

LW

D h

ybrid

isat

ions

Fig. 6. The amount of LWD hybridisation in the best heuristic sequences for examtimetabling problems.

396 R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404

We present, in Fig. 5, the trends of LWD appearances in the best5% heuristic sequences for three benchmark problem instances(hec92 I, ute92 I and car92 I). The trends of hybridisation for therest of the problem instances are presented in Appendix A. In gen-erating the trends, the first heuristics are always ignored as theyare fixed as LE, LD or LWD. The overall observation from thesetrends is that in most of the problems tested, the best heuristic se-quences employ more LWD at the beginning rather than at the la-ter stages of the solution construction. Another observation is thatthe hybridisations of LWD vary significantly at the early positionsof sequences (i.e. there are greater changes of LWD and SD at theearly stages of solution construction).

Another observation from Table 3 is that the overall amount ofLWD hybridisations in the best heuristic sequences for different in-stances is quite different. To have a closer look at the hybridisa-tions of LWD, we plot the box-whisker distributions of thehybridisation amount in the whole sequences in Fig. 6. For someinstances such as sta83 I and ute92, the range of LWD hybridisa-tions is wider than for other instances such as yor83 I and sta83IIc. This indicates that hybridising a certain amount of LWD needsto be carefully made within the GHH approach for the latterproblems.

For the LE and LD hybridisations within the best heuristic se-quences, no obvious trends can be obtained in heuristic sequencesthat generate the best solutions for all the problems (see Fig. 7).The worst 5% of heuristic sequences also have different trends onthe hybridisations of LD, LE and LWD for different instances andthus no obvious observations are obtained. Due to space limita-tions, and also because we are not particularly interested in the

hec92 I

0.40

0.50

0.60

0.70

0.80

12 1 41 61 81

Positions of heuristic sequence

Rate

of L

WD

hyb

ridis

atio

ns

ear83

0.40

0.50

0.60

0.70

0.80

1 21 41 61 81

Positions of h

Rat

e of

LW

D h

ybrid

isat

ions

Fig. 5. The trends of hybridising LWD in the best heu

characteristics of the worst sequences, we do not present thesetrends in the paper.

4.2.2. Heuristic sequences for graph colouring problemsThe same random iterative GHH presented in Fig. 3 was run to

obtain heuristic sequences for the graph colouring problems pre-sented in Section 2. Due to the generality of the approach, the onlydifferences when applying the random GHH for both timetablingand graph colouring problems is the evaluation function used

I

101 121 141 161 181

euristic sequences

car92

0.20

0.25

0.30

0.35

0.40

1 61 121 181 241 301 361 421 481 541

Positions of heuristic sequences

Rat

e of

LW

Dhy

brid

isat

iona

ristic sequences for hec92 I, ear83 I and car92 I.

Page 6: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

Rates of LE hybridisation

sta83tre92car92uta93

Rates of LD hybridisation

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.00

0.10

0.20

0.30

0.40

0.50

1 21 41 61 81 101 121 141 161 181 201Positions of heuristic sequence

1 21 41 61 81 101 121 141 161 181 201Positions of heuristic sequence

sta83tre92uta93car92

Fig. 7. Hybridisation trends of LD and LE in the best heuristic sequences for exam timetabling problems.

R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404 397

(i.e. the number of colours used in the colourings rather than theviolations of soft constraints in timetables).

The evaluation function we used in the graph colouring prob-lem is simply the number of colours in the colourings. Due to thefact that some different colourings may use the same number ofcolours, some other evaluation functions have been used in the lit-erature. For example, sum colouring [42] evaluates not only thenumber of colours used, but also the sum of the chromatic num-bers of the colours, aiming to give a more informative evaluation.In our experiments, we found that these two evaluation functionsperformed similarly. This may be because our GHH approaches areconstructive, and thus are less dependant on the evaluation func-tions which can play an important role in the usual implementa-tions of local search algorithms.

As the generated colourings are always feasible, i.e. the objec-tive is to find the least number of colours, all the heuristic se-quences and their corresponding quality value (i.e. the number of

Table 4Best and worst results from the heuristic sequences hybridised with LD, LE or LWD, respecresults are in bold. ‘‘% of Lx” gives the average overall amount of LWD, LD or LE hybridise

car91 car92 ear83 hec92 kfu93

RGH-LD best 30 29 22 18 19% of LD 29 24 15 24 31RGH-LD worst 38 35 28 21 23% of LD 93 77 86 38 79

RGH-LE best 30 29 22 18 19% of LE 17 18 17 25 36RGH-LE worst 45 38 32 25 28% of LE 93 82 93 82 98

RGH-LWD best 30 29 22 18 19% of LWD 36 13 19 37 46RGH-LWD worst 37 36 29 22 23% of LWD 89 92 63 69 16

hec92

0.20

0.25

0.30

0.35

0.40

0.45

0.50

1 21 41 61

Positions of heuristic sequence

Rate

of L

WD

hbr

idis

atio

ns

ear83

0.00

0.05

0.10

0.15

0.20

0.25

0.30

1 21 41 61 81

Positions of he

Rat

e of

LW

D hy

brid

isat

ions

Fig. 8. Trends of hybridising LWD in the best heuristic sequen

colours) are saved for further analysis. Table 4 presents the bestand worst results obtained by these sequences for the graph col-ouring instances. Again, we present trends of the LWD appearancein the best heuristic sequences for three problems in Fig. 8, and therest of the instances in Appendix B.

Again, sequences hybridised with LWD performed the best(although quite slightly) for all instances. For almost all instancestested, the best heuristic sequences employ more LWD at thebeginning of solution construction. For some problems in AppendixB (i.e. lse91) there are no obvious trends observed. However, theLWD hybridisations vary more at the early stages. Note that, forproblem instance sta83, all the heuristic sequences are of the samequality. The levels of hybridisation of LE and LD within the bestheuristic sequences again have no obvious trends and are not pre-sented in the paper.

The range of the overall level of LWD hybridisation in Fig. 9again shows that, for different problems, the rates of hybridisation

tively, using the random iterative GHH (RGH) for graph colouring problems. The bestd in heuristic sequences.

lse91 sta83 tre92 ute92 uta92 yor83

17 13 21 10 31 2019 49 36 10 27 1621 13 26 13 35 2578 49 61 14 79 54

17 13 20 10 31 2011 49 16 29 11 1027 13 30 16 35 2997 49 95 97 45 94

17 13 20 10 31 2028 49 45 34 24 1720 13 25 12 35 2594 49 15 20 74 78

101 121 141 161 181

uristic sequence

car92

0.00

0.05

0.10

1 21 41 61 81 101 121 141 161

Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

ces for graph colouring problems car92, hec92 and ear83.

Page 7: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

Box-whisker plot of LWD hybridisations

0

0.2

0.4

0.6

0.8

1

hec9

2sta

83yo

r83ute

92ea

r83 tre92

lse91

kfu93

car92

uta93

car91

Rat

e of

LW

D h

ybrid

isat

ions

Fig. 9. The amount of LWD hybridisations in the best heuristic sequences for graphcolouring problems.

398 R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404

in the best heuristic sequences are very different. The range ofhybridisation levels for some problems (i.e. ‘‘ear83” and ‘‘car92”)is much smaller and indicates that the problems are more difficultto solve using the GHH approach. It can also be seen that these dis-tributions are quite different from those in Fig. 6 for exam timet-abling problems.

To summarise, based on the statistic analysis upon a largeamount of heuristic hybridisations, it is observed that LWD hybri-dised with SD generates better quality solutions than hybridisingLE or LD for both exam timetabling and graph colouring problems.

i) If a better solution is generated from the current sequenchalf of the sequence is increased by α = 0.03. The aim iavoid converging quickly to a fixed amount. The best hupdated in stage II of the adaptive approach. The hybri70%], and will be reset as the current best α if it reachewill result in a sequence with only LWD in the first half

ii) If the solution obtained is not feasible, the hybridisation

iii) If a feasible but worse solution is generated, the hybridis

Fig. 10. Adaptive hybridisation of LWD and

Table 5Results from the adaptive approach (AGH), random GHH with fixed hybridisation (RGH 20%is presented in seconds. The best average and best results are given in italics and in bold,

AGH RGH 20%

Average Best % Time (s) Average

car91 5.29 5.11 27 10816 5.55car92 4.48 4.32 33 13125 4.62ear83 I 36.68 35.56 50 1304 39.68ear83 IIc 40.98 39.38 50 802 42.17hec92 I 11.94 11.62 40 78 12.66hec92 II 11.88 11.5 66 97 12.58kfu93 15.56 15.18 30 632 15.84lse91 11.47 11.32 16 1009 11.58sta83 I 15.57 158.88 18 56 159.78sta83 IIc 34.45 34.32 14 78 34.57ute92 29.02 28 25 69 29.33tre92 8.74 8.52 26 633 8.83uta93 I 3.36 3.21 29 13580 3.89uta93 II 3.49 3.45 32 9869 3.56yor83 I 41.73 40.71 58 219 42.18

Furthermore, hybridising more LWD at the early stage of SD heu-ristic sequences tends to generate the best solutions. However,the rate of LWD hybridisation at the early stage of solution con-struction varies significantly. For different problems, the overallamount of LWD hybridisation within the whole heuristic sequenceis also quite different.

5. Adaptive hybridisation of graph heuristics

The above observations on both exam timetabling and graphcolouring problems indicate that although the hybridisations pres-ent some trends in the heuristic sequences, the levels of hybridisa-tion and their appropriate ranges vary a lot for different instances.The heuristic hybridisations at the beginning of heuristic se-quences also vary, although in general the LWD hybridisations atthe early stages are higher. Thus an intelligent approach needs tobe developed to adaptively hybridise different amounts of LWD atdifferent stages of solution construction. The adaptive approach istested and shown to be effective and comparable with the currentbest approaches in the literature upon both the benchmark examtimetabling problems and graph colouring problems.

There are two stages in the adaptive approach to hybridise LWDat different parts of the heuristic sequences. The process is pre-sented as follows:

(I) In the first stage, LWD is iteratively hybridised into the firsthalf of the heuristic sequences based on SD (i.e. no LWDappears in the second half of heuristic sequences). This isan adaptive process that adjusts the amount of LWD hybrid-isation in a basic sequence of SD iteratively (see Fig. 10), andstops after a certain number of iterations. Our above analysissuggests that the effort of hybridising LWD should be made

e, the amount of LWD to be hybridised in the first s to further explore different hybridisations and euristic sequences and the best α are saved anddisation amount is limited within the range [10%, s one end. Note that a hybridisation amount of 1 (i.e. LWD...LWD SD...SD).

amount is increased by α = 0.03.

ation amount is decreased by β = 0.01.

SD in stage I of the adaptive approach.

), and random GHH (RGH). There were 30 runs for each approach. Computational timerespectively.

RGH

Best Time (s) Average Best % Time (s)

5.38 23873 5.52 5.37 28 256784.5 20478 4.71 4.5 27 20631

39.02 2887 37.54 36.51 45 267741.26 1182 42.37 40.13 45 104812.19 259 12.44 12.08 52 23911.26 398 12.36 11.95 58 34615.6 1037 15.7 15.4 36 95211.5 2007 11.58 11.48 23 1710

159.08 97 160.02 159.58 35 10834.47 106 34.64 34.37 21 12329.16 105 29.06 28.69 56 129

8.73 1058 8.87 8.77 34 10123.63 18830 3.69 3.4 29 236003.53 16026 3.63 3.59 39 17356

41.52 463 42.66 41.79 29 801

Page 8: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404 399

at the early stage of solution construction. Another reason isthat the ordering of events/vertices at later stages of solutionconstruction tends to be less important for constructinggood solutions.

(II) Based on the best heuristic sequences obtained from stage I,an iterative adjustment is made to hybridise LWD over thewhole heuristic sequence. This is because LWD may alsocontribute to the later stage of solution construction. Theprocess stops after a certain number of iterations.

Fig. 10 presents the pseudo-code of stage I of the approach,where LWD is hybridised in the first half of the heuristic se-quences. The parameters have been selected based on both theanalysis upon the large amount of data in Section 4.2.1, and our

kfu93

1515

.215

.415

.615

.816

16.2

ran

ran20% ag

h

ear83 I

3537

3941

ran

ran20% ag

h

car9

4.3

4.5

4.7

4.9

ran

ran20%

lse91

11.3

11.4

11.5

11.6

11.7

ran

ran20

% agh

sta83 IIc

34.2

534

.534

.75

3535

.25

ran

ran20% ag

h

uta9

3.4

3.5

3.6

3.7

ran

ran20%

hec92 I

11.5

1212

.513

ran

ran20% ag

h

sta83 I

158.

515

915

9.5

160

160.

5

ran

ran20% ag

h

yor8

40.5

41.5

42.5

43.5

ran

ran20%

Fig. 11. Results of adaptive GHH (agh), random GHH (rand) and random GHH with

empirical experiments. It was observed through experiments thatadjusting the incremental value a within the range of [0.01, 0.03]to hybridise LWD did not affect much the solution quality. How-ever, the computational time is different. For example, a smallerincrement causes a larger computational time.

5.1. Adaptive heuristic hybridisation for benchmark exam timetablingproblems

We evaluate our adaptive GHH approach by comparing it withtwo approaches on the benchmark exam timetabling instances.The average computational time across the 16 instances is pre-sented from 30 runs on a Pentium IV machine with 1 GB memory.The number of iterations of these three approaches is:

2

agh

car91

55.

25.

45.

65.

8

ran

ran20% ag

h

uta92 I

3.2

3.4

3.6

3.8

44.

2

ran

ran20

% agh

2 II

agh

ear IIc

38.5

40.5

42.5

44.5

ran

ran20

% agh

hec92 II

1111

.512

12.5

13

ran

ran20% ag

h

3 I

agh

ute92

28.6

28.8

529

.129

.35

29.6

ran

ran20

% agh

tre92

8.5

8.7

8.9

ran

ran20% ag

h

20% LWD hybridisations (ran20%) for benchmark exam timetabling instances.

Page 9: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

Table 6t-Test on the results from the adaptive GHH and random GHH approaches.

car91 car92 ear83 I ear83 IIc hec92 I hec92 II kfu93 lse91

p-Value 1.74E�05 9.2E�05 0.01 0.004 2.8E�06 4.43E�06 0.02 2.1E�03t-Stat 6.3 5.4 2.95 3.43 7.53 7.22 2.66 3.77

sta83 sta83 IIc tre92 ute92 uta92 I uta92 II yor83 I

p-Value 8.8E�03 0.001 4.1E�04 0.01 2.82E�05 3.5E�10 9.8E�04t-Stat 3.04 4.0 4.71 2.94 6.08 15.43 4.15

Table 8Best results from the adaptive approach (AGH) and its improvement by steepestdescent method (AGH-SDM) on version II and version IIc of the benchmark examtimetable instances.

ear83 IIc hec92 II sta83 IIc uta92 II

AGH 39.38 11.5 34.32 3.45AGH-SDM 39.36 11.45 33.63 3.44

400 R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404

� Random iterative GHH (RGH in Section 4.1): e � 5 iterations forlarge problems (uta92 I, uta92 II, car91 and car92) and e � 10iterations for the other problems, respectively.

� Random GHH with a fixed hybridisation of 20% LWD to SD:e � 10 iterations for large problems and e � 10 iterations forthe other problems, respectively.

� Adaptive GHH: e in stage I and e � 2 in stage II for large prob-lems and e � 2 in stage I and e � 5 in stage II for the other prob-lems, respectively.

The results are presented in Table 5. Note that these results areobtained by running the first two approaches for a longer compu-tational time compared with the adaptive GHH approach (e � 10 ore � 5 iterations vs. e � 2 + e � 5 or e + e � 2 iterations).

Table 5 shows that the adaptive approach performs the best onall instances. Comparisons with ‘‘RGH 20%” indicate that hybridis-ing LWD adaptively (AGH) rather than at a fixed amount contrib-utes to a better performance. Note that ‘‘RGH 20%” requires morecomputational time compared with the adaptive GHH. For differ-ent problems, the levels of LWD hybridised in the best sequencesare within the range of [14%, 66%].

Compared with the random iterative GHH (RGH), the adaptiveapproach (AGH) is more effective on both solution quality andcomputational time. This indicates that by concentrating on adap-tive heuristic hybridisations at the early stage, and a quick adjust-ment of the overall sequences afterwards, the adaptive approachcan quickly identify the appropriate heuristic hybridisations andthus obtain better results.

The distributions of the results from the different approachesare presented in Fig. 11 to give more statistical information. Fordifferent instances, the performance of the three approaches is dif-ferent with respect to the distributions of the results. In general,the results of the random GHH fall into a normal distribution,but are much worse than the other two approaches. RandomGHH with 20% LWD hybridisations have less deviation and a com-parison with the random GHH is not conclusive. Compared withthe random GHH and random GHH with 20% LWD hybridisations,

Table 7The best results from the adaptive approach (AGH), its improvement by the steepest descenliterature on the benchmark exam timetabling problems.

car91 car92 ear83 I hec92 I kfu93

AGH 5.11 4.32 35.56 11.62 15.18AGH-SDM 5.09 4.26 35.48 11.46 14.68TS-GHH [13] 5.36 4.93 37.92 12.25 15.3

[1] (2007) 5.21 4.36 34.87 10.28 13.46[5] (2004) 4.8 4.2 35.4 10.8 13.7[15] (2003) 4.65 4.1 37.05 11.54 13.9[16] (2004) 4.97 4.32 36.16 11.61 15.02[19] (2008) 6.6 6.0 29.3 9.2 13.8[21] (1996) 7.1 6.2 36.4 10.8 14.0[25] (2000) 6.2 5.2 45.7 12.4 18.0[34] (2003) 5.1 4.3 35.1 10.6 13.5[38] (2007) 5.45 4.5 36.15 11.38 14.74

the adaptive GHH approach are better upon both average and bestresults for all instances.

A t-test is also carried out to give an indication if the resultsfrom the adaptive GHH and random GHH are significantly differ-ent. Table 6 summarises the p-values of the t-test. It can be seenthat for all problem instances, the results from the random GHHand adaptive GHH approaches are statistically different.

We also compare our AGH with those in the literature in Table7, where the best results reported among all the approaches arehighlighted. Recall that the aim of the paper is to better understandhow we can automatically hybridise and adapt heuristics. We donot expect to outperform human designed heuristics and meta-heuristics which are tailored specially for this exam timetablingbenchmark. However, we can demonstrate that these automati-cally generated heuristics achieve results that are competitive withthe human designed methods. Unfortunately, it is not possible tocompare the computational time of the different approaches acrossdifferent platforms because the computational time for most of theapproaches in the literature was not reported.

We can also observe from Table 7 that the best results on the 11problems tested are obtained from different approaches whichhave been presented in the literature over the years. None of theapproaches can be seen as comprehensively outperforming theothers. Note that most of the other approaches are specially de-signed for the particular problems and require initial solutions.

The adaptive hybrid approach is an efficient and much simplermethod compared with the previous GHH using Tabu Search [13]

t method (AGH-SDM), GHH using Tabu Search (TS-GHH), and other approaches in the

lse91 sta83 I tre92 ute92 uta92 I yor83 I

11.32 158.88 8.52 28 3.21 40.7111.2 158.28 8.51 27.9 3.15 40.4911.33 158.19 8.92 28.01 3.88 41.37

10.24 159.2 8.13 24.21 3.63 36.1110.4 159.1 8.3 25.7 3.4 36.710.82 168.73 8.35 25.83 3.2 37.2810.96 161.91 8.38 27.41 3.36 40.77

9.6 158.2 9.4 24.4 3.5 36.210.5 161.5 9.6 25.8 3.5 41.715.5 160.8 10.0 27.8 4.2 42.010.5 157.3 8.4 25.1 3.5 37.410.85 157.2 8.79 26.68 3.55 42.2

Page 10: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

Table 9Best results from the adaptive approach (AGH) and random iterative GHH (RGH) on the graph colouring instances. The best results reported in the literature are also presented. 30runs were employed for the AGH approach.

car91 car92 ear83 hec92 kfu93 lse91 sta83 tre92 ute92 uta92 yor83

AGH best 30 29 22 17 19 17 13 20 10 31 19% LWD 15 16 15 16 30 30 25 15 30 30 17Time (s) 2814 1578 29 3 5 2 0.4 42 0.4 57 117

RGH best 30 29 22 18 19 17 13 20 10 31 20% LWD 36 13 19 37 46 28 49 45 34 24 17Time (s) 4798 2378 55 187 167 2 0.4 79 0.5 1307 3333

Best reported [40] 28 28 22 17 19 17 13 20 10 30 19

R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404 401

(see Table 7), which required much more computational time. Notonly a larger number of iterations, but also a steepest descent wasneeded at each step of the Tabu Search based GHH in [13] to fur-ther improve each compete solution obtained. This added muchmore computational expense. The adaptive GHH approach ob-tained better results on its own (in italics in Table 7) with a muchshorter computational time compared with the previous TS-GHHapproach. A quick steepest descent on the final solution obtainedcan further improve the solution quality in seconds (also in italicsin Table 7).

For version II and version IIc of the dataset, there are so far noconfirmed results published in the literature. We present the re-sults of our AGH approach in Table 8, with the improved solutionpenalties after the quick steepest descent.

5.2. Adaptive heuristic hybridisation for graph colouring problems

We also test exactly the same adaptive approach on thebenchmark graph colouring instances to demonstrate the general-ity of this method. The results are presented in Table 9. We foundthat the approach quickly obtained the same or better results instage I compared with the random iterative GHH in a much short-er time even without further adjustment in stage II. Thus, thestopping condition of the random iterative GHH and the adaptiveapproach is set as when the best results are obtained and pre-sented in Table 9 to further demonstrate the efficiency of theadaptive approach.

We can see that for three instances, the two approaches take(almost) the same time to obtain the best results. For the rest ofthe instances, the random iterative GHH needs much more timeto obtain the same or a worse result compared with the adaptiveapproach. The amount of the LWD hybridised in AGH is also pre-sented in Table 9, indicating that the adaptive approach canquickly locate the correct range of hybridisation, leading to thesame or better results compared with the random iterative GHH.

Compared with the best results reported from different ap-proaches developed in the literature, the adaptive GHH obtainedcompetitive results. Note that our adaptive approach is purely con-structive, with no further improvement on either solutions or heu-ristic sequences.

The RGH approach obtained worse results on three instancesand the same results on the other eight instances. The difference

is that the computational time of RGH is larger to get the same re-sults. Another observation is that within almost all 30 runs, bothapproaches obtained the same best results for all problem in-stances. A statistical analysis is thus not presented here.

6. Conclusions

This paper presents an automated heuristic construction ap-proach where Largest Weighted Degree is adaptively hybridisedwith Saturation Degree at different stages of the solution construc-tion for both exam timetabling and graph colouring problems. Thisadaptive approach is simple yet effective, and produced compara-ble results with the best approaches developed during the years inthe literature for benchmark instances of both problems. Note thatmost of the approaches were specifically developed by humansrather than automatically generated (as is the case here).

We presented a statistical analysis of a large collection of heu-ristic sequences of differing quality. They are obtained by using arandom iterative graph based hyper-heuristic methodology andcan be seen as hybridising different graph colouring heuristics toconstruct good solutions. It is not only the case that the general hy-per-heuristic can search for appropriate heuristic sequences togenerate high quality solution instances for different problems,but also the obtained heuristic sequences can be further analysedfor in-depth insight of heuristic hybridisations. Our analysis indi-cates that the effort should be spent on hybridising LargestWeighted Degree with Saturation Degree at the early stage of solu-tion construction. The development of this adaptive approachdraws upon the fact that the hybridisation levels are different fordifferent instances (and that it also varies significantly at the earlystage of solution construction).

In terms of future research directions, it is interesting to notethat as the solutions generated by different heuristic sequencescorrespond to very different solutions in the solution space [13],it will be beneficial to investigate this approach on generatingdiversified initial solutions for different meta-heuristic approaches.Future work will also employ different statistical tools to analyseheuristic hybridisations within hyper-heuristic approaches. Theobjective is to observe a general mechanism or rules for hybridis-ing different heuristics with the aim of developing more generalautomated search methodologies.

Page 11: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

402 R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404

Appendix A. Trends of the best LWD hybridisations with SD forbenchmark exam timetabling problems

See Fig. A.1.

tre92

0.25

0.30

0.35

0.40

0.45

3 43 83 123 163 203 243

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

lse91

0.15

0.20

0.25

0.30

1 41 81 121 161 201 241 281 321 361

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

kfu93

0.25

0.30

0.35

0.40

0.45

0.50

3 43 83 123 163 203 243 283 323 363 403 443

Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

uta92 I

0.20

0.22

0.24

0.26

0.28

0.30

0.32

0.34

0.36

0.38

0.40

4 64 124 184 244 304 364 424 484 544 604

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

car91

0.20

0.25

0.30

0.35

0.40

0.45

0.50

0.55

0.60

4 64 124 184 244 304 364 424 484 544 604 664

Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

sta83 IIc

0.1

0.12

0.14

0.16

0.18

0.2

0.22

0.24

0.26

0.28

0.3

1 112 1 314 15 1 617 18 1 91 101 111 121 131

Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

hec83 II

0.50

0.55

0.60

0.65

0.70

0.75

0.80

1 11 213 14 1 516 1 71

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

ear83 IIc

0.20

0.25

0.30

0.35

0.40

0.45

0.50

1 21 41 61 81 101 121 141 161 181

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

uta92 II

0.10

0.15

0.20

0.25

0.30

0.35

0.40

1 61 121 181 241 301 361 421 481 541 601

Positions of heuristic sequence

Rat

e of

LWD

hyb

ridis

atio

ns

sta83 I

0.10

0.30

0.50

1 21 41 61 81 101 121

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

yor83 I

0.20

0.25

0.30

0.35

0.40

1 21 41 61 81 101 121 141 161 181

Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

ute92

0.30

0.35

0.40

0.45

0.50

1 21 41 61 81 101 121 141 161 181

Positions of heuristic sequences

Rat

e of

LW

Dhy

brid

isat

ions

Fig. A.1.

Page 12: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404 403

Appendix B. Trends of the best LWD hybridisations with SD forbenchmark graph colouring problems

See Fig. A.2.

sta83

0.48

0.49

0.50

1 21 41 61 81 101 121Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

yor83

0.10

0.15

0.20

0.25

0.30

1 21 41 61 81 101 121 141 161Positions of heuristic sequence

Rate

of L

WD

hyb

ridis

atio

ns

ute9

0.32

0.34

0.36

0.38

1 21 41 61 81 101 121 141 161 181Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

tre92

0.25

0.26

0.27

0.28

0.29

0.30

0.31

0.32

0.33

0.34

0.35

1 21 41 61 81 101 121Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

lse91

0.25

0.26

0.27

0.28

0.29

0.30

1 21 41 61 81 101 121 141 161 181Positions of heuristic sequence

Rat

e of

LW

Dhy

brid

isat

ions

kfu93

0.30

0.35

0.40

0.45

0.50

1 21 41 61 81 101 121 141 161 181 201 221Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

car91

0.10

0.15

0.20

0.25

0.30

1 21 41 61 81 101 121Positions of heuristic sequence

Rat

e of

LW

D h

ybrid

isat

ions

uta92

0.20

0.25

0.30

0.35

0.40

0.45

0.50

1 21 41 61 81 101 121Positions of heuristic sequence

Rate

of L

WD

hybr

idis

atio

ns

Fig. A.2.

References

[1] S. Abdullah, S. Ahmadi, E. Burke, M. Dror, Investigating Ahuja-Orlin’s largeneighbourhood search for examination timetabling, OR Spectrum 29 (2) (2007)351–372.

[2] V.A. Bardadym, Computer-aided school and university timetabling: The newwave, in: E.K. Burke, P. Ross, (Eds.), Practice and Theory of AutomatedTimetabling I: Selected Papers from the 1st International Conference, LectureNotes in Computer Science, vol. 1153, 1996, pp. 22–45.

[3] B. Bilgin, E. Ozcan, E.E. Korkmaz, An experimental study on hyper-heuristicsand exam scheduling, in: Proceedings of the 6th International Conference onthe Practice and Theory of Automated Timetabling, 2006, pp. 123–140.

[4] D. Brelaz, New methods to color the vertices of a graph, Communications of theACM 22 (4) (1979) 251–256.

[5] E. Burke, Y. Bykov, J. Newall, S. Petrovic, A time-predefined local search approachto exam timetabling problems, IIE Transactions 36 (6) (2004) 509–528.

[6] E.K. Burke, M. Dror, S. Petrovic, R. Qu, Hybrid graph heuristics within a hyper-heuristic approach to exam timetabling problems, in: B.L. Golden, S. Raghavan,E.A. Wasil (Eds.), The Next Wave in Computing, Optimization, and DecisionTechnologies, Springer, 2005, pp. 79–91.

[7] E.K. Burke, E. Hart, G. Kendall, J. Newall, P. Ross, S. Schulenburg, Hyperheuristics:An emerging direction in modern search technology, in: F. Glover, G.Kochenberger, (Eds.), Handbook of Metaheuristics, pp. 457–474, 2003.

[8] E.K. Burke, S. Jackson, H. Kingston, F. Weare, Automated timetabling: The stateof the art, The Computer Journal 40 (9) (1997) 565–571.

[9] E.K. Burke, G. Kendall (Eds.), Search Methodologies: Introductory Tutorials inOptimisation and Decision Support Techniques, Springer, 2005, pp. 239–272.

[10] E.K. Burke, G. Kendall, E. Soubeiga, A Tabu Search hyperheuristic fortimetabling and rostering, Journal of Heuristics 9 (6) (2003) 451–470.

[11] E.K. Burke, J. Kingston, D. de Werra, Applications to timetabling, in: J. Gross, J.Yellen (Eds.), Handbook of Graph Theory, Chapman Hall/CRC Press, 2004, pp.445–474.

[12] E.K. Burke, B. MacCarthy, S. Petrovic, R. Qu, Multiple-retrieval case-basedreasoning for course timetabling problems, Journal of Operational ResearchSociety 57 (2) (2006) 148–162.

[13] E.K. Burke, B. McColum, A. Meisels, S. Petrovic, R. Qu, A graph-based hyperheuristic for timetabling problems, European Journal of Operational Research176 (2007) 177–192.

[14] E.K. Burke, J.P. Newall, A multi-stage evolutionary algorithm for the timetableproblem, IEEE Transactions on Evolutionary Computation 3 (1) (1999) 63–74.

[15] E.K. Burke, J. Newall, Enhancing timetable solutions with local search methods,in: E.K. Burke, P. Causmaecker (Eds.), Practice and Theory of AutomatedTimetabling: Selected Papers from the 4th International Conference, LectureNotes in Computer Science, vol. 2740, 2003, pp. 195–206.

[16] E.K. Burke, J.P. Newall, Solving examination timetabling problems throughadaptation of heuristic orderings, Annals of Operations Research 129 (2004)107–134.

Page 13: Adaptive automated construction of hybrid heuristics for exam timetabling and graph colouring problems

404 R. Qu et al. / European Journal of Operational Research 198 (2009) 392–404

[17] E.K. Burke, S. Petrovic, Recent research directions in automated timetabling,European Journal of Operational Research 140 (2) (2002) 266–280.

[18] E.K. Burke, S. Petrovic, R. Qu, Case based heuristic selection for examinationtimetabling, Journal of Scheduling 9 (2) (2006) 115–132.

[19] M. Caramia, P. Dell’Olmo, G.F. Italiano, Novel local-search-based approaches touniversity examination timetabling, INFORMS Journal of Computing 20 (1)(2008) 86–99.

[20] M. Carter, G. Laporte, Recent developments in practical exam timetabling, in:E.K. Burke, P. Ross (Eds.), Practice and Theory of Automated Timetabling:Selected Papers from the 1st International Conference (PATAT95), LectureNotes in Computer Science, vol. 1153, 1996, pp. 3–21.

[21] M. Carter, G. Laporte, S. Lee, Examination timetabling: Algorithmic strategiesand applications, Journal of Operational Research Society 47 (1996) 373–383.

[22] S. Casey, J. Thompson, GRASPing the examination scheduling problem, in: E.K.Burke, P. Causmaecker, (Eds.), Practice and Theory of Automated Timetabling:Selected Papers from the 4th International Conference (PATAT02), LectureNotes in Computer Science, vol. 2740, 2002, pp. 232–246.

[23] P. David, A constraint-based approach for examination timetabling using localrepair techniques, in: E.K. Burke, M.W. Carter, (Eds.), Practice and Theory ofAutomated Timetabling II: Selected Papers from the 2nd InternationalConference, Lecture Notes in Computer Science, vol. 1408, 1998, pp. 169–186.

[24] D. de Werra, An introduction to timetabling, European Journal of OperationalResearch 19 (1985) 151–162.

[25] L. Di Gaspero, A. Schaerf, Tabu Search techniques for examination timetabling,in: E.K. Burke, W. Erben, (Eds.), Practice and Theory of Automated Timetabling:Selected Papers from the 3rd International Conference (PATAT00), LectureNotes in Computer Science, vol. 2079, 2000, pp. 104–117.

[26] K.A. Dowsland, J. Thompson, Ant colony optimization for the examinationscheduling problem, Journal of Operational Research Society 56 (2005) 426–438.

[27] F. Glover, G. Kochenberger, Handbook of Metaheuristics (2003) 457–474.[28] F. Glover, M. Laguna, Tabu Search, Kluwer, Boston, 1997.[29] D.E. Joslin, D.P. Clements, ”Squeaky wheel” optimization, Journal of AI

Research 10 (1999) 353–373.[30] R.M. Karp, Reducibility among combinatorial problems, Complexity of

Computer Computations (1972) 85–103.[31] F. Le Huédé, M. Grabisch, C. Labreuche, P. Savéant, MCSA new algorithm for

multicriteria optimisation in constraint programming, Annals of OperationalResearch 147 (2006) 143–174.

[32] R. Lewis, A survey of metaheuristic-based techniques for universitytimetabling problems, OR Spectrum 30 (1) (2008) 167–190.

[33] B.G.C. McCollum, A perspective on bridging the gap between theory andpractice in university timetabling, in: E.K. Burke, H. Rudova, (Eds.), Practice

and Theory of Automated Timetabling VI: Selected Papers from the 6thInternational Conference. Lecture Notes in Computer Science, vol. 3867, 2007,pp. 3–23.

[34] L. Merlot, N. Boland, B. Hughes, P. Stuckey, A hybrid algorithm for theexamination timetabling problem, in: E.K. Burke, P. Causmaecker (Eds.),Practice and Theory of Automated Timetabling: Selected Papers from the 4thInternational Conference (PATAT02), Lecture Notes in Computer Science, vol.2740, 2003, pp. 207–231.

[35] C. Meyers, J.B. Orlin, Very large-scale neighbourhood search techniques, in:E.K. Burke, H. Rudova, (Eds.), Practice and Theory of Automated TimetablingVI: Selected Papers from the 6th International Conference. Lecture Notes inComputer Science, vol. 3867, 2007, pp. 24–39.

[36] E. Ozcan, N. Bilgin, E.E. Korkmaz, Hill climbers and mutational heuristics inhyperheuristics, in: Proceedings of the 9th International Conference on ParallelProblem Solving from Nature, 2006, pp. 202–211.

[37] S. Petrovic, E.K. Burke, University timetabling, in: J. Leung (Ed.), Handbook ofScheduling: Algorithms, Models, and Performance Analysis, Chapter 45, CRCPress, 2004. April.

[38] R. Qu, E.K. Burke, Adaptive decomposition and construction for examinationtimetabling problems, Multidisciplinary International Scheduling: Theory andApplications Conference, August 2007, Paris, France, pp. 418–425.

[39] R. Qu, E.K. Burke, Hybridisations within a graph based hyper-heuristicframework for university timetabling problems. Journal of OperationalResearch Society, in press.

[40] R. Qu, E.K. Burke, B. McCollum, L.T.G. Merlot, S.Y. Lee, A survey of searchmethodologies and automated system development for examinationtimetabling. Journal of Scheduling, in press, doi:10.1007/s10951-008-0077-5.

[41] P. Rattadilok, R.S. Kwan, Dynamically configured k-opt heuristics for busscheduling, in: E.K. Burke, H. Rudova (Eds.), Proceedings of the 6thInternational Conference on the Practice and Theory of AutomatedTimetabling, 2006, pp. 473–477.

[42] M.R. Salavatipour, On sum coloring of graphs, Discrete Applied Mathematics127 (3) (2003) 477–488.

[43] A. Schaerf, A survey of automated timetabling, Artificial Intelligence Review 13(2) (1999) 87–127.

[44] J. Thompson, K. Dowsland, A robust simulated annealing basedexamination timetabling system, Computers & Operations Research 25(1998) 637–648.

[45] A. Wren, Scheduling, timetabling and rostering – A special relationship? in:E.K. Burke, P. Ross, (Eds.), Practice and Theory of Automated Timetabling I:Selected Papers from the 1st International Conference, Lecture Notes inComputer Science, vol. 1153, 1996, pp. 46–75.