Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.4 Release #136

Merged
merged 152 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from 151 commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
c36120d
refactored choice models
rakow Jul 9, 2024
b8f2221
updated biogeme script
rakow Jul 9, 2024
77764ce
added more model params
rakow Jul 10, 2024
c235c63
correct initial ascs
rakow Jul 10, 2024
0fe2a82
add more variables
rakow Jul 10, 2024
1c32424
update bounds
rakow Jul 11, 2024
f92f512
improve diverse plan generator and models
rakow Jul 11, 2024
6088220
add some more options and models
rakow Jul 13, 2024
5821048
adapted trip choice model
rakow Jul 13, 2024
505ef45
fex gtfs route type
vsp-gleich Jul 16, 2024
adf4e00
workaround for loading existing preferences
rakow Jul 20, 2024
682f7bf
adding model
rakow Jul 21, 2024
bfb7397
cleanup mode choice models
rakow Jul 21, 2024
7d4f2c2
improved biogeme trip choice model
rakow Jul 21, 2024
315fab3
added more options to trip choice model
rakow Jul 22, 2024
ee25196
adding parameter for price perception
rakow Jul 25, 2024
5a82e8f
add more estimated models
rakow Jul 26, 2024
fc2160c
fixed mxl option
rakow Jul 26, 2024
1f1dd1a
updates
rakow Jul 26, 2024
f60ea42
restore correct comment
rakow Jul 27, 2024
c9fc826
automatic commit
kainagel Aug 2, 2024
342221b
revert matsim dependency to PR release. The other version got accide…
kainagel Aug 2, 2024
c849e6c
add comment for source of calibration target modal split
vsp-gleich Aug 2, 2024
b28dccd
add command for 100pct static population
rakow Aug 7, 2024
cff5d44
Merge remote-tracking branch 'origin/6.x' into 6.x
rakow Aug 7, 2024
ce81ea2
dependency update
rakow Aug 7, 2024
d9f763f
make plan creation method public
rakow Aug 7, 2024
1fdcd27
Merge pull request #128 from matsim-scenarios/comment-srv
rakow Aug 7, 2024
7d1f8ca
improve reusability of some methods
rakow Aug 7, 2024
f4e6984
Merge remote-tracking branch 'origin/6.x' into 6.x
rakow Aug 7, 2024
dab2223
update matsim and dashboards
rakow Aug 8, 2024
89ea146
change visibility
rakow Aug 8, 2024
0b10118
configurable crs for filter agent class
rakow Aug 8, 2024
0c8a2dd
update matsim
rakow Aug 9, 2024
8e9c57f
add method to sample with zone information
rakow Aug 9, 2024
8bb00f0
remove left over filter
rakow Aug 9, 2024
c78e048
add comments with todos
rakow Aug 10, 2024
fd53143
improved facility extraction from osm
rakow Aug 10, 2024
93c414b
improved facility extraction from osm
rakow Aug 11, 2024
c308161
adding osm type to extracted facilities which may be relevant for cer…
rakow Aug 12, 2024
7ea07ac
automatically set ride scoring params based on car params, update mat…
vsp-gleich Aug 16, 2024
ee03358
allow for person specific asc, ensure income dependent scoring is act…
vsp-gleich Aug 24, 2024
fa77d7c
add additional analysis modules
vsp-gleich Aug 24, 2024
b433c35
add new plan generator based on subtour modechoice
rakow Sep 2, 2024
d8e7806
Merge remote-tracking branch 'origin/6.x' into 6.x
rakow Sep 2, 2024
cf7a3db
update matsim and estimated new baseline model
rakow Sep 3, 2024
06b592a
additional baseline variant
rakow Sep 3, 2024
c6d216b
Merge branch 'main' into 6.x
rakow Sep 4, 2024
0f10ab6
improve and updated the facility models
rakow Sep 4, 2024
f9bdfbe
bump version to 6.4
rakow Sep 4, 2024
da949bd
implemented iqr filter for facility attraction factors
rakow Sep 4, 2024
e3026f6
integrate survey data for workplace assignment
rakow Sep 5, 2024
73cb354
update changelog
rakow Sep 5, 2024
fd9356d
update makefile
rakow Sep 5, 2024
86e6bf9
remove shop tag from generic commercial buildings
rakow Sep 5, 2024
4bd2740
update Makefile
rakow Sep 6, 2024
50c9838
update matsim
rakow Sep 7, 2024
8d8a745
update Makefile
rakow Sep 8, 2024
10d3114
additional baseline version
rakow Sep 9, 2024
b0d581d
update matsim, which fixes new pt pseudo network
rakow Sep 16, 2024
38a0cef
include bike roads as well
rakow Sep 17, 2024
d602001
configure bikes routed on network
rakow Sep 17, 2024
5485b6e
add more parameter to choice model and added new baseline
rakow Sep 20, 2024
a179d73
update baseline model
rakow Sep 23, 2024
3c0c71e
improve ride alpha parameter estimation
rakow Sep 23, 2024
9c0a8bd
improve location matching by distance
rakow Sep 23, 2024
a9075c5
add baseline mxl model
rakow Sep 24, 2024
4071c94
update matsim
rakow Oct 8, 2024
afc50ff
modify schedule to run CircleLine endless
vsp-gleich Oct 11, 2024
002ce04
try to reduce cadyts memory usage
rakow Oct 12, 2024
8fc992f
fix checkstyle
rakow Oct 12, 2024
8b6bc83
update cadyts calibration to use less memory, adjust config
rakow Oct 15, 2024
7366728
todo to update pt schedule soon
rakow Oct 15, 2024
9270a9d
endless circle line: set await departure true and transport mode
vsp-gleich Oct 15, 2024
7a8ee0f
use the new scenario cutout class
rakow Oct 16, 2024
ee79c44
improvements for pt schedule generation
rakow Oct 23, 2024
a3a9bcb
re-added deleted file
rakow Oct 23, 2024
0a11469
add emission dashboard and its configuration
rakow Oct 23, 2024
4a21578
add bus and train stop distances as features
rakow Oct 24, 2024
c609ce9
update attraction models
rakow Oct 26, 2024
1b59768
update gtfs schedule
rakow Oct 28, 2024
cb45f90
update matsim version
rakow Oct 29, 2024
667b612
use the standard income dependent scoring
rakow Oct 29, 2024
e5d8659
remove unused import
rakow Oct 29, 2024
4bb1fad
use bicycle link speed calculator
rakow Nov 5, 2024
3b1ee1b
ignore service links for counts matching
rakow Nov 5, 2024
96d966c
update matsim, add mode share by purpose reference
rakow Nov 5, 2024
60a6f69
avoid warnings for consistency check
rakow Nov 6, 2024
b60642e
match bike speed to survey data
rakow Nov 6, 2024
50063fb
update matsim and remove to detailed links from network again
rakow Nov 7, 2024
83a69df
update bike speed and network filter for new bike network
rakow Nov 12, 2024
a5d7257
update matsim version
rakow Nov 13, 2024
570612b
implemented pseudo random error terms for trip scoring
rakow Nov 26, 2024
bac9691
some renaming
rakow Nov 27, 2024
12d5415
fix typo and checkstyle
rakow Nov 28, 2024
0db7c42
option to estimate error component
rakow Nov 28, 2024
f488192
improve randomness in pseudo scorer
rakow Dec 1, 2024
df66c8f
update matsim and how the pt schedule is created
rakow Dec 5, 2024
03ca6fe
implemented pseudo random error as trip scoring, instead of leg
rakow Dec 7, 2024
c1c7a20
update matsim
rakow Dec 7, 2024
af74b60
add missing java doc
rakow Dec 7, 2024
68e4ae3
and choice experiment policy
rakow Dec 10, 2024
05ae1b0
use main mode in trip scorer, implement class for choice experiments
rakow Dec 13, 2024
a0324cb
add comment
rakow Dec 13, 2024
5a55ca4
add config prepare line in experiment
rakow Dec 13, 2024
95449f6
attempt to guess ids and departure times of circle line to replace ha…
vsp-gleich Dec 13, 2024
0994fbf
Merge branch '6.x' into endlessCircleLine
vsp-gleich Dec 13, 2024
89be99b
update gtfs2matsim, fix make file
vsp-gleich Dec 14, 2024
3dfe42d
exclude second gtfs2matsim dependency via contrib application
vsp-gleich Dec 14, 2024
5b0e242
update gtfs2matsim to fix issue with white space in link ids
vsp-gleich Dec 14, 2024
d86d9b4
Merge branch '6.x' into endlessCircleLine
vsp-gleich Dec 14, 2024
a686720
make code style sona happy
vsp-gleich Dec 16, 2024
988f30f
Merge remote-tracking branch 'origin/endlessCircleLine' into endlessC…
vsp-gleich Dec 16, 2024
2196d7f
update matsim, workflows and experiment run class
rakow Dec 16, 2024
b4c73fe
Merge branch '6.x' into endlessCircleLine
rakow Dec 16, 2024
a3254ed
update make file and add workaround in the scenario for now
rakow Dec 16, 2024
cf9f88d
add vehicle
vsp-gleich Dec 16, 2024
1575922
Merge remote-tracking branch 'origin/endlessCircleLine' into endlessC…
vsp-gleich Dec 16, 2024
7418ab6
improve income calculation by using the equivalent income of a person
rakow Dec 16, 2024
7da1e18
remove unneeded work-around
rakow Dec 16, 2024
039fc07
remove unused imports
rakow Dec 16, 2024
0f67f30
Merge pull request #135 from matsim-scenarios/endlessCircleLine
rakow Dec 16, 2024
afba6a2
update changelog
rakow Dec 17, 2024
d65c96c
update matsim
rakow Dec 18, 2024
2aa05b9
remove time allocator from imc experiment
rakow Dec 23, 2024
cf22730
option for balanced innovation
rakow Dec 29, 2024
066a027
inv beta option
rakow Dec 29, 2024
f9f2ac5
use best score for imc
rakow Dec 29, 2024
ab08b00
adapt to upstream changes
rakow Dec 29, 2024
db25785
preparing release config
rakow Dec 31, 2024
d494777
fix path in config
rakow Dec 31, 2024
b2a6e11
set correct counts url
rakow Dec 31, 2024
55c925a
reduce threads for the test case
rakow Dec 31, 2024
fbd242e
updates for estimation
rakow Jan 2, 2025
52bf932
remove unneeded module
rakow Jan 2, 2025
dc9aeb6
remove import
rakow Jan 2, 2025
40c4bc7
fix drt scenario loading
rakow Jan 2, 2025
9712007
small improvements
rakow Jan 3, 2025
57951ca
add some logging
rakow Jan 4, 2025
82279d3
estimate separate marginal util hour for bike
rakow Jan 4, 2025
9bc20e9
fix config option in experiment
rakow Jan 5, 2025
8a65d65
update drt scenario and add test
rakow Jan 6, 2025
285490e
update matsim dependency
rakow Jan 6, 2025
35794c5
Merge branch 'main' into 6.x
rakow Jan 6, 2025
06f6eff
merge from master
rakow Jan 6, 2025
4dbfda3
fix checkstyle
rakow Jan 6, 2025
3c27784
use default number of threads for drt
rakow Jan 6, 2025
e47cc93
Fix some code style issues
rakow Jan 6, 2025
47c207a
update readme
rakow Jan 7, 2025
2578e38
update image description
rakow Jan 7, 2025
e7363c1
update some details in readme
rakow Jan 7, 2025
4d639c6
set release version
rakow Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
architecture: x64
Expand All @@ -29,8 +29,8 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
architecture: x64
Expand All @@ -54,8 +54,8 @@ jobs:
java: [21]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
architecture: x64
Expand All @@ -64,7 +64,7 @@ jobs:

