A Primer on Mathematical Modeling with NetLogo ΒΆ
NetLogo is software designed for agent-based modeling. This primer focuses on how to use NetLogo to do mathematical modeling using agent-based models, where by "mathematical modeling", I mean using a mathematical model to address questions. The primer document is accompanied by nine NetLogo programs that includes three finished programs and six programs that represent steps toward a finished program.
- forager.1 contains commands that set up a virtual world for a simulation.
- forager.2 adds animation.
- forager.3 adds code that monitors animation progress.
- forager.4 adds additional features to the model.
- forager is the finished simulation program with all model errors corrected.
- optimal_foraging.1 automates determination of the program outcome and saves data from multiple runs.
- optimal_foraging.2 adds automation of a set of simulation runs
- optimal_foraging is the finished experiment program with automated data analysis.
- optimal_foraging_function is a stripped down version of optimal_foraging that is suitable for use with BehaviorSpace or a user written program for experiments.