330 likes | 812 Views
May 17th, 2010, MATSim Tutorial, Zurich Michael Balmer, balmer@ivt.baug.ethz.ch. Welcome to the 2 nd MATSim Tutorial. The helping Hands. Francesco Ciari, ETH Zurich Christoph Dobler, ETH Zurich Dominik Grether, TU Berlin Andreas Horni, ETH Zurich Konrad Meister, ETH Zurich
E N D
May 17th, 2010, MATSim Tutorial, Zurich Michael Balmer, balmer@ivt.baug.ethz.ch Welcometo the2nd MATSim Tutorial
The helping Hands • Francesco Ciari, ETH Zurich • Christoph Dobler, ETH Zurich • Dominik Grether, TU Berlin • Andreas Horni, ETH Zurich • Konrad Meister, ETH Zurich • Rashid A. Waraich, ETH Zurich • Michael Zilske, TU Berlin
The Program (1) http://matsim.org/usermeeting10 • Monday: • Installation & Getting started 1 (Konrad) • Installation & Getting started 2 (Konrad & Rashid) • Introduction & Overview (Michael B.) • Generating Demand and Supply (Francesco, Christoph & Michael Z.)
The Program (2) http://matsim.org/usermeeting10 • Tuesday: • Generating Demand and Supply, cont. (Francesco, Christoph & Michael Z.) • Config Parameters (Rashid & Christoph) • Validation & Visualization (Andreas) • Real-World Case Study with MATSim: Results (Michael B.)
The Program (3) http://matsim.org/usermeeting10 • Wednesday: • Programming with Java - Events (Dominik) • Programming with Java - Controller (Marcel) • Follow up MATSim User Meeting
The Core of MATSim An Overview
ABD & DTA interfaced activity-based demand modeling matrices dynamic traffic assignment costs flows
ABD & DTA integrated activity-based demand modeling (incl. routes) individual, time dependent, daily demand („schedule“, „plan“) individual, dynamic, microscopic shares of costs physical simulation
Introduction: Multi-Agent Transport Simulation (MATSim)
The Process Steps initial demand execution scoring analyses replanning
Demand & Supply(1) initial demand execution scoring analyses replanning
Demand & Supply(2) initial demand execution scoring analyses replanning
Demand & Supply(3) initial demand execution scoring analyses replanning
Optimization (1) • Evolutionary Algorithm • Co-Evolutionary Algorithm “Population of individuals” “Population of Plans” initial demand execution execution execution execution execution execution execution scoring scoring scoring scoring scoring scoring scoring analyses replanning replanning replanning replanning replanning replanning replanning
Optimization (2) • Execution: • Simultaneous simulation of all individuals with their selected plan • Implementation: Queue model • Purpose: • Calculating traffic • Basis to calculate the “score of the selected plan” • Parameterization: • “Flow Capacity Factor” • “Storage Capacity Factor” • … initial demand execution scoring analyses replanning
Optimization (3) • Scoring: • Calculating the “fitness” (utility, score, generalized cost) • Implementation: Charypar and Nagel (2006) • Purpose: • The score measures the whole plan. • Basis for the likelihood to survive in the population of plans • Parameterization: • Desired activity duration • marginal cost of traveling • Cost for being late/early/waiting • etc… initial demand execution scoring analyses replanning
Optimization (4) Selection • Selection / Strategy: • Defines how new plans are created, selected and/or deleted • Purpose: • Selection process in the evolutionary algorithm • Parameterization: • Selection of the best/logit choice/etc… • Selection for mutation/adaptation/variation • Definition of the strategy splits of the agents • etc… initial demand execution scoring analyses replanning
Optimization (5) • Replanning: • How to mutate/adapt/vary a plan (to create a new plan) • Purpose: • Searching in the search space of a daily plan • Parameterization: • Which parts of the search space to actually search • How to search Which replanning modules to use initial demand execution scoring analyses replanning
Optimization (6) • Routes • Different types of Dijkstra dynamic least cost path router (different in constraints and performance) Best respond module • Times • Time Allocator Mutator: Random variation of departure times and durations within a given range Random mutation module • Modes • Mode Mutator: Random selection of a given mode per trip/subtour/plan random mutation module initial demand execution scoring analyses replanning
Optimization (7) • Locations • Secondary Location Choice Module: • Random selection in the choice set random mutation module • Selection via time-space prism choice set ~ best respond module • Times and Modes: • Planomat: simultaneous choice of departure times and given modes at sub tour level by using again an EA best respond module • More and more: planomatX, etc… initial demand execution scoring analyses replanning
MATSim EA again + + - - - - + + + + + + + + + + - - - - - - - - +sports - congestion - Shop closed
Co-Evolutionary Algorithm - + - + + - - + - - - + + + - + - + + + - + + + - + + + + - - + - + + - + - + - - Iteration n Iteration 2 Iteration 3 Iteration 1 Iteration 0 + + etc. Stable state
Optimization (7) • Summary: • Execution and scoring: to calculate fitness of selected plans • Execution: the only place where agents interact • Execution also produces traffic (assignment) • Scoring defines agents’ mobility behavior • Scoring is completely individualized and can use every detailed information of the execution and the agents attributes • Replanning defines the search space and the way how to search initial demand execution scoring analyses replanning
Analysis (1) • Output Data: • Events • Connection of the “Who”, “When”, “Where” and “What” • Plans • The demand that produces the events (very similar but not identical to the events) • The same format as the input and the data dumps during the optimization process. One can perform the same analyses for all these data files. • The output can be the input for case studies. initial demand execution scoring analyses replanning
Analysis (2) Event details initial demand execution scoring analyses replanning (Source: Rieser, 2008, MATSim Seminar, Castasegna)
Analysis (3) • Data format and size: • Events • Tab separated or as XML (gzip) • Easily > 1GB • Plans • XML • Easily > 1GB (gzip) • Cannot be analyzed in Excel et Al. • Specialized programs (rare) • Programming needed initial demand execution scoring analyses replanning
Enjoy the days! Question? Remarks? initial demand execution scoring analyses replanning