Agent-Based System Dynamics — Hybrid Multi-Level Simulation

Simulation
Introduced by
Borshchev, A. & Filippov, A. (hybrid formalization); Sterman, J. D. (system dynamics foundation)
Year
2000s
Type
Hybrid simulation model
Family
Simulation / optimization

What does it do?

Agent-based system dynamics (AB-SD) is a hybrid simulation approach that couples agent-based modeling (ABM) at the micro level with system dynamics (SD) stock-and-flow structures at the macro level.

It is intended for systems in which individual heterogeneity and aggregate feedback loops both matter to the research question. Typical applications include epidemiology, socio-economic systems and supply chains.

The intuition behind the method

Some systems cannot be represented adequately by either ABM or SD alone. ABM represents heterogeneous actors who make local decisions, but a model built only from agents can be costly to run and harder to read when the main explanation is an aggregate feedback loop. SD represents aggregate feedback loops through stocks, flows and rate equations, but it treats the population as homogeneous within each stock. AB-SD keeps both: agents such as people, firms or vehicles follow behavioral rules, and those rules respond to macro-level stocks such as population size, resource availability or infection prevalence. The two levels exchange information during the run, so the aggregate trajectory depends on individual decisions and individual decisions depend on the aggregate state.

History

System dynamics was developed by Jay Forrester at MIT in the 1950s and 1960s, and Sterman (2000) is a standard reference for its modeling practice. Agent-based modeling developed in the 1990s, with platforms such as Swarm and NetLogo. Borshchev and Filippov (2004) discuss combining system dynamics, discrete-event and agent-based techniques in practical modeling. The first formal statement of the hybrid AB-SD formulation is not firmly documented.

When to use it

Use AB-SD when the research question requires both levels at once, for example how differences in individual behavior change a population-level epidemic, a market, or a depletion process that feeds back on the agents themselves. It suits policy questions in which an intervention acts on individuals (such as a behavioral nudge) and the outcome is an aggregate indicator. Do not use it when the system operates at a single scale: pure SD is adequate for aggregate feedback problems, and pure ABM is adequate for interaction-driven micro problems without a macro feedback. Avoid AB-SD when the coupling between the levels is poorly understood, because mis-specified interfaces can generate emergent patterns that are artifacts of the coupling. It also demands more computing time than either parent method, so it is a poor choice when computation is tightly limited.

Limitations and considerations

  • The model has two layers plus an interface, so development and validation effort is substantially greater than for either pure ABM or pure SD.
  • The choice of which aggregate agent statistics feed which flow equations, and at what update frequency, is not dictated by either paradigm and can change the results.
  • Run time grows with the number of agents, because every agent is updated at each step before its outputs are aggregated; the SD layer adds little to that cost.
  • The hybrid structure can make it harder to identify which mechanism drives an outcome, since micro and macro feedbacks act on each other.
  • Key assumptions: the SD layer treats the population as homogeneous within each stock; the two layers update in a fixed order within each time step (agent states first, then aggregation, SD integration and broadcast back to agents); a single shared time step synchronizes both layers; and the chosen aggregate-to-agent interface determines which statistics drive which flows. Each of these must be accepted or justified in any application.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Makes cross-level feedback explicit: stock-and-flow equations remain visible as the aggregate loop, while agent rules remain visible as the micro mechanism.
  • Retains agent attributes such as age, income or health status, so outputs can include distributions of individual outcomes alongside aggregate stock trajectories.
  • Allows an intervention defined for individuals to be evaluated against an aggregate outcome within one run.
  • Stock trajectories and agent trajectories can each be compared with their own empirical data, which gives two separate checks on the model.

Applications

  • Epidemiological modeling: agents represent individuals with heterogeneous contact patterns; SD tracks disease compartments (S, I, R) and healthcare capacity.
  • Supply-chain management: agents model firms' ordering decisions; SD represents aggregate inventory stocks and production flows.
  • Urban planning and transportation: agents simulate commuters; SD captures road capacity, pollution accumulation, and land-use feedback.
  • Energy systems: agents represent households adopting renewables; SD models grid capacity, electricity prices, and CO2 stocks.
  • Financial markets: agents with behavioral biases interact; SD tracks aggregate credit stocks, asset bubbles, and regulatory buffers.

