MATSim · Agent-based transport simulation

Every traveller, simulated.

A portfolio of MATSim models and decision tools developed by Pieter Fourie for research, government and industry projects: 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

The work on this site is built on MATSim, the open-source multi-agent transport simulation developed by TU Berlin, ETH Zurich and a worldwide community, and extends it where a question needed it.

Selected work

Models and decision tools built on MATSim, from Singapore to the Hawkesbury-Nepean. Case studies of past work; each says where, when and with whom it was done.

01Urban capacity planner

2026 · Research 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 Pieter's 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 Tanvi and Pieter's joint papers in the Journal of Urban Design and Philosophical Transactions of the Royal Society A.

Developed
The planner method, the validate-and-adjust loop and the viewer were developed by Pieter.
Scenario
Tanjong Pagar waterfront, Future Cities Laboratory, Singapore: a research design, not an adopted plan.
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.

Done
2020–2021 and 2026, with URaP International, for the NSW Department of Planning, Industry and Environment.
Role
Pieter developed the method and the tool's architecture, simulation engine, ensemble execution and 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 · co-developed with Kai Nagel (TU Berlin), with 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 was co-developed by Kai Nagel at TU Berlin and Pieter from late 2017, in collaboration with URaP International and CSIRO Data61. The model informs flood risk management planning for the valley; Infrastructure NSW describes its use in a public 2023 technical report.

Done
2017–2025, with TU Berlin, URaP International and CSIRO Data61, for the NSW Government.
Role
Co-developer of FEM2, with Kai Nagel.
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.

Done
2011–2020, at the Future Cities Laboratory, Singapore-ETH Centre, ETH Zurich.
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 to June 2026 · 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 became the Association’s manager in 2023, responsible for membership, the annual MATSim User Meeting, the members’ seminar series, and regional meetings such as MATSim User Meeting Japan 2024 in Tokyo.

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).
  • Düsseldorf (KoMoDnext)Vehicle automation and responsive infrastructure: an evaluation scheme and simulation-based optimisation of infrastructure configurations, run as MATSim ensembles on AWS. With Kai Nagel’s group at TU Berlin, 2021–2022 (TU Berlin’s Düsseldorf scenario).
  • Other projectsTourist evacuation with Kyoto University; mixed-traffic modelling of Meerut, India, with UNSW Sydney (2025).

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 Pieter

With MATSim since
2008
Countries worked in
10

Pieter is a Research Fellow at Healthy Active Cities, Monash University.

Dr Pieter J. Fourie started out at the University of Pretoria and then the Council for Scientific and Industrial Research (CSIR) in South Africa. Pieter then spent ten years in Singapore at ETH Zurich’s Future Cities Laboratory, first as a researcher and then as project leader, and earned a doctorate from ETH Zurich. After Singapore, Pieter held adjunct positions at Keio University and Hiroshima University while running many consulting projects.

Pieter has worked with MATSim since 2008: in South Africa, Switzerland, Singapore, Australia and Japan, and on projects in Trinidad and Tobago, Germany, India, Indonesia and the United States.

This site is a personal portfolio and does not represent Monash University.

Past clients and collaborators

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