From f804b3cfd97d8a579e3c0e5f27323262e6d44a77 Mon Sep 17 00:00:00 2001 From: rakow Date: Thu, 4 Jan 2024 20:04:53 +0100 Subject: [PATCH] update update detour factors and car share --- .../org/matsim/prepare/RunOpenBerlinCalibration.java | 6 +++--- .../org/matsim/prepare/opt/RunCountOptimization.java | 2 +- .../prepare/population/InitLocationChoice.java | 12 +++++++++--- .../java/org/matsim/run/RunOpenBerlinScenario.java | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java b/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java index 64657468..255eaf12 100644 --- a/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java +++ b/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java @@ -86,9 +86,9 @@ public class RunOpenBerlinCalibration extends MATSimApplication { /** - * Scaling factor if all persons use car (~20.6% share). + * Scaling factor if all persons use car (~20% share). */ - public static final double CAR_FACTOR = 4.85; + public static final int CAR_FACTOR = 5; /** * Flexible activities, which need to be known for location choice and during generation. * A day can not end on a flexible activity. @@ -96,7 +96,7 @@ public class RunOpenBerlinCalibration extends MATSimApplication { public static final Set FLEXIBLE_ACTS = Set.of("shop_daily", "shop_other", "leisure", "dining"); private static final Logger log = LogManager.getLogger(RunOpenBerlinCalibration.class); @CommandLine.Mixin - private final SampleOptions sample = new SampleOptions(100, 25, 10, 1); + private final SampleOptions sample = new SampleOptions(25, 10, 3, 1); @CommandLine.Option(names = "--mode", description = "Calibration mode that should be run.") private CalibrationMode mode; @CommandLine.Option(names = "--weight", description = "Strategy weight.", defaultValue = "1") diff --git a/src/main/java/org/matsim/prepare/opt/RunCountOptimization.java b/src/main/java/org/matsim/prepare/opt/RunCountOptimization.java index e75178e7..d897d186 100644 --- a/src/main/java/org/matsim/prepare/opt/RunCountOptimization.java +++ b/src/main/java/org/matsim/prepare/opt/RunCountOptimization.java @@ -169,7 +169,7 @@ private List processPopulation(Path input, Network network, Counts