Skip to main content
QUICK REVIEW

[Paper Review] Agents.jl: A performant and feature-full agent based modelling software of minimal code complexity

George Datseris, Ali R. Vahdati|arXiv (Cornell University)|Jan 25, 2021
Modeling, Simulation, and OptimizationMathematics22 references8 citations
TL;DR

Agents.jl is a high-performance, minimal-code agent-based modeling framework built in Julia that outperforms leading alternatives like NetLogo, Mesa, and MASON in speed and code simplicity while offering richer features and seamless integration with the broader Julia ecosystem. It enables fast prototyping, efficient parameter optimization, and advanced modeling capabilities with significantly reduced development complexity.

ABSTRACT

Agent based modelling is a simulation method in which autonomous agents interact with their environment and one another, given a predefined set of rules. It is an integral method for modelling and simulating complex systems, such as socio-economic problems. Since agent based models are not described by simple and concise mathematical equations, code that generates them is typically complicated, large, and slow. Here we present Agents.jl, a Julia-based software that provides an ABM analysis platform with minimal code complexity. We compare our software with some of the most popular ABM software in other programming languages. We find that Agents.jl is not only the most performant, but also the least complicated software, providing the same (and sometimes more) features as the competitors with less input required from the user. Agents.jl also integrates excellently with the entire Julia ecosystem, including interactive applications, differential equations, parameter optimization, and more. This removes any ``extensions library'' requirement from Agents.jl, which is paramount in many other tools.

Motivation & Objective

  • To address the high code complexity and poor performance common in agent-based modeling (ABM) software.
  • To reduce the development burden for ABM creators by minimizing required code while maximizing functionality.
  • To enable seamless integration with the broader Julia ecosystem for differential equations, optimization, visualization, and interactive modeling.
  • To improve reproducibility, extensibility, and collaboration in complex ABM development.
  • To provide a modern, general-purpose ABM framework that is both fast and easy to learn, unlike domain-specific tools such as NetLogo.

Proposed method

  • The framework is implemented entirely in Julia, leveraging its high-level syntax and just-in-time compilation for optimal performance.
  • It abstracts core ABM components—agents, spaces, rules, and time steps—into a clean, composable API with minimal boilerplate.
  • Agents.jl supports multiple space types: discrete grids, continuous space, directed graphs, and OpenStreetMap integration for realistic spatial modeling.
  • It enables automatic data collection, parameter exploration, and interactive model execution via built-in visualization and GUI tools.
  • The framework integrates natively with Julia packages such as DifferentialEquations.jl, BlackBoxOptim.jl, and ModelingToolkit.jl for hybrid modeling and optimization.
  • It uses Julia’s metaprogramming and macro system to support future ODD protocol template generation for improved model documentation and reproducibility.

Experimental results

Research questions

  • RQ1Can a modern, general-purpose programming language like Julia be used to build an ABM framework that is both faster and simpler than established tools?
  • RQ2To what extent does Agents.jl reduce the amount of code required to implement complex ABMs compared to NetLogo, Mesa, and MASON?
  • RQ3How does Agents.jl perform in terms of execution speed and scalability across different ABM use cases?
  • RQ4To what extent can Agents.jl integrate with advanced analytical tools in the Julia ecosystem without requiring external plugins?
  • RQ5Can Agents.jl support complex modeling extensions—such as differential equations, optimization, and custom space types—without increasing code complexity?

Key findings

  • Agents.jl achieves the highest performance among all evaluated frameworks, including NetLogo, Mesa, and MASON, across all benchmarked models.
  • The framework requires significantly less code than competitors to implement equivalent models, with one example showing a 50% reduction in lines of code compared to Mesa.
  • An epidemiological SIR model optimized using BlackBoxOptim.jl reduced infections from 94% to 0.04% of the population by tuning transmission rates and other parameters.
  • The framework supports advanced features such as multi-agent space types (e.g., hexagonal grids, OpenStreetMap), flexible data collection, and automatic parameter sweeps with minimal user input.
  • Agents.jl enables seamless integration with Julia’s ecosystem, including differential equations, Bayesian inference, and evolutionary optimization, without requiring external libraries or plugins.
  • The framework is designed for extensibility and reproducibility, with planned support for ODD protocol template generation via Julia macros to enhance model transparency and reusability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.