26.12.2013 Views

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

M<strong>AI</strong>NTENANCE SCHEDULING WITH GENETIC ALGORITHMS<br />

237<br />

interval, the corresponding bit assumes value 1, otherwise it is 0. For<br />

example, the string 0 1 0 0 presents a schedule for a unit <strong>to</strong> be<br />

maintained in the second interval. It also shows that the number <strong>of</strong><br />

intervals required for maintenance <strong>of</strong> this unit is equal <strong>to</strong> 1. Thus, a<br />

complete maintenance schedule for our problem can be represented as<br />

a 28-bit chromosome.<br />

However, crossover and mutation opera<strong>to</strong>rs could easily create<br />

binary strings that call for maintaining some units more than once<br />

and others not at all. In addition, we could call for maintenance<br />

periods that would exceed the number <strong>of</strong> intervals really required for<br />

unit maintenance.<br />

A better approach is <strong>to</strong> change the chromosome syntax. As already<br />

discussed, a chromosome is a collection <strong>of</strong> elementary parts called<br />

genes. Traditionally, each gene is represented by only one bit and<br />

cannot be broken in<strong>to</strong> smaller elements. For our problem, we can adopt<br />

the same concept, but represent a gene by four bits. In other words, the<br />

smallest indivisible part <strong>of</strong> our chromosome is a 4-bit string. This<br />

representation allows crossover and mutation opera<strong>to</strong>rs <strong>to</strong> act according<br />

<strong>to</strong> the theoretical grounding <strong>of</strong> genetic algorithms. What remains<br />

<strong>to</strong> be done is <strong>to</strong> produce a pool <strong>of</strong> genes for each unit:<br />

Unit 1:<br />

Unit 2:<br />

Unit 3:<br />

Unit 4:<br />

Unit 5:<br />

Unit 6:<br />

Unit 7:<br />

1 1 0 0<br />

1 1 0 0<br />

1 0 0 0<br />

1 0 0 0<br />

1 0 0 0<br />

0 1 1 0<br />

0 1 1 0<br />

0 1 0 0<br />

0 1 0 0<br />

0 1 0 0<br />

0 0 1 1<br />

0 0 1 1<br />

0 0 1 0<br />

0 0 1 0<br />

0 0 1 0<br />

0 0 0 1<br />

0 0 0 1<br />

0 0 0 1<br />

1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1<br />

1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1<br />

The GA can now create an initial population <strong>of</strong> chromosomes by filling<br />

7-gene chromosomes with genes randomly selected from the corresponding<br />

pools. A sample <strong>of</strong> such a chromosome is shown in Figure 7.9.<br />

Step 3:<br />

Define a fitness function <strong>to</strong> evaluate the chromosome performance<br />

The chromosome evaluation is a crucial part <strong>of</strong> the GA, because<br />

chromosomes are selected for mating based on their fitness. The fitness<br />

function must capture what makes a maintenance schedule either good<br />

or bad for the user. For our problem we apply a fairly simple function<br />

concerned with constraint violations and the net reserve at each<br />

interval.<br />

Figure 7.9<br />

A chromosome for the scheduling problem

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

Saved successfully!

Ooh no, something went wrong!