Abstract

This paper presents a memetic multiobjective optimization algorithm based on NNIA for examination timetabling problems. In this paper, the examination timetabling problem is considered as a two-objective optimization problem while it is modeled as a single-objective optimization problem generally. Within the NNIA framework, the special crossover operator is utilized to search in the solution space; two local search techniques are employed to optimize these two objectives and a diversity-keeping strategy which consists of an elitism group operator and an extension optimization operator to ensure a sufficient number of solutions in the pareto front. The proposed algorithm was tested on the most widely used uncapacitated Carter benchmarks. Experimental results prove that the proposed algorithm is a competitive algorithm.

1. Introduction

The examination timetabling problem has long been a challenging area for researchers in the fields of operational research and artificial intelligence, especially at the time that the Toronto benchmark dataset was stated by Carter and Laporte (1996) [1]. The problem has been more difficult because universities are recruiting more students into a larger variety of courses with a growing number of combined degree courses [2] (Merlot et al. 2002). In the past 40 years there are many methods that have been applied to this problem. The represented techniques include constraint-based techniques [3], population-based techniques including genetic algorithms [4], graph coloring techniques [5, 6], ant colony optimization [7], scatter search [8], local search methods including tabu search [9] and simulated annealing [10, 11], variable neighborhood search [12], and hybrid and hyperheuristic approaches [5]. Generally, this problem is modeled as a single-objective optimization problem; only the number of clashes is considered by researchers.

To minimize the number of clashes in an exam timetable, Burke and Newall (2005) [13] stated that the clashes can be eliminated if a large number of periods were allocated. Burke et al. (1998) [14] also stated that longer timetables are needed to decrease the number of clashes. It is obvious that the ETTP is definitely a two-objective optimization problem: the number of clashes and the number of periods. Within the reasonable scope of the number of periods, the number of clashes must be minimized as much as possible. Hence, it is needed to minimize multiple conflicting cost functions, which can be best solved through the method of multiobjective optimization [15] that imported several features from the research on the graph coloring problem and used a variable-length chromosome representation that this paper also adopts.

Evolutionary multiobjective optimization (EMO), whose main goal is to handle multiobjective optimization problems (MOPs), has become a hot topic in the field of evolutionary computation. By simultaneously optimizing more than one objective, Multiobjective Optimization Evolutionary Algorithms (MOEAs) can acquire a set of solutions considering the influence of all the objective functions. Each of those solutions cannot be said better than the other and corresponds to the tradeoffs between those different objectives. Multiobjective examination timetabling problem as a MOP has two contradictory objectives. The optimization of one objective tends to minimize the number of clashes; the other objective tends to decrease the number of time periods. Many MOEAs have been proposed in recent years. Malim et al. (2006) [16] studied three different Artificial Immune systems and indicated that the algorithms can be appropriate for both course and exam timetabling problems. However, after published they were found to represent a mistake in the code, and it is invalid [17].

Many of the existing methods for exam timetabling problems are applicable to single-objective exam timetabling problems. By calculation, these single-objective optimization algorithms only can obtain one result, and the computational efficiency is poor. In this paper, we proposed a novel MOEA-based approach for multiobjective examination timetabling problem. By calculation, multiple results can be obtained by our proposed algorithms. In order to simultaneously optimize the two objectives, we adopt the framework of multiobjective immune algorithm NNIA [18] with some modifications. The NNIA simulates the phenomenon of the multifarious antibodies symbiosis and a small number of antibody’s activation in the immune response according to a method of selecting the nondominated neighborhood individuals. It chooses the small number of relatively isolated individuals as active antibodies and clones according to the crowding-distance value and then applies on the operators of recombination and mutation to strengthen the searching of the sparse area of the pareto front. The reasons we adopt the frame of the NNIA are that NNIA is proposed by ourselves and the clone strategy can make the pareto front uniform and get the satisfied solutions. The main contributions are that we adopt elitism group strategy to keep the diversity of the group and the two vertical local search operators to get the optimized solutions. Experiments show that the proposed algorithm is able to find a set of tradeoff solutions between the two objectives.

The paper is organized as follows. Section 2 describes the background information with problem formulation and related works. Section 3 gives a description of the proposed algorithm in detail. Section 4 presents the experimental study. Finally, conclusions are given in Section 5.

