# Chapter 2 - Fundamentals of agent-based modelling

```{admonition} Video overview
:class: tip

This short video introduces the central ideas and learning journey of Chapter 2.

<video class="chapter-overview-video" controls playsinline preload="metadata" width="100%" poster="../videos/video_2_1_fundamentals_abm_overview_poster.jpg" aria-label="Chapter 2 overview: fundamentals of agent-based modelling">
  <source src="../videos/video_2_1_fundamentals_abm_overview.mp4?v=2ca4a803" type="video/mp4">
  Your browser does not support the video tag.
</video>
```

Before you build models in the later chapters, you need a shared vocabulary for what an agent-based model actually is, what parts it is made of, and when it beats the alternatives. This chapter lays that groundwork: it explains why individual-level thinking captures behaviour that aggregate approaches miss, so that every technique you meet afterwards rests on solid ground.

```{admonition} Learning objectives
:class: note

By the end of this chapter, you will be able to:

1. Explain what agent-based modelling is, including its key characteristics and its purposes in research and practice (Section 2.1).
2. Identify the main elements of an ABM: agents, environment and space, time, interactions, and the model itself (Section 2.2).
3. Recognise the benefits and limitations of ABM, and judge when it is an appropriate modelling approach compared to other paradigms (Section 2.3).
```

This chapter introduces the core ideas behind agent-based modelling: what it is, the components that every model shares, and when it is the right approach. Work through the three sections in order:

::::{grid} 1 1 3 3
:gutter: 3

:::{grid-item-card} 2.1 · Introduction to ABM
:link: section_2_1_introduction_to_abm
:link-type: doc
What agent-based modelling is, why it matters for complex systems, and how it compares with other approaches.
:::

:::{grid-item-card} 2.2 · Main elements of an ABM
:link: section_2_2_core_concepts
:link-type: doc
The building blocks of every model: agents, environment and space, time, interactions, and the model itself.
:::

:::{grid-item-card} 2.3 · Benefits and limitations of ABM
:link: section_2_3_benefits_limitations
:link-type: doc
The strengths and limitations of ABM, and a framework for deciding when to use it.
:::

::::

Begin with {doc}`Section 2.1, Introduction to ABM <section_2_1_introduction_to_abm>`, to see what agent-based modelling is and why it matters.
