Skip to main content
. 2023 Feb 16;9(3):e13752. doi: 10.1016/j.heliyon.2023.e13752
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