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

evaluate if a bus can be used again for another block #23

Open
nickolasclarke opened this issue Dec 14, 2019 · 0 comments
Open

evaluate if a bus can be used again for another block #23

nickolasclarke opened this issue Dec 14, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nickolasclarke
Copy link
Owner

nickolasclarke commented Dec 14, 2019

somewhat related to #21 and #22. Currently once a block is completed, that bus is no longer considered for use. Currently we assume a block should occupy a bus for an entire day. However, in my cursory analysis of Minneapolis blocks, some of these appear to be rather short, and these buses would be idle.

Furthermore, in my analysis of both the processed GTFS feed dataframes fed into the sim, and the results, it appears that, according to our current calculations, Minneapolis should require ~1554 buses to simply meet all the blocks. But according to Metro Transit they only have 909 buses in their fleet. This further suggests that blocks do not cover a full day. I'll do further analysis of this later.

My initial impressions on how to deal with this would be to be to add some logic in Model.run() of sim and run_block() to release a bus to a queue that can be used by later call of run_block(), otherwise create a new bus.

I think the parallelism could in Model.run() could cause some extraneous bus creation. We may sort the blocks by total block duration, instead of earliest start time, but I don't think this covers it entirely still. This parallelism edge case may not be worth considering, given our rough overall accuracy anyhow.

@nickolasclarke nickolasclarke self-assigned this Dec 14, 2019
@nickolasclarke nickolasclarke added the bug Something isn't working label Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant