Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 403 Bytes

File metadata and controls

8 lines (7 loc) · 403 Bytes

GENETIC ALGORITHM

  • Initialize Population: Generate a random population of solutions.
  • Evaluate Fitness: Compute fitness for each solution.
  • Selection: Select solutions based on fitness to create the next generation.
  • Crossover: Combine two parents to create offspring.
  • Mutation: Introduce (or not) random change in solution.

Repeat until target (or maximum number of generations) is reached.