(1)  ;
(2)  initialize ;
(3)  evaluate individuals in ;
(4)  while termination condition not satisfied do
(5) ;
(6) select individuals from for mating and copy them to ;
(7) recombine and mutate individuals in and store them into ;
(8) evaluate individuals in ;
(9) select individuals for from and ;
(10) end while
Algorithm 1: Genetic algorithm.