Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model...
Transcript of Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model...
![Page 1: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/1.jpg)
Using MATSim as a travel model plugin to SILO: Why this time we will get it right
Kai Nagel, TU Berlin
![Page 2: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/2.jpg)
Models and projects
![Page 3: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/3.jpg)
3
Explicit representation of… ● … households with their respective income
and household members ● … household members with their individual
workplace ● ... monetary and time constraints
Year-by-year: ● Household relocation ● Demography ● Real estate development
SILO (Rolf Moeckel et al.)
Figures removed becauseof possible copyright
issues. See http://silo.zone
![Page 4: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/4.jpg)
MATSim (= Multi-Agent Transport Simulation)• TUB, ETHZ, senozon, others • persons, veh’s, links, nodes, signals individually
represented • iterate into schedule equilibrium • typical choice dimensions: route, mode, dp time (, loc ch) • car, pt, walk/bike, taxi, AV • noise, particulate emissions, accessibility, benefits • schedules automatically consistent
4
initial demand analyses
execution (mobsim) scoring
replanning
Source: own
Source: Horni/Nagel/Axhausen
![Page 5: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/5.jpg)
Model integration
IMO:
Division of labour: Need to learn how to use other teams’ models.
5
![Page 6: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/6.jpg)
OD matrix, skims → true person-centric coupling
![Page 7: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/7.jpg)
Traditional coupling“Traditional” coupling: • LU model → OD matrix → T model • LU model ← Skims (zone2zone impedances) ← T model
Works ok because • OD matrix, skims established/stable interfaces • Travel model interpreted as “stable” library (no joint dev’t).
Not way into the future!
7
![Page 8: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/8.jpg)
Way out: true person-centric couplingLU → T • facilities • persons, home locations, work locations
(“persons” & “locations” as the fundamental objects (cf. Donnelly)
T → LU
Synthetic persons/firms in LU model should → query T model ←
as needed.
(Cf. Rosella Picado: What will be the next gen. stable interface?)
8
![Page 9: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/9.jpg)
SILO-MATSim Integration | Dominik Ziemke | SESYNC Model Integration Workshop | Annapolis | 17 May 2016
MATSim ➔ SILO: Query ArchitectureIdea: Allow the land-use model to query the transport model for required information for a specific decision
9
Travel time to work at 6:30: 65 min
![Page 10: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/10.jpg)
SILO-MATSim Integration | Dominik Ziemke | SESYNC Model Integration Workshop | Annapolis | 17 May 2016
MATSim ➔ SILO: Query ArchitectureIdea: Allow the land-use model to query the transport model for required information for a specific decision
10
Travel time to work at 6:30: 65 min
Travel time to work at 6:30: 13 min
![Page 11: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/11.jpg)
SILO-MATSim Integration | Dominik Ziemke | SESYNC Model Integration Workshop | Annapolis | 17 May 2016
MATSim ➔ SILO: Query ArchitectureIdea: Allow the land-use model to query the transport model for required information for a specific decision
11
Travel time to work at 6:30: 65 min
Travel time to work at 6:30: 13 min
Travel time to work at 6:30: 16 min
![Page 12: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/12.jpg)
Joint development
Joint development Need dev’t on both sides for this
→ cannot treat travel model as stable library.
12
![Page 13: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/13.jpg)
Computational and computer science tools and methods that are important for integration
![Page 14: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/14.jpg)
SILO, MATSim are on github
Cf. https://github.com/pbsag
https://github.com/matsim-org/matsim/branches
14
![Page 15: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/15.jpg)
Newly committed version of code same results as before
!! Commodity availability via github and travis !!
→ any project can implement automatic regression tests
New “snapshots” only after passing tests!
Github includes systematic regression tests15
![Page 16: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/16.jpg)
Github includes automatic deploymentMake yourself available to others. E.g. bintray, jfrog, jitpack
!! Commodity availability via github and jitpack !!
→ any java/maven project on github makes itself available
16
![Page 17: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/17.jpg)
Dependency manag’t: pull in deployed software
Pull in deployed libraries. E.g. maven, gradle <dependency> <groupId>org.matsim.contrib</groupId> <artifactId>emissions</artifactId> <version>0.9.0-SNAPSHOT</version> </dependency>
• Can use dev snapshots (updated daily). • Correct version from “cloud”. • “Includes” dependencies from upstream code.
→ adding library / switching version small number of clicks.
17
![Page 18: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/18.jpg)
SILO, MATSim use same language (Java)
Full integration, e.g. MATSim side: silo.getAllPersons() ;
silo.getPropertiesOfZone( zoneId ) ;
SILO side: matsim.getAccessibilityOfLocation( coord ) ;
matsim.getPropertiesOfTransitConnection( coord1, coord2 );
→ !! one executable !! (recall Wegener on Wednesday) ←
18
![Page 19: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/19.jpg)
About programming languagesIMO, different programming languages most important impediment to model integration. Have never seen it stable in the long run.
Cf. the ILUMASS (Wegener) experience! Waste of scientific time.
Maybe some hope with protocol buffers or similar; otherwise will have to wait.
(Harut had this a bit more balanced. :-) )
19
![Page 20: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/20.jpg)
MATSim4UrbanSim in comparison [[skip]]Micro-simulation for the prospective of sustainable cities in Europe – SustainCity, EU, ∼10 partners, 2010–2014.
Dependency (= external library) management
Only for Win → installation about a day on non-Win systems
Deployment
None at that time, neither MATSim nor UrbanSim
Regression tests yes
Same language no. → Coupling via files. No person-centric queries.
20
![Page 21: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/21.jpg)
Overall
Inside Java/Maven/Github: • build server for regression tests provided for free • deployment (make available to others) provided automatically • clean external library management including versioning
Result is “a single executable” (Wegener) ... ... nevertheless composed of contributions by many different groups.
Easy to replace underlying T model (cf. Axhausen, Simmonds).
21
![Page 22: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/22.jpg)
22
Prototypical work: ● MATSim as a library to SILO ● SILO persons → MATSim home-work-home
plans ● assign to network
Now a funded DFG project (DZ): 1. feed back skims to SILO 2. allow SILO to query MATSim 3. addt’l activity types 4. ...
SILO MATSim coupling status
![Page 23: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/23.jpg)
Some MATSim capabilities (that already exist)
![Page 24: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/24.jpg)
NOx (Kickhöfer)
Movie removed because of possible copyright issues.
See http://matsim.org/scenario/munich-germany
24
![Page 25: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/25.jpg)
SILO-MATSim Integration | Dominik Ziemke | SESYNC Model Integration Workshop | Annapolis | 17 May 2016
25
Accessibility (here: to workplaces)
Image removed because of possible copyright issues.
See http://geo.vsp.tu-berlin.de .
![Page 26: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/26.jpg)
AVs in BerlinReplace ∼1mio private cars by 100k AVs in Berlin
In MATSim, this is simply a person-centric mode choice: Replace <plan ...> <activity ... /> <leg mode=“car” .../> ...
by <plan ...> <activity ... /> <leg mode=“autonomous_vehicle” .../> ...
and try it out.
(If synthetic person waits a long time, she obtains a low score, and will not try it again soon.)
26
![Page 27: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/27.jpg)
AVs for Berlin (Bischoff & Maciejewski)27
Movie removed because of possible copyright issues.
![Page 28: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/28.jpg)
Mixed traffic (car, motorbike, bicycle)28
Movie removed because of possible copyright issues.
![Page 29: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/29.jpg)
Social network generation29
Figure removed because of possible
copyright issues.
![Page 30: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/30.jpg)
Analysis using VIA
(educational license 1kEu/yr)
kairuns/tampa/output
30
![Page 31: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/31.jpg)
Make results available!
http://geo.vsp.tu-berlin.de
google earth as “poor persons GIS tool” ?
31
![Page 32: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/32.jpg)
Dashboards?
(Many people have talked about sliders ...
... nobody has shown any sliders.)
:-)
32
![Page 33: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/33.jpg)
Before I finish ...
![Page 34: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/34.jpg)
Summary
![Page 35: Using MATSim as a travel model plugin to SILO: Why this ... fileUsing MATSim as a travel model plugin to SILO: Why this time we will get it right Kai Nagel, TU Berlin](https://reader034.fdocuments.net/reader034/viewer/2022050718/5e18922006420432dc388cd9/html5/thumbnails/35.jpg)
SummaryJava/Maven/Github/Travis (open source) tool chain enormously simplifies: • automatic library management (use other people’s code) • automatic deployment (make own code available) • automatic regression tests (test code before deployment) • true person-centric software integration
(LU model queries T model)
Will be able to combine SILO’s and MATSim’s (already existing) capabilities with relatively little effort.
Analysis and graphics for “free”.
Missing (IMO): translation from “graphs4experts” to “graphs4others”.
35