Skip to content

Commit

Permalink
make upper bound factor class var
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Jun 18, 2024
1 parent 9b98775 commit 1eb73f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/matsim/run/LausitzPtFareModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class LausitzPtFareModule extends AbstractModule {
// max. price: 46€ for 108km (longest rail distance in study area Eisenhüttenstadt <-> Bautzen) compared to mean price 25.15€ for 30km
// => slope for distance based cost: 0,2673076923€
static final double LONG_TRIP_SLOPE = 0.2673076923;
// upper bound factor: relation of single trip compared to daily cost of monthly VBB ticket
// 5.12 / 4.125 = 1.24
static final double UPPER_BOUND_FACTOR = 1.24;

@Override
public void install() {
Expand All @@ -44,9 +47,7 @@ public void install() {

// Set parameters
ptFareConfigGroup.setApplyUpperBound(true);
// upper bound factor: relation of single trip compared to daily cost of monthly VBB ticket
// 5.12 / 4.125 = 1.24
ptFareConfigGroup.setUpperBoundFactor(1.24);
ptFareConfigGroup.setUpperBoundFactor(UPPER_BOUND_FACTOR);

// Minimum fare (e.g. short trip or 1 zone ticket)
distanceBasedPtFareParams.setMinFare(MIN_FARE);
Expand Down

0 comments on commit 1eb73f6

Please sign in to comment.