Ant Colony Cross-Section: Pheromone Trails and Shortest-Route Selection
A plan cross-section of an ant nest: tunnels dug in soil join the nest chamber, the brood and queen rooms and a food chamber by two routes, a short one and a longer detour. Foraging ants walk cell by cell, outbound ants choose the next cell with the Deneubourg rule p ~ (k + tau)^n, returning ants retrace their loop-erased path and lay pheromone, and the trail evaporates and diffuses. Set the colony size, the length ratio of the two tunnels, the trail half-life, the choice exponent, the unmarked attractiveness, diffusion, the amount of food and the deposit rule (constant per step, or Ant System quantity over path length), and watch the colony pick a route. A mean-field delay equation for the trail on each branch is drawn beside the measured share of trips. Blender-rendered ants with an eight-frame walking cycle, brood, food crumbs, pebbles and soil tiles. Numerical checks: evaporation half-life, deposit saturation, diffusion variance and mass conservation, the choice rule against its formula, the delay equation against a bisection root, and tunnel lengths. Companion of the 3D ant colony game.
This is the top-down companion of the 3D anthill game: the same colony seen as a plan cross-section, with the foraging model laid bare. Two tunnels, a short one and a longer detour, connect the nest to a food chamber. Outbound ants choose each next cell with the Deneubourg rule, the probability of a neighbouring cell proportional to (k + tau)^n times a turning weight, returning ants retrace their loop-erased path and lay pheromone, and the trail evaporates with a set half-life and diffuses along the tunnels. Under the constant-deposit rule of real ants the shorter tunnel wins because its trail is reinforced one round trip earlier; under the Ant System rule of Dorigo and colleagues a deposit of Q over the path length favours it further. A mean-field delay equation, d tau_i / dt = q Phi p_i(t - 2 L_i / v) - rho tau_i, is plotted against the measured share of trips. The soil, pebbles, brood, food crumbs and the eight-frame walking ant are rendered in Blender. Numerical checks cover the evaporation half-life, deposit saturation q Phi / rho, diffusion variance 2 D t, mass conservation of diffusion on the tunnel network, the choice rule at a fork, the delay equation against a bisection root and the tunnel lengths.
A plan cross-section of an ant nest: tunnels dug in soil join the nest chamber, the brood and queen rooms and a food chamber by two routes, a short one and a longer detour. Foraging ants walk cell by cell, outbound ants choose the next cell with the Deneubourg rule p ~ (k + tau)^n, returning ants retrace their loop-erased path and lay pheromone, and the trail evaporates and diffuses. Set the colony size, the length ratio of the two tunnels, the trail half-life, the choice exponent, the unmarked attractiveness, diffusion, the amount of food and the deposit rule (constant per step, or Ant System quantity over path length), and watch the colony pick a route. A mean-field delay equation for the trail on each branch is drawn beside the measured share of trips. Blender-rendered ants with an eight-frame walking cycle, brood, food crumbs, pebbles and soil tiles. Numerical checks: evaporation half-life, deposit saturation, diffusion variance and mass conservation, the choice rule against its formula, the delay equation against a bisection root, and tunnel lengths. Companion of the 3D ant colony game.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install