Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Questions about duaiterate.py

Dear SUMO Staff,


I am trying to use duaiterate.py and I have a few questions regarding its use:

  1. I am running into issues caused by long iteration times and am looking into ways to speed up iterations. What do the following flags do (short description) and what are their units (i.e. seconds, minutes, etc.)? Is there an example usage of these or is there a directory that contains more info about these flags that we can refer to?

  • --inc-start, --inc-base, --inc-max, --incrementation, --time-inc

  1. I’m trying to add weights for the duarouter section because I would like to use my own definition of cost = travel time + tolling as a weight. I am using the “--addweights” flag with a weight file for the additional weights, but how do I specify the weight attribute?

    1. Using duarouter, I was able to do “--weight-attribute cost”, but is there a flag like that for duaiterate.py?

  2. How do we tell if the iterations have reached an equilibrium? Which output variable should we observe?

  3. When I run 

python ../sumo/tools/assign/duaIterate.py -n siouxFalls.net.xml -t siouxFalls.trips.xml -l 10 --max-convergence-deviation 1 --convergence-iterations 2 --addweights siouxFalls.weight.xml --time-inc 5"

I get the following error after running through iteration 000: 


  File "...\sumo\tools\assign\duaIterate.py", line 688, in main

    avgTT.add(sum / count)

ZeroDivisionError: float division by zero


I am not sure why the count variable is zero –  could it be that my tripinfo_000.xml does not have a duration section? I would like to use the “--max-convergence-deviation” flag to automatically stop iterations after converging, but I am not sure how to fix this division by zero error.


  1. How do we store the duaiterate dump folders (e.g. 000, 001, 002, etc.) in a separate folder such as a dump_folder folder? Currently, it is dumping them into the current directory.


Please advise us on these questions, and let us know if you have any clarifications. Thank you so much for your help!


Best,

James


Back to the top