Hello everyone,
I am trying to use the duaIterate.py script to ease congestion in my network using the flowrouter.py output. However, at the moment I have not succeed:
When running duaiterate with the options --additional vtypes.add.xml -r routes.xml -e 21600 --time-to-teleport.highways 120 duarouter--vtype-output dummy.xml duarouter--additional-files vtypes.add.xml
I have this error in the "dua.log" file:
Error: No route input specified or all routes were invalid.
Quitting (on error).
When I introduce the flows as input (option -F flows.xml), the errors change to the following:
Error: The route '-226701455_219967849.qPKW.0' for flow '-226701455_219967849.qPKW.0' is not known. (and the error repeats for every flow defined in the flows.xml file).
From the duaIterate.py script, I've noticed this specification:
argParser.add_argument("-r", "--routes",
help="routes in step 0 (either trips, flows, or routes have to be supplied)", metavar="FILE")
argParser.add_argument("-F", "--flows",
help="flows in step 0 (either trips, flows, or routes have to be supplied)", metavar="FILE")
So I modified the flows file to include only those flows with start time = 0 but it still raises the same error.
What I am missing here? Is it not possible to run duaIterate.py using the flowrouter.py output as routes/flows data?
This is how the first lines of routes.xml looks like:
<routes>
<route id="-226701455_219967849.qPKW.0" edges="-226701455 422877518#1 422877518#2 422877518#4 422877518#6 422877518#7 23342767#0 23342767#1 498963700 23342772 -688968006#1 -688968007 688968008#0 688968008#1 457678277 27044146#0 27044146#2 31786538#0 24412371 116606357#0 116606357#1 675825495#0 121410654 ...
This is how the first lines of flows.xml looks like:
<additional>
<flow id="-226701455_219967849.qPKW.0" departLane="best" departSpeed="random" departPos="last" type="typedistMadrid_hasta2016" route="-226701455_219967849.qPKW.0" number="6" begin="0" end="3600"/>
<flow id="-226701455_219967849.1.qPKW.0" departLane="best" departSpeed="random" departPos="last" type="typedistMadrid_hasta2016" route="-226701455_219967849.1.qPKW.0" number="50" begin="0" end="3600"/>
<flow id="-229815493#1_421160932#1.qPKW.0" departLane="best" departSpeed="random" departPos="last" type="typedistMadrid_hasta2016" route="-229815493#1_421160932#1.qPKW.0" number="12" begin="0" end="3600"/>
<flow id="-229815493#1_116753229.qPKW.0" departLane="best" departSpeed="random" departPos="last" type="typedistMadrid_hasta2016" route="-229815493#1_116753229.qPKW.0" number="12" begin="0" end="3600"/>
<flow id="-229815493#1_40437138.qPKW.0" departLane="best" departSpeed="random" departPos="last" type="typedistMadrid_hasta2016" route="-229815493#1_40437138.qPKW.0" number="12" begin="0" end="3600"/>
Kind regards,
Alejandro
--
Alejandro Rodríguez Sánchez
PhD student
CIEMAT // Universidad Complutense de Madrid
28040 Madrid
email:
alrodr25@xxxxxx