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

Reply via email to