PyNetLogo: Linking NetLogo with Python
Open Access
- 1 January 2018
- journal article
- research article
- Published by Journal of Artificial Societies and Social Simulation in Journal of Artificial Societies and Social Simulation
- Vol. 21 (2)
Abstract
Methods for testing and analyzing agent-based models have drawn increasing attention in the literature, in the context of efforts to establish standard frameworks for the development and documentation of models. This process can benefit from the use of established so ware environments for data analysis and visualization. For instance, the popular NetLogo agent-based modelling so ware can be interfaced with Mathematica and R, letting modellers use the advanced analysis capabilities available in these programming languages. To extend these capabilities to an additional user base, this paper presents the pyNetLogo connector, which allows NetLogo to be controlled from the Python general-purpose programming language. Given Python's increasing popularity for scientific computing, this provides additional flexibility for modellers and analysts. PyNetLogo's features are demonstrated by controlling one of NetLogo's example models from an interactive Python environment, then performing a global sensitivity analysis with parallel processing.Keywords
This publication has 5 references indexed in Scilit:
- SALib: An open-source Python library for Sensitivity AnalysisJournal of Open Source Software, 2017
- InSTREAM-Gen: Modelling eco-evolutionary dynamics of trout populations under anthropogenic environmental changeEcological Modelling, 2016
- The NumPy Array: A Structure for Efficient Numerical ComputationComputing in Science & Engineering, 2011
- An effective screening design for sensitivity analysis of large modelsEnvironmental Modelling & Software, 2007
- A standard protocol for describing individual-based and agent-based modelsEcological Modelling, 2006