2. Background

2.1. Mathematical Model

As previously mentioned, the format of examination timetabling problems described in this paper was first formulated by Carter and Laporte [1] in 1996. In this problem, a set of exams need to be scheduled into a set of periods with each period having a seating capacity . There are three periods per weekday and a Saturday morning period. No exam is held on Sundays. It is assumed that the exam period starts on a Monday. The problem can be formally specified by first defining the following:where is one if exam is allocated to period ; otherwise, equals zero. is the number of students registered for exams and .

Equations (1) and (2) are the two objectives of minimizing the number of clashes and timetable length, respectively. Equation (3) is the constraint that no student is to be scheduled to take two exams at any one time, while (4) states that every exam can only be scheduled once in any timetable.

To evaluate the quality of one feasible timetable, a function evaluating the average cost for per student based on soft constraints has been proposed. It can be presented as follows:where is the weight that represents the importance of scheduling exams with common students either 4, 3, 2, 1, or 0 timeslots away in one timetable and is the number of students involved in the violation of the soft constraint. is the total number of students in the problem. For this reason that (5) emphasizes the most important indicators, that is, whether the exams in the timetable are allocated throughout the timetable equally, we use this function as one of the objectives in our algorithm. The two objectives of our algorithm optimized are described as follows:

2.2. Related Works

The ETTP is a semiannual or annual problem for colleges and is studied by many operational researches widely due to its complexity and utility. There have been proposed a large range of approaches to solve the problem, discussed in the existing literature. These approaches can be classified into the following broad categories [19]: graph-based sequential techniques, local search-based techniques, population-based techniques, and hyperheuristics.

The graph coloring heuristics are one of the earliest algorithms. Welsh and Powell [20] in 1967 proposed a bridge that is built between graph coloring and timetabling and made a great contribution to the field of the timetabling. The five ordering strategies which extended from graph coloring heuristics on examination timetabling problems and a series of examination timetabling problems were introduced by Carter, Laporte, and Lee in 1996, called University of Toronto Benchmark Data. By developing two variants of selection strategies, Burke et al. [21] studied the influence of bringing a random element into the employment of graph heuristics in 1998. These simple strategies showed improved pure graph heuristics on the sides of both the quality and diversity of the solutions when tested on three of the Toronto datasets. Asmuni et al. [22] in 2005 employed fuzzy logic to order the exams to be scheduled on account of graph coloring heuristics on the Toronto datasets and indicated that it is an appropriate evaluation for arranging the exams. Corr et al. [23] investigated a neural network, the objective of which is to arrange the most difficult exams at an early stage of solution construction. The work has showed the feasibility of using neural network as a generally adaptive applicable technique on timetabling problems.

The local search-based techniques represent a large portion of the work which has appeared in the last decade [1]. Mainly because various constraints can be handled relatively easily, they have been applied on a variety of timetabling problems. Di Gaspero and Schaerf (2001) [24] carried out a valuable investigation on a family of tabu search based techniques whose neighborhoods concerned those which contributed to the violations of hard and soft constraints. Burke et al. [5] investigated variants of Variable Neighbourhood Search and obtained the best results in the literature across some of the problems in the Toronto datasets. Caramia et al. [25, 26] developed a fine-tuned local search method where a greedy scheduler assigned examinations into the least timeslots and a penalty decrease improved the timetable without increasing the number of timeslots.

The genetic algorithm is one of the most typical representatives of the population-based techniques. It is noticed that the algorithm has a good performance in the literatures. Particularly, the hybridizations of genetic algorithms with local search methods, memetic algorithms, have an excellent performance in this area. In 1994, Corne et al. [27] introduced genetic algorithms to solve general educational timetabling problems. The function of this work is that certain problem structures in some particularly generated graph coloring problems cannot be handled by obtaining direct representation in the genetic algorithms. Ross et al. [28] in 1996 indicated that by testing on specially generated graph coloring problems of different homogeneity and connectivity the transition regions were existent in solvable timetabling problems. The study can make researchers understand how different algorithms perform on complex timetabling problems. Terashima-Marin et al. [29] in 1999 indicated a clique-based crossover on the timetabling problems which was turned into graph problems. Erben [30] (2001) indicated a grouping genetic algorithm with appropriate encoding, crossover and mutation operators, and fitness functions studied. This method requires less computational time than some of the methods in the literature. Burke and Landa Silva [31] discussed some issues concerning the design of memetic algorithms for scheduling and timetabling problems. Burke et al. [21] developed a memetic algorithm to reassign single exams and sets of exams and employed light and heavy mutation operators. However, neither of these mutations on their own improved the solution quality. Malim et al. [16] developed three variants of Artificial Immune systems and indicated that the algorithms can be suitable for course and exam timetabling problems. However, there was a problem in the results; after publication they were showed to represent an error in the code and invalidness.

