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

Error when routing algorithm is configured as FastAStarLandmarks #76

Open
KasiaKoz opened this issue Mar 22, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@KasiaKoz
Copy link
Contributor

Trying to run gelato with the freshest TE model outputs gives an error when reading the MATSim config:

java.lang.IllegalArgumentException: Error trying to set value FastAStarLandmarks for type org.matsim.core.config.groups.ControllerConfigGroup$RoutingAlgorithmType. Possible values are: Dijkstra,AStarLandmarks,SpeedyALT
	at org.matsim.core.config.ReflectiveConfigGroup.fromString(ReflectiveConfigGroup.java:404)
	at org.matsim.core.config.ReflectiveConfigGroup.invokeSetter(ReflectiveConfigGroup.java:317)
	at org.matsim.core.config.ReflectiveConfigGroup.addParam(ReflectiveConfigGroup.java:276)
	at org.matsim.core.config.ConfigReaderMatsimV2.startParameter(ConfigReaderMatsimV2.java:91)
	at org.matsim.core.config.ConfigReaderMatsimV2.startTag(ConfigReaderMatsimV2.java:80)
	at org.matsim.core.config.ConfigReader.startTag(ConfigReader.java:70)
	at org.matsim.core.utils.io.MatsimXmlParser.startElement(MatsimXmlParser.java:367)
	at com.ctc.wstx.sr.BasicStreamReader.fireSaxStartElement(BasicStreamReader.java:1787)
	at com.ctc.wstx.sax.WstxSAXParser.fireStartTag(WstxSAXParser.java:806)
	at com.ctc.wstx.sax.WstxSAXParser.fireEvents(WstxSAXParser.java:697)
	at com.ctc.wstx.sax.WstxSAXParser.parse(WstxSAXParser.java:623)
	at org.matsim.core.utils.io.MatsimXmlParser.parse(MatsimXmlParser.java:200)
	at org.matsim.core.utils.io.MatsimXmlParser.readFile(MatsimXmlParser.java:155)
	at org.matsim.core.config.ConfigUtils.loadConfig(ConfigUtils.java:187)
	at com.arup.cml.abm.kpi.matsim.MatsimUtils.buildConfig(MatsimUtils.java:82)
	at com.arup.cml.abm.kpi.matsim.MatsimUtils.<init>(MatsimUtils.java:59)
	at com.arup.cml.abm.kpi.matsim.run.MatsimKpiGenerator.run(MatsimKpiGenerator.java:61)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
	at picocli.CommandLine.access$1500(CommandLine.java:148)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
	at picocli.CommandLine.execute(CommandLine.java:2170)
	at com.arup.cml.abm.kpi.matsim.run.MatsimKpiGenerator.main(MatsimKpiGenerator.java:44)
Caused by: java.lang.IllegalArgumentException: No enum constant org.matsim.core.config.groups.ControllerConfigGroup.RoutingAlgorithmType.FastAStarLandmarks
	at java.base/java.lang.Enum.valueOf(Enum.java:273)
	at org.matsim.core.config.ReflectiveConfigGroup.fromString(ReflectiveConfigGroup.java:393)
	... 25 more
@KasiaKoz KasiaKoz added the bug Something isn't working label Mar 22, 2024
@mfitz mfitz changed the title java.lang.IllegalArgumentException: Error trying to set value FastAStarLandmarks for type org.matsim.core.config.groups.ControllerConfigGroup$RoutingAlgorithmType. Exception Error when routing algorithm is configured as FastAStarLandmarks Mar 26, 2024
@mfitz mfitz changed the title Error when routing algorithm is configured as FastAStarLandmarks Error when routing algorithm is configured as FastAStarLandmarks Mar 26, 2024
@KasiaKoz
Copy link
Contributor Author

KasiaKoz commented Mar 27, 2024

Went back to our previous TE model results (from December 12th). Running gelato on these outputs also fails with the same error. I tried other versions of gelato:

  • v0.0.2-alpha - fails the same way
  • v0.0.1-alpha - doesn't fail when reading the config (but I didn't run it to completion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant