Skip to content

Include generalizedCost in the optimized transfers wait-time cost - #3864

Merged
t2gran merged 1 commit into
opentripplanner:dev-2.xfrom
entur:otp2_include_walking_cost_in_optimized_transfers
Feb 8, 2022
Merged

Include generalizedCost in the optimized transfers wait-time cost#3864
t2gran merged 1 commit into
opentripplanner:dev-2.xfrom
entur:otp2_include_walking_cost_in_optimized_transfers

Conversation

@t2gran

@t2gran t2gran commented Feb 4, 2022

Copy link
Copy Markdown
Member

Summary

The Optimized transfer calculate a wait-time-optimized-cost for each possible combination of transfers for a given path. It does so to find the pest places to do the transfer, avoiding back travel and short transfer times. The existing implementation did not take into account the walking cost for the different transfers. In most cases this is ok, because long walking transfers leave less time to do the transfer, but not in all cases - see issue. This fixes this be just adding the generalized cost to the wait-time-optimized-cost (both have the same cost unit/scale - seconds).

NOTE! The optimized transfer service is configured and needs to be tuned again, after this PR is merged.

Issue

closes #3834

Unit tests

Updated

Code style

Documentation

@t2gran t2gran added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Feb 4, 2022
@t2gran t2gran added this to the 2.1 milestone Feb 4, 2022
@t2gran
t2gran requested a review from a team as a code owner February 4, 2022 09:58
@t2gran
t2gran merged commit 5fd2bfd into opentripplanner:dev-2.x Feb 8, 2022
@t2gran
t2gran deleted the otp2_include_walking_cost_in_optimized_transfers branch February 8, 2022 09:39
t2gran pushed a commit that referenced this pull request Feb 8, 2022
@t2gran

t2gran commented Feb 8, 2022

Copy link
Copy Markdown
Member Author

I will do some testing today, to see how much we need to change the configuration parameters for this to continue to work in our edge cases. See #3644 for my finding later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Walking is not accounted for in the optimized transfers

3 participants