MATSim · Agent-based transport simulation

Every traveller, simulated.

Agency Simulation Research builds MATSim models and decision tools for government, industry and research: flood evacuation, development capacity, public transport and autonomous mobility.

How a city is simulated

  1. 01

    A synthetic population

    Everyone who lives or works in the study area becomes a software agent, located at a real home and a real workplace.

  2. 02

    A plan for the day

    Each agent carries a plan: which activities, when to leave, which mode and which route.

  3. 03

    One shared network

    All plans run together on a network with real capacities. Where demand exceeds supply, queues form and spill back.

  4. 04

    Agents learn

    After each simulated day, agents score their experience and revise their plans. Iteration by iteration the system settles, and a change to the city can be tested against how everyone adapts to it.

Open source

We work with MATSim, the open-source multi-agent transport simulation developed by TU Berlin, ETH Zurich and a worldwide community, and we extend it where a question needs it.

Selected work

Models and decision tools built on MATSim, from Singapore to the Hawkesbury-Nepean.

01Urban capacity planner

2026 · Showcase · MATSim

Where can new homes go before the roads break down?

The capacity planner offers the morning-peak car trips of every prospective home as agents that can either travel or opt out. Agents compete for road space. When part of the network approaches gridlock, measured by its macroscopic fundamental diagram, travelling there becomes costly and the marginal trips drop out, and each block keeps homes in proportion to its home trips that get through.

It runs in two modes. The over-allocation check keeps the design's allocation and asks where it is over-allocated and how many homes per block survive. The planner's answer is a starting point: full-day simulations then scale its homes up or down until the busiest part of the network peaks just below its critical load. The sensitivity map lets the same homes move between blocks and shows where the network has most room. It is not a plan.

The method grew out of our flood evacuation work (below) and was rebuilt on current MATSim for urban growth. The interactive demo runs it on the Tanjong Pagar waterfront scenario, designed by Tanvi Maheshwari at the Future Cities Laboratory for her ETH Zurich doctoral thesis and simulated by Pieter in Sketch MATSim. It is also the test case of our joint papers in the Journal of Urban Design and Philosophical Transactions of the Royal Society A.

Homes proposed in 12 blocks
35,445
Their morning-peak car trips, offered to the planner
27,649
Homes that hold in a full-day simulation
19,846

How it works

  1. 1Proposed homesThe morning-peak car trips of every prospective home enter as agents that can travel or opt out.
  2. 2Simulated morning peakAgents compete for road space. Near gridlock, travelling becomes costly and marginal trips drop out; each block keeps homes in proportion to the trips that get through. In the sensitivity map, homes may also move between blocks, which shows where the network has room.
  3. 3Full-day validationThe over-allocation check then scales the planner's homes, up or down, until a full simulated day peaks just below critical load.

Indicative research prototype on a research design scenario, not an adopted plan. The planner did not converge, the homes that hold rest on one seed of full-day runs and are approximate, and nothing is calibrated to counts.

The capacity planner's over-allocation check on the Tanjong Pagar waterfront research design: one column per development block, each labelled with its proposed and validated homes.
Tanjong Pagar waterfront scenario designed by Tanvi Maheshwari, Future Cities Laboratory. Shown: the over-allocation check, proposed / validated homes per block. Every block is orange: it keeps fewer homes than the design draws there. These homes hold over a full simulated day, in which district east peaks at 0.92 of its critical load. Open the capacity planner

02Flood Capacity Planner

2020–2021, 2026 · Decision tool · with URaP International, for NSW DPIE

Turning an evacuation model into a planning tool

In a floodplain, every new dwelling adds a vehicle to an evacuation that already depends on a few roads and bridges. The Flood Capacity Planner asks where additional development can go without materially increasing risk to life.

Candidate development enters the evacuation model as surplus demand. Each surplus agent chooses between evacuating through a subsector or not being built, and routing with decongestion-based replanning finds the allocations the network can support across an ensemble of flood events. The result is validated against the official evacuation model.

Planners load a scenario, place demand, simulate, validate, and compare risk to life against the baseline on a map. The planner works alongside the evacuation model and makes it more useful for decisions.

Role
Architecture, simulation engine, ensemble execution, validation.
Partners
URaP International; NSW Department of Planning, Industry and Environment.
Stack
MATSim, Java web application with map views, PostGIS and GeoPackage scenarios, cloud or local ensemble runs.
Stylised illustration
Synthetic network, no real geography. Water rises from the river, roads under water close, and agents re-route to safe nodes on high ground.

