EconPapers    
Economics at your fingertips  
 

Improving Execution Speed of Models Implemented in NetLogo

Steven F. Railsback (), Daniel Ayllón (), Uta Berger (), Volker Grimm (), Steven Lytinen (), Colin Sheppard () and Jan Thiele ()
Additional contact information
Steven F. Railsback: https://ecomodel.humboldt.edu/
Daniel Ayllón: https://www.researchgate.net/profile/Daniel_Ayllon
Uta Berger: https://tu-dresden.de/bu/umwelt/forst/ww/bsa/die-professur/uta-berger?set_language=en
Volker Grimm: https://www.ufz.de/index.php?de=36522
Steven Lytinen: http://condor.depaul.edu/slytinen/
Colin Sheppard: https://www.linkedin.com/in/colinsheppard
Jan Thiele: https://www.uni-goettingen.de/en/72779.html

Journal of Artificial Societies and Social Simulation, 2017, vol. 20, issue 1, 3

Abstract: NetLogo has become a standard platform for agent-based simulation, yet there appears to be widespread belief that it is not suitable for large and complex models due to slow execution. Our experience does not support that belief. NetLogo programs often do run very slowly when written to minimize code length and maximize clarity, but relatively simple and easily tested changes can almost always produce major increases in execution speed. We recommend a five-step process for quantifying execution speed, identifying slow parts of code, and writing faster code. Avoiding or improving agent filtering statements can often produce dramatic speed improvements. For models with extensive initialization methods, reorganizing the setup procedure can reduce the initialization effort in simulation experiments. Programming the same behavior in a different way can sometimes provide order-of-magnitude speed increases. For models in which most agents do nothing on most time steps, discrete event simulation—facilitated by the time extension to NetLogo—can dramatically increase speed. NetLogo’s BehaviorSpace tool makes it very easy to conduct multiple-model-run experiments in parallel on either desktop or high performance cluster computers, so even quite slow models can be executed thousands of times. NetLogo also is supported by efficient analysis tools, such as BehaviorSearch and RNetLogo, that can reduce the number of model runs and the effort to set them up for (e.g.) parameterization and sensitivity analysis.

Keywords: Agent-Based Modeling; Computational Efficiency; Execution Speed; Individual-Based Modeling; NetLogo; Modeling Platforms (search for similar items in EconPapers)
Date: 2017-01-31
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (5)

Downloads: (external link)
https://www.jasss.org/20/1/3/3.pdf (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:jas:jasssj:2016-128-2

Access Statistics for this article

More articles in Journal of Artificial Societies and Social Simulation from Journal of Artificial Societies and Social Simulation
Bibliographic data for series maintained by Francesco Renzini ().

 
Page updated 2025-03-19
Handle: RePEc:jas:jasssj:2016-128-2