Evolution, Live: the demo

A genetic algorithm evolving paintings of a target letter from fifty translucent triangles. From Evolution, Live: Genetic Algorithms at kenreid.co.uk.

Generation0
Best match
Average match
Diversity
Evaluations0

The big picture is the champion: the best painting of the target letter the population has produced so far, built from fifty translucent triangles. The inset beside it is the target (K by default; pick any letter and the population starts over, because a new target is a new fitness landscape), and every cell in the grid below is one individual (the champion's cell is ringed in green). In the chart, best and average match climb while diversity falls as the population agrees with itself; with elitism on, the best score can never drop. Diversity crashing to the floor while best stops moving is premature convergence.