03Hawkesbury-Nepean Flood Evacuation Model

2017–2025 · Evacuation simulation · with Kai Nagel (TU Berlin), URaP International and CSIRO Data61

Evacuating a valley, flood after flood

The Hawkesbury-Nepean Valley in western Sydney is one of the most flood-exposed places in New South Wales, and its roads out are few. The Flood Evacuation Model (FEM) simulates the evacuation of every vehicle in the valley against ensembles of flood events, up to the probable maximum flood. Rising water closes roads as it would in reality, and agents learn routes to safe destinations under the evacuation plan.

FEM2 began with Kai Nagel at TU Berlin in late 2017 and was developed with URaP International and CSIRO Data61. Pieter is the main architect and developer of its core engine. The model informs flood risk management planning for the valley; Infrastructure NSW describes its use in a public 2023 technical report.

Role
Main architect and developer of the core engine.
Partners
TU Berlin, URaP International, CSIRO Data61.
Stack
MATSim, time-variant networks from flood hydrographs, decongestion and safe-node choice, ensemble runs.
Process: flood hydrographs, then road closures over time, then evacuation simulation in MATSim, then risk to life across the ensemble. 01 Floodhydrographs 02 Road closuresover time 03 Evacuationsimulation(MATSim) 04 Risk to lifeacross theensemble Process: flood hydrographs, then road closures over time, then evacuation simulation in MATSim, then risk to life across the ensemble. 01 Flood hydrographs 02 Road closuresover time 03 Evacuationsimulation (MATSim) 04 Risk to life acrossthe ensemble
Each flood event in the ensemble becomes a timetable of road closures; the evacuation runs against it, and risk to life is read across all events.

04Singapore, Future Cities Laboratory

2011–2020 · Research · ETH Zurich, Singapore-ETH Centre

A city-state, simulated from smart-card data

At ETH Zurich’s Future Cities Laboratory in Singapore, Pieter built the demand side of the first MATSim model of Singapore: a synthetic population of about five million agents, each located at an individual building. Fare-card data then made it possible to simulate public transport at the level of individual buses and passengers, the subject of Pieter’s ETH doctorate, Data-Driven Transit Simulation.

As project leader of the Engaging Mobility team, Pieter took the work into urban design: autonomous on-demand transit and parking for the Tanjong Pagar waterfront with NUS and SMART, and Sketch MATSim, developed with Sergio Ordóñez, which lets designers test street and land-use layouts against simulated travel. Tanvi Maheshwari designed the Tanjong Pagar waterfront and a series of design experiments for her doctoral research; Pieter simulated them in Sketch MATSim, and Tanvi read the results as an urban designer. That pairing of urban design and transport simulation led to two joint papers.

Role
Demand side of the first MATSim model of Singapore; project leader, Engaging Mobility.
Partners
ETH Zurich, Singapore-ETH Centre, NUS, SMART.
Stack
MATSim, fare-card data, Sketch MATSim.
MATSim Singapore How a day of five million agents is simulated, scored and re-planned. Future Cities Laboratory. Watch on YouTube
URA Exhibition 2015 Fare-card data and simulation applied to bus bunching on a Singapore line. Produced by Pieter Fourie, Artem Chakirov and Alex Erath. Watch on YouTube

Videos load from YouTube in privacy-enhanced mode only when played.

05MATSim Association

2023– · Open-source stewardship

Looking after the commons

MATSim is open source and used by universities, consultancies and public agencies worldwide. The MATSim Association, founded in 2022 and registered in Zurich, keeps it maintained, runs the user meetings and represents it to industry. Pieter is the Association’s manager: membership, the annual MATSim User Meeting (Paris, 2026), the members’ seminar series, and regional meetings such as MATSim User Meeting Japan 2024 in Tokyo.

06CityData

Ongoing · Development · India, United States, Trinidad and Tobago

Simulation pipelines for a civic data platform

Development for CityData (citydata.ai), which provides mobility analytics to public agencies: simulation pipelines for CitySim, its multimodal flow simulation, and flood traffic impact modelling. The work spans crowd management in Varanasi, India, and projects in the United States and in Trinidad and Tobago.

