Models / Lotka-Volterra

The Lotka-Volterra equations, developed in the 1920s by Alfred Lotka and Vito Volterra representing the cyclic, phase-shifted population dynamics between a predator and its prey.

function

Model Equations

tune

Simulation parameters

tune

Initial conditions

Short Simulation

Loading chart...

Long Simulation

Loading chart...

Model Details

Review and edit model structure, biological variables, and kinetic parameters.

NameTex nameInitial valueActions

Edit Options

Edit Options

preview

Generated Python Code

def model(
    time: float,
    variables: float, 
):
    Prey, Predator = variables
    Alpha = 0.1
    Beta = 0.02
    Gamma = 0.4
    Delta = 0.02
    v0 = Alpha * Prey
    v1 = Beta * Prey * Predator
    v2 = Delta * Prey * Predator
    v3 = Gamma * Predator
    dPreydt = +v0-v1
    dPredatordt = +v2-v3
    return [dPreydt, dPredatordt]

y0 = {"Prey": 10, "Predator": 10}
    

Edit analysis

Plot options

Edit analysis

Plot options