- name: Test
run: mvn --batch-mode --update-snapshots test -Dmatsim.preferLocalDtds=true -Dmaven.javadoc.skip -e
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: test-coverage
path: target/site/jacoco/
Expand All @@ -77,8 +77,8 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
architecture: x64
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Package
run: mvn --batch-mode --update-snapshots package -DskipTests -Dmatsim.preferLocalDtds=true -Dmaven.javadoc.skip -e
- run: mkdir staging && cp *.jar staging
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@

All notable changes to this project will be documented in this file.

### 6.4 (2025-01)
- Improved facility locations
- OSM tag filtering has been improved to reduce number of wrongly assigned facility types
- Update work location assignment within Berlin
- Work locations now use weighted sampling during location choice
- The weight is based on an attraction factor and zone specific probabilities determined from survey data
- Updated GTFS schedule
- The schedule is now based on the 2024-11-19
- Note that there are major changes how stops and links between them are created
- Stops having the same gtfs parent_id and route types are merged together, allowing agents to find better PT connections
- The PT network is created with loop links (on each PT stop) instead of duplicating stops, which also improves connections
- The Berlin Ringbahn is manually adjusted so that each train drives multiple loops the whole day
- New income calculation
- In previous versions income was used directly as household income from the survey data
- Now, the income is calculated as personal equivalent income, which is the household income divided by equivalent household size
- See https://en.wikipedia.org/wiki/Equivalisation
- Corresponding attributes have been added to the population file
- Bike mode updated and recalibrated
- Bike is now routed on the network, which results in more realistic travel distances
- Bikes are not simulated on the network, and no link events generated yet. This will likely be added in future versions.
- The road network includes bike infrastructure and corresponding attributes
- The bike infrastructure is not fully complete yet, and has to be carefully evaluated first for bike centric studies
- The avg. bike speed has been set to match SrV2018 survey data (~10.3 km/h)
- New dashboards
- PT Transit viewer
- Emissions
- Noise

