From 047bb4fcf28c8c2fbad84949316c5b8bfae3e66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6rl?= Date: Wed, 2 Oct 2024 21:56:44 +0200 Subject: [PATCH] add modes for convergence --- .../org/eqasim/ile_de_france/scenario/RunAdaptConfig.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ile_de_france/src/main/java/org/eqasim/ile_de_france/scenario/RunAdaptConfig.java b/ile_de_france/src/main/java/org/eqasim/ile_de_france/scenario/RunAdaptConfig.java index a37e2c5f8..8cc060ff4 100644 --- a/ile_de_france/src/main/java/org/eqasim/ile_de_france/scenario/RunAdaptConfig.java +++ b/ile_de_france/src/main/java/org/eqasim/ile_de_france/scenario/RunAdaptConfig.java @@ -8,6 +8,7 @@ import org.eqasim.core.components.config.EqasimConfigGroup; import org.eqasim.core.simulation.mode_choice.EqasimModeChoiceModule; import org.eqasim.core.simulation.mode_choice.epsilon.AdaptConfigForEpsilon; +import org.eqasim.core.simulation.termination.EqasimTerminationConfigGroup; import org.eqasim.ile_de_france.IDFConfigurator; import org.eqasim.ile_de_france.mode_choice.IDFModeChoiceModule; import org.matsim.api.core.v01.TransportMode; @@ -88,5 +89,9 @@ static public void adaptConfiguration(Config config, String prefix) { VehiclesConfigGroup vehiclesConfig = config.vehicles(); vehiclesConfig.setVehiclesFile(prefix + "vehicles.xml.gz"); + + // Convergence + EqasimTerminationConfigGroup terminationConfig = EqasimTerminationConfigGroup.getOrCreate(config); + terminationConfig.setModes(Arrays.asList("car", "passenger", "motorbike", "pt", "bicycle", "walk")); } }