-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transit priority - part 3 #5583
Transit priority - part 3 #5583
Conversation
Unused configurations are not tested - removed later.
The comparator need to relax c1 if c2 is optimal, not compare c1 and c2 independently.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5583 +/- ##
=============================================
+ Coverage 67.35% 67.45% +0.09%
- Complexity 16162 16186 +24
=============================================
Files 1858 1861 +3
Lines 71093 71161 +68
Branches 7403 7397 -6
=============================================
+ Hits 47888 48001 +113
+ Misses 20745 20673 -72
- Partials 2460 2487 +27 ☔ View full report in Codecov by Sentry. |
There are two ways we can treat the base (local-traffic) transit priority group. We can treat is a separate group, equal to all other groups in behaviour - or we can treat is special and not add it to the comparason vector. Let B be the base and G be concreate group. Then: (B) dominates (G), (G) dominates (B), (B) dominates (BG), but (G) does not dominate (BG). With other words, paths with only agency X(group G) is not given an advantige in the routing over paths with a combination of agency X(group G) and local trafic (group B). This commit turn this advanced feature OFF for now.
src/main/java/org/opentripplanner/raptor/rangeraptor/context/SearchContext.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/raptor/rangeraptor/internalapi/ParetoSetCost.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/raptor/rangeraptor/internalapi/ParetoSetTime.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/raptor/rangeraptor/path/PathParetoSetComparators.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/raptor/rangeraptor/path/PathParetoSetComparators.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/raptor/rangeraptor/path/PathParetoSetComparators.java
Show resolved
Hide resolved
src/test/java/org/opentripplanner/raptor/moduletests/K02_TransitPriorityDestinationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/raptor/moduletests/K01_TransitPriorityTest.java
Outdated
Show resolved
Hide resolved
…TripPattern (Transmodel API). TODO: Add c2 to lags as well.
src/main/java/org/opentripplanner/raptor/rangeraptor/path/PathParetoSetComparators.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Johan Torin <jtorin@users.noreply.github.com>
160a458
to
275a2f2
Compare
Sorry for the mess with small commits and the rebase/squash in the end, but GitHub refused to apply some of the suggestions - but did not tell me which one ... |
src/main/java/org/opentripplanner/raptor/api/request/MultiCriteriaRequest.java
Show resolved
Hide resolved
src/main/java/org/opentripplanner/raptor/rangeraptor/internalapi/ParetoSetTime.java
Outdated
Show resolved
Hide resolved
...rg/opentripplanner/routing/algorithm/raptoradapter/transit/request/PriorityGroupMatcher.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/apis/transmodel/model/plan/TripPatternType.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/raptor/moduletests/K01_TransitPriorityTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at my requests.
...entripplanner/routing/algorithm/raptoradapter/transit/request/PriorityGroupConfigurator.java
Outdated
Show resolved
Hide resolved
...entripplanner/routing/algorithm/raptoradapter/transit/request/PriorityGroupConfigurator.java
Outdated
Show resolved
Hide resolved
...entripplanner/routing/algorithm/raptoradapter/transit/request/PriorityGroupConfigurator.java
Outdated
Show resolved
Hide resolved
Found some minor spelling nits while reviewing the latest changes. |
Co-authored-by: Leonard Ehrenfried <mail@leonard.io> Co-authored-by: Johan Torin <jtorin@users.noreply.github.com>
Co-authored-by: Leonard Ehrenfried <mail@leonard.io>
Please regenerate. |
I will merge this with just @leonardehrenfried approval. Since @jtorin already approved and it was just a technical problem with the generated schema. |
Summary
Fix bug in pareto-function in destination arrival in Raptor. This also include tests and some cleanup.
Issue
Part of #3665
Unit tests
✅ Both unit tests and module tests are added for the failing destination pareto-comparason.
Documentation
🟥 This feature is still WIP, and we are not going to document it before we have something we believe is working properly. But, with this PR it should be ready for testing it out.
Changelog
✅ This should be included in the changelog.
Bumping the serialization version id
🟥 Not needed.