Population Dynamics Examples

Population dynamics models examine how births, deaths, and resource limits govern the size of groups. They reveal how ecosystems respond when populations chase renewable resources and when scarcity forces natural checks.

Examples show logistic growth, predator-prey balance, and renewable-resource harvesting. By adjusting carrying capacities or regeneration rates you can explore how communities stabilize or collapse under environmental pressure.

Select an example to explore it in the playground.

Beginner - Introductory Models

Fishery Simulation

A fishery simulation of stocks, flows, and feedback loops managing fish populations.

Level: Beginner

populationresource-managementsustainabilitymanagementecosystemstocks-flowsreinforcing-loopbalancing-looprenewable-resourcequota-policy

  • Stocks: population
  • Flows: births, quota
  • Feedback Loops: reproduction (reinforcing), quota (balancing)
  • Probes: population, quota, gap_to_capacity, extracted_total

Logistic Growth

A logistic growth simulation of population increase with saturation.

Level: Beginner

populationcapacitynonlinear-dynamicsreinforcing-loop

  • Stocks: population
  • Flows: growth
  • Feedback Loops: reinforcing adoption, saturation constraint
  • Probes: population, growth
Intermediate - Classic Dynamics

Predator-Prey (Lotka–Volterra, SciPy)

A predator-prey simulation using the Lotka-Volterra equations.

Level: Intermediate

populationecosystemnonlinear-dynamics

  • Stocks: prey, predator
  • Flows: prey_births, predations, predator_deaths
  • Feedback Loops: predation cycle
  • Probes: prey, predator

Predator-Prey (Lotka–Volterra, SimPy)

Discrete-time SimPy approximation of the predator–prey model.

Level: Intermediate

populationecosystemnonlinear-dynamics

  • Stocks: prey, predator
  • Flows: prey_births, predations, predator_deaths
  • Feedback Loops: predation cycle
  • Probes: prey, predator

SIR Model with Vaccination

An SIR vaccination simulation modeling epidemics with optional vaccination.

Level: Intermediate

populationreinforcing-loopbalancing-loopcontrol

  • Stocks: susceptible, infected, recovered
  • Flows: infections, recoveries, vaccinations
  • Feedback Loops: disease spread (reinforcing), herd immunity (balancing)
  • Probes: susceptible, infected, recovered
Advanced - Complex Simulations

Logistic Map

A logistic map simulation that iterates x_{n+1}=r*x_n*(1-x_n) to illustrate chaos.

Level: Advanced

populationnonlinear-dynamics

  • Stocks: x
  • Feedback Loops: growth with self-limiting term
  • Probes: x