Genetic Algorithm: 2D Fitness Contour Map
Watch a genetic algorithm population climb a real multi-peaked fitness landscape rendered as a 2D heatmap with contour lines and a live convergence chart. Tune mutation rate, mutation strength and selection pressure and see whether it finds the global optimum or gets trapped on a local peak.
A genetic algorithm searches for good solutions the same way a population of organisms searches a real terrain: many individuals, each scored by a fitness function, compete and recombine generation after generation until the population converges on high ground. This simulator renders that search as a topographic contour map — a real fitness field built from overlapping Gaussian peaks, drawn as a pixel heatmap with traced iso-fitness contour lines, with a population of genotypes rendered as dots that climb it under selection, blend crossover and Gaussian mutation. A live strip chart tracks best and mean fitness across generations. Switch between a rugged six-peak landscape (where premature convergence to a local optimum is likely) and a smoother two-peak one, tune mutation rate, mutation strength and tournament size, and watch live readouts for generation count, best and mean fitness, and population diversity to see the exploration/exploitation trade-off play out in real time.
Watch a genetic algorithm population climb a real multi-peaked fitness landscape rendered as a 2D heatmap with traced contour lines and a live best/mean convergence chart, using tournament selection, blend crossover and Gaussian mutation, and see whether it finds the global optimum or gets stuck on a local peak.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install