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 colonyPAUSED
Branch B — short (superior)
Branch A — long (inferior)
Blocked
…
Allocation historyt = 0 min
B (short) — actual
target (ideal)
Pheromone concentrations (τ)τA & τB — raw SDE state
τA (long)
τB (short)
Individual Ant Decision Rule
① 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 α.
③ 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
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
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.
Parameters
σ1.5
Trail-following noise (Itô SDE amplitude). σ≈0: deterministic, gets locked in (Lasius). σ≈3: Pheidole — optimal noise for tracking. σ≫3: random walk, trails dissolve. Tracking MI peaks at the resonance.
α2.0
Pheromone nonlinearity exponent. Higher α → more decisive winner-take-all. α=2 fits L. niger.
ρ0.015
Pheromone evaporation rate (min⁻¹). Higher ρ → faster forgetting, more flexible but less stable. Default tuned for convergence in ~60 sim-min.
Feeder Quality & Trail Persistence
qB/qA1.44×
Quality ratio: deposit rate of B (short) vs A (long). Paper default ≈ 1.44.
fblk0.50
Recruiter flow when B is blocked (fraction of normal F).
Low → Pheidole-like: colony quickly stops recruiting to a lost feeder, so A barely builds.
High → Lasius-like: ants persist on established trail, A pheromone builds strongly → locked in.
Simulation
speed1.5×
Phase duration (min)60
Continuous cycling
When on, phases repeat indefinitely — useful for observing stochastic resonance over many switching events.
3-Phase: B open → B blocked → B restored. Replicates Dussutour et al. 2009.
αnonlinearity exponent — identical role to inverse temperature β in softmax
kspontaneous baseline — compresses quality differences; k=0 gives a pure power law
Recruitment Nonlinearity
α1.0
LTAequalproportionalWTA
Feeder Qualities
Drag to set quality qi of each feeder. The proportional reference (dashed bar) always shows where α=1 would put each feeder.
Current Regime
—
—
Spontaneous Baseline
k1.0
Added to each quality before raising to α. At k=0 the formula is a pure power law qiα. Higher k compresses quality differences toward equal allocation.
The Graph — pi vs qi
Two-option experiment: pi = (k+qi)α / [(k+qi)α + (k+qB)α], qB=2.5 fixed.
Solid = current α. Dashed = α ∈ {−2, 0, 1, 2, 5, 10}. All curves cross P=0.5 at qi=qB (vertical dashed line).
Changing k shifts the whole family; changing α moves only the solid curve.
Recruitment Mechanisms & Linearity
Waggle Dance
Proportional
A scout performs a figure-8 dance; the waggle run encodes food direction and distance. Each dance bout recruits roughly the same number of followers — no feedback between the number already foraging and the recruitment rate (linear recruitment).
Tandem Running
Proportional
An informed ant leads a single naive follower who maintains antennal contact from behind. Strictly 1-to-1: one leader can only guide one follower per run. Recruitment scales directly with the number of leaders — no amplification (linear recruitment).
Trail Laying
Nonlinear
Returning foragers deposit pheromone; more foragers → stronger trail → yet more followers. This positive feedback between trail strength and follower count is what the Hill function with α>1 models — recruitment is amplified, not just proportional.