Program 4.4: Multi-host SIR model
This is an example of a multi-host SIR model where there are two hosts (humans and mosquitoes). Transmissions within human or mosquito populations is also possible. It is adapted from a MATLAB code example in Keeling & Rohani.
dXHdt=νH−r(THMYM+THHYH)XH−μHXH
dXMdt=νM−r(TMHYH+TMMYM)XM−μMXM
dYHdt=r(THMYM+THHYH)XH−μHYH−γHYH
dYMdt=r(TMHYH+TMMYM)XM−μMYM−γMYM
where:
XH & XM are the human and mosquito susceptible populations and YH & YM are the infected ones. νH & νM are the birth rates of humans and mosquitoes. r is the mosquito biting rate of humans. T is a 2x2 matrix of transmission probabilities between and within human(H) and mosquito(M) populations. μH & μM are the per capita death rate of humans and mosquitoes. γH & γM are the recovery rates of humans and mosquitoes.