Skip to main content

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

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

Back to the top