### 6.3 (2024-07)
- Include additional trip analysis and updated dashboard
- Mode share is now analyzed by age, income, employment, economic_status
Expand Down
76 changes: 62 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


JAR := matsim-berlin-*.jar
V := v6.3
V := v6.4
CRS := EPSG:25832

p := input/$V
Expand Down Expand Up @@ -38,6 +38,12 @@ input/facilities.gpkg: input/brandenburg.osm.pbf
--input $<\
--output $@

# This facility file is using an older version that matches the reference visitations more closely
input/ref_facilities.gpkg: input/facilities.osm.pbf
$(sc) prepare facility-shp\
--activity-mapping input/activity_mapping.json\
--input $<\
--output $@

input/PLR_2013_2020.csv:
curl https://instantatlas.statistik-berlin-brandenburg.de/instantatlas/interaktivekarten/kommunalatlas/Kommunalatlas.zip --insecure -o atlas.zip
Expand All @@ -53,8 +59,9 @@ $(berlin)/input/shp/Planungsraum_EPSG_25833.shp:

input/network.osm: input/brandenburg.osm.pbf

# Detailed network includes bikes as well
$(osmosis) --rb file=$<\
--tf accept-ways highway=motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary_link,secondary,tertiary,motorway_junction,residential,living_street,unclassified\
--tf accept-ways bicycle=designated highway=motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary_link,secondary,tertiary,motorway_junction,residential,living_street,unclassified,cycleway\
--bounding-polygon file="$p/area/area.poly"\
--used-node --wb input/network-detailed.osm.pbf

