Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] some questions about rerouting in SUMO

1) Mostly yes. Normal vehicles will not perform rerouting when probabiliy is <= 0 (all of them will do if probability=1). However, trips implicitly receive the routing device because they must compute their initial route and then the other options also apply to them by default. If you set the probability option explicitly to a value in [0,1], the given fraction of trips will perform periodic rerouting.

2) all vehicles will reroute once when entering the simulation (pre-insertion rerouting uses the departure as the first routing time)  but no further rerouting takes place due to the high period

3) yes.

4) this finding surprises me a little and does not match my own test results. Feel free to share a *small* scenario that shows the difference.

regards,
Jakob

Am Mi., 2. Sept. 2020 um 08:30 Uhr schrieb Jane Cheung <cheung180515@xxxxxxxxx>:
Dear all, 
I have defined the configuration in .sumocfg as below:


<routing>
        <device.rerouting.probability value="-1"/>
        <device.rerouting.period value="300"/>
        <device.rerouting.pre-period value="300"/>
    </routing>

(1)
my question is 
 "-1'' means no vehicles in my simulation could change their route after departing? Does it mean the other two commands are useless with <device.rerouting?probability value="-1"/> ?
If I set the <device.rerouting.probability value="1"/>,   all the vehicles could change their route to the faster in every 300s?

(2)
If my simuation duration is 3600s(1h) and I set the
                    <device.rerouting.probability value="1"/>,    
                   <device.rerouting.period value="75000000000000000"/>  
                   <device.rerouting.pre-period value=" 75000000000000000 "/>  
all the vehicles can change to the fastest route and would not change to the fastest one in my simulation as I had set the rerouting period is  75000000000000000? And vehicles could change to the fastest route when currenttime = 75000000000000001 if I had set the <end valute= "75000000000000001">?


(3) 
if my simulation period is 3600, and the pre-period rerouting value was set to   <device.rerouting.pre-period value="300"/>
<device.rerouting.period value="75000000000000000"/>   
 all the vehicles will be loaded in my simulation would check the fastest route for themself every 300s before departure? The lastest fastest route of one vehicle will be chosen as its route during the whole simulation and would not change their route during the simulation as I set the  <device.rerouting.period value="75000000000000000"/>   ?


(4)  
if I  set the rerouting command as 
  <routing>
        <device.rerouting.probability value="1"/>
        <device.rerouting.period value="300"/>
        <device.rerouting.pre-period value="300"/>
    </routing> 
 
What‘s the difference betwwen using  <route-files value="cross0.trips.xml"/> (1.sumocfg)and  <route-files value="cross0.route.xml"/>( 2.sumocfg   )

the mean travel time in 1.sumocfg is shorter than 2.sumocfg. 
So, why mean travel time is shorter in 1.sumocfg? how do vehicles in 1.sumocfg decide the route? And which route one vehicle would choose before it is going to depart?


Best regard,

Jane Cheung







_______________________________________________
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