Skip to content

Commit

Permalink
remove configurable ride alpha param
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Oct 10, 2024
1 parent 3da880d commit 5eff948
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/org/matsim/run/scenarios/LausitzScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ public class LausitzScenario extends MATSimApplication {
private static final String HBEFA_FILE_COLD_AVERAGE = HBEFA_2020_PATH + "r9230ru2n209r30u2fn0c9rn20n2rujkhkjhoewt84202.enc" ;
private static final String HBEFA_FILE_WARM_AVERAGE = HBEFA_2020_PATH + "7eff8f308633df1b8ac4d06d05180dd0c5fdf577.enc";

@CommandLine.Option(names = "--alpha", description = "alpha for ride, this is just to get a feeling for the parameters dimension, should never be configurable in release.", defaultValue = "2.")
private double alpha;

@CommandLine.Mixin
SampleOptions sample = new SampleOptions( 100, 25, 10, 1);

Expand Down Expand Up @@ -140,7 +137,7 @@ public Config prepareConfig(Config config) {
// 2.0 + 1.0 = alpha + 1
// ride cost = alpha * car cost
// ride marg utility of traveling = (alpha + 1) * marg utility travelling car + alpha * beta perf
// double alpha = 2;
double alpha = 2;
rideParams.setMarginalUtilityOfTraveling((alpha + 1) * carParams.getMarginalUtilityOfTraveling() - alpha * config.scoring().getPerforming_utils_hr());
rideParams.setDailyMonetaryConstant(0.);
rideParams.setMonetaryDistanceRate(carParams.getMonetaryDistanceRate() * 2);
Expand Down

0 comments on commit 5eff948

Please sign in to comment.