Genetic Agorithm

Step 1.

Choose a coding to represent a parameters,a selection operator , acrossover operator,and a mutation operator.Choose a population size n,a crossover probability,Pc,and a mutation probability,Pm. Initialise a random poplationof strings of size l.Choose a maximum allowable generation number tmax.Set t=0.

Step 2.

Evaluate each string in the population.

Step 3.

if t>tmax> or other termination criteria is satisfied, Terminate.

Step 4.

Perform reproduction on population.

Step 5.

Perform crossover on randon pairs of strings.

Step 6.

Perform mutation on every string.

Step 7.

Evaluate strings in the new population.Set t=t+1 and go to Step 3..