The time evolution of the resource spectrum is described by a
semi-chemostat equation
$$\frac{\partial N_R(w,t)}{\partial t} = r_R(w) \Big[ c_R (w) - N_R(w,t) \Big] - \mu_R(w, t) N_R(w,t)$$
Here \(r_R(w)\) is the resource regeneration rate and \(c_R(w)\) is the
carrying capacity in the absence of predation. These parameters are changed
with setResource()
. The mortality \(\mu_R(w, t)\) is
due to predation by consumers and is calculate with getResourceMort()
.
This function uses the analytic solution of the above equation, keeping the
mortality fixed during the timestep.
It is also possible to implement other resource dynamics, as
described in the help page for setResource()
.