Skip to content

cuprum-acid/PredatorPreyModel

Repository files navigation

Predator-Prey Model

C++ program that implements predator-prey model:

Let's simulate that 200 white hares and 50 red foxes were brought to a desert island:

The fertility rate of hares is α1 = 0.35

The hare mortality rate is β1 = 0.01

α2 = 0.5

β2 = 0.002 Correspondingly.

We will observe them for 100 days at half-day intervals.

So the input to the program will be:

200
50
0.35
0.01
0.5
0.002
100
200

Graph showing the change in the population of hares and foxes over time:

alt text

Graph of v(k):

alt text

Test Input:

110
40
0.4
0.01
0.3
0.005
50
200

Obtained image generated by GNUPlot of v(t) & k(t):

alt text

Graph of v(k):

alt text

Second Input:

6
6
0.2
0.025
0.1
0.02
200
1000

v(t) & k(t):

alt text

v(k):

alt text

About

C++ program that implements predator-prey model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published