Skip to content
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

fix(drt): scheduling a same-index insertion before a prebooked request #3111

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

sebhoerl
Copy link
Contributor

@sebhoerl sebhoerl commented Feb 15, 2024

There has been a bug when scheduling an insertion that has the same pickup and dropoff index (new dropoff directly following the new pickup along the stop sequence) just before a task with a prebooked pick-up. In that case, the begin time of the following pick-up task was illegally shifted to the past, or otherwise put, the fixed begin time of the prebooked task was not kept constant, thus blocking the vehicle for an unnecessary long time in a stop task. This PR fixes this issue, the performance of the prebooking scenario improves in the tests.

@sebhoerl sebhoerl enabled auto-merge (squash) February 15, 2024 11:34
@sebhoerl sebhoerl merged commit ec2576c into master Feb 15, 2024
48 checks passed
@sebhoerl sebhoerl deleted the fix/prebooked-following-same-index branch February 15, 2024 12:23
nkuehnel pushed a commit to moia-oss/matsim-libs that referenced this pull request Feb 29, 2024
matsim-org#3111)

* fix: scheduling same-index insertion before prebooked request

* update test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant