Demo: 6 Bits

This page is meant to demonstrate how adjusting different parameters of the genetic algorithm affect its performance. Choose from the 5 presets below and observe their inital populations, maximum sum (fitness) over time, how many generations it took to find a solution, and the best arrays of each generation. Below, the performace graph, initial population graph, and best array of each generation are shown. Refer to the tutorials page for more information on the results of each preset. The parameters corresponding to each preset are as follows:

Preset Array Size Population Size Selection Proportion Mutation Probability
Standard 6 10 0.5 0.05
Bigger 10 20 0.5 0.05
Low Selection 10 20 0.1 0.05
Low Population 10 3 0.5 0.05
High Mutation 10 20 0.5 0.4

Preset Selections:




Initial Population and Best Arrays of Each Generation: 1 is black, 0 is white.