Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] destProbReroute for alternative routes

Hi Katya,
no I cannot think of an easy way to do this. You can of course calculate
the whole route up to the old destination in advance but then you would
need to know the destination in advance. You could also use the closing
rerouter to close more edges but this still gives you no full control
over the chosen route and possibly sends all vehicles with the same
destination on the same route which may be undesirable as well. Probably
it would be a good idea to add some kind of via rerouting to the
rerouter (http://sumo.dlr.de/trac.wsgi/ticket/3320).

You could of course already fake this by modifying your network with
additional edges at via points where you send your vehicles to and then
place another rerouter at the via.

If your objective is only to avoid that all vehicles are taking the same
detour you could also try in-simulation-rerouting with the rerouting device.

Best regards,
Michael

Am 27.07.2017 um 13:53 schrieb Pyatkova, Katya:
> Hi Michael, 
> 
> Thank you very much for your reply and the comments. Yes, you are correct, it was the routeProbReroute that I was referring to.  Sorry about the confusion.
> 
> I added the alternative route the way you suggested and the cars are following that route. The problem is that they seem to forget their original routes. Somehow I expected them miraculously to reach their original destinations after the reroute. Is there any way that can be achieved?
> 
> Cheers, 
> 
> Katya 
> 
> 
> 
> -----Original Message-----
> From: Michael Behrisch [mailto:oss@xxxxxxxxxxx] 
> Sent: 26 July 2017 16:31
> To: Pyatkova, Katya <K.Pyatkova@xxxxxxxxxxxx>; sumo-user@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [sumo-user] destProbReroute for alternative routes
> 
> Hi Katya,
> I don't know whether I understood your question correctly but destProbReroute does not take a route id but an edge id. And if you define a routeProbReroute you need to give a known route which has been defined like this
>   <route id="r1" edges ="e1 e2"/>
> but you don't need a vehicle.
> 
> Best regards
> Michael
> 
> Am 26.07.2017 um 12:38 schrieb Pyatkova, Katya via sumo-user:
>> Dear SUMO community,
>>
>> I am simulating traffic over flooding conditions and for that purpose I am using multiple rerouters in a city of medium size.
>>
>> For some of the rerouters it is necessary to use destProbReroute together with closingReroute. Unfortunately, I am not sure how to do that. On the wiki for Rerouters (http://sumo.dlr.de/wiki/Simulation/Rerouter) it is mentioned that the id of the routeProbReroute 'must be the id of a previously loaded route'. Does that mean that the new alternative route has to be created and stored in the routes file as a vehicle?
>>
>> I am using separate files for each of the rerouters and I was wondering if you can show me an example of a new transformed rerouter. This is how they look at the current moment.
>>
>> <rerouter id="FloodZone7">
>>
>>    <interval begin="111600" end="118800">
>>
>>        <closingReroute id="-x" />
>>        <closingReroute id="--x" />
>>        <closingReroute id="-y" />
>>
>>     </interval>
>>
>> </rerouter>
>>
>> Thank you very much for considering my question.
>>
>> Best regards,
>>
>> Katya Pyatkova
>> MSc, PhD Student
>> Centre for Water Systems
>> College of Engineering, Mathematics and Physical Sciences (CEMPS) 
>> University of Exeter, North Park Road, Exeter EX4 4QF, United Kingdom 
>> k.pyatkova@xxxxxxxxxxxx<mailto:k.pyatkova@xxxxxxxxxxxx>, +44 (0) 7598 
>> 659122<tel:%2B44%20%280%29%207598%20659122>
>>
>> ----------------------------------------------------------------------
>> -------- 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@xxxxxxxxxxxxxxxxxxxxx
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user

Back to the top