| Algorithm 2: Genetic Algorithm |
|---|
| Step 1: Generate the initial population of chromosomes Step 2: Compute the fitness of each chromosome Step 3: For i = 1 to N (number of iterations) Perform a selection of parents to be crossed over Perform crossover, then Perform mutation, and finally Find the fitness of each chromosome End for |