Optimization based on genetic algorithm, with the reproduction of a picture set as the objective.
The genom is defined with as many genes as pixels in the objective picture. Each gene represents a pixel with a grey level coded on 2 bits (4 levels of grey).
This example is run with a population of 1000 individuals randomly generated at the beginning of the simulation, which is then evolved. Then the 1000 best individuals are selected for the next generation. About 600 generations were simulated in this example.
Developped with Processing 1.5.1.