Ant foraging laboratory

Pheromone Trail

Watch a colony discover two routes to the same food source. Ants choose a branch from route-level pheromone, then reinforce only the route they successfully carry food back along.

42 foragers 2 routes Live pheromone
Returns 0 successful trips
Next choice 50% upper route
Trail A 0% mean pheromone
Trail B 0% mean pheromone
Route A Route B

Explicit toy pheromone rule

qA = mean(pheromone on A)
qB = mean(pheromone on B)
P(A) = ε + (1−2ε)·eβqA / (eβqA + eβqB)

At the fork, each ant samples this probability. After a complete return to the nest, every segment of the chosen route gains +0.27 pheromone. All segments decay continuously, so unused trails become faint and disappear.

Route A Route B Pheromone
Drag to orbit · wheel/pinch to zoom · shift/right-drag to pan