From 58515aad264655e12e5ab637b3ef9b69afa3f6bb Mon Sep 17 00:00:00 2001 From: Ricardo Ewert Date: Thu, 16 May 2024 19:48:53 +0200 Subject: [PATCH] add plan variants to small scale commercial traffic --- src/main/java/org/matsim/prepare/CreateCommercialDemand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/matsim/prepare/CreateCommercialDemand.java b/src/main/java/org/matsim/prepare/CreateCommercialDemand.java index ee47fe9..c43b224 100644 --- a/src/main/java/org/matsim/prepare/CreateCommercialDemand.java +++ b/src/main/java/org/matsim/prepare/CreateCommercialDemand.java @@ -3,6 +3,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.matsim.api.core.v01.Scenario; +import org.matsim.api.core.v01.population.Leg; import org.matsim.api.core.v01.population.Person; import org.matsim.api.core.v01.population.Population; import org.matsim.application.MATSimAppCommand; @@ -215,6 +216,7 @@ public Integer call() { "--pathOutput", outputPathSmallScaleCommercial, "--network", networkPath, "--nameOutputPopulation", smallScaleCommercialPopulationName, + "--numberOfPlanVariantsPerAgent", "5", "--includeExistingModels"); // TODO filter relevant agents for the small scale commercial traffic @@ -266,6 +268,7 @@ public Integer call() { Set allNetworkModes = new HashSet<>(config.routing().getNetworkModes()); allNetworkModes.addAll(newModes); config.routing().setNetworkModes(allNetworkModes); + //TODO add replanning strategy for small scale commercial traffic newModes.forEach(mode -> { ScoringConfigGroup.ModeParams thisModeParams = new ScoringConfigGroup.ModeParams(mode); config.scoring().addModeParams(thisModeParams);