Skip to content

Commit

Permalink
Stand 21.November
Browse files Browse the repository at this point in the history
  • Loading branch information
j-bnsch committed Nov 21, 2024
1 parent 1a125be commit 282780f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions input/v3.1/kelheim-v3.1-25pct.kexi.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
</parameterset>

<parameterset type="modeParams" >
<param name="constant" value="0.10908902922956654" />
<param name="constant" value="0" />
<param name="dailyMonetaryConstant" value="-5.3" />
<param name="dailyUtilityConstant" value="0.0" />
<param name="marginalUtilityOfDistance_util_m" value="0.0" />
Expand All @@ -193,7 +193,7 @@
<param name="monetaryDistanceRate" value="-2.0E-4" />
</parameterset>
<parameterset type="modeParams" >
<param name="constant" value="0.0449751479497542" />
<param name="constant" value="0" />
<param name="dailyMonetaryConstant" value="0.0" />
<param name="dailyUtilityConstant" value="0.0" />
<param name="marginalUtilityOfDistance_util_m" value="0.0" />
Expand Down
22 changes: 12 additions & 10 deletions src/main/java/org/matsim/run/RunKelheimScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ protected Config prepareConfig(Config config) {
//TODO: temp, allow accessibility computations to occur more than 1.5km away from drt stops.
drtConfigGroup.maxWalkDistance = 100000.;

drtConfigGroup.transitStopFile = "https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/kelheim/kelheim-v3.0/input/kelheim-v3.0-drt-stops.xml";

}

// TODO: what is a good constant for DRT. The existing one of 2.45 makes drt trips really attractive; you no longer see a difference with stops that are far away and ones that are close.
Expand Down Expand Up @@ -276,7 +278,7 @@ protected Config prepareConfig(Config config) {
accConfig.setBoundingBoxBottom(mapCenterY - num_rows*tileSize - tileSize/2);
accConfig.setBoundingBoxTop(mapCenterY + num_rows*tileSize + tileSize/2);
accConfig.setTileSize_m((int) tileSize);
accConfig.setTimeOfDay(12 * 60 * 60.);
accConfig.setTimeOfDay(19 * 60 * 60.);
accConfig.setComputingAccessibilityForMode(Modes4Accessibility.freespeed, false); // works
accConfig.setComputingAccessibilityForMode(Modes4Accessibility.car, true); // works
// accConfig.setComputingAccessibilityForMode(Modes4Accessibility.bike, false); // ??
Expand Down Expand Up @@ -364,7 +366,7 @@ protected void prepareScenario(Scenario scenario) {


// Use this method if reading facilities from a csv.
Path filePath = Path.of("pois.csv");
Path filePath = Path.of("supermarkets_LK.csv");
try (CSVParser parser = new CSVParser(new BufferedReader(new InputStreamReader(Files.newInputStream(filePath))),
CSVFormat.DEFAULT.withDelimiter(',').withFirstRecordAsHeader())) {

Expand Down Expand Up @@ -509,7 +511,7 @@ public void handleEvent(PersonDepartureEvent event) {
// final AccessibilityModule moduleDoctors = new AccessibilityModule();
// moduleDoctors.setConsideredActivityType("doctor");
// controler.addOverridingModule(moduleDoctors);
//

// final AccessibilityModule moduleSport = new AccessibilityModule();
// moduleSport.setConsideredActivityType("sport");
// controler.addOverridingModule(moduleSport);
Expand All @@ -518,10 +520,10 @@ public void handleEvent(PersonDepartureEvent event) {
// moduleGroceries.setConsideredActivityType("groceries");
// controler.addOverridingModule(moduleGroceries);

// final AccessibilityModule moduleSupermarkets = new AccessibilityModule();
// moduleSupermarkets.setConsideredActivityType("supermarket");
// controler.addOverridingModule(moduleSupermarkets);

final AccessibilityModule moduleSupermarkets = new AccessibilityModule();
moduleSupermarkets.setConsideredActivityType("supermarket");
controler.addOverridingModule(moduleSupermarkets);
//
// final AccessibilityModule moduleAltstadt = new AccessibilityModule();
// moduleAltstadt.setConsideredActivityType("altstadt");
// controler.addOverridingModule(moduleAltstadt);
Expand All @@ -530,9 +532,9 @@ public void handleEvent(PersonDepartureEvent event) {
// moduleBuildings.setConsideredActivityType("building");
// controler.addOverridingModule(moduleBuildings);

final AccessibilityModule moduleSenioren = new AccessibilityModule();
moduleSenioren.setConsideredActivityType("senioren");
controler.addOverridingModule(moduleSenioren);
// final AccessibilityModule moduleSenioren = new AccessibilityModule();
// moduleSenioren.setConsideredActivityType("senioren");
// controler.addOverridingModule(moduleSenioren);
}
}
}

0 comments on commit 282780f

Please sign in to comment.