Install the following package:
PacletInstall["EcoEvo",
"Site" -> "http://raw.githubusercontent.com/cklausme/EcoEvo/master"]
<< EcoEvo`
The code:
SetModel[{Pop[pop] -> {
Component[
s] :> {Equation :> \[Nu] - \[Beta]1 i2 s - \[Beta]2 j s - \
\[Mu] s},
Component[
i1] -> {Equation :>
p \[Beta]1 i2 s + q \[Beta]2 j s - b1 i1 + \[Xi]1 j },
Component[
i2] -> {Equation :> (1 - p) \[Beta]1 i2 s + (1 -
q) \[Beta]2 j s + \[Epsilon] i1 - b2 i2 + \[Xi]2 j },
Component[j] -> {Equation :> p1 i2 - b3 j },
Component[a] -> {Equation :> p2 j - b4 a}},
Parameters :> {\[Nu] > 0, \[Beta]1 > 0, \[Beta]2 > 0, \[Mu] > 0,
p > 0, q > 0, b1 > 0, b2 > 0, b3 > 0, b4 > 0,
p1 > 0, \[Epsilon] > 0}}]
eq = SolveEcoEq[]
where
r0 = ((\[Beta]1 b3 (\[Epsilon] p +
b1 (1 - p)) + \[Beta]2 p1 (\[Epsilon] q +
b1 (1 - q))) (\[Nu]/\[Mu]))/(b1 b2 b3 - (\[Epsilon] \[Xi]1 +
b1 \[Xi]2) p1);
We obtain our equilibrium points:
{{s -> \[Nu]/\[Mu], i1 -> 0, i2 -> 0, j -> 0,
a -> 0}, {s -> (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2)/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]),
i1 -> (-b2 b3^2 p \[Beta]1 \[Nu] - b2 b3 p1 q \[Beta]2 \[Nu] -
b3 p1 \[Beta]1 \[Nu] \[Xi]1 + b3 p p1 \[Beta]1 \[Nu] \[Xi]1 -
p1^2 \[Beta]2 \[Nu] \[Xi]1 + p1^2 q \[Beta]2 \[Nu] \[Xi]1 +
b3 p p1 \[Beta]1 \[Nu] \[Xi]2 + p1^2 q \[Beta]2 \[Nu] \[Xi]2 + (
b2 b3^2 p \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b2 b3 p1 q \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b3 p1 \[Beta]1 \[Mu] \[Xi]1 (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b3 p p1 \[Beta]1 \[Mu] \[Xi]1 (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] - p1 q \[Beta]2 \[Epsilon]) + (
p1^2 \[Beta]2 \[Mu] \[Xi]1 (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
p1^2 q \[Beta]2 \[Mu] \[Xi]1 (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b3 p p1 \[Beta]1 \[Mu] \[Xi]2 (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] - p1 q \[Beta]2 \[Epsilon]) - (
p1^2 q \[Beta]2 \[Mu] \[Xi]2 (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]))/(-b1 b2 b3^2 \[Beta]1 -
b1 b2 b3 p1 \[Beta]2 + b3 p1 \[Beta]1 \[Epsilon] \[Xi]1 +
p1^2 \[Beta]2 \[Epsilon] \[Xi]1 + b1 b3 p1 \[Beta]1 \[Xi]2 +
b1 p1^2 \[Beta]2 \[Xi]2),
i2 -> (-b1 b3^2 \[Beta]1 \[Nu] + b1 b3^2 p \[Beta]1 \[Nu] -
b1 b3 p1 \[Beta]2 \[Nu] + b1 b3 p1 q \[Beta]2 \[Nu] -
b3^2 p \[Beta]1 \[Epsilon] \[Nu] -
b3 p1 q \[Beta]2 \[Epsilon] \[Nu] + (
b1 b3^2 \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b1 b3^2 p \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b1 b3 p1 \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b1 b3 p1 q \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b3^2 p \[Beta]1 \[Epsilon] \[Mu] (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] - p1 q \[Beta]2 \[Epsilon]) + (
b3 p1 q \[Beta]2 \[Epsilon] \[Mu] (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]))/(-b1 b2 b3^2 \[Beta]1 -
b1 b2 b3 p1 \[Beta]2 + b3 p1 \[Beta]1 \[Epsilon] \[Xi]1 +
p1^2 \[Beta]2 \[Epsilon] \[Xi]1 + b1 b3 p1 \[Beta]1 \[Xi]2 +
b1 p1^2 \[Beta]2 \[Xi]2),
j -> (-b1 b3 p1 \[Beta]1 \[Nu] + b1 b3 p p1 \[Beta]1 \[Nu] -
b1 p1^2 \[Beta]2 \[Nu] + b1 p1^2 q \[Beta]2 \[Nu] -
b3 p p1 \[Beta]1 \[Epsilon] \[Nu] -
p1^2 q \[Beta]2 \[Epsilon] \[Nu] + (
b1 b3 p1 \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b1 b3 p p1 \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b1 p1^2 \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b1 p1^2 q \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b3 p p1 \[Beta]1 \[Epsilon] \[Mu] (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] - p1 q \[Beta]2 \[Epsilon]) + (
p1^2 q \[Beta]2 \[Epsilon] \[Mu] (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]))/(-b1 b2 b3^2 \[Beta]1 -
b1 b2 b3 p1 \[Beta]2 + b3 p1 \[Beta]1 \[Epsilon] \[Xi]1 +
p1^2 \[Beta]2 \[Epsilon] \[Xi]1 + b1 b3 p1 \[Beta]1 \[Xi]2 +
b1 p1^2 \[Beta]2 \[Xi]2),
a -> (-b1 b3 p1 p2 \[Beta]1 \[Nu] + b1 b3 p p1 p2 \[Beta]1 \[Nu] -
b1 p1^2 p2 \[Beta]2 \[Nu] + b1 p1^2 p2 q \[Beta]2 \[Nu] -
b3 p p1 p2 \[Beta]1 \[Epsilon] \[Nu] -
p1^2 p2 q \[Beta]2 \[Epsilon] \[Nu] + (
b1 b3 p1 p2 \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b1 b3 p p1 p2 \[Beta]1 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b1 p1^2 p2 \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) - (
b1 p1^2 p2 q \[Beta]2 \[Mu] (-b1 b2 b3 + p1 \[Epsilon] \[Xi]1 +
b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 + b1 b3 p \[Beta]1 -
b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 - b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]) + (
b3 p p1 p2 \[Beta]1 \[Epsilon] \[Mu] (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] - p1 q \[Beta]2 \[Epsilon]) + (
p1^2 p2 q \[Beta]2 \[Epsilon] \[Mu] (-b1 b2 b3 +
p1 \[Epsilon] \[Xi]1 + b1 p1 \[Xi]2))/(-b1 b3 \[Beta]1 +
b1 b3 p \[Beta]1 - b1 p1 \[Beta]2 + b1 p1 q \[Beta]2 -
b3 p \[Beta]1 \[Epsilon] -
p1 q \[Beta]2 \[Epsilon]))/(-b1 b2 b3^2 b4 \[Beta]1 -
b1 b2 b3 b4 p1 \[Beta]2 + b3 b4 p1 \[Beta]1 \[Epsilon] \[Xi]1 +
b4 p1^2 \[Beta]2 \[Epsilon] \[Xi]1 +
b1 b3 b4 p1 \[Beta]1 \[Xi]2 + b1 b4 p1^2 \[Beta]2 \[Xi]2)}}
These are long and tedious. Is there a way to simplify them using each other and r0
?
For example; why does i2 = $\frac{b_3}{p_1} j$?