The generic function cellgrowth implements different growth models for an object of class Human.
cellgrowth(object, population, j, occupyM, fbasol, tstep)# S4 method for Human
cellgrowth(object, population, j, occupyM, fbasol, tstep)
An object of class Human.
An object of class Arena.
The number of the iteration of interest.
A matrix indicating grid cells that are obstacles
Problem object according to the constraints and then solved with optimizeProb.
A number giving the time intervals for each simulation step.
Boolean variable of the jth individual indicating if individual died.
Linear growth of organisms is implemented by adding the calculated growthrate by optimizeLP to the already present growth value. Exponential growth of organisms is implemented by adding the calculated growthrate multiplied with the current growth calculated by optimizeLP plus to the already present growth value.
Human-class, growLin and growExp