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

Update MATSim #122

Merged
merged 1,743 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1743 commits
Select commit Hold shift + click to select a range
4a9c897
rename classes and interfaces to indicate that it deals with LspShipm…
kt86 Aug 13, 2024
bb73bfb
revert renaming inside lsps.xml file.
kt86 Aug 13, 2024
0ab5c10
Merge pull request #292 from matsim-vsp/kmt_2echelon4Diss
kt86 Aug 14, 2024
5fc4cec
store time in Attribute of LspShipment.
kt86 Aug 14, 2024
60b5140
move methods to Utils class
kt86 Aug 14, 2024
4ff74c8
WIP get rid of LspShipmentWithTime
kt86 Aug 14, 2024
a0f4e18
renaming
kt86 Aug 14, 2024
caa9e38
IMO, after scheduling, the outgoingElements must contain the shipment.
kt86 Aug 14, 2024
37ffad7
simplify calls
kt86 Aug 14, 2024
a1024e0
simplify assertions
kt86 Aug 14, 2024
cfdd81d
parameterized logging
kt86 Aug 14, 2024
aa704b4
remove deprecated setting of vehType
kt86 Aug 14, 2024
cd4e456
remove unused variables
kt86 Aug 14, 2024
38f18d9
cleanup imports
kt86 Aug 14, 2024
c513752
improve tests
kt86 Aug 14, 2024
463ec1f
add not null check
kt86 Aug 14, 2024
804b99d
java language level improvement
kt86 Aug 14, 2024
e2122a7
fix typos
kt86 Aug 14, 2024
908b496
remove LspShipmentWithTime.java
kt86 Aug 14, 2024
1476110
fix typo
kt86 Aug 14, 2024
9b2e27c
rename tuple to lspShipment, because the tuple "ShipmentWithTime" no …
kt86 Aug 14, 2024
1f901f0
remove unused var from method signature
kt86 Aug 14, 2024
28217d0
some encapsulation. fix and comment test
kt86 Aug 14, 2024
d583037
remove the temporarily added get/setTime(..) methods. They where only…
kt86 Aug 14, 2024
b052bd9
Merge pull request #293 from matsim-vsp/kmt_2echelon4Diss
kt86 Aug 14, 2024
b8b0c07
minor internal simplification
kt86 Aug 14, 2024
2057918
remove LSPCarrierPair and the list storing it. This is not needed in …
kt86 Aug 16, 2024
1293b86
build new object instead of just handing over the object.
kt86 Aug 16, 2024
37d94ef
test for values instead of objects
kt86 Aug 16, 2024
4bae9b0
Merge pull request #294 from matsim-vsp/kmt_2echelon4Diss
kt86 Aug 16, 2024
7235198
Bump org.matsim:matsim-all from 2025.0-2024w33 to 2025.0-2024w34
dependabot[bot] Aug 19, 2024
c105e0a
Merge pull request #296 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Aug 19, 2024
bcfb579
comment
kt86 Aug 21, 2024
17eee39
towards using shipments for the delivery carrier.
kt86 Aug 23, 2024
c95d985
not working now.. needs infrastructure for EventHandling..
kt86 Aug 23, 2024
12be97c
Bump org.matsim:matsim-all from 2025.0-2024w34 to 2025.0-2024w35
dependabot[bot] Aug 26, 2024
d11aac6
Merge pull request #298 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Aug 26, 2024
bd80bfa
WIP commiting just to change the workspace..
kt86 Aug 30, 2024
62fda43
for debugging
kt86 Sep 2, 2024
f098eb9
pass money and additionalScore events through to carrierScoringFunction
kainagel Sep 2, 2024
44e3f8d
Bump org.matsim:matsim-all from 2025.0-2024w35 to 2025.0-2024w36
dependabot[bot] Sep 2, 2024
322cddb
Merge pull request #299 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Sep 2, 2024
6ddf8ea
renaming
kt86 Sep 2, 2024
6569879
pom to shnapshot
kt86 Sep 2, 2024
c60206d
avoid null pointers
kt86 Sep 2, 2024
134c896
cleanup
kt86 Sep 2, 2024
531763d
use MATSim PR version 3443, with the fix on matsim-libs
kt86 Sep 2, 2024
7671c49
Merge branch 'main' into kmt_scoringWithToll
kt86 Sep 3, 2024
e8e2bb5
Merge pull request #301 from matsim-vsp/kmt_scoringWithToll
kt86 Sep 3, 2024
a13d2ec
Merge remote-tracking branch 'origin/main' into kmt_2echelon4Diss
kt86 Sep 3, 2024
b8a7fad
Merge branch 'kmt_2echelon4Diss' of github.com:matsim-vsp/logistics i…
kt86 Sep 5, 2024
943d4fb
Bump project.parent.version from 2025.0-PR3443 to 2025.0-2024w37
dependabot[bot] Sep 9, 2024
b708cc4
Merge pull request #303 from matsim-vsp/dependabot/maven/project.pare…
kt86 Sep 9, 2024
088dff7
Bump org.matsim:matsim-all from 2025.0-2024w37 to 2025.0-2024w38
dependabot[bot] Sep 16, 2024
f42cbf9
Merge pull request #304 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Sep 16, 2024
e4b1748
Merge remote-tracking branch 'origin/main' into kmt_2echelon4Diss
kt86 Sep 17, 2024
5c7d593
Merge branch 'kmt_2echelon4Diss' of github.com:matsim-vsp/logistics i…
kt86 Sep 17, 2024
9da043a
Fix was in MATSim-PR3443
kt86 Sep 17, 2024
71a8d42
add CarrierAnalysis
kt86 Sep 18, 2024
5d4dd0c
bind CarrierModule in LspModule
kt86 Sep 18, 2024
be32d3f
Merge pull request #306 from matsim-vsp/kmt_fixScoring
kt86 Sep 18, 2024
5b85b8e
toll value is already negative ... thus add it to the score instead o…
kt86 Sep 18, 2024
cacb76c
score all toll events -> scoring is consistent to the events
kt86 Sep 18, 2024
cb262be
runs setting and cleanup (e.g., avoid overriding of LastMatsimIteration)
kt86 Sep 18, 2024
17d4960
sun setting, and extract method to make main(..) shorter
kt86 Sep 19, 2024
f39b714
align both run classes
kt86 Sep 19, 2024
92c001f
fix scoring: Only toll the current carrier!
kt86 Sep 19, 2024
0ba6b1e
logging
kt86 Sep 19, 2024
1db3e43
comment, that both directions are tolled...
kt86 Sep 20, 2024
e6c62f4
adapt test inputs, to updated scoring (toll each time a toll link is …
kt86 Sep 20, 2024
e182fb0
missed to commit renaming in all classes
kt86 Sep 20, 2024
199b022
Merge branch 'main' into kmt_fixScoring
kt86 Sep 20, 2024
c23af36
Merge pull request #307 from matsim-vsp/kmt_fixScoring
kt86 Sep 20, 2024
a23c866
Bump org.matsim:matsim-all from 2025.0-2024w38 to 2025.0-2024w39
dependabot[bot] Sep 23, 2024
ac6975b
Merge pull request #309 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Sep 23, 2024
041eeb5
Merge remote-tracking branch 'origin/main' into kmt_2echelon4Diss
kt86 Sep 23, 2024
51e3896
Bump project.parent.version from 2025.0-2024w39 to 2025.0-2024w40
dependabot[bot] Sep 30, 2024
1f08596
adjust to changes in MATSim-libs
kt86 Sep 30, 2024
2730985
Merge pull request #310 from matsim-vsp/dependabot/maven/project.pare…
kt86 Sep 30, 2024
3488e69
Bump org.matsim:matsim-all from 2025.0-2024w40 to 2025.0-2024w41
dependabot[bot] Oct 7, 2024
ce37c8e
Merge pull request #313 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Oct 7, 2024
e042693
Merge remote-tracking branch 'origin/main' into kmt_2echelon4Diss
kt86 Oct 10, 2024
89283a3
some minor adaptions towards Shipment-based solving. some comments
kt86 Oct 10, 2024
c79b3f4
towards using instanceof
kainagel Oct 10, 2024
1ea559b
some more work, check that serviceBased still works
kt86 Oct 11, 2024
a087058
more forward
kt86 Oct 11, 2024
92b13f1
replace if by switch
kt86 Oct 11, 2024
f358399
implement ShipmentBased
kt86 Oct 11, 2024
04f95ee
extract method, comment
kt86 Oct 11, 2024
7082b91
move setting to config setup
kt86 Oct 11, 2024
5019bd7
Bump project.parent.version from 2025.0-2024w41 to 2025.0-2024w42
dependabot[bot] Oct 14, 2024
28fd588
Merge pull request #315 from matsim-vsp/dependabot/maven/project.pare…
kt86 Oct 14, 2024
fe7bf4b
Bump org.matsim:matsim-all from 2025.0-2024w42 to 2025.0-2024w46
dependabot[bot] Nov 11, 2024
90831d3
update based on changes in MATSim-libs
kt86 Nov 11, 2024
3c091b6
add networkMode to vehicleType. Do not use CarrierVehicleType.Builder…
kt86 Nov 12, 2024
e0dda3a
add networkMode to vehicleType.
kt86 Nov 12, 2024
5a86078
add networkMode to vehicleType. Do not use CarrierVehicleType.Builder…
kt86 Nov 12, 2024
c6e9c6c
add networkMode to vehicleType. Do not use CarrierVehicleType.Builder…
kt86 Nov 12, 2024
a31d53c
fix typo
kt86 Nov 12, 2024
2d3e661
update pom to use fix in #3560
kt86 Nov 12, 2024
af4fe05
comment out runCarrieranalysis, because it is broken somewhere
kt86 Nov 12, 2024
38d2f47
Merge pull request #325 from matsim-vsp/dependabot/maven/org.matsim-m…
kt86 Nov 12, 2024
0656a11
reactivate runCarrieranalysis,after fix in matsim-libs#3561
kt86 Nov 13, 2024
0a26470
Merge pull request #327 from matsim-vsp/326-re-enable-the-analysis
kt86 Nov 13, 2024
23bd646
comments after Kai/Kai mtg
kt86 Nov 15, 2024
3f62ec4
Merge remote-tracking branch 'refs/remotes/origin/main' into kmt_2ech…
kt86 Nov 15, 2024
5bcdeaf
remove dependency to vsp contrib, as it is no longer needed
kt86 Nov 15, 2024
198861c
update import for annotation
kt86 Nov 15, 2024
aed7ada
remove NotNull annotation
kt86 Nov 15, 2024
97b6937
remove dependency to vsp contrib, as it is no longer needed
kt86 Nov 15, 2024
140fc9d
comments after Kai/Kai mtg
kt86 Nov 15, 2024
530e21f
Merge pull request #329 from matsim-vsp/kmt_removeDependency
kt86 Nov 15, 2024
e96dac3
Merge pull request #330 from matsim-vsp/kmt_comment
kt86 Nov 15, 2024
0c355d1
fix indentation (and therefore syntax) error
kt86 Nov 22, 2024
c931692
Merge pull request #332 from matsim-vsp/fix-ghActions
kt86 Nov 22, 2024
bd1261e
Remove redundant zoneToLinksMap
steffenaxer Nov 25, 2024
4a604f7
Merge remote-tracking branch 'origin/main' into kmt_2echelon4Diss
kt86 Nov 25, 2024
92d6db6
Merge pull request #333 from matsim-vsp/kmt_2echelon4Diss
kt86 Nov 25, 2024
57a30d2
Merge branch 'master' into SquareGridZoneSystemFaster
nkuehnel Nov 25, 2024
4e1e6de
Merge Logistics repository into freight contrib
kt86 Nov 25, 2024
98e24e8
Merge branch 'master' into SquareGridZoneSystemFaster
nkuehnel Nov 25, 2024
6a0ec7d
Update trigger for DTD deployment job. Run on merged PRs; fix syntax …
kt86 Nov 26, 2024
d25a1e9
formatting.
kt86 Nov 26, 2024
9faf026
re-add missing interface
kt86 Nov 26, 2024
11372e7
Merge branch 'master' into kmt_UpdateDtdToTriggerWorkflow
jfbischoff Nov 26, 2024
9dbaa61
Merge branch 'master' into FixDtdPublication
jfbischoff Nov 26, 2024
488d61e
add (example) network file for logistics to matsim-examples
kt86 Nov 26, 2024
37ba3ee
Merge branch 'master' into SquareGridZoneSystemFaster
steffenaxer Nov 26, 2024
3f66f59
Merge pull request #3580 from steffenaxer/SquareGridZoneSystemFaster
steffenaxer Nov 26, 2024
7be228c
Merge branch 'master' into FixDtdPublication
jfbischoff Nov 26, 2024
22e891b
Merge pull request #3585 from matsim-org/FixDtdPublication
jfbischoff Nov 26, 2024
5eb6b61
Merge branch 'master' into kmt_UpdateDtdToTriggerWorkflow
kt86 Nov 26, 2024
d4daf5d
Merge pull request #3586 from matsim-org/kmt_UpdateDtdToTriggerWorkflow
kt86 Nov 26, 2024
42f95f5
Merge branch 'master' into kmt_addlogisticsNetwork2MatsimExamples
kt86 Nov 26, 2024
1513628
Merge pull request #3591 from kt86/kmt_addlogisticsNetwork2MatsimExam…
kt86 Nov 26, 2024
4c346e6
Fix error in deploy-dtds.yaml
kt86 Nov 26, 2024
b2de982
Merge pull request #3595 from matsim-org/kt86-patch-1
kt86 Nov 26, 2024
278ed49
Add empty line to trigger deployment job
kt86 Nov 26, 2024
b438ee1
Merge pull request #3596 from matsim-org/kt86-patch-1
kt86 Nov 26, 2024
411b7b0
Update deploy-dtds.yaml
kt86 Nov 27, 2024
6e42a1f
Merge pull request #3597 from matsim-org/kt86-patch-1
kt86 Nov 27, 2024
0b0c7ba
remove empty line to trigger workflow
kt86 Nov 27, 2024
cd907df
Merge pull request #3598 from matsim-org/kt86-patch-2
kt86 Nov 27, 2024
05146bc
Add a CarrierJob interface and put CarrierService and CarrierShipment…
kt86 Nov 27, 2024
3263dd2
Merge branch 'master' into kmt_addCarrierJobInterface
kt86 Nov 27, 2024
587540c
move test-input
kt86 Nov 26, 2024
0dbca05
update README.md
kt86 Nov 26, 2024
3a22fe5
Merge branch 'matsim-org:master' into kmt_mergeLogisticsProjectIntoMA…
kt86 Nov 27, 2024
a0f1c01
disable macOS build
jfbischoff Nov 28, 2024
7c38271
Merge pull request #3603 from matsim-org/disable-mac-os-build
jfbischoff Nov 28, 2024
9708c11
Merge branch 'master' into kmt_mergeLogisticsProjectIntoMATSim2
kt86 Nov 28, 2024
adadbe4
Merge pull request #3602 from kt86/kmt_mergeLogisticsProjectIntoMATSim2
kt86 Nov 28, 2024
bb8ee1c
first steps of cleanup
rewertvsp Nov 29, 2024
8365a69
Merge branch 'master' into cleanupDeprecatedInFreight
rewertvsp Nov 29, 2024
8562c48
Correct misspelled CarrierControler... to CarrierController... ; Use …
kt86 Dec 1, 2024
f2cad38
optimize imports
kt86 Dec 1, 2024
e81ec2a
optimize imports
kt86 Dec 1, 2024
65846ba
fix compile error
kt86 Dec 1, 2024
900ed64
also move test input
kt86 Dec 1, 2024
b5c1e5b
Allow absolute bounds in freespeed calibration (#3615)
rakow Dec 2, 2024
3c09559
Merge branch 'master' into cleanupDeprecatedInFreight
rewertvsp Dec 2, 2024
95dee83
Merge branch 'master' into kmt_addCarrierJobInterface
kt86 Dec 2, 2024
166a09f
Merge pull request #3599 from matsim-org/kmt_addCarrierJobInterface
kt86 Dec 2, 2024
883ad57
DRT: add minimum allowed detour, remove misleading consistency check/…
nkuehnel Dec 2, 2024
8aa7e7f
add consistency check for minimum/maximum allowed detour
nkuehnel Dec 2, 2024
595e040
Merge branch 'master' into 3513-freight-rename-carriercontrolerutils
kt86 Dec 2, 2024
d60c92a
Merge pull request #3614 from matsim-org/3513-freight-rename-carrierc…
kt86 Dec 2, 2024
04ccc72
poms in contribs: use ${project.parent.version} instead of i) hardcod…
kt86 Dec 2, 2024
eae7c42
Merge pull request #3618 from matsim-org/3575-poms-replace-hardcoded-…
kt86 Dec 2, 2024
c623484
Merge branch 'refs/heads/master' into cleanupDeprecatedInFreight
rewertvsp Dec 3, 2024
ff71aa6
integrateUnitsForFuelConsumption
rewertvsp Dec 3, 2024
9c6378e
remove Builder with empty tourId
rewertvsp Dec 3, 2024
1148e1d
remove Builder with empty tourId
rewertvsp Dec 3, 2024
548bb14
remove unsupported carrier writer
rewertvsp Dec 3, 2024
c72e436
remove unneeded CarrierVehicleTypeLoader.java
rewertvsp Dec 3, 2024
994ebf5
Merge pull request #3619 from matsim-org/specifyFuelConsumptionForVeh…
rewertvsp Dec 3, 2024
b6f46e4
remove deprecated Builder method for CarrierVehicleType.java
rewertvsp Dec 3, 2024
11a43b0
remove deprecated und unneeded set type methods
rewertvsp Dec 3, 2024
122398c
remove deleted loader
rewertvsp Dec 3, 2024
14fa257
Merge branch 'master' into drtMinDetour
mfrawley-moia Dec 3, 2024
8cf103f
Merge branch 'master' into cleanupDeprecatedInFreight
rewertvsp Dec 3, 2024
4d48919
use recent vehicle engineInformation methods
rewertvsp Dec 3, 2024
83b29c5
delete deprecated methods
rewertvsp Dec 3, 2024
3d5a88d
use non deprecated Thread method
rewertvsp Dec 3, 2024
82bd72b
rename depreacated vehicleTypes file
rewertvsp Dec 3, 2024
4740d6d
remove vehicleTypes duplicates to reduce inputs
rewertvsp Dec 3, 2024
b6541d2
use recent EngineInformation setter
rewertvsp Dec 3, 2024
b98f7b3
update events for testing
rewertvsp Dec 3, 2024
afea07d
use recent EngineInformation setter
rewertvsp Dec 3, 2024
938391e
update javadoc parameter descriptions
rewertvsp Dec 3, 2024
709a743
add vehicleType to carrier load analysis
rewertvsp Dec 3, 2024
3617d8e
Merge pull request #3621 from matsim-org/addVehicleTypeToFreightLoadA…
rewertvsp Dec 3, 2024
7dc1e14
Merge branch 'master' into cleanupDeprecatedInFreight
kt86 Dec 3, 2024
46dde5d
Merge pull request #3620 from matsim-org/cleanupDeprecatedInFreight
kt86 Dec 3, 2024
815b29f
fix mal-formatted xsd file
kt86 Dec 3, 2024
adc35ad
minor change: write out string
kt86 Dec 3, 2024
20ed5dd
minor cleanup
kt86 Dec 3, 2024
ef8fe25
code style
kt86 Dec 3, 2024
3882734
inline local variable
kt86 Dec 3, 2024
ed0e9ed
make final
kt86 Dec 3, 2024
6258a0b
return void
kt86 Dec 3, 2024
407bd18
rm not needed throw declarations
kt86 Dec 3, 2024
56cc42b
correct order
kt86 Dec 3, 2024
ed96552
check for null
kt86 Dec 3, 2024
ed5f983
rm redundant initializer
kt86 Dec 3, 2024
3fe59a0
rm redundant casts
kt86 Dec 3, 2024
f74e486
java doc improvements
kt86 Dec 3, 2024
caa677f
logging improvements
kt86 Dec 3, 2024
28326df
extract variable
kt86 Dec 3, 2024
a6b45c1
language/grammar improvement
kt86 Dec 3, 2024
a97c1c3
language/grammar improvement
kt86 Dec 3, 2024
2268f13
Merge pull request #3623 from matsim-org/kmt-branch
kt86 Dec 3, 2024
239b546
feat(drt): fix letting agent stuck after rejected prebooking (#3625)
sebhoerl Dec 3, 2024
500df0b
feat(drt): fix letting agent stuck after rejected prebooking (#3625)
sebhoerl Dec 3, 2024
1c0f0ff
feat(drt): fix letting agent stuck after rejected prebooking (#3625)
sebhoerl Dec 3, 2024
618b67d
feat(ev): modularize charging strategies (#3587)
sebhoerl Dec 3, 2024
8ef78dc
Merge branch 'master' into drtMinDetour
nkuehnel Dec 4, 2024
f9eae62
Improve PT pseudo network with loop links (#3628)
rakow Dec 5, 2024
54a8d6d
Merge branch 'master' into drtMinDetour
nkuehnel Dec 5, 2024
53933b6
Merge pull request #3616 from moia-oss/drtMinDetour
nkuehnel Dec 5, 2024
14f15b2
fix(drt): names in attribute-based prebooking (#3629)
sebhoerl Dec 5, 2024
1c9bf2f
Merge branch 'master' into zoneBasedRebalancing
nkuehnel Dec 6, 2024
fd82b8f
Merge branch 'master' into zoneBasedRebalancing
nkuehnel Dec 6, 2024
78bf6b7
Merge pull request #3579 from moia-oss/zoneBasedRebalancing
nkuehnel Dec 6, 2024
bee9a70
feat(ev): add charging priorities and reservations (#3632)
sebhoerl Dec 6, 2024
9c30281
fix(ev): unqueuing a vehicle (#3633)
sebhoerl Dec 7, 2024
c6e1bf5
feat/fix(ev): minor changes (#3634)
sebhoerl Dec 7, 2024
5f58a97
calculate correct speed when using loop links (#3636)
rakow Dec 7, 2024
77bf4a4
Fixed ConcurrentModificationException in scenario-cutout util (#3624)
Aleksander1234519 Dec 11, 2024
cc4c4e0
add parking tests for random and benenson
paulheinr Nov 26, 2024
53d5f96
move parking tests
paulheinr Nov 26, 2024
7cda747
make benenson test deterministic
paulheinr Nov 26, 2024
d1919d6
make parking tests acutally test parking
paulheinr Nov 26, 2024
f03dd91
adapt parking tests and refactor FacilityBasedParkingManager
paulheinr Nov 27, 2024
0a7575c
add helpful development methods to MatsimTestUtils
paulheinr Nov 27, 2024
58ba8fb
refactored FacilityBasedParkingManager for readability
paulheinr Nov 27, 2024
1acda04
add test cases with parking only at facilities
paulheinr Nov 28, 2024
ebd7b5d
moved parking tests
paulheinr Nov 28, 2024
b498947
left some comments
paulheinr Nov 28, 2024
d67ce8a
adapt readme
paulheinr Dec 11, 2024
96a0461
Merge pull request #3637 from matsim-org/parking-tests
paulheinr Dec 11, 2024
27867b9
update distanceConstraint
rewertvsp Dec 16, 2024
9d7491b
add columns for load analysis
rewertvsp Dec 16, 2024
9e014f2
add logging
rewertvsp Dec 16, 2024
d63bd25
Merge pull request #3639 from matsim-org/updateFreightDistanceConstraint
rewertvsp Dec 16, 2024
d2c740f
Merge branch 'refs/heads/master' into updateFreightAnalysis
rewertvsp Dec 16, 2024
d66b1c5
adjust resulting test
rewertvsp Dec 16, 2024
02d6485
Merge pull request #3641 from matsim-org/updateFreightAnalysis
rewertvsp Dec 16, 2024
426d78c
IMC Trip Score Estimator (#3642)
rakow Dec 16, 2024
bea85e8
Merge branch 'master' of github.com:matsim-org/matsim-libs
nkuehnel Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 6 additions & 4 deletions .github/workflows/deploy-dtds.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: deploy-dtds-on-website

on:
push:
branches:
- master
pull_request:
types:
- closed
paths:
- matsim/src/main/resources/dtd
- 'matsim/src/main/resources/dtd/**'

jobs:
rsync-dtds:
if: github.event.pull_request.merged == true # only if PR closed by merging
name: sync DTDs to website
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: rsync dtds
uses: burnett01/[email protected]
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/full-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest]
#os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Prepare git
Expand Down
6 changes: 3 additions & 3 deletions contribs/accessibility/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>matrixbasedptrouter</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>roadpricing</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>net.sf.trove4j</groupId>
Expand Down Expand Up @@ -70,7 +70,7 @@
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>analysis</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.matsim.contrib</groupId>-->
Expand Down
2 changes: 1 addition & 1 deletion contribs/analysis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>roadpricing</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.osgeo</groupId>
Expand Down
18 changes: 9 additions & 9 deletions contribs/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,37 @@
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>otfvis</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>osm</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>sumo</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>analysis</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>emissions</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>noise</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>freight</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
<exclusions>
<!-- Logging levels are all messed up without this exclusion -->
<exclusion>
Expand All @@ -87,7 +87,7 @@
<dependency>
<groupId>com.github.matsim-org</groupId>
<artifactId>gtfs2matsim</artifactId>
<version>47b0802a29</version>
<version>19f1676fc6</version>
<exclusions>
<!-- Exclude unneeded dependencies and these with known CVE -->
<exclusion>
Expand Down Expand Up @@ -151,7 +151,7 @@
<dependency>
<groupId>org.matsim.contrib</groupId>
<artifactId>dvrp</artifactId>
<version>2025.0-SNAPSHOT</version>
<version>${project.parent.version}</version>
<scope>compile</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public class ApplyNetworkParams implements MATSimAppCommand {
@CommandLine.Option(names = "--model", description = "Reference to the network model class", required = true)
private Class<? extends NetworkModel> modelClazz;

@CommandLine.Option(names = "--factor-bounds", split = ",", description = "Speed factor limits (lower,upper bound)", defaultValue = NetworkParamsOpt.DEFAULT_FACTOR_BOUNDS)
@CommandLine.Option(names = "--factor-bounds", split = ",", description = "Speed factor limits (lower, upper bound). " +
"Can be negative to indicate absolute speed bounds (in km/h)", defaultValue = NetworkParamsOpt.DEFAULT_FACTOR_BOUNDS)
private double[] speedFactorBounds;

@CommandLine.Option(names = "--capacity-bounds", split = ",", defaultValue = "0.4,0.6,0.8",
Expand Down Expand Up @@ -234,23 +235,40 @@ private boolean applyFreeSpeed(Link link, Feature ft) {
return false;
}

double allowedSpeed = (double) link.getAttributes().getAttribute("allowed_speed");
double freeSpeed = allowedSpeed * speedFactor;

boolean modified = false;

if (speedFactor > speedFactorBounds[1]) {
if (speedFactor > speedFactorBounds[1] && speedFactorBounds[1] >= 0) {
log.warn("Reducing speed factor on {} from {} to {}", link.getId(), speedFactor, speedFactorBounds[1]);
speedFactor = speedFactorBounds[1];
modified = true;
}

// Use absolute bound for speed
if (freeSpeed > -speedFactorBounds[1]/3.6 && speedFactorBounds[1] < 0) {
log.warn("Reducing speed on {} from {} to {}", link.getId(), freeSpeed, -speedFactorBounds[1]/3.6);
speedFactor = (-speedFactorBounds[1] / 3.6) / allowedSpeed;
modified = true;
}

// Threshold for very low speed factors
if (speedFactor < speedFactorBounds[0]) {
if (speedFactor < speedFactorBounds[0] && speedFactorBounds[0] >= 0) {
log.warn("Increasing speed factor on {} from {} to {}", link, speedFactor, speedFactorBounds[0]);
speedFactor = speedFactorBounds[0];
modified = true;
}

double freeSpeed = (double) link.getAttributes().getAttribute("allowed_speed") * speedFactor;
// Absolute negative speed factor
if (freeSpeed < -speedFactorBounds[0]/3.6 && speedFactorBounds[0] < 0) {
log.warn("Increasing speed on {} from {} to {}", link, freeSpeed, -speedFactorBounds[0]/3.6);
speedFactor = (-speedFactorBounds[0] / 3.6) / allowedSpeed;
modified = true;
}

// Recalculate with updated speed factor
freeSpeed = allowedSpeed * speedFactor;
freeSpeed = BigDecimal.valueOf(freeSpeed).setScale(3, RoundingMode.HALF_EVEN).doubleValue();

if (decrease && freeSpeed > link.getFreespeed())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,27 @@ static Result applyAndEvaluateParams(
speedFactor = speedModel.predict(ft.features(), ft.categories());

// apply lower and upper bound
speedFactor = Math.max(speedFactorBounds[0], speedFactor);
speedFactor = Math.min(speedFactorBounds[1], speedFactor);
if (speedFactorBounds[0] >= 0)
speedFactor = Math.max(speedFactorBounds[0], speedFactor);

if (speedFactorBounds[1] >= 0)
speedFactor = Math.min(speedFactorBounds[1], speedFactor);

attributes.put(link.getId(), speedModel.getData(ft.features(), ft.categories()));

link.setFreespeed(allowedSpeed * speedFactor);
double freespeed = allowedSpeed * speedFactor;

// Check absolute bounds on the freespeed
if (speedFactorBounds[0] < 0 && freespeed < -speedFactorBounds[0]/3.6) {
freespeed = -speedFactorBounds[0]/3.6;
speedFactor = freespeed / allowedSpeed;
}
if (speedFactorBounds[1] < 0 && freespeed > -speedFactorBounds[1]/3.6) {
freespeed = -speedFactorBounds[1]/3.6;
speedFactor = freespeed / allowedSpeed;
}

link.setFreespeed(freespeed);
link.getAttributes().putAttribute("speed_factor", speedFactor);

} else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public class FreespeedOptServer implements MATSimAppCommand {
@CommandLine.Parameters(arity = "1..*", description = "Input validation files loaded from APIs")
private List<String> validationFiles;

@CommandLine.Option(names = "--factor-bounds", split = ",", description = "Speed factor limits (lower,upper bound)", defaultValue = NetworkParamsOpt.DEFAULT_FACTOR_BOUNDS)
@CommandLine.Option(names = "--factor-bounds", split = ",", description = "Speed factor limits (lower, upper bound). " +
"Can be negative to indicate absolute speed bounds (in km/h)", defaultValue = NetworkParamsOpt.DEFAULT_FACTOR_BOUNDS)
private double[] speedFactorBounds;

@CommandLine.Option(names = "--ref-hours", description = "Reference hours", defaultValue = "3,21", split = ",")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.matsim.core.utils.io.IOUtils;
import org.matsim.pt.transitSchedule.api.*;
import org.matsim.pt.utils.CreatePseudoNetwork;
import org.matsim.pt.utils.CreatePseudoNetworkWithLoopLinks;
import org.matsim.pt.utils.TransitScheduleValidator;
import org.matsim.vehicles.*;
import picocli.CommandLine;
Expand Down Expand Up @@ -85,8 +86,8 @@ public class CreateTransitScheduleFromGtfs implements MATSimAppCommand {
@CommandLine.Option(names = "--transform-schedule", description = "Fully qualified class name to a Consumer<TransitSchedule> to be executed after the schedule was created", arity = "0..*", split = ",")
private List<Class<?>> transformSchedule;

@CommandLine.Option(names = "--merge-stops", description = "Whether stops should be merged by coordinate")
private boolean mergeStops;
@CommandLine.Option(names = "--merge-stops", description = "Whether stops should be merged by coordinate", defaultValue = "doNotMerge")
private GtfsConverter.MergeGtfsStops mergeStops;

@CommandLine.Option(names = "--prefix", description = "Prefixes to add to the gtfs ids. Required if multiple inputs are used and ids are not unique.", split = ",")
private List<String> prefixes = new ArrayList<>();
Expand All @@ -100,10 +101,29 @@ public class CreateTransitScheduleFromGtfs implements MATSimAppCommand {
@CommandLine.Option(names = "--shp-crs", description = "Overwrite coordinate system of the shape file")
private String shpCrs;

@CommandLine.Option(names = "--pseudo-network", description = "Define how the pseudo network should be created", defaultValue = "singleLinkBetweenStops")
private PseudoNetwork pseudoNetwork;


public static void main(String[] args) {
System.exit(new CommandLine(new CreateTransitScheduleFromGtfs()).execute(args));
}

private static void addHbefaMapping(VehicleType vehicleType, HbefaVehicleCategory category) {
EngineInformation carEngineInformation = vehicleType.getEngineInformation();
VehicleUtils.setHbefaVehicleCategory(carEngineInformation, String.valueOf(category));
VehicleUtils.setHbefaTechnology(carEngineInformation, "average");
VehicleUtils.setHbefaSizeClass(carEngineInformation, "average");
VehicleUtils.setHbefaEmissionsConcept(carEngineInformation, "average");
vehicleType.setNetworkMode(TransportMode.pt);
}

private static void increaseLinkFreespeedIfLower(Link link, double newFreespeed) {
if (link.getFreespeed() < newFreespeed) {
link.setFreespeed(newFreespeed);
}
}

@Override
public Integer call() throws Exception {

Expand Down Expand Up @@ -183,6 +203,13 @@ public Integer call() throws Exception {

Scenario ptScenario = getScenarioWithPseudoPtNetworkAndTransitVehicles(network, scenario.getTransitSchedule(), "pt_");

for (TransitLine line : new ArrayList<>(scenario.getTransitSchedule().getTransitLines().values())) {
if (line.getRoutes().isEmpty()) {
log.warn("Line {} with no routes removed.", line.getId());
scenario.getTransitSchedule().removeTransitLine(line);
}
}

if (validate) {
//Check schedule and network
TransitScheduleValidator.ValidationResult checkResult = TransitScheduleValidator.validateAll(ptScenario.getTransitSchedule(), ptScenario.getNetwork());
Expand Down Expand Up @@ -237,14 +264,19 @@ private Predicate<Stop> createFilter(int i) throws Exception {
/**
* Creates the pt scenario and network.
*/
private static Scenario getScenarioWithPseudoPtNetworkAndTransitVehicles(Network network, TransitSchedule schedule, String ptNetworkIdentifier) {
private Scenario getScenarioWithPseudoPtNetworkAndTransitVehicles(Network network, TransitSchedule schedule, String ptNetworkIdentifier) {
ScenarioUtils.ScenarioBuilder builder = new ScenarioUtils.ScenarioBuilder(ConfigUtils.createConfig());
builder.setNetwork(network);
builder.setTransitSchedule(schedule);
Scenario scenario = builder.build();

// add pseudo network for pt
new CreatePseudoNetwork(scenario.getTransitSchedule(), scenario.getNetwork(), ptNetworkIdentifier, 0.1, 100000.0).createNetwork();
switch (pseudoNetwork) {
case singleLinkBetweenStops ->
new CreatePseudoNetwork(scenario.getTransitSchedule(), scenario.getNetwork(), ptNetworkIdentifier, 0.1, 100000.0).createNetwork();
case withLoopLinks ->
new CreatePseudoNetworkWithLoopLinks(scenario.getTransitSchedule(), scenario.getNetwork(), ptNetworkIdentifier, 0.1, 100000.0).createNetwork();
}

// create TransitVehicle types
// see https://svn.vsp.tu-berlin.de/repos/public-svn/publications/vspwp/2014/14-24/ for veh capacities
Expand Down Expand Up @@ -449,8 +481,12 @@ private static Scenario getScenarioWithPseudoPtNetworkAndTransitVehicles(Network
// so we need to add time for passengers to board and alight
double minStopTime = 30.0;

List<Id<Link>> routeIds = new LinkedList<>();
routeIds.add(route.getRoute().getStartLinkId());
routeIds.addAll(route.getRoute().getLinkIds());
routeIds.add(route.getRoute().getEndLinkId());

for (int i = 1; i < routeStops.size(); i++) {
// TODO cater for loop link at first stop? Seems to just work without.
TransitRouteStop routeStop = routeStops.get(i);
// if there is no departure offset set (or infinity), it is the last stop of the line,
// so we don't need to care about the stop duration
Expand All @@ -462,8 +498,23 @@ private static Scenario getScenarioWithPseudoPtNetworkAndTransitVehicles(Network
// Math.max to avoid negative values of travelTime
double travelTime = Math.max(1, routeStop.getArrivalOffset().seconds() - lastDepartureOffset - 1.0 -
(stopDuration >= minStopTime ? 0 : (minStopTime - stopDuration)));
Link link = network.getLinks().get(routeStop.getStopFacility().getLinkId());
increaseLinkFreespeedIfLower(link, link.getLength() / travelTime);


Id<Link> stopLink = routeStop.getStopFacility().getLinkId();
List<Id<Link>> subRoute = new LinkedList<>();
do {
Id<Link> linkId = routeIds.removeFirst();
subRoute.add(linkId);
} while (!subRoute.contains(stopLink));

List<? extends Link> links = subRoute.stream().map(scenario.getNetwork().getLinks()::get)
.toList();

double length = links.stream().mapToDouble(Link::getLength).sum();

for (Link link : links) {
increaseLinkFreespeedIfLower(link, length / travelTime);
}
lastDepartureOffset = routeStop.getDepartureOffset().seconds();
}

Expand All @@ -481,20 +532,15 @@ private static Scenario getScenarioWithPseudoPtNetworkAndTransitVehicles(Network
return scenario;
}

private static void addHbefaMapping(VehicleType vehicleType, HbefaVehicleCategory category) {
EngineInformation carEngineInformation = vehicleType.getEngineInformation();
VehicleUtils.setHbefaVehicleCategory(carEngineInformation, String.valueOf(category));
VehicleUtils.setHbefaTechnology(carEngineInformation, "average");
VehicleUtils.setHbefaSizeClass(carEngineInformation, "average");
VehicleUtils.setHbefaEmissionsConcept(carEngineInformation, "average");
vehicleType.setNetworkMode(TransportMode.pt);
}

private static void increaseLinkFreespeedIfLower(Link link, double newFreespeed) {
if (link.getFreespeed() < newFreespeed) {
link.setFreespeed(newFreespeed);
}
public enum PseudoNetwork {
/**
* Create links between all stops and possibly duplicate stops.
*/
singleLinkBetweenStops,
/**
* Create a pseudo network with loop links at each stop.
*/
withLoopLinks,
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,12 @@ public void run(Person person) {
}

// Remove all unselected plans because these are not handled
person.getPlans().stream()
.filter(p -> p != person.getSelectedPlan())
.forEach(person::removePlan);
List<Plan> plans = new ArrayList<>(person.getPlans());
for(Plan p : plans){
if (p != person.getSelectedPlan()){
person.removePlan(p);
}
}
}


Expand Down
Loading
Loading