More and more researchers pay attention to the hyperheuristics approach. In 2003 Ahmadi et al. [32] investigated a variable neighborhood search, aiming to find good combinations of heuristics for different examination timetabling problem. Kendall and Hussin [33] in 2005 developed a tabu search hyperheuristic; they adopted moving strategies and constructive graph heuristics to be the low level heuristics. In 2007 Burke et al. [5] researched obtaining tabu search to find sequences of graph heuristics to construct solutions for timetabling problems and considered the effects of various numbers of low level graph heuristics on the examination timetabling problems. By conducting an empirical study on both benchmark functions and exam timetabling problems, Bilgin et al. [34] (2007) studied 7 heuristic selection methods and 5 acceptance criteria within a hyperheuristic. The memetic algorithm hyperheuristic with a single hill climber at a time showed that it performed better on approaches tested. For the interested readers, more details can be referred from [5].

In summary, during the recent years, there are an increasing number of excellent algorithms; almost all of these algorithms were tested on either benchmark datasets or in real applications, which had made quite good achievements. In this paper, we also proposed a multiobjective optimization algorithm, called Nondominated Neighbor Immune Algorithm (NNIA) in [18]. NNIA adopts an immune inspired operator, a nondominated neighbor-based selection technique, two heuristic search operators, and elitism. It indicates that NNIA is an effective method for solving MOPs by a number of experiments. Due to its good performance, we will adopt the framework of NNIA with some modifications, which will be described in the following section. The contribution of this paper is that we solve this task by using multiobjective optimization technique.

3. The Proposed Algorithm

3.1. Algorithmic Flow of MOEA Based on NNIA

The algorithmic flow of our algorithm is presented in Figure 1. At the start of the algorithm, a conflict matrix was created according to Burke and Newall [13], which has dimensions by with the definition from Section 2.1 being its th element. This matrix can check and eliminate the conflicts in the timetables efficiently.

Because of the large-scale individual of the population, it is inadvisable to search in the normal population. Elitism strategy and crowded selection optimization mechanism are put forward. In our algorithm we adopt elitism strategy two times to reduce the computation burden and extend the range of nondominated solutions in elitism group. In the normal population, the children population after crossover and mutation is mixed with parent population. Then the nondomined solutions of this new population are put into the elitism group. The purpose of the strategy is to offer more nondominated solutions to the elitism group.

3.2. Hyper-Heuristic Initialization

As a common step, initialization is to produce an initial population. In our algorithm, there are a large number of feasible solutions that need to be optimized, but the process of generating the feasible solutions is hard for most of the examination timetabling problems. The difficulty level that feasible solutions generated for different examination timetabling problems is different. It is hard to make some unfeasible solutions be the feasible ones with some conventional ways in the subsequent operation. The result of the algorithm is influenced by the number of feasible solutions in the initial population for some issues. The initialization in our algorithm produces a set of solutions randomly and updates the random solutions to be the feasible ones with the simple genetic algorithm. The details are shown in the following.

The hyperheuristic initialization is that the exams are selected for insertion with the help of some heuristic information when used in the graph coloring problem [21, 35]. The heuristics we use in this paper are as follows:(1)Largest degree (LD): exams with the largest number of conflicts with other exams are inserted first.(2)Largest weighted degree (LWD): it is the same as LD but weighted by the number of students involved.(3)Saturation degree (SD): exams with the fewest valid timeslots, in terms of satisfying the hard constraints, remaining in the timetable are inserted first.