Expand All @@ -81,17 +88,17 @@ input/sumo.net.xml: input/network.osm
--no-internal-links --keep-edges.by-vclass passenger,truck,bicycle\
--remove-edges.by-vclass hov,tram,rail,rail_urban,rail_fast,pedestrian\
--output.original-names --output.street-names\
--osm.lane-access true --osm.bike-access true\
--osm.lane-access false --osm.bike-access false\
--osm.all-attributes\
--osm.extra-attributes tunnel,highway,traffic_sign,bus:lanes,bus:lanes:forward,bus:lanes:backward,cycleway,cycleway:right,cycleway:left\
--osm.extra-attributes smoothness,surface,crossing,tunnel,traffic_sign,bus:lanes,bus:lanes:forward,bus:lanes:backward,cycleway,cycleway:right,cycleway:left,bicycle\
--proj "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"\
--osm-files $< -o=$@


$p/berlin-$V-network.xml.gz: input/sumo.net.xml
$(sc) prepare network-from-sumo $< --target-crs $(CRS) --lane-restrictions REDUCE_CAR_LANES --output $@

$(sc) prepare clean-network $@ --output $@ --modes car,ride,truck --remove-turn-restrictions
$(sc) prepare clean-network $@ --output $@ --modes car,bike,ride,truck --remove-turn-restrictions

