Replanreplan.city

All explainers · Agent-based simulation, explained

The scoring function at work

0.0 / 24 s

In one sentence

Travel is judged by what it does to the day. That is what the person compares.

Why it matters

One person, one day, three plans. The score accumulates through the day: activities add, trips subtract. Walking the shop tour instead of taking the bus saves waiting, in-vehicle time and two transfers: plan 2 scores higher and is kept. Walking the leisure tour as well cuts leisure to 30 minutes and pushes the evening later: the lost activity utility outweighs the saved penalties, plan 3 is dropped.

Agent-based simulation is usually explained with equations or with a screenshot of a running model. Neither shows why a planner should care. These explainers show the mechanism itself (one person, one day, one score) so that the results on a dashboard stop being a black box.

Sources

  • Scoring parameters are typical MATSim values (illustrative); see Horni, Nagel & Axhausen (2016), ch. 3
  • Charypar, D. & Nagel, K. (2005): Generating complete all-day activity plans with genetic algorithms. Transportation 32(4)

What you see

  1. 00.0Parameters (Table 11)
  2. 02.0Plan 1: all tours by bus
  3. 08.0Plan 2: shop tour on foot
  4. 14.0Plan 3: leisure tour on foot too
  5. 20.0Plan memory: 2 kept, 3 dropped
  6. 22.5Takeaway

Use this explainer

Poster (PNG) · MP4 / GIF: rendered on request

Embed: <iframe src="https://www.replan.city/explains/embed/scoring-at-work?lang=en" width="900" height="360" style="border:0;max-width:100%;aspect-ratio:5/2" loading="lazy" title="The scoring function at work"></iframe>
Paste into any page; the explainer plays as live SVG (no video file).

Licence: CC BY 4.0. Reuse freely with the line “Replan GmbH · replan.city/explains”. The Replan mark in the corner stays.

See it on your own network

Book a demo

Related explainers

Agent-based simulation, explained21.5 s

The same person’s day, played out

Every activity has a place, a start and an end; every trip a mode and a route. That is what the simulation moves through the network.

Agent-based simulation, explained19 s

Charypar–Nagel: how an agent values time at an activity

A plan scores well when time is spent at activities close to their typical duration. Travel is what takes that time away.

Agent-based simulation, explained20 s

The MATSim loop

The converged state is what scenarios are compared in; calibration tunes the parameters so that it matches observation.