There are two terminated conditions, maximum iteration number and the maximum number of feasible solutions, which can make the whole algorithm achieve the stable result for most examination timetabling problems. But our algorithm has obvious superiority for the problems that the feasible solutions are hardly generated, because of this strategy of the initialization. The advantage of the hyperheuristic initialization is that we can get the timetables with the lengths being close to the demands of the users. The result can be seen in the next section.

3.3. Local Search Operators

Some researchers indicated that adopting local search within evolutionary algorithms is an much effective approach for finding high quality exam timetables which can also contribute to the intensification of the optimization results [36, 37]. A description of the two-direction local search operators this paper adopted is given below.

The first kind is to minimize the timetable length as far as possible without concerning the conflict number, aiming at the operator in the local search to minimize the time periods among the nondominated elitism group.

The selected individual is , the search depth is , the maximum mutation probability is , the original mutation probability is , the probability increasing step length is , the exam timetable is , the maximum iteration number is , and the number of examinations is .

Step 1. Set the original mutation probability .

Step 2. Set search depth variable sign .

Step 3. Randomly select exams in , which is denoted as . Delete all the selected exams in .

Step 4. Rearrange the exams in according to the maximum number of conflicts and the timeslots in according to the heuristics. Then insert the exams in into the timetable ; if you can not insert them into the inherent timeslots, extend the timeslots until all exams are arranged; the newly produced timeslots are .

Step 5. If the number of is less than the number of , replace with , and stop; otherwise, , and go to Step 3.

Step 6. If , then and go to Step 2.

Step 7. If , compare the timeslots of and ; then put the smaller one into the elitist group and stop; otherwise, go to Step 6 and go on.

The second kind aims at minimizing the number of conflicts without concerning the number of timeslots. The details are described below.

The selected probability is , the search depth is , the maximum selected probability is , the original mutation probability is , the probability increasing step length is , the exam timetable is , the maximum iteration number is , and the number of examinations is .

Step 1. Set the original examination selected probability .

Step 2. Set search depth variable sign .

Step 3. Randomly select exams in and the newly set .

Step 4. Rearrange exams in according to the number of conflicts, delete all the exams in , and sort all the timeslots in the changed timetable .

Step 5. Insert the exams in into the timetable at the premise of not affecting the number of timeslots; the newly produced individual is .

Step 6. Compare the number of conflicts in with which, in according to the formulation, if the former is smaller, replace original individuals with and then stop. Otherwise, ; go to Step 3.

Step 7. If , judge the number of conflicts in and ; if the former is smaller, replace with ; put the smaller one into the elitist group; otherwise, ; go to Step 2.

Step 8. If , judge the number of conflicts in and ; if the former is smaller, replace with ; then put the smaller one into the elitist group; otherwise, remain unchanged.

3.4. Diversity-Keeping Operators
3.4.1. Elitism Group Strategy

Although the local search can intensify the optimization results, the discrete optimization is different from the continuous optimization that a small disturbance in decision domain may probably let individuals transform irregularly and even result in deterioration. As such, in order to avoid this phenomenon we put forward a novel local search exploitation with an extra elitism group to save nondominated solutions in every generation. However, normal population is just offering a space of updating the nondominated solutions. In our algorithm we also introduce a corresponding elitism strategy and a crowded selection optimization mechanism; the details will be introduced in the next part.

The local search operators are applied after the strategy of extension and optimization of the elitism group. The operators avoid an objective in an individual deterioration and then minimize the other objective and get the new elitist solutions mixed with original elitist solutions to conduct a nondominated sorting. The frontier may extend to the two different directions as far as possible according to the operators. The local search is searching vertically between two objectives in order which is shown as Figure 2. It indicates that one objective is optimized prior and then the other is shown as rout A or rout B of the individual in the figure.

3.4.2. Extension Optimization Strategy

Due to the normal selection and mutation operators making a little contribution to the nondominated elitism group, we present a strategy to extend and optimize the elitism group based on the congestion degree which is shown in Figure 3. Compute the difference of timetable length between every individual and its right side one. If the -value is 1, then extend a time period of this individual and randomly select some exams into the time period. We can get a uniform frontier by this means. As is shown in Figure 3, the crowding degree of individual is the length of the line segment AB. Assume that the crowding degree of individual is 2; according to our theory, expend the individual and get and then put it into the original elitism group. Finally, we take local search operators to the generations after extending the time periods.

