Skip to content

Commit

Permalink
add modes for convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl committed Oct 2, 2024
1 parent 757ea13 commit 047bb4f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"));
}
}

0 comments on commit 047bb4f

Please sign in to comment.