Ecological Modeling: ODE vs Agent-Based Simulation
A side-by-side comparison of two real ecological-modeling methods on the same predator-prey system: a deterministic ODE (Lotka-Volterra with carrying capacity) plotted as smooth curves, and an agent-based model where individual predators and prey move and hunt in 3D and population dynamics emerge from their encounters — showing where the two diverge, such as stochastic extinction the ODE curve can never represent.
Ecologists model the same predator-prey system with two very different tools, and this simulation runs both of them side by side from an identical starting point. On the left, a 3D agent-based model gives every predator and prey its own position, energy budget and decisions — individuals wander, hunt, flee, feed and reproduce, and the population counts you see are an emergent consequence of thousands of local encounters. On the right, a classical Lotka-Volterra ordinary differential equation with carrying capacity reduces the same system to two numbers, N(t) and P(t), integrated smoothly and deterministically with no randomness at all. Because both models share the same initial population, growth rate and predation strength, any difference you see between the dashed ODE curves and the solid agent-based curves comes purely from the modeling method itself — including the agent-based model's ability to go stochastically extinct in a way the smooth ODE curve structurally cannot.
Set initial populations and compare ODE model's smooth curves with agent-based simulation where individual prey and predators interact in a 3D environment.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install