PPolySim OS

Genetic Algorithm

Evolution as an optimizer. A population of guesses is selected, bred, and mutated generation after generation, climbing a rugged fitness landscape toward the global peak.

Genetic AlgorithmLive

Controls

Presets

A population of candidate solutions is scored by fitness (bright = high). The fittest are selected, crossed over, and mutated each generation. Watch the swarm climb toward the global peak while dodging local optima.

▶ Run in Python

Data Inspector

Generation0
Best fitness0.000
Population80

Governing equation

Reading this result: Balanced mutation (0.08) with population 80: enough diversity to escape local optima while still converging — the classic explore-vs-exploit sweet spot.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

Genetic algorithms mimic natural selection: candidate solutions are scored by a fitness function, the best are chosen as parents, their traits are combined by crossover, and random mutation maintains diversity. Here the population hunts for the brightest peak while avoiding getting stuck on lesser local optima.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Complex Systems simulations

Frequently asked questions

Is this genetic algorithm visualizer tool really free?
Yes. Genetic Algorithm runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.