Info Tech in a global economy
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 1/8
Features Explore Insights New Insights Create a Free Account Log In
This tutorial describes how to construct a model of the interactions betweenThis tutorial describes how to construct a model of the interactions between
a predator species (wolves) and a prey species (moose). Before starting thea predator species (wolves) and a prey species (moose). Before starting the
tutorial, make sure you have familiarized yourself with how to tutorial, make sure you have familiarized yourself with how to createcreate
primitivesprimitives and and run modelsrun models..
First, let's create the structure to model a small population ofFirst, let's create the structure to model a small population of
moose.moose.
Table of Contents Insight Maker Guide
Getting Help
Features
Types of Modeling
System Dynamics
Agent Based Modeling
Collaborate and Share
Free and Open Source
Tutorials
Disease Dynamics (SD)
Disease Dynamics (ABM)
Predator-Prey Interactions (SD)
Manual
Model Diagramming
Ghosting
Keyboard Shortcuts
Equations and Formulae
Built-In Functions
Advanced Equations
Types of Primitives
Stocks
Flows
Variables
Links
Converters
States
Transitions
Actions
Agent Populations
Running a Model
Model Verification
Constraints
Units
Storytelling
Agent Geography
Spatial Geography
Network Geography
Sensitivity Testing
Optimization
Vectors
Macros
Model Scripting
User login
Start Building Insights and Models
Predator-Prey Interactions (SD)
Create a new Create a new StockStock named named MooseMoose ..11
Create a new Create a new FlowFlow going from empty space to the primitive going from empty space to the primitive MooseMoose . Name that flow. Name that flow
Moose BirthsMoose Births ..
22
Create a new Create a new FlowFlow going from the primitive going from the primitive MooseMoose to empty space. Name that flow to empty space. Name that flow
Moose DeathsMoose Deaths ..
33
The model diagram should now look something like this:The model diagram should now look something like this:
Now that the structure has been defined, let's enter theNow that the structure has been defined, let's enter the
equations to define how our moose population behaves.equations to define how our moose population behaves.
We'll assume 150 moose to start and constant birth- andWe'll assume 150 moose to start and constant birth- and
death-rates.death-rates.
44
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 2/8
Create new account
Request new password
Log in
Change the Change the Initial ValueInitial Value property of the primitive property of the primitive MooseMoose to to 150150 ..55
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Moose BirthsMoose Births to to 0.16*[Moose]0.16*[Moose] ..66
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Moose DeathsMoose Deaths to to 0.10*[Moose]0.10*[Moose] ..77
Run the model. Here are sample results:Run the model. Here are sample results:
We see an exponential growth pattern to this model. ThatWe see an exponential growth pattern to this model. That
because the birth-rate is higher than the death-rate. If thebecause the birth-rate is higher than the death-rate. If the
reverse had been true, we would have seen a populationreverse had been true, we would have seen a population
decline over time.decline over time.
Now let's create a population of wolves.Now let's create a population of wolves.
88
Create a new Create a new StockStock named named WolvesWolves ..99
Create a new Create a new FlowFlow going from empty space to the primitive going from empty space to the primitive WolvesWolves . Name that flow. Name that flow
Wolf BirthsWolf Births ..
1010
Create a new Create a new FlowFlow going from the primitive going from the primitive WolvesWolves to empty space. Name that flow to empty space. Name that flow
Wolf DeathsWolf Deaths ..
1111
The model diagram should now look something like this:The model diagram should now look something like this:1212
Username or e-mail *
Password *
Remember me
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 3/8
Now we can enter equations to define the behavior of theNow we can enter equations to define the behavior of the
wolf population.wolf population.
Change the Change the Initial ValueInitial Value property of the primitive property of the primitive WolvesWolves to to 100100 ..1313
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Wolf BirthsWolf Births to to 0.2*[Wolves]0.2*[Wolves] ..1414
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Wolf DeathsWolf Deaths to to 0.12*[Wolves]0.12*[Wolves] ..1515
Run the model. Here are sample results:Run the model. Here are sample results:
So far, so good.So far, so good.
Before we have the two populations interact, let's makeBefore we have the two populations interact, let's make
our model more modular by putting all the rate constantsour model more modular by putting all the rate constants
into separate variable primitives. This will make the modelinto separate variable primitives. This will make the model
easier to mantain.easier to mantain.
1616
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 4/8
Create a new Create a new VariableVariable named named Moose Birth RateMoose Birth Rate ..1717
Create a new Create a new VariableVariable named named Wolf Birth RateWolf Birth Rate ..1818
Create a new Create a new VariableVariable named named Moose Death RateMoose Death Rate ..1919
Create a new Create a new VariableVariable named named Wolf Death RateWolf Death Rate ..2020
The model diagram should now look something like this:The model diagram should now look something like this:2121
Create a new Create a new LinkLink going from the primitive going from the primitive Moose Birth RateMoose Birth Rate to the primitive to the primitive
Moose BirthsMoose Births ..
2222
Create a new Create a new LinkLink going from the primitive going from the primitive Wolf Birth RateWolf Birth Rate to the primitive to the primitive
Wolf BirthsWolf Births ..
2323
Create a new Create a new LinkLink going from the primitive going from the primitive Moose Death RateMoose Death Rate to the primitive to the primitive
Moose DeathsMoose Deaths ..
2424
Create a new Create a new LinkLink going from the primitive going from the primitive Wolf Death RateWolf Death Rate to the primitive to the primitive
Wolf DeathsWolf Deaths ..
2525
The model diagram should now look something like this:The model diagram should now look something like this:2626
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 5/8
Let's add the equations for the new cariables to completeLet's add the equations for the new cariables to complete
this modularization.this modularization.
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Moose BirthsMoose Births to to
[Moose Birth Rate]*[Moose][Moose Birth Rate]*[Moose] ..
2727
Change the Change the EquationEquation property of the primitive property of the primitive Moose Birth RateMoose Birth Rate to to 0.160.16 ..2828
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Moose DeathsMoose Deaths to to
[Moose Death Rate]*[Moose][Moose Death Rate]*[Moose] ..
2929
Change the Change the EquationEquation property of the primitive property of the primitive Moose Death RateMoose Death Rate to to 0.100.10 ..3030
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Wolf BirthsWolf Births to to
[Wolf Birth Rate]*[Wolves][Wolf Birth Rate]*[Wolves] ..
3131
Change the Change the EquationEquation property of the primitive property of the primitive Wolf Birth RateWolf Birth Rate to to 0.20.2 ..3232
Change the Change the Flow RateFlow Rate property of the primitive property of the primitive Wolf DeathsWolf Deaths to to
[Wolf Death Rate]*[Wolves][Wolf Death Rate]*[Wolves] ..
3333
Change the Change the EquationEquation property of the primitive property of the primitive Wolf Death RateWolf Death Rate to to 0.120.12 ..
That's it! Let's check to make sure we get the same resultsThat's it! Let's check to make sure we get the same results
as before.as before.
3434
Run the model. Here are sample results:Run the model. Here are sample results:
Now it's time to make the wolf and moose populationsNow it's time to make the wolf and moose populations
interact. In this model extension, wolves will chase andinteract. In this model extension, wolves will chase and
consume the moose. The more moose they catch, theconsume the moose. The more moose they catch, the
faster the wolves reproduce, and the faster the moosefaster the wolves reproduce, and the faster the moose
3535
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 6/8
population declines. We'll make the moose death-ratepopulation declines. We'll make the moose death-rate
dependent on the number of wolves, and the wolf birth-dependent on the number of wolves, and the wolf birth-
rate dependent on the number of moose.rate dependent on the number of moose.
Create a new Create a new LinkLink going from the primitive going from the primitive MooseMoose to the primitive to the primitive Wolf Birth RateWolf Birth Rate ..3636
Create a new Create a new LinkLink going from the primitive going from the primitive WolvesWolves to the primitive to the primitive
Moose Death RateMoose Death Rate ..
3737
The model diagram should now look something like this:The model diagram should now look something like this:3838
Change the Change the EquationEquation property of the primitive property of the primitive Wolf Birth RateWolf Birth Rate to to 0.001*[Moose]0.001*[Moose] ..3939
Change the Change the EquationEquation property of the primitive property of the primitive Moose Death RateMoose Death Rate to to
0.0008*[Wolves]0.0008*[Wolves] ..
4040
Run the model. Here are sample results:Run the model. Here are sample results:
That's getting interesting! Let's increase the length andThat's getting interesting! Let's increase the length and
accuracy of our simulation.accuracy of our simulation.
4141
Change the Change the Analysis AlgorithmAnalysis Algorithm property of the Time Settings to property of the Time Settings to RK4RK4 ..4242
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 7/8
Change the Change the Simulation Time StepSimulation Time Step property of the Time Settings to property of the Time Settings to 0.50.5 ..4343
Change the Change the Simulation LengthSimulation Length property of the Time Settings to property of the Time Settings to 100100 ..4444
Run the model. Here are sample results:Run the model. Here are sample results:
Great! The oscillatory behavior we see is typical of someGreat! The oscillatory behavior we see is typical of some
predator-prey systems. The wolves kill many of thepredator-prey systems. The wolves kill many of the
moose, but then the wolves have nothing to eat. Thismoose, but then the wolves have nothing to eat. This
leads the wolf population to drop, allowing the mooseleads the wolf population to drop, allowing the moose
population to recovery. This repeats in an ongoing cycle. population to recovery. This repeats in an ongoing cycle.
We can also configure the display to use a scatter-plotWe can also configure the display to use a scatter-plot
instead of a time-series to show the phase-planeinstead of a time-series to show the phase-plane
oscillatory behavior clearly.oscillatory behavior clearly.
4545
Run the model. Here are sample results:Run the model. Here are sample results:
There are many parameters in this model you canThere are many parameters in this model you can
experiment with. This form of model what is known as theexperiment with. This form of model what is known as the
Lotka-Volterra ModelLotka-Volterra Model in the modeling community. in the modeling community.
4646
10/6/2019 Predator-Prey Interactions (SD) | Insight Maker
https://insightmaker.com/node/3801 8/8
‹ Disease Dynamics (ABM) up Manual ›
Printer-friendly version
[email protected] | Terms of Use and Licenses | Privacy Policy
Copyright 2010-2017. Insight Maker is Open-Source.