Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] duaIterate.py

Goodnight!

Thank you very much! It worked out!

python tools/assign/duaIterate.py -n rede-03.net.xml -t "od_file-carro.odtrips.xml","od_file-moto.odtrips.xml","od_file-bus.odtrips.xml","od_file-cam.odtrips.xml" --max-convergence-deviation "0.05" --additional tipo.add duarouter--vtype-output dummy.xml duarouter--additional-files tipo.add

I'm running the "attributeStats" command, but I'm not having success. If possible, could you tell me where my error is?

python tools/output/attributeStats --elemento tripinfo_009.xml --attribute timeLoss --xml-output timeloss.xml

image.png

The objective of this command would be to generate a file with the average time loss.

Thank you very much!

Sds,

Pedro Oliveira

Em ter., 15 de out. de 2024 às 18:30, Jakob Erdmann via sumo-user <sumo-user@xxxxxxxxxxx> escreveu:
Iterative assignment with duaIterate.py is all about routing around congestion in a loaded network. If you run it separately for each vehicle type, each of the iterations underestimates the amount of traffic in the network. Instead, pass all the trip files as a comma-separated list to duaIterate.py

To pick a suitable iteration, plot traffic measures for the different runs and then pick the one that has the lowest totalTravelTime and totalDepartDelay (https://sumo.dlr.de/docs/Simulation/Output/StatisticOutput.html#vehicletripstatistics). See also



Am Di., 15. Okt. 2024 um 22:40 Uhr schrieb Pedro Oliveira via sumo-user <sumo-user@xxxxxxxxxxx>:
Good afternoon,

Another question I have is whether the appropriate simulation file to run the simulation is the last iteration or whether it is necessary to perform some additional procedure.
I added to the command:

python tools/assign/duaIterate.py -n rede-03.net.xml -t od_file-carro.odtrips.xml --max-convergence-deviation "0.5" --additional tipo.add duarouter--vtype-output dummy.xml duarouter--additional-files tipo.add

Sds,

Pedro Oliveira

Em ter., 15 de out. de 2024 às 13:01, Pedro Oliveira <pedro.engenhariae@xxxxxxxxx> escreveu:
Good afternoon,

I'm performing traffic attribution with "duaIterate.py".
To insert different types of vehicles from an origin-destination matrix, I ran the "od2trips" command:

od2trips -c C:\Users\Pedro\Sumo\od2trips-carro.config.xml -n C:\Users\Pedro\Sumo\taz_file.taz.xml -d C:\Users\Pedro\Sumo\OD_file-carro.od --vtype carro -o C:\Users\Pedro\Sumo\od_file-carro.odtrips.xml

od2trips -c C:\Users\Pedro\Sumo\od2trips-moto.config.xml -n C:\Users\Pedro\Sumo\taz_file.taz.xml -d C:\Users\Pedro\Sumo\OD_file-moto.od --vtype moto -o C:\Users\Pedro\Sumo\od_file-moto.odtrips.xml

od2trips -c C:\Users\Pedro\Sumo\od2trips-bus.config.xml -n C:\Users\Pedro\Sumo\taz_file.taz.xml -d C:\Users\Pedro\Sumo\OD_file-bus.od --vtype bus -o C:\Users\Pedro\Sumo\od_file-bus.odtrips.xml

od2trips -c C:\Users\Pedro\Sumo\od2trips-cam.config.xml -n C:\Users\Pedro\Sumo\taz_file.taz.xml -d C:\Users\Pedro\Sumo\OD_file-cam.od --vtype caminhao -o C:\Users\Pedro\Sumo\od_file-cam.odtrips.xml


With the "duaroter" previously configured, I executed the "duaIterate" command for each type of vehicle and obtained the route files.

python tools/assign/duaIterate.py -n rede-03.net.xml -t od_file-carro.odtrips.xml -l 20 --additional tipo.add duarouter--vtype-output dummy.xml duarouter--additional-files tipo.add

python tools/assign/duaIterate.py -n rede-03.net.xml -t od_file-moto.odtrips.xml -l 20 --additional tipo.add duarouter--vtype-output dummy.xml duarouter--additional-files tipo.add

python tools/assign/duaIterate.py -n rede-03.net.xml -t od_file-bus.odtrips.xml -l 20 --additional tipo.add duarouter--vtype-output dummy.xml duarouter--additional-files tipo.add

python tools/assign/duaIterate.py -n rede-03.net.xml -t od_file-cam.odtrips.xml -l 20 --additional tipo.add duarouter--vtype-output dummy.xml duarouter--additional-files tipo.add


To visualize the simulation in the "sumo.cfg" file, I named each of the routes.
image.png

I would like to know if this would be the correct procedure.

Thank you in advance for your attention.

Sds,

Pedro Oliveira
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top