Also

  • Pseudosimulation (PSim)A MATSim extension that speeds up convergence by replacing most full simulation runs with a fast approximation. With Kai Nagel and Johannes Illenberger, Transportation Research Record, 2013.
  • MATSim core and contribsReplanning annealer, travel diaries from events, a first- and last-mile autonomous vehicle and transit router (github.com/langkoos/firstLastAVPtRouter).
  • Higashi-HiroshimaA MATSim test-bed for a carbon-neutral city, with Hiroshima University (2021–2023).
  • Jakarta EpiSimCOVID-19 outbreak forecasting for Jakarta and West Java, coupling disease spread with MATSim movement simulation of a synthetic population, to support the Indonesian Government’s pandemic decisions. With URaP International and CSIRO Data61 (project page).
  • Other engagementsTourist evacuation with Kyoto University; autonomous vehicle deployment with TU Berlin.

What we do

  • 01

    Models

    MATSim scenarios from the ground up: synthetic populations, road and transit networks, calibration.

  • 02

    Methods

    Extensions where a question needs them: scoring, routing, replanning, evacuation and capacity logic, contributed upstream where it helps others.

  • 03

    Tools

    Models wrapped as decision tools planners can run themselves: web and desktop applications, ensemble runners, reports.

  • 04

    Training and review

    MATSim training for agencies and teams, and independent review of models and code.

Selected publications

Papers, chapters and a doctoral thesis on agent-based simulation, public transport, autonomous mobility and urban design.

  1. 2026

    A model-based adaptive planning framework using surrogate modelling for urban transport systems under uncertainty

    Roman, Maheshwari, Do, Adey, Fourie, Ye & Bansal

    Sustainable and Resilient Infrastructure

  2. 2024

    Co-designing transport models as a heuristic planning tool

    Maheshwari, T. & Fourie, P. J.

    Philosophical Transactions of the Royal Society A

  3. 2024

    Iterative urban design and transport simulation using Sketch MATSim

    Maheshwari, T., Fourie, P. J., Ordóñez Medina, S. A. & Axhausen, K. W.

    Journal of Urban Design 29(2)

  4. 2018

    Simulation of autonomous transit on demand for fleet size and deployment strategy optimization

    Wang, B., Ordóñez Medina, S. A. & Fourie, P. J.

    Procedia Computer Science

  5. 2017

    Transport modelling in the age of big data

    Anda, C., Erath, A. & Fourie, P. J.

    International Journal of Urban Sciences

  6. 2017

    Data-Driven Transit Simulation

    Fourie, P. J.

    Doctoral thesis, ETH Zurich

  7. 2016

    Using smart card data for agent-based transport simulation

    Fourie, P. J., Erath, A., Ordóñez Medina, S. A., Chakirov, A. & Axhausen, K. W.

    In Public Transport Planning with Smart Card Data, CRC Press

  8. 2016

    Multi-modeling in MATSim: PSim

    Fourie, P. J.

    In The Multi-Agent Transport Simulation MATSim, Ubiquity Press

  9. 2016

    Interactive analysis and decision support with MATSim

    Erath, A. & Fourie, P. J.

    In The Multi-Agent Transport Simulation MATSim, Ubiquity Press

  10. 2013

    Increased convergence rates in multiagent transport simulations with pseudosimulation

    Fourie, P. J., Illenberger, J. & Nagel, K.

    Transportation Research Record 2343

  11. 2010

    Large-scale agent-based combined traffic simulation of private cars and commercial vehicles

    Joubert, J. W., Fourie, P. J. & Axhausen, K. W.

    Transportation Research Record 2168

About the practice

Founded
2021
With MATSim since
2008
Countries worked in
5

Agency Simulation Research is the practice of Dr Pieter J. Fourie, founded in 2021. Pieter has worked with MATSim since 2008, across South Africa, Switzerland, Singapore, Australia and Japan.

Pieter holds a doctorate from ETH Zurich and spent nearly a decade at the Future Cities Laboratory in Singapore, first as a researcher and then as project leader. Pieter is now a research fellow in transport modelling with Healthy Active Cities at Monash University. Alongside that role, Pieter manages the MATSim Association, develops for CityData, holds a global professorship at Keio University, collaborates with Hiroshima University and supports URaP International’s flood evacuation modelling.

Clients and partners

  • Hiroshima University
  • Kyoto University
  • TU Berlin
  • CityData
  • URaP International
  • CSIRO Data61
  • NSW Government

Working on a question a model could answer?

Write to us. We reply to every message.