Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to generate evenly distributed traffic demands in grid network?

You can give lower propability to the inner edges (https://sumo.dlr.de/docs/Tools/Trip.html#customized_weights)

1. add randomTrips option --weights-output-prefix weights
2. netedit -s net.net.xml -d weights.src.xml
3. use data mode (F4), then select mode (S)
4. hold shift a drag a rectangle around the inner edges (everything except the outer edges should turn blue)
5. use inspect mode (I) and click on any of the selected edges
6. change the field 'value=100' to 'value=25'
7. save the data file (CTRL+SHIFT+B) and exit netedit
8. copy the file weights.src.xml as weights.dst.xml  
9. run randomTrips with option --weights-prefix weights

done.


Am Mi., 18. Dez. 2024 um 03:41 Uhr schrieb Bon Choe via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi all, I have a question on generating random traffic states (average velocity in my case).

In my case, I have a 5x5 grid network (first figure below signature) and I desire to randomly assign traffic states (e.g., average speed over the edge) on each edge.
I already tried randomTrips.py in default tools in SUMO but it does not work well, especially on outskirt edges of the grid network.
As you can see in the figure below (left side of second one below signature), the traffic is mostly crowded on the center of the network, rather on the outskirts.

In order to consider the outskirts while making random traffic states, what should I do?

Best regards,
Bon

image.png

스크린샷 2024-12-18 113105 copy.png
_______________________________________________
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