Skip to content

Commit

Permalink
avoid warnings for consistency check
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Nov 6, 2024
1 parent 96d966c commit 60a6f69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions input/v6.4/berlin-v6.4.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<module name="routing">
<param name="networkModes" value="car,truck,freight,ride,bike"/>
<param name="accessEgressType" value="accessEgressModeToLink"/>
<param name="clearDefaultTeleportedModeParams" value="true"/>
<parameterset type="teleportedModeParameters">
<param name="beelineDistanceFactor" value="1.3"/>
<param name="mode" value="walk"/>
Expand Down Expand Up @@ -101,6 +102,8 @@

<module name="scoring">
<param name="fractionOfIterationsToStartScoreMSA" value="0.9"/>
<param name="pathSizeLogitBeta" value="0"/>

<parameterset type="scoringParameters">
<param name="marginalUtilityOfMoney" value="1.0"/>
<!-- car prices 2012->2022: inflation (110.2-91.7)/91.7 = 0.2017448
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/matsim/run/OpenBerlinScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ protected Config prepareConfig(Config config) {
config.plans().setInputFile(sample.adjustName(config.plans().getInputFile()));
}

config.qsim().setUsingTravelTimeCheckInTeleportation(true);

// overwrite ride scoring params with values derived from car
RideScoringParamsFromCarParams.setRideScoringParamsBasedOnCarParams(config.scoring(), 1.0);
Activities.addScoringParams(config, true);
Expand Down Expand Up @@ -125,6 +127,7 @@ protected Config prepareConfig(Config config) {
eConfig.setAverageWarmEmissionFactorsFile(HBEFA_FILE_WARM_AVERAGE);
eConfig.setHbefaTableConsistencyCheckingLevel(EmissionsConfigGroup.HbefaTableConsistencyCheckingLevel.consistent);
eConfig.setDetailedVsAverageLookupBehavior(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.tryDetailedThenTechnologyAverageThenAverageTable);
eConfig.setEmissionsComputationMethod(EmissionsConfigGroup.EmissionsComputationMethod.StopAndGoFraction);

return config;
}
Expand Down

0 comments on commit 60a6f69

Please sign in to comment.