03.01.2015 Views

a multi-objective bisexual reproduction genetic algorithm for ...

a multi-objective bisexual reproduction genetic algorithm for ...

a multi-objective bisexual reproduction genetic algorithm for ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

47<br />

where W 1 and W 2 denote weights of hard and soft constraints respectively. We will<br />

do experiments to identify suitable values <strong>for</strong> these weights.<br />

In this study, we design a course scheduling <strong>algorithm</strong> to find solutions that<br />

have the highest fitness value f(x). This is a heuristic search, so we will look at<br />

solutions having high fitness value until we meet a solution whose f 1 (x) is equal to 1.<br />

3.6.4.1 Checking Conflicts about Small Classrooms<br />

Each course must be booked to a classroom that is large enough to hold the<br />

students of that course.<br />

A pseudo code <strong>for</strong> checking this is given in Figure 3-13.<br />

Count=0<br />

For each classroom<br />

For each day in a week<br />

For each time-slot in a day<br />

If ( number of students attending the course held in the current classroom ><br />

number of seats of the current classroom) Count =Count+1<br />

FIGURE 3-13 Pseudo code <strong>for</strong> checking small classroom conflicts<br />

3.6.4.2 Checking Conflicts Regarding Lecturer’s Busy Time<br />

The courses taught by a lecturer cannot be booked to his/her busy workingsessions<br />

in a week.<br />

A pseudo code <strong>for</strong> checking this is given in Figure 3-14.<br />

Count=0<br />

For each lecturer<br />

For each day in a week<br />

For each time-slot in a day<br />

For each classroom<br />

If (the current lecturer teaching the class is held in the current classroom and at<br />

this time-slot ) and (the current lecturer is busy at this time) Count=Count+1<br />

FIGURE 3-14 Pseudo code <strong>for</strong> checking lecturer’s busy time

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!