How it works

How it works

1

Define the model's two levels: the macro level (SD stocks and flows representing aggregate quantities such as susceptible/infected/recovered populations or capital stocks) and the micro level (agents representing individual entities with state variables, decision rules, and interaction protocols). Decide which phenomena belong at each level.

2

Build the system dynamics layer: identify stocks S(t), flows F(t), and auxiliary variables. Write differential equations dS/dt = inflows - outflows. Parameterize rate constants and feedback loops using domain knowledge or historical data.

3

Define agent attributes (e.g., age, income, health status) and behavioral rules governing transitions, interactions, and movements. Specify how aggregate SD variables (e.g., resource scarcity, infection rate) enter agent decision logic as environmental signals.

4

Establish bidirectional coupling: aggregate agent statistics (e.g., average agent state, count of agents in a category) feed into SD flow equations; SD stock values feed back into agent environment variables. Synchronize update schedules so both layers advance consistently at each time step.

5

Execute the hybrid model over the simulation horizon. At each step: update agent states, aggregate agent outputs, update SD stocks/flows, broadcast SD outputs back to agents. Validate against empirical data through calibration (parameter fitting), sensitivity analysis, and out-of-sample testing. Report time trajectories of both macro stocks and distributions of agent outcomes.

Common pitfalls

  • Poorly designed interfaces can create feedback instabilities or double-count the same effect at both levels, for example when an agent-level rate and an SD-level rate both represent the same process.
  • Using the SD layer only as a container for agent averages removes the stock-and-flow feedback that justifies the hybrid; the macro feedback loops must be represented structurally.
  • Calibrating to aggregate data alone can hide micro-level misspecification, because the stocks may match the data while the agent rules are wrong; validate the agent layer separately.
  • Assuming that two separately validated sub-models yield a valid hybrid is unsafe, because coupling can produce effects that neither sub-model shows alone.

Frequently asked questions

How does AB-SD differ from a purely stochastic system dynamics model?

Stochastic SD adds noise terms to flow equations, but all entities remain aggregate; AB-SD explicitly simulates individual agents whose heterogeneous decisions collectively determine flows, enabling emergence that aggregate noise cannot replicate.

Which software tools support agent-based system dynamics natively?

Several general-purpose simulation platforms can host agent-based and stock-and-flow components in one model, and the choice depends on which coupling mechanisms each platform supports. Check the current documentation of any platform before relying on a particular coupling mechanism.

When should I use agent-based discrete-event simulation instead?

Choose agent-based discrete-event simulation when macro-level behavior is better characterized by queues and event sequences (e.g., patients flowing through a clinic) rather than continuous feedback stocks. AB-SD is preferable when macro feedback loops (e.g., resource regeneration, epidemic momentum) are central to the research question.

How do I handle time-step synchronization between the two layers?

A common approach is a shared discrete time step at which agents update first, their aggregate statistics are computed, SD equations are integrated (e.g., Euler or Runge-Kutta), and updated stock values are broadcast back to agents. The step size must be small enough to avoid integration error in the SD layer and capture relevant agent dynamics.

Is AB-SD appropriate for small populations?

With small populations, stochastic variability can dominate, and aggregate stocks may fluctuate in ways that make them poor summaries of the population. Run multiple replications and check whether the stocks represent stable aggregate quantities before applying the hybrid approach.

Related methods

Sources

  1. Borshchev, A., & Filippov, A. (2004). From system dynamics and discrete event to practical agent based modeling: Reasons, techniques, tools. In Proceedings of the 22nd International Conference of the System Dynamics Society. Oxford, UK.

    Open publication reference
  2. Sterman, J. D. (2000). Business Dynamics: Systems Thinking and Modeling for a Complex World. McGraw-Hill, Boston.

    ISBN: 9780072311358