modelLotkaVolterra

The Lotka-Volterra equations to model predator-prey-dynamics

Extends from Interfaces.Basics.GenericFlow (Flow Template with two FlowPorts), Interfaces.Basics.Interaction4SO (Output connectors for interaction elements reporting rates), Icons.Interaction (Icon for interactional flow classes).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

These are the classical Lotka-Volterra equations describing predator-prey-dynamics in an idealized way [17]. The dynamics for the prey population (portA) and the predator population (portB) are given by the following equations:

Formula.svg

Note: Capital letters were chosen to represent the stocks (state variables) connected at portA and portB in the formula above. Also dot notation is used for a stock's rate of flow—its first derivative with respect to time.

Coefficient Unit Description
alpha 1 per second

fractional growth rate for prey population

beta 1 per second
per base unit of B (TypeB)

fractional rate of decline for prey population per predator

gamma 1 per second

fractional rate of decline for predator population

delta

1 per second
per base unit of A (TypeB)
fractional rate of groth for predator population per prey

Notes

  • Within the components LinearInteraction and NonlinearInteraction the rates passed for a_B, a_AB, b_A, b_AB call for divison by a reference level of the connected stocks. In many cases, modelers can leave the type selectors TypeA, TypeB at their default value of Unspecified so that no conversion will take place.

  • Should unit conversion be needed, modeleres may wish to select appropriate type values and corresponding displayUnit settings to enter convenient reference levels refA, refB.

See also

ComplexInteraction

Parameters

TypeNameDefaultDescription
TypeArefA1Reference value, i.e., divisor, for the couplings b_A, b_AB
TypeBrefB1Refrence value, i.e., divisor, for the couplings a_B, a_AB
RatealphaunspecifiedFractional growth rate of prey population (A)
RatebetaunspecifiedFractional rate of decline for prey population (A) per predator
RategammaunspecifiedFractional rate of decline for predator population (B)
RatedeltaunspecifiedFractional rate of growth for predator population (B) per prey
Structural Parameters
BooleanhasConstantAlphafalse= true, if the constant parameter value is to be used instead of the input connector
BooleanhasConstantBetafalse= true, if the constant parameter value is to be used instead of the input connector
BooleanhasConstantGammafalse= true, if the constant parameter value is to be used instead of the input connector
BooleanhasConstantDeltafalse= true, if the constant parameter value is to be used instead of the input connector

Connectors

TypeNameDefaultDescription
Connectors.FlowPortportA (from GenericFlow)Flow from/to Stock A
Connectors.FlowPortportB (from GenericFlow)Flow to/from Stock B
RealOutput_By_B (from Interaction4SO)Rate for flow to and from B (positive value indicates inflow)
RealOutput_By1_B (from Interaction4SO)Rate for flow to and from B (positive value indicates inflow)
RealOutput_Ay1_A (from Interaction4SO)Rate for flow to and from A (positive value indicates inflow)
RealOutput_Ay_A (from Interaction4SO)Rate for flow to and from A (positive value indicates inflow)
InputConnectordataInInputs for predator-prey model

Contents

NameDescription
TypeAType selector for stock A
TypeBType selector for stock B
InputConnectorDataBus for inputs

Revisions

  • InputConnector defined as encapsulated expandable connector in v2.1.0.

  • Values for optional parameters changed to unspecified in v2.1.0.

  • TypeA, TypeB and corresponding reference levels refA, refB introduced to support unit checking and unit conversions in v2.2.