@article{VedderAnkenbrandSarmentoCabral2021, author = {Vedder, Daniel and Ankenbrand, Markus and Sarmento Cabral, Juliano}, title = {Dealing with software complexity in individual-based models}, series = {Methods in Ecology and Evolution}, volume = {12}, journal = {Methods in Ecology and Evolution}, number = {12}, doi = {10.1111/2041-210X.13716}, url = {http://nbn-resolving.de/urn:nbn:de:bvb:20-opus-258214}, pages = {2324-2333}, year = {2021}, abstract = {Individual-based models are doubly complex: as well as representing complex ecological systems, the software that implements them is complex in itself. Both forms of complexity must be managed to create reliable models. However, the ecological modelling literature to date has focussed almost exclusively on the biological complexity. Here, we discuss methods for containing software complexity. Strategies for containing complexity include avoiding, subdividing, documenting and reviewing it. Computer science has long-established techniques for all of these strategies. We present some of these techniques and set them in the context of IBM development, giving examples from published models. Techniques for avoiding software complexity are following best practices for coding style, choosing suitable programming languages and file formats and setting up an automated workflow. Complex software systems can be made more tractable by encapsulating individual subsystems. Good documentation needs to take into account the perspectives of scientists, users and developers. Code reviews are an effective way to check for errors, and can be used together with manual or automated unit and integration tests. Ecological modellers can learn from computer scientists how to deal with complex software systems. Many techniques are readily available, but must be disseminated among modellers. There is a need for further work to adapt software development techniques to the requirements of academic research groups and individual-based modelling.}, language = {en} }