Governing model
The accessible nectar reserve falls exponentially. Collection efficiency η scales the effective depletion rate k.
k = η / τ
dQ/dt = −kQ · r(t) = kQ(t)
Q(t) = Q₀ e⁻ᵏᵗ · G(t) = Q₀(1 − e⁻ᵏᵗ)
A(t) = G(t) / (T + t)
The marginal value theorem says the best departure time t* occurs where the instantaneous harvest rate equals the average rate for the whole trip: r(t*) = A(t*). The root is found by bisection; a separate grid search checks it.
Numerics & checks
The live reserve and collected nectar are integrated with fourth-order Runge–Kutta at a fixed step of 1/120 simulated minute. The checks compare that integral with its exact solution, the root with a brute-force search, and the live nectar ledger with its starting amount.
What is simplified
- One homogeneous patch; flowers share nectar equally and deplete together.
- Travel time is constant and counts the outward journey only.
- No competition, weather, learning, flower-to-flower variation, or nectar replenishment.
- Flower count changes the visible distribution, not the aggregate depletion curve.
- The bee's route is a visual guide, not a separately modelled flight path.
Every adjustable quantity and displayed result is illustrative, not a field measurement. The equations express the textbook marginal-value principle; this simplified patch is not a species-specific prediction.
Not affiliated with any apiary, conservation organisation, or commercial brand. Background reading: Charnov, E. L. (1976), “Optimal foraging, the marginal value theorem”, Theoretical Population Biology, 9(2), 129–136.