Simple Pseudo-code:
1. Coding the
solutions
2.
Choose the initial
population of individuals
3.
Evaluate the fitness of each individual
in that population
4.
Repeat on this generation until
termination: (time limit, sufficient
fitness achieved, etc.)
1. Select the
best-fit individuals for reproduction
2. Breed new
individuals through crossover and
mutation operations to give birth to
offspring
3. Evaluate the
individual fitness of new individuals
4. Replace least-fit
population with new individuals
5. Decoding
the solutions
|