powered by
If you set your resource dynamics to use this function then the resource abundances are kept constant over time.
resource_constant(params, n_pp, ...)
Vector containing the resource number density in each size class at the next timestep
A MizerParams object
A vector of the resource abundance by size
Unused
To set your model to keep the resource constant over time you do
resource_dynamics(params) <- "resource_constant"
where you should replace params with the name of the variable holding your MizerParams object.
params
setResource()
Other resource dynamics functions: resource_logistic(), resource_semichemostat()
resource_logistic()
resource_semichemostat()
params <- NS_params resource_dynamics(params) <- "resource_constant"
Run the code above in your browser using DataLab