Thanks.
Jakob, what should I do to implement the scenario below:
I want to update the edge weight in the road network in a specific
interval, as vehicles are running in the network, and if there is a quicker
path the vehicles change their route to the new route. (I don't want
location-based rerouter)
Do I need to use the combination of device.rerouting.period and
device.rerouting.adaptation-interval?

Best,
Raheleh

On Sun, Oct 4, 2020 at 3:42 PM Jakob Erdmann <[email protected]> wrote:

> 1) in your simulation, vehicles that reroute more than once do so before
> insertion.  Pre-insertion rerouting happens multiple times for vehicles
> that cannot depart due to filled roads (default frequency of 60s). The way
> this is currently implemented, cost savings are not computed for
> pre-insertion rerouting (because in the case of rerouting a trip the
> savings are not meaningful)
> 2) Since vehicles may reroute multiple times before departure you get
> different numbers.
>
> Am So., 4. Okt. 2020 um 17:44 Uhr schrieb Raheleh Zarei <
> [email protected]>:
>
>> Thank you Jakob.
>> But my original question remained unanswered. Would you please help me
>> with that too?
>>
>> Thanks,
>> Raheleh
>>
>> On Sat, Oct 3, 2020 at 5:48 AM Jakob Erdmann <[email protected]>
>> wrote:
>>
>>> device.rerouting does not support conditional rerouting.
>>> For location-based rerouting you could use a rerouter with the
>>> timeThreshold parameter. This would trigger only for vehicles that have
>>> accumulated enough waitingTime:
>>> https://sumo.dlr.de/docs/Simulation/Rerouter.html
>>> Or you could trigger rerouting via TraCI based on your own jam detection.
>>>
>>> Am Fr., 2. Okt. 2020 um 18:08 Uhr schrieb Lara Codeca <
>>> [email protected]>:
>>>
>>>> Hi,
>>>>
>>>> If the period is equal to the simulation step, it’s gonna recompile the
>>>> best route every time.
>>>>
>>>> Regards,
>>>> Lara
>>>>
>>>> On Fri 2 Oct 2020 at 16:58, Raheleh Zarei <[email protected]>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I want to use automatic rerouting, not periodic rerouting. We can't
>>>>> have automatic rerouting while a vehicle running in the network(In traffic
>>>>> jam condition)?
>>>>>
>>>>> Best,
>>>>> Raheleh
>>>>>
>>>>> On Fri, Oct 2, 2020 at 9:26 AM <[email protected]> wrote:
>>>>>
>>>>>> Hi Raheleh,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I think the reason is that you are missing the option „ 
>>>>>> --device.rerouting.period”,
>>>>>> as it says in the Wiki: “Please note that if a vehicle gets a routing
>>>>>> device only rerouting before insertion is active by default. In order to
>>>>>> activate periodic rerouting en route set --device.rerouting.period.” (see
>>>>>> https://sumo.dlr.de/docs/Demand/Automatic_Routing.html#options).
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Giuliana
>>>>>>
>>>>>>
>>>>>>
>>>>>> *From:* [email protected] [mailto:
>>>>>> [email protected]] *On Behalf Of *Raheleh Zarei
>>>>>> *Sent:* Dienstag, 29. September 2020 17:10
>>>>>> *To:* Sumo project User discussions
>>>>>> *Subject:* [sumo-user] routing
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have two questions please.
>>>>>>
>>>>>> - I have a sumo configuration file like this:
>>>>>>
>>>>>>  sumo.exe --routing-algorithm HL -n ./Mtl.net.xml -r
>>>>>> ./RoutingSim1.rou.xml --junction-taz true
>>>>>> --device.rerouting.adaptation-interval 100 --tripinfo-output 
>>>>>> ./tripinfo.xml
>>>>>> --vehroute-output ./vehroute.xml  --vehroute-output.cost true
>>>>>> --vehroute-output.route-length true  --duration-log.statistics true
>>>>>> --xml-validation never --verbose true --device.rerouting.probability 1
>>>>>>
>>>>>>
>>>>>>
>>>>>> RoutingSim1.rou.xml contains 10000 vehicles that depart at each
>>>>>> simulation step.
>>>>>>
>>>>>> In vehroute file, for some vehicles, rerouting have happened and log
>>>>>> is like this:
>>>>>>
>>>>>>      <vehicle id="186" depart="246.00" arrival="1141.00"
>>>>>> routeLength="7659.49">
>>>>>>
>>>>>>         <routeDistribution>
>>>>>>
>>>>>>             <route cost="620.53" savings="0.00" replacedOnEdge=""
>>>>>> reason="device.rerouting" replacedAtTime="246.00" probability="0"
>>>>>> edges="665 664 663 662 661 55 54 737 3574 3575 3189 3190 2146 2147 2149
>>>>>> 2351 2148 3388 3389 1347 2905 1344 1345 1346 1300 2328 2061 1355 3756 
>>>>>> 2920
>>>>>> 3611 2329 2330 2914 2915 2916 2917 2921 2179 2923 2924 2815 2620 3033 
>>>>>> 1943
>>>>>> 858 857 859 770 768 767 1042 769 753 884 106 3249 1551 3255 3253 3731 
>>>>>> 3732
>>>>>> 3147 1440 2722"/>
>>>>>>
>>>>>>             <route cost="602.43" savings="0.00" edges="664 663 662
>>>>>> 661 55 54 737 3574 3575 3189 3190 2146 2147 2149 2351 2148 3388 3389 1347
>>>>>> 2905 1344 1345 1346 1300 2328 2061 1355 3756 2920 3611 2329 2330 2914 
>>>>>> 2915
>>>>>> 2916 2917 2921 2179 2923 2924 2815 2620 3033 1943 858 857 859 770 768 767
>>>>>> 1042 769 753 884 106 3249 1551 3255 3253 3731 3732 3147 1440"/>
>>>>>>
>>>>>>         </routeDistribution>
>>>>>>
>>>>>>     </vehicle>
>>>>>>
>>>>>>
>>>>>>
>>>>>> All routings have happened are like this. The saving is 0,
>>>>>> Replacedage is empty and there is not a change in the route. As log file
>>>>>> shows, there was some jam and I was wondering why rerouting actually 
>>>>>> didn't
>>>>>> happen.
>>>>>>
>>>>>>
>>>>>>
>>>>>> - Another question is: why I see different number of queries in the
>>>>>> log file? I have 10000 vehicles in route file, but I've got
>>>>>> different answered query number.
>>>>>>
>>>>>>
>>>>>>
>>>>>> HLRouter answered 9970 queries and explored ...
>>>>>>
>>>>>> In another case, that the number of vehicles in route file is
>>>>>> smaller( 1000) , I get a bigger number of (1004).
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks for your help.
>>>>>>
>>>>>> Raheleh
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>>>
>>>>>> *RAZ*
>>>>>> _______________________________________________
>>>>>> sumo-user mailing list
>>>>>> [email protected]
>>>>>> To unsubscribe from this list, visit
>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *RAZ*
>>>>> _______________________________________________
>>>>> sumo-user mailing list
>>>>> [email protected]
>>>>> To unsubscribe from this list, visit
>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>>
>>
>> --
>> *RAZ*
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>


-- 
*RAZ*
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to