Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] More randomly spreaded traffic

Hi,
I'm using activitygen with a statics.stat.xml file generated by me with this specifics:
-inhabitants = 5000
-households = 5000
-carRate = 1
-unemploymentRate = 0.12
-freeTimeActivityRate = 0.6
-uniformRandomTraffic = 0.2
-departureVariation = 0.6
//- each edge has the attribute "population" between 0 and 10 and "workPosition" between 0 and 2.
//- no busses[. . .]
To generate the trips.trips.xml file I use this command
activitygen -n network.net.xml -s statitic.stat.xml -o trips.trips.xml --random
Then I run:
duarouter -n network.net.xml -r trips.trips.xml -o routes.rou.xml --random --ignore-errors

THE QUESTION IS: how can I prevent those traffic jams (see attached photo) that are in the simulation? I would like vehicles not taking only shortest path, but a more spreaded and random routes from home to work and vice-versa.
I tryed using duaiterate.py (https://sumo.dlr.de/wiki/Demand/Dynamic_User_Assignment#Iterative_Assignment_.28Dynamic_User_Equilibrium.29)
but it gives me this error
"-------------------------------------------------------------------------------
['duarouter', '-c', 'iteration_000_trips.duarcfg']
Loading configuration... done.
Error: No connection between edge '4018838#0' and edge '168773942' found.
Error: Mandatory edge '168773942' not reachable by vehicle 'randUni2046:1'.
Error: The vehicle 'randUni2046:1' has no valid route.
Quitting (on error)."

Sorry for the long mail but I tried being more specific andmore synthetic as possible.
Thanks.

Regards,
Alex

Attachment: Schermata da 2019-03-06 20-07-07.png
Description: Schermata da 2019-03-06 20-07-07.png


Back to the top