BauhausLuftfahrt / MATSim-UAM

Extension for MATSim to allow for the inclusion of aerial passenger-carrying vehicles, i.e. a station- and network-bound transport mode that requires station access and egress trips with conventional ground-based modes.
https://bauhausluftfahrt.github.io/MATSim-UAM/
GNU General Public License v3.0
21 stars 28 forks source link

Unable to run uam-test-scenario #95

Closed vmeatsbread closed 1 month ago

vmeatsbread commented 1 month ago

Hello! I'm new to simulating with MATSim and was interested in this UAM plugin. After installing the plugin by updating the pom.xml and rebuilding the MATSim Package, I'm unable to run the uam-test-scenario example. Getting an error around swissRailRaptor.

2024-09-11T10:01:27,545 ERROR MatsimRuntimeModifications:76 Getting uncaught Exception in Thread main java.lang.RuntimeException: Unmaterialized config group: swissRailRaptor at org.matsim.core.config.consistency.UnmaterializedConfigGroupChecker.checkConsistency(UnmaterializedConfigGroupChecker.java:32) ~[matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.config.Config.checkConsistency(Config.java:188) ~[matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.ControlerUtils.checkConfigConsistencyAndWriteToLog(ControlerUtils.java:86) ~[matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:82) ~[matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:70) [matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:53) [matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.AbstractController.run(AbstractController.java:92) [matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.NewControler.run(NewControler.java:83) [matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.core.controler.Controler.run(Controler.java:259) [matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.matsim.project.RunMatsim.main(RunMatsim.java:65) [matsim-example-project-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]

Any guidance would be greatly appreciated as I learn how to best use MATSim. Thank you!

balacmi commented 1 month ago

Dear @vmeatsbread ,

You need to check the RunUAMScenario class to see how to run UAM. You need to use this code or copy it to your main method. You can not just simply use the RunMatsim class for matsim-example-project.

https://github.com/BauhausLuftfahrt/MATSim-UAM/blob/1a4188824a3ecbdee2452ccb856f13826d8c283b/src/main/java/net/bhl/matsim/uam/run/RunUAMScenario.java#L26

vmeatsbread commented 1 month ago

Hi @balacm

Firstly, thank you for your help. This was a great pointer for me to head to the right direction. Before I close this issue I wanted to leave a few of my discoveries in case someone else also is in my spot.

Firstly, this thesis that I tracked down online was immensely useful: https://mediatum.ub.tum.de/doc/1596358/1596358.pdf Second: I had to revert to Java 11 to have this run.

Thanks again for your help.

balacmi commented 1 month ago

Thank you, @vmeatsbread . This reminds me that I should probably make a new release of the repo, so that we can have it compatible with newest MATSim release.