MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

Genetic algorithm

Experiment with selection, crossover, mutation and elitism in a working genetic algorithm on multimodal fitness landscapes.

Genetic algorithm — Actual application image
Actual application image

Try this

A population of 48 sixteen-bit chromosomes searches a landscape. Tournament selection, one-point crossover and per-bit mutation generate each generation. Elitism retains the best chromosome; global optimality is not guaranteed.

Equations used in the module
Equations
x = −3 + 6g/65535, g ∈ {0,…,65535}
Selection: best of three random individuals
Crossover: one random split between the 16 bits
Each bit flips independently with probability pmutation

Related experiments

Back to catalogue
The leaning tower of blocks — Actual application image

Math

The leaning tower of blocks

Build the classical harmonic block stack and inspect the centre of mass and support margin at every layer.

Wallpaper groups — Actual application image

Math

Wallpaper groups

Draw a seed motif and generate all 17 wallpaper groups using lattice translations, rotations, reflections and glide reflections.