#####################
## SolveIASA model ##
#####################
## Parameters and intial conditions.
pars.solveiasa = c(
b1 = 21870.897, b2 = 4374.179,
df1 = 0.104, dm1 = 0.098, df2 = 0.1248, dm2 = 0.1176,
sf1 = 0.069, sf2 = 0.05, sm1 = 0.028, sm2 = 0.05,
k1 = 98050.49, k2 = 8055.456, h1 = 1, h2 = .5,
ab = 0.054, ad = 0.1, v = 0.2, z = 0.1)
init.solveiasa = c(
f1 = 33425.19, fs1 = 10864.901,
m1 = 38038.96, ms1 = 6807.759,
f2 = 3342.519, fs2 = 108.64901,
m2 = 3803.896, ms2 = 68.07759)
# Solve for point estimates.
solveiasa.pt <- SolveIASA(pars = pars.solveiasa,
init = init.solveiasa,
time = 0:10, method = 'rk4')
# Solve for parameter ranges.
solveiasa.rg <- SolveIASA(pars = pars.solveiasa,
init = init.solveiasa,
time = 0:10,
s.range = seq(0, .4, l = 15),
ab.range = c(0, .2),
ad.range = c(0, .2),
im.range = c(0, .1),
method = 'rk4')
## Plot stray population sizes using point estimates
# Uncomment the following line:
# PlotModels(solveiasa.pt, variable = "ns2")
## Plot all scenarios and change the label for the scenarios.
# Uncomment the following line:
# PlotModels(solveiasa.rg, variable = 'ns', scen.label = 'Im = (__ * de la capacidad de carga)')Run the code above in your browser using DataLab