← Back to GA docs

teeline · algorithms/ga

Genetic Algorithm

A population of tours evolves step by step. Two parents are chosen by roulette selection (fitter = more likely), combined via ordered crossover (OX), and optionally mutated. The top 2 elite individuals survive unchanged each generation.

01234567891011
POPULATION
0
elite
1
elite
2
fitness 68%
3
fitness 46%
4
fitness 37%
5
fitness 16%
6
fitness 2%
7
fitness 0%
best tourparent Aparent BeliteOX segment
best distance per generation
0gen
0/3step
1593best dist
0crossovers
0mutations