Skip to content

Commit

Permalink
fix optimistic estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Dec 7, 2023
1 parent 56c54b4 commit 9be85af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public OptimisticDrtEstimator(DrtConfigGroup drtConfig, double proportion, doubl
public Estimate estimate(DrtRoute route, OptionalTime departureTime) {

double distance = route.getDistance();
double travelTime = Math.max(route.getTravelTime().seconds(), route.getMaxTravelTime() * proportion);
double travelTime = Math.max(route.getDirectRideTime(), route.getMaxTravelTime() * proportion);

double fare = 0;
if (drtConfig.getDrtFareParams().isPresent()) {
Expand Down

0 comments on commit 9be85af

Please sign in to comment.