Agent-based (3D)
Prey Predator
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
ODE vs agents (population over time)
Prey — ODE
Prey — agents
Predator — ODE
Predator — agents

Ecological Modeling: ODE vs Agent-Based Simulation

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.