This model runs once per period, at the end, after all agents have been stepped and data collected.
Required Parameters
model — Helipad
The model object.
This model runs once per period, at the end, after all agents have been stepped and data collected.
model — Helipad
The model object.
charwick
Mar 22, 2020 at 20:24modelPostStep
is a good place to consolidate data for reporting that needs more processing than agentReporter() can handle. This example calculates some per-capita rates for each agent breed at the end of each period and puts it in adict
in themodel
object, to be subsequently gathered by modelReporter(). (Note however that because this hook fires after data collection, the rates will be reported with a one-period delay, which is ok given the heavy smoothing in this example)charwick
Mar 22, 2020 at 20:15This example hooks
modelPostStep
to pause the model if all agents are dead.