NL4Py: Agent-Based Modeling in Python with Parallelizable NetLogo Workspaces

08/09/2018
by   Chathika Gunaratne, et al.
0

NL4Py is a NetLogo controller software for Python, for the rapid, parallel execution of NetLogo models. NL4Py provides both headless (no graphical user interface) and GUI NetLogo workspace control through Python. Spurred on by the increasing availability of open-source computation and machine learning libraries on the Python package index, there is an increasing demand for such rapid, parallel execution of agent-based models through Python. NetLogo, being the language of choice for a majority of agent-based modeling driven research projects, requires an integration to Python for researchers looking to perform statistical analyses of agent-based model output using these libraries. Unfortunately, until the recent introduction of PyNetLogo, and now NL4Py, such a controller was unavailable. This article provides a detailed introduction into the usage of NL4Py and explains its client-server software architecture, highlighting architectural differences to PyNetLogo. A step-by-step demonstration of global sensitivity analysis and parameter calibration of the Wolf Sheep Predation model is then performed through NL4Py. Finally, NL4Py's performance is benchmarked against PyNetLogo and its combination with IPyParallel, and shown to provide significant savings in execution time over both configurations.

READ FULL TEXT
research
11/11/2020

SEIR-Campus: Modeling Infectious Diseases on University Campuses

We introduce a Python package for modeling and studying the spread of in...
research
11/19/2019

Uncertainty and Sensitivity Analyses Methods for Agent-Based Mathematical Models: An Introductory Review

Multiscale, agent-based mathematical models of biological systems are of...
research
11/25/2018

Evoplex: A platform for agent-based modeling on networks

Evoplex is a fast, robust and extensible platform for developing agent-b...
research
12/10/2021

Paradigms of Computational Agency

Agent-based models have emerged as a promising paradigm for addressing e...
research
09/04/2019

Agent-based model for tumour-analysis using Python+Mesa

The potential power provided and possibilities presented by computation ...
research
08/05/2021

Implementing the BBE Agent-Based Model of a Sports-Betting Exchange

We describe three independent implementations of a new agent-based model...
research
01/31/2023

OpTaS: An Optimization-based Task Specification Library for Trajectory Optimization and Model Predictive Control

This paper presents OpTaS, a task specification Python library for Traje...

Please sign up or login with your details

Forgot password? Click here to reset