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

Scale Traffic algorithm is not adequate for scheduled bus flows #10126

Closed
rjmaris opened this issue Feb 9, 2022 · 3 comments
Closed

Scale Traffic algorithm is not adequate for scheduled bus flows #10126

rjmaris opened this issue Feb 9, 2022 · 3 comments
Assignees

Comments

@rjmaris
Copy link

rjmaris commented Feb 9, 2022

I obeyed that e.g. increasing Scale traffic to 1.5 or higher, buses start to depart immediately after each other.
Upon closer inspection it pointed out that every vehicle is sent on tour according to the specified interval, while upon "firing", more than one vehicle is going on tour.

This behaviour can be resolved by dividing the vehicle interval time by the scale traffic factor.


SUMO-version: 1.12

operating system: Linux

@rjmaris
Copy link
Author

rjmaris commented Feb 9, 2022

Corollary à la Murphy:
If you specify the end time of bus flows to e.g. 3000 instead of default 3600, the behaviour is as expected. No bus on the final vehicle feed on 3600 will be injected into the system. I need that to ensure that only individual traffic affects the end time of a simulation.
BUT: If Scale Traffic is set to e.g. 1.5, buses are also fired on 3600...
In my specification, buses depart 3 times per hour. Reducing flow end to 3600-1200=2400 prevents firing on simulation end. But nevertheless: 3000 or 2400 should not make the difference.

@namdre namdre self-assigned this Feb 9, 2022
namdre added a commit that referenced this issue Feb 10, 2022
namdre added a commit that referenced this issue Feb 10, 2022
@namdre namdre closed this as completed in 37cc70f Feb 10, 2022
@namdre
Copy link
Contributor

namdre commented Feb 10, 2022

  • upscaling is now equidistant
  • downscaling works as before (some of the vehicles are dropped). The difference is noticeable when using scale 0.66 on 3 vehicles with period 1200. Instead of having 2 vehicles with 1800s gap, there is one at 1200 and one at 2400.
  • the bug with an extra vehicle in the end step has also been fixed.

@rjmaris
Copy link
Author

rjmaris commented Feb 10, 2022

Cool!

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

No branches or pull requests

2 participants