Agent-Based Modeling
Simulating a system through many interacting agents whose behavior and feedback loops shape the larger outcome.
Why does a second queue sometimes stay empty?
A fictional museum simulation gives each arriving visitor a choice between two ticket desks. The crowd pattern emerges from individual decisions.
- Agents
Each visitor has an arrival time and a rule for choosing a queue. Each desk has a service-time distribution.
- Interactions
In one scenario visitors choose the shorter visible line. In another they follow the person ahead. A visitor’s decision changes what the next visitor sees.
- Outcome
Compare waiting times and line lengths across repeated runs with the same arrival assumptions. A single animation can conceal substantial variation.
Test the rule against the real room
Observe whether people can see both lines, whether groups stay together and how service times vary. A simulation can explain consequences of its assumptions. It needs independent evidence before it predicts a particular museum’s queues.
How It Works
An agent-based model defines who the agents are, what information they can see, how they make decisions, and how they affect one another over time. Some models use simple rules. Others combine simulation with reinforcement learning so agents adapt as the environment changes.
Follow the idea
Predictive analytics can compare simulated outcomes with observed data.
Uncertainty includes variation across runs and doubts about the behavioral rules.
Related concepts
Related Yenra articles (5)
Source · Mesa documentation on agent-based simulation
Return to Agent-Based Modeling in the A–Z glossary