Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Route alternate file
  • From: <yun-pang.floetteroed@xxxxxx>
  • Date: Mon, 31 May 2021 07:46:31 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-hdrordr: A9a23:r7ds86rz36uZd3kSUtF1HyIaV5oFeYIsimQD101hICG9Kvbo8/ xG785rsiMc6QxhIk3I9urhBEDtex7hHNtOkOws1NSZLXTbUQmTXeJfBOLZqlWKcREWtNQtt5 uIGJIQNDSENzlHZLHBjjVQfexN/DDNytHPuQ6X9QYVcehFUdAZ0+82YDzraXFLeA==
  • Ironport-phdr: A9a23:FjkTVRVcwjq5GBKfP4kBzM6YjHLV8Kz7VTF92vMcY1JmTK2v8tzYM VDF4r011RmVBNSdsaMewLqK+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpV O5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhMiTanf79/K Au6oQrSu8QZnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3Q rJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6 bpgRRn1gykFKjE56nnahMxugqxGvBKvqR9xw4DWb4GUKPVxcbjQcskGSWpDRMtdSzBND4G6Y oASD+QBJ+FYr4zlqlYJrRq+GA+sCPr3yjBSgH/20rc20+olEQHBwgMgA84Ov2rOrNXyKqgdT Pu4w7TMzTXZdf9ZxCny5ZHOfxs8rv6CQah+ftDNyUkzCQzFlFOQpJTqMT6W1+kBr3SW4uV8W Oyhl2MqqQJ8rDexy8owl4XFmI0bx0za+Ch33oo7Jd21RkBlbNCkFJZety+UOYV4TM48RWxjp SU0yqUetJKmYCQG0okryh3QZvCdboSF7BHuWPyPLTtmnH5pZa6ziwyv/UWjxeDwTNS43VhJo yZfjNXBtn8A2hrO4cadUPR95F2u2TOX2gDW7eFLPF47mLLAK54k3r4wjp0TsVnfHiPumEX5k quWdkI89+am7erpbLroqJ+cOYFziQ/wNb4gltKhDeo3MwcDQXKX+eW61L3/5032Wq9GgeAyk qnDqpzVONoUqra4Aw9TzIkj9w6yAyq63NgCgHUKL11IdAiag4XnOFzCOu70Aemnj1Spijhrx vTGPrP7ApXKK3jOiLfgfat760JF0Ao819Zf551OBrEPJPLzXVH+tMDEDhAnKQy0xPjoB8hm2 4wDXWKPGLWVP77MvlOQ/OIgP/GMZJMJuDb6M/Ul/OPujXo+mVMEYKmpxoUYaGqjE/t4P0qZZ Xvsgs8aEWgUpAY+S/bqiFLRGQJUMiKpQqc7oywgBZiOAIzHR5i2jfqGxijtTbNMYWUTXkGRF zLwfoOLHfkIby+OPsJ7lTEIfbSlUckt2Ef950fB17N7I7+MqWUjvpX52Y0tj9A=
  • Ironport-sdr: bMEGse5z1oUly2g/S+WvdmzbuyieeBiGx7XglCF1Sr5f1hREshKSSjXNHsIkdf4frVsDk67N/O gcKRJ+9BfhFw==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXUwFkXSywbJTRVkySHoPW2/xq26r4bMUw
  • Thread-topic: [sumo-user] Route alternate file

Hi,

 

You need to use duaIterate.py, which will run duarouter many times until the number of the pre-defined iterations (default = 20) is reached, for getting alternative routes. An example call to run duaIterate.py is listed below

If you have a trip file:

python duaIterate.py --net-file *.net.xml --trips *.trips.xml --last-step 20 -K --vehroute-file detailed

 

if you only have a route file:

python duaIterate.py --net-file *.net.xml --routes *.rou.xml --last-step 20 -K --vehroute-file detailed

 

-K is to keep all found routes in the respective route sets. You need to set --vehroute-file detailed for getting the exiting time information per edge, which will be used in Cadyts.

 

After that, you use the generated route alternative file (e.g. * _019.rou.alt.xml) as the input for cadytsIterate.py

 

Please feel free to let me know if you have further questions.

 

Best regards,

Yun-Pang

 

 

Von: sumo-user <sumo-user-bounces@xxxxxxxxxxx> Im Auftrag von rony gracious
Gesendet: Donnerstag, 27. Mai 2021 16:05
An: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Betreff: [sumo-user] Route alternate file

 

When I try to create alternate routes file using duarouter I am only getting one route in the distribution even though there are other alternate routes possible, Only one route with probability 1.0 is formed. Why are other routes not getting formed in route distribution?  

duarouter -n network0.xml -r trips.xml -o Routes.Rou.xml -a vtypes.add.xml --ignore-errors --alternatives-output Routes.Rou.alt.xml 


Back to the top