Hi James,
you can discover more about the duaiterate.py options by calling it with
--help. Many of your questions are addressed on this doc page
<https://sumo.dlr.de/docs/Demand/Dynamic_User_Assignment.html#iterative_assignment_dynamic_user_equilibrium>
.
1. --inc* options are about traffic volume scaling and provide components
of the scale equation used in duaiterate: If --inc-base is defined, it's
min(options.incStart + options.incValue * float(step + 1) /
options.incBase, options.incMax), --inc-max otherwise. --time-inc (seconds)
is about the simulation duration defined by the equation options.timeInc *
(step + 1).
2. Options for duarouter can be passed by prepending "duarouter" to them
and putting them at the end of the options. So it should read something
like "duarouter--weight-attribute cost"
4. Could be that the duration section is missing. Cannot say more without
the files.
5. Currently not possible.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Questions about duaiterate.py
Datum: 2023-09-07T22:10:50+0200
Von: "James Cheng via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
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
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user