Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Rerouting Multiple Vehicles

Hello,
this is due to the functionality of
rerouteTraveltime(currentTravelTimes=True).
In order to use the current travel times, all edges are queried for their current travel time and these values are stored for the router to use. This is only done once per simulattion step but may take some time for large networks.
If you have a large network where lots of edges receive little traffic it may be better to set currentTravelTimes=False and perform this update in your own code for a subset of relevant edges. See the implementation of rerouteTraveltime() at sumo/tools/traci/_vehicle.py.

regards,
Jakob

2018-04-11 23:34 GMT+02:00 Jonathan Harper via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
Hello,

An observation I’ve had when rerouting many vehicles at once (going through a list of vehicles and rerouting them one after the other) is that the rerouting of the first vehicle seemingly takes by far the longest (sometimes being up to 10 seconds), whereas the other vehicles present in the lift are rerouted instantaneously without noticeable delay. This has been checked with debugging and regardless of any changes made to the code the first rerouting always takes a significant amount of time. Even when not iterating through vehicles and simply rerouting a single vehicle x amount of times (in a while loop), the first rerouting still takes the longest.

Have you observed this? And if not, do you think this may be down to some type of hardware limitation?

Kind regards,
Jonathan



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Back to the top