$(sc) prepare reproject-network\
--input $@ --output $@\
Expand All @@ -114,10 +121,23 @@ $p/berlin-$V-network.xml.gz: input/sumo.net.xml

$p/berlin-$V-network-with-pt.xml.gz: $p/berlin-$V-network.xml.gz
$(sc) prepare transit-from-gtfs --network $< --output=$p\
--name berlin-$V --date "2023-06-07" --target-crs $(CRS) \
$(germany)/gtfs/complete-pt-2023-06-06.zip\
--name berlin-$V --date "2024-11-19" --target-crs $(CRS) \
$(germany)/gtfs/complete-pt-2024-10-27.zip\
--copy-late-early\
--transform-stops org.matsim.prepare.pt.CorrectStopLocations\
--transform-routes org.matsim.prepare.pt.CorrectRouteTypes\
--transform-schedule org.matsim.application.prepare.pt.AdjustSameDepartureTimes\
--pseudo-network withLoopLinks\
--merge-stops mergeToParentAndRouteTypes\
--shp $p/pt-area/pt-area.shp

$(sc) prepare endless-circle-line\
--network $p/berlin-$V-network-with-pt.xml.gz\
--transit-schedule $p/berlin-$V-transitSchedule.xml.gz\
--transit-vehicles $p/berlin-$V-transitVehicles.xml.gz\
--output-transit-schedule $p/berlin-$V-transitSchedule.xml.gz\
--output-transit-vehicles $p/berlin-$V-transitVehicles.xml.gz

$p/berlin-$V-counts-vmz.xml.gz: $p/berlin-$V-network.xml.gz
$(sc) prepare counts-from-vmz\
--excel ../shared-svn/projects/matsim-berlin/berlin-v5.5/original_data/vmz_counts_2018/Datenexport_2018_TU_Berlin.xlsx\
Expand All @@ -128,10 +148,20 @@ $p/berlin-$V-counts-vmz.xml.gz: $p/berlin-$V-network.xml.gz
--target-crs $(CRS)\
--counts-mapping input/counts_mapping.csv

$p/berlin-$V-facilities.xml.gz: $p/berlin-$V-network.xml.gz input/facilities.gpkg
$p/berlin-$V-facilities.xml.gz: $p/berlin-$V-network.xml.gz input/facilities.gpkg $(berlin)/input/shp/Planungsraum_EPSG_25833.shp
$(sc) prepare facilities --network $< --shp $(word 2,$^)\
--facility-mapping input/facility_mapping.json\
--zones-shp $(word 3,$^)\
--output $@

$p/berlin-only-$V-100pct.plans.xml.gz: input/PLR_2013_2020.csv $(berlin)/input/shp/Planungsraum_EPSG_25833.shp input/facilities.gpkg
$(sc) prepare berlin-population\
--input $<\
--sample 1.0\
--shp $(word 2,$^) --shp-crs EPSG:25833\
--facilities $(word 3,$^) --facilities-attr resident\
--output $@

$p/berlin-only-$V-25pct.plans.xml.gz: input/PLR_2013_2020.csv $(berlin)/input/shp/Planungsraum_EPSG_25833.shp input/facilities.gpkg
$(sc) prepare berlin-population\
--input $<\
Expand Down Expand Up @@ -174,6 +204,7 @@ $p/berlin-initial-$V-25pct.plans.xml.gz: $p/berlin-activities-$V-25pct.plans.xml
--network $(word 3,$^)\
--shp $(germany)/vg5000/vg5000_ebenen_0101/VG5000_GEM.shp\
--commuter $(germany)/regionalstatistik/commuter.csv\
--berlin-commuter input/berlin-work-commuter.csv

# For debugging and visualization
$(sc) prepare downsample-population $@\
Expand Down Expand Up @@ -269,11 +300,15 @@ $p/berlin-$V-25pct.plans_cadyts.xml.gz:

# These depend on the output of optimization runs
$p/berlin-$V-25pct.plans-initial.xml.gz: $p/berlin-$V-facilities.xml.gz $p/berlin-$V-network.xml.gz $p/berlin-longHaulFreight-$V-25pct.plans.xml.gz
$(sc) prepare filter-relevant-agents\
--input $p/berlin-$V-25pct.plans_log_error.xml.gz --output $@\
--shp input/$V/area/area.shp\
$(sc) prepare scenario-cutout\
--population $p/berlin-$V-25pct.plans_cadyts.xml.gz\
--facilities $<\
--network $(word 2,$^)
--network $(word 2,$^)\
--output-population $@\
--output-network $p/network-cutout.xml.gz\
--output-facilities $p/facilities-cutout.xml.gz\
--input-crs $(CRS)\
--shp input/$V/area/area.shp

