PPolySim OS
For K-12 Students · Ant Colony Optimization

Ant Colony Optimization for a city growing

Built for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework. Simulate a city growing live below — adjust the inputs and watch it respond, right in your browser.

Ant Colony OptimizationLive

Controls

Presets

Simulated ants lay pheromone (cyan) on short routes; trails evaporate over time so good paths reinforce and bad ones fade. The colony collectively finds near-optimal tours of the Traveling Salesman Problem — the green loop is the best so far.

▶ Run in Python

Data Inspector

Iteration0
Best tour0
Cities15

Governing equation

Reading this result: With 15 cities and 20 ants, 10% evaporation balances exploring new edges against reinforcing the best tour found so far.

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

or unlock everything with Pro →

More with Ant Colony Optimization

Frequently asked questions

Is this good for k-12 students?
Yes — this version of "Ant Colony Optimization for a city growing" is framed for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.