4. Experimental Analysis

Our algorithm is programmed in Matlab and simulations are performed on the 2.8 GHz Core Personal Computer. We use 9 uncapacitated benchmark examinations timetabling datasets proposed by Carter and Laporte [1] to evaluate the effectiveness of our algorithm. The details of the proposed benchmarks are shown in Table 1. As no dataset is designed to evaluate the multiobjective timetabling algorithms, we just use the datasets used in the single objective to evaluate the feasibility and reasonableness of our algorithm. The parameter settings are presented in Table 2. The population size is 100 and the maximum iteration is 100. The other parameters’ choosing reason will be described in the following parts.

In the following sections, we will study our algorithm in two sides. One is to make analysis on the contribution of diversity-keeping local search operators searching in two different directions orderly which is shown with four comparative experiments. The other one is to discuss the contribution of elitism group strategy applied on our algorithm two times with four experiments presented.

4.1. Contribution of Diversity-Keeping Strategy

This section presents the performance of the diversity-keeping operators. To assess the effectiveness of the strategies, a comparison was conducted as in Figure 4. is saying that the algorithm runs with the strategies while is indicating that the algorithm runs without the strategies. The boxplots were drawn according to the statistic number of solutions. The eight data in this experiment were running ten times independently. From Figure 4, it can be observed obviously that the operator of does better than does in every dataset. The results well proved the efficiency of diversity-keeping operator.

4.2. Contribution of Local Search Operators

In this section, we use the hypervolume as an indicator to estimate the effectiveness of the algorithm; in our comparable experiments the indicator is the maximum value of the dataset to be compared in all dimensions.

To prove the efficiency of the proposed two local search operators, this section shows the performance of the algorithms with and without local search operators. As is shown in Figure 5, is the setting that does not use local search at all, and is the setting with the local search aiming at minimizing the conflict number, while the setting is the local search to minimize the timeslots and incorporates two local search operators. Ten independent runs of the four settings are conducted to obtain statistical results. From Figure 5, the contribution of local search operators is obvious, since the operators which use two local search are able to generate solutions with significantly lower number of clashes. For the hypervolume value of the nondominated solutions of datasets Ute92, Sta83, Lse91, Kfu93, Hec92, and Ear83, the application of the two local search settings shows better results than other three settings.

From the statistic boxplots we can see that our algorithm is robust to the indicator of the students conflict numbers. The outliers are few and the differences between the highest and the lowest values are small, which also demonstrate the robustness of our algorithm.

4.3. Performance of Multiobjective Algorithm Based on NNIA

This section presents the multiobjective optimization performance of the algorithm based on NNIA. On top of showing the advantages of our algorithm, the role of the two objectives will be validated as follows. The experiment was conducted running ten times independently.

The boxplots in Figure 6 show the number of pareto optimal solutions of the eight datasets. The number of pareto optimal solutions for the dataset is nearly four. The number of pareto optimal solutions for other datasets is almost distributed from seven to ten.

Experiments were conducted to further show the results. From Figure 7, we can see the details of both the number of periods and its corresponding clashes. All of the datasets tested perform good, the pareto optimal solutions are distributed uniformly, and the clashes are relatively small. The experiments support our algorithm powerfully and the multiobjective exam timetabling problem is solved well.

5. Conclusions

In this paper, the exam timetabling problem has been regarded as a multiobjective optimization problem which involves the minimizing of the number of clashes and number of periods in a timetable. A multiobjective evolutionary algorithm, based on NNIA, featured with elitism group strategy, congestion degree based on extension optimization strategy, and two local search operators, has been presented.

The proposed MOEA is different from most existing single-objective-based methods in the fact that it optimizes two objectives concurrently and get a set of solutions reasonable instead of producing single-length timetables. It has been proved that such an approach is more universal and would be able to function effectively. The results also show that the algorithm can generate relatively short clash-free timetables and various solutions which are convenient for deciders to choose on their own preference.

The work we do in this paper focuses on the temporal aspect of the ETTP, which has solved the problem well in a sense. However, it still has some shortcomings, how to balance the diversity and approximation, which can be subjected for future study.

Conflicts of Interest

The authors declare that they have no conflicts of interest.