LV {capn} | R Documentation |
Prey-Predator (Lotka-Volterra) example: two stocks
Description
The LV
provides the data and functions to simulate prey-predator (Lotka-Volterra) model. The original code was written by Joshua Abbott in MATLAB and Seong Do Yun adapted it to a package example. The prey-predator model is:
Prey ():
, and
Predator ():
.
The parameters are given as:
: intrinsic growth rate for prey,
: carrying capacity for prey,
: predator-related mortality parameter for prey,
: predator/prey uptake parameter for predator,
: natural mortality for predator,
: slope for linear predator harvest control rule, and
: slope for linear prey harvest control rule
The predator with no economic value (unharvested) is designed for the economic program as:
.
The paramters are:
: price per unit harvest of predator,
: price per unit harvest of prey,
: cost /per unit of prey effort in Schaefer model (really c/q with q=1), and
: cost per unit of predator effort in Schaefer model (really c/q with q=1).
Usage
## Load dataset
data("lvdata")
## Demonstration of example
# demo(LV, package="capn")
## R-script location
# system.file("demo", "LV.R", package = "capn")
Format
lvaproxdata: a data.frame for approximation (evaluated on (20 x 20) Chebyshev nodes)
-
xs
prey stock -
ys
predator stock -
xdot
evaluated xdot -
ydot
evaluated ydot -
wval
profit (W in Fenichel and Abtott (2014))
lvsimdata.time: a data for time simulation (101 ODE solution)
-
tseq
time sequence from 0 to 100 -
xs
prey stock -
ys
predator stock