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