












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Introduction, or can evolution be intelligent? Simulation of natural evolution Genetic algorithms Case study: maintenance scheduling with genetic algorithms Summary
Can evolution be intelligent?
Intelligence can be defined as the capability of a system to adapt its behavior to ever-changing environment. According to Alan Turing, the form or appearance of a system is irrelevant to its intelligence. Evolutionary computation simulates evolution on a computer. The result of such a simulation is a series of optimization algorithms, usually based on a simple set of rules. Optimization iteratively improves the quality of solutions until an optimal, or at least feasible, solution is found.
Simulation of natural evolution
Let us consider a population of rabbits. Some rabbits are faster than others, and we may say that these rabbits possess superior fitness, because they have a greater chance of avoiding foxes, surviving and then breeding.
If two parents have superior fitness, there is a good chance that a combination of their genes will produce an offspring with even higher fitness. Over time the entire population of rabbits becomes faster to meet their environmental challenges in the face of foxes.
All methods of evolutionary computation simulate natural evolution by creating a population of individuals, evaluating their fitness, generating a new population through genetic operations, and repeating this process a number of times.
We will start with Genetic Algorithms (GAs) as most of the other evolutionary algorithms can be viewed as variations of genetic algorithms.
In the early 1970s, John Holland introduced the concept of genetic algorithms.
His aim was to make computers do what nature does. Holland was concerned with algorithms that manipulate strings of binary digits.
Each artificial “chromosomes” consists of a number of “genes”, and each gene is represented by 0 or 1:
Phenotype space Genotype space = {0,1}L Encoding (representation)
Decoding (inverse representation)
011101001
010001001
10010010
10010001
Representation
Basic genetic algorithms
Step 3: Randomly generate an initial population of chromosomes of size N : x 1 , x 2 ,... , xN
Step 4: Calculate the fitness of each individual chromosome: f ( x 1 ), f ( x 2 ),... , f ( xN )
Step 5: Select a pair of chromosomes for mating from the current population. Parent chromosomes are selected with a probability related to their fitness.
GA represents an iterative process. Each iteration is called a generation. A typical number of generations for a simple GA can range from 50 to over 500. The entire set of generations is called a run.
A common practice is to terminate a GA after a specified number of generations and then examine the best chromosomes in the population. If no satisfactory solution is found, the GA is restarted.
Because GAs use a stochastic search method, the fitness of a population may remain stable for a number of generations before a superior chromosome appears.
A simple example will help us to understand how a GA works. Let us find the maximum value of the function (15 x
Integer Binary code Integer Binary code Integer Binary code 1 11 2 7 12 3 8 13 4 9 14 5 10 15
(^6) 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1
0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1
The fitness function and chromosome locations
Chromosome label
Chromosome string
Decoded integer
Chromosome fitness
Fitness ratio, % X1 1 1 0 0 12 36 16. X2 0 1 0 0 4 44 20. X3 0 0 0 1 1 14 6. X4 1 1 1 0 14 14 6. X5 0 1 1 1 7 56 25. X6 1 0 0 1 9 54 24.
x
50 40 30 20
60
10 (^00 5 10 )
f ( x )
( a ) Chromosome initial locations.
x
50 40 30 20
60
10 (^00 5 10 ) ( b ) Chromosome final locations.
In natural selection, only the fittest species can survive, breed, and thereby pass their genes on to the next generation. GAs use a similar approach, but unlike nature, the size of the chromosome population remains unchanged from one generation to the next.
The last column in Table shows the ratio of the individual chromosome’s fitness to the population’s total fitness. This ratio determines the chromosome’s chance of being selected for mating. The chromosome’s average fitness improves from one generation to the next.