$(sc) prepare split-activity-types-duration\
--exclude commercial_start,commercial_end,freight_start,freight_end\
Expand All @@ -294,13 +329,18 @@ $p/berlin-$V-25pct.plans-initial.xml.gz: $p/berlin-$V-facilities.xml.gz $p/berli

$p/berlin-$V-10pct.plans.xml.gz:
$(sc) prepare clean-population\
--plans mode-choice-10pct-default-v2/runs/008/008.output_plans.xml.gz\
--plans mode-choice-10pct-baseline/runs/008/008.output_plans.xml.gz\
--remove-unselected-plans\
--output $@

$(sc) prepare downsample-population $@\
--sample-size 0.1\
--samples 0.03 0.01 0.001\
--samples 0.01 0.001\

$(sc) prepare clean-population\
--plans choice-experiments/baseline/runs/008/008.output_plans.xml.gz\
--remove-unselected-plans\
--output $(subst 10pct,3pct,$@)


$p/berlin-$V.drt-by-rndLocations-10000vehicles-4seats.xml.gz: $p/berlin-$V-network.xml.gz
Expand All @@ -311,6 +351,14 @@ $p/berlin-$V.drt-by-rndLocations-10000vehicles-4seats.xml.gz: $p/berlin-$V-netwo
--vehicles 10000\
--seats 4

$(sc) prepare create-drt-vehicles\
--network $<\
--shp "https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/berlin/berlin-$V/input/shp/berlin_inner_city.gpkg"\
--output $p/berlin-$V.\
--vehicles 500\
--seats 4


