Ant Foraging Dynamics Explorer
Trail noise & recruitment linearity — two mechanisms for collective decision-making flexibility
© 2026 Theodore P. Pavlic  ·  MIT License
© 2026 Theodore P. Pavlic  ·  MIT License
Real ant colonies must balance commitment with adaptability. Both tabs explore the same question from different angles: how do colonies tune between decisive winner-take-all allocation and flexible proportional tracking of a changing environment? In Tab ①, individual noise in trail-following acts like a stochastic temperature — too little and the colony locks in; just right and it can escape a bad attractor; too much and it wanders randomly (Dussutour et al., 2009). In Tab ②, the shape of the recruitment function (linear vs. nonlinear) determines whether strong attractors exist at all (Shaffer et al., 2013) — analogous to adjusting the temperature divider in softmax. Both mechanisms can be understood as collective Boltzmann thermostats.
Species Preset
Both Pheidole megacephala and Lasius niger establish coherent trails to food sources, but they differ in persistence and the ability to track changes in food availability. Use these presets to explore differences in trailing mechanisms and performance.
Y-Maze — ant colony PAUSED
Branch B — short (superior)
Branch A — long (inferior)
Blocked
Allocation history t = 0 min
B (short) — actual
target (ideal)
Pheromone concentrations (τ) τA & τB — raw SDE state
τA (long)
τB (short)
Individual Ant Decision Rule
τA τB ?
① Sense
At the fork, the ant contacts pheromone on each branch via chemoreception.
PB = (k+τB)α Σi(k+τi)α
② Choose
She samples stochastically: stronger trails are more attractive, amplified nonlinearly by α.
+q
③ Deposit
Returning with food (orange), she lays q pheromone per step, reinforcing the trail for nestmates.
Pheromone Dynamics — SDE Model (Dussutour et al. 2009, Eq. 3.4)
dci  =  [ pi · qi · f(t)  −  ρ · ci ] dt  +  σ dWi
pi  ≜  (k + ci)α  /  Σj(k + cj)α
cipheromone trail strength on branch i — built up by returning ants, eroded by evaporation
pichoice probability — Hill function; nonlinearity α amplifies small pheromone differences
qideposit rate per return trip  (qB > qA encodes feeder quality)
f(t)effective colony flow — fblk when B is blocked; low (Pheidole) keeps A weak, high (Lasius) lets A build
kspontaneous baseline — inverse-temperature-like; higher k → more uniform exploration
σ dWItô white noise — drives stochastic resonance; optimal σ enables escape from the A-attractor