Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Rerouting and Simulation of Accidents

Either: 
- set option --device.rerouting.period to a non-zero value  (the disallowed edge will be global knowledge along with all travel times in the network)
- set rerouter attribute edges to the list of edges where vehicles still have a chance to change their route

Vehicles that have entered the accident section and don't have an alternative route will be stuck either way.

Am Di., 24. Sept. 2024 um 11:24 Uhr schrieb Rehab Shahin via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi,

How can I assign rerouting for vehicles such that they adjust their routes in simulation time based on the travel time on edges?

I have a scenario of a motorway where the demand is created using randomTrips.py. a route file is created where routes are defined and assigned for each vehicle.

I want to simulate an accident on a specific segment of the motorway. what I did is:
- assigned a reroute device for all vehicles ( <device.rerouting probability="1.0"/>)
- closed the edge where the accident happened by  <closingReroute id="2956471#1" disallow="all"/>

The vehicles are queued in front of the edge blocking the road. My understanding is cars don't know about the closed road until reaching there and then they change the route. but what I want to do is reroute based on the travel times on the edges. Is there a way to do this?
Do I have to change the route file to a trip file so that cars don't have predefined routes?

thanks,
Rehab
Rehab Shahin
Research Engineer ‑ Transport Modelling and Simulation
rehab.shahin@xxxxxxxxxx
+44(0) 20 3514 1170
 | 
+1 (929) 265‑5193
LinkedIn
Twitter
YouTube
This e-mail is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have received it by mistake please let us know and delete it from your system. E-mails are not secure and cannot be guaranteed to be error-free as they can be intercepted, amended, lost or destroyed, or contain viruses. 
Hadean Supercomputing Ltd, is registered in England with number 09808169 and has its registered office 9 Appold St, London EC2A 2AP, UK
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top