Dear all,

I am currently working on a SUMO project which may need vehicle rerouting at 
some stage during traveling. I have used traci in SUMO before to control 
everything in the loop, so I would prefer to use this way to solve my problem 
if that seems easier.  

To illustrate my question, I assume that I have only defined a vehicle in SUMO. 
This vehicle has been defined with only two possible routes in the simulation, 
i.e.,

Route 1 = [edge 1, edge 2, edge 3, edge 4, edge 5]
Route 2 = [edge 1, edge 2, edge 3, edge 6, edge 7]

Note that two routes have some common edges 1,2 and 3.  Let us assume that, by 
default, this vehicle begins to drive along Route 1. However, when it arrives 
at edge 3, it starts to know that the probability to travel on Route 2 is 0.8 
(thus with prob 0.2 to keep traveling on Route 1). Let us further assume that 
the vehicle will travel on Route 2 to arrive at the new destination edge 7. So 
could anyone let me know that how this could be controlled in SUMO? In 
particular, when vehicle arrives at edge 3, if there is any callable function 
to use to change the route?

Many thanks in advance for your help.

Regards,
Victor

------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to