A Classwork on Genetic Algorithms
A genetic algorithm is to be used to find the maximum value of the function
15𝑥 − 𝑥 2 where parameter 𝑥 varies between 0 and 15. For simplicity, assume
that 𝑥 takes only integer values. Thus, chromosomes can be built with only four
genes.
• Create an initial population of six chromosomes and complete Table 1.
• Suppose that the crossover probability 𝑝𝑐 equals 0.7 and the mutation
probability 𝑝𝑚 equals 0.001.
Try to improve the initial population using, the genetic operators,
selection, crossover and mutation.