Improving Execution Speed of Models Implemented in NetLogo

被引:33
作者
Railsback, Steven [1 ]
Ayllon, Daniel [2 ]
Berger, Uta [3 ]
Grimm, Volker [2 ]
Lytinen, Steven [4 ]
Sheppard, Colin [5 ]
Thiele, Jan [6 ]
机构
[1] Lang Railsback & Associates, 250 Calif Ave, Arcata, CA 95521 USA
[2] UFZ Helmholtz Ctr Environm Res, Dept Ecol Modelling, Permoserstr 15, D-04318 Leipzig, Germany
[3] Tech Univ Dresden, Inst Forest Growth & Comp Sci, Postfach 1117, D-01735 Tharandt, Germany
[4] Depaul Univ, Sch Comp, 243 S Wabash, Chicago, IL 60604 USA
[5] Lawrence Berkeley Natl Lab, Int Energy Studies Grp, 1 Cyclotron Rd,MS 90R2121, Berkeley, CA 94720 USA
[6] Univ Gottingen, Dept Ecoinformat Biometr & Forest Growth, Busgen Inst, Busgenweg 4, DE-37077 Gottingen, Germany
来源
JASSS-THE JOURNAL OF ARTIFICIAL SOCIETIES AND SOCIAL SIMULATION | 2017年 / 20卷 / 01期
关键词
Agent-Based Modeling; Computational Efficiency; Execution Speed; Individual-Based Modeling; NetLogo; Modeling Platforms; VEHICLE CHARGING INFRASTRUCTURE; PEST-CONTROL; POPULATIONS;
D O I
10.18564/jasss.3282
中图分类号
C [社会科学总论];
学科分类号
03 ; 0303 ;
摘要
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.
引用
收藏
页数:15
相关论文
共 22 条
[1]   InSTREAM-Gen: Modelling eco-evolutionary dynamics of trout populations under anthropogenic environmental change [J].
Ayllon, Daniel ;
Railsback, Steven F. ;
Vincenzi, Simone ;
Groeneveld, Juergen ;
Almodoevar, Ana ;
Grimm, Volker .
ECOLOGICAL MODELLING, 2016, 326 :36-53
[2]  
Bouquet F., 2015, Agent-Based Spatial Simulation with NetLogo, P1
[3]  
CCL (Center for Connected Learning Northwestern University), 2016, NETL COMP ARCH
[4]   Tree spacing and coexistence in semiarid savannas [J].
Jeltsch, F ;
Milton, SJ ;
Dean, WRJ ;
VanRooyen, N .
JOURNAL OF ECOLOGY, 1996, 84 (04) :583-595
[5]   Some propositions to find optimal conditions to simulate a flexible transport using an Agent-Based Model [J].
Lammoglia, Adrien ;
Josselin, Didier ;
Marilleau, Nicolas .
CYBERGEO-EUROPEAN JOURNAL OF GEOGRAPHY, 2015,
[6]  
Lytinen S.L., 2012, P 4 INT S AG BAS MOD
[7]  
Ozik J, 2013, WINT SIMUL C PROC, P1560, DOI 10.1109/WSC.2013.6721539
[8]  
Railsback SF., 2019, Agent-based and individual-based modeling: a practical introduction, V2
[9]   Agent-based simulation platforms: Review and development recommendations [J].
Railsback, Steven F. ;
Lytinen, Steven L. ;
Jackson, Stephen K. .
SIMULATION-TRANSACTIONS OF THE SOCIETY FOR MODELING AND SIMULATION INTERNATIONAL, 2006, 82 (09) :609-623
[10]   Modeling potential river management conflicts between frogs and salmonids [J].
Railsback, Steven F. ;
Harvey, Bret C. ;
Kupferberg, Sarah J. ;
Lang, Margaret M. ;
McBain, Scott ;
Welsh, Hart H., Jr. .
CANADIAN JOURNAL OF FISHERIES AND AQUATIC SCIENCES, 2016, 73 (05) :773-784