prepare-calibration: $p/berlin-cadyts-input-$V-25pct.plans.xml.gz $p/berlin-$V-network-with-pt.xml.gz $p/berlin-$V-counts-vmz.xml.gz
echo "Done"

Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[![Build Status](https://github.com/matsim-scenarios/matsim-berlin/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/matsim-scenarios/matsim-berlin/actions/workflows/build.yaml)
![license](https://img.shields.io/github/license/matsim-scenarios/matsim-berlin.svg)
![JDK](https://img.shields.io/badge/JDK-17+-green.svg)
![JDK](https://img.shields.io/badge/JDK-21+-green.svg)

# The MATSim Open Berlin Scenario
![Berlin MATSim network and agents)](scenarios/berlin-v5.5-10pct/visualization-berlin.png "Berlin MATSim network and agents")

![MATSim Open Berlin network, vehicles and activities](input/visualization.png "MATSim Open Berlin")

## About this project

Expand All @@ -13,9 +14,9 @@ This repository provides an open MATSim transport model for Berlin, provided by

Currently, there are multiple versions of the MATSim Open Berlin model:

### 10pct scenario (`input/v6.3`)
### 10pct scenario (`input/v6.4`)

This scenario contains both 10pct and 1pct sample of the Greater Berlin population; road capacities are accordingly reduced. The scenario is calibrated taking into consideration the traffic counts, modal split and mode-specific trip distance distributions.
This scenario contains a 10pct, 3pct and 1pct sample of the Greater Berlin population; road capacities are accordingly reduced. The scenario is calibrated taking into consideration the traffic counts, modal split and mode-specific trip distance distributions.


## Licenses
Expand All @@ -38,14 +39,14 @@ Handling of large files within git is not without problems (git lfs files are no

1. Open SimWrapper at https://simwrapper.github.io/site/ .
1. Select Explore Data Sources -> VSP Public-SVN .
1. Navigate to de -> berlin -> berlin-v6.3 (https://simwrapper.github.io/site/public/de/berlin/berlin-v6.3).
1. Navigate to de -> berlin -> berlin-v6.4 -> output (https://simwrapper.github.io/site/public/de/berlin/berlin-v6.4/output/berlin-v6.4-10pct/).
1. Enjoy the dashboards and visualizations.

### Run VIA on output files

1. Get VIA from https://www.simunto.com/via/. (There is a free license for a small number of agents; that will probably work but only display a small number of vehicles/agents.)
1. Go to https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/berlin/ .
1. Decide for a scenario that you find interesting (e.g. `berlin-v6.3`) and go into that directory.
1. Decide for a scenario that you find interesting (e.g. `berlin-v6.4`) and go into that directory.
1. Inside there, look for an `output-*` directory that you find interesting and go into that directory.
1. Download `*.output_network.xml.gz` and `*.output_events.xml.gz`. Best make sure that they do not uncompress, e.g. by "Download linked file as ...".
1. Get these files into VIA. This can be achieved in various ways; one is to open VIA and then drag the files from a file browser into VIA.
Expand Down Expand Up @@ -98,7 +99,7 @@ This will download all necessary dependencies (it might take a while the first t
java -jar [FILENAME].jar
``
1. A simple GUI should open.
1. In the GUI, click on the "Choose" button for configuration file. Navigate to one of the `scenario` directories and load one of the configuration files.
1. In the GUI, click on the "Choose" button for configuration file. Navigate to one of the `input` directories and load one of the configuration files.
1. Increase memory in the GUI.
1. Press the "Start MATSim" button. This should run MATSim. Note that MATSim accepts URLs as filenames in its config, so while the config files are part of the git repo, running them will pull additional material from our server.
1. "Open" the output directory. You can drag files into VIA as was already done above.
Expand All @@ -112,7 +113,7 @@ java -jar [FILENAME].jar

1. Set up the project in your IDE.
1. Make sure the project is configured as maven project.
1. Run the JAVA class `src/main/java/org/matsim/run/RunOpenBerlinScenario.java` or `src/main/java/org/matsim/gui/RunOpenBerlinScenarioGUI.java`.
1. Run the JAVA class `src/main/java/org/matsim/run/RunOpenBerlinScenario.java`.
1. "Open" the output directory. You can drag files into VIA as was already done above.
1. Edit the config file or adjust the run class. Re-run MATSim.
</details>
Expand Down
18 changes: 13 additions & 5 deletions input/activity_mapping.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"building": {
"hotel": ["work"],
"commercial": ["shop", "work", "delivery"],
"commercial": ["work", "delivery"],
"retail": ["shop", "work", "delivery"],
"supermarket": ["shop", "shop_daily", "dining", "work", "delivery"],
"industrial": ["work", "delivery"],
Expand All @@ -26,7 +26,14 @@
"college": ["edu_higher", "work"],
"sports_hall": ["leisure", "work"],
"stadium": ["leisure", "work"],
"apartments": ["resident"]
"garage": ["parking"],
"apartments": ["resident"],
"house": ["resident"],
"detached": ["resident"],
"semidetached_house": ["resident"],
"bungalow": ["resident"],
"terrace": ["resident"],
"residential": ["resident"]
},
"amenity": {
"bar": ["leisure", "work", "delivery", "dining"],
Expand Down Expand Up @@ -71,11 +78,12 @@
"post_depot": ["p_business", "work"],
"post_office": ["p_business", "work"],
"prison": ["p_business", "work"],
"townhall": ["p_business", "work"]
"townhall": ["p_business", "work"],
"parking": ["parking"]
},
"landuse": {
"commercial": ["shop", "work", "delivery"],
"industrial": ["shop", "work", "delivery", "depot"],
"commercial": ["work", "delivery"],
"industrial": ["work", "delivery", "depot"],
"retail": ["shop", "work", "delivery"],
"depot": ["depot"],
"port": ["depot"],
Expand Down
14 changes: 14 additions & 0 deletions input/facility_mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"work": ["work", "work_business"],
"shop": ["shop_other"],
"shop_daily": ["shop_other", "shop_daily"],
"leisure": ["leisure"],
"dining": ["dining"],
"edu_higher": ["edu_higher"],
"edu_prim": ["edu_primary", "edu_secondary"],
"edu_kiga": ["edu_kiga"],
"edu_other": ["edu_other"],
"p_business": ["personal_business", "work_business"],
"medical": ["personal_business"],
"religious": ["personal_business"]
}
Loading
Loading