An agent-based model (ABM) is a computational simulation of a complex system using autonomous agents that interact locally. An ABM consists of agents with states and behaviors governed by interaction rules within an environment. ABMs can simulate phenomena that emerge from the interactions of heterogeneous agents, like bird flocking or ant foraging behaviors. The open-source NetLogo platform is commonly used to build ABMs due to its ease of use. ABMs are useful for modeling complex systems where decentralized decisions and local interactions between agents generate global patterns.