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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

49<br />

At the same time, if a lecturer is booked to teach more than one course, a<br />

conflict will be counted.<br />

3.6.4.5 Checking Conflicts about Double Scheduled Classes<br />

Courses attended by the same class of students have to be scheduled to different<br />

time so that all students of that class can attend.<br />

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

For each class<br />

For each day in a week<br />

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

Count=0<br />

For each classroom<br />

If (the course held in the current time-slot is studied by the current class)<br />

Count=Count+1<br />

FIGURE 3-17 Pseudo code <strong>for</strong> checking conflicts about double scheduled classes<br />

At the same time, a class cannot be booked to study more than one course. If<br />

double scheduled, a conflict will be counted.<br />

3.6.4.6 Checking Conflicts about Double Scheduled Courses<br />

Every course must be scheduled exactly once in a week.<br />

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

Count=0<br />

For each course<br />

Booked=0<br />

For each classroom<br />

For each day in a week<br />

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

If (the current course is held in this time period)<br />

Booked=Booked+1<br />

If (Booked> the number of credits of the current course) Count=Count+1<br />

FIGURE 3-18 Pseudo code <strong>for</strong> checking conflicts about double scheduled courses

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

Saved successfully!

Ooh no, something went wrong!