Re: [sumo-user] How to reach a certain density level using traCI?

2019-11-21 Thread Hao Zhou
thanks Jakob. Best, Hao > On Nov 21, 2019, at 01:54, Jakob Erdmann wrote: > > A routeID is the name for a list of edges and must be registered first: > traci.route.add("route0", ["E3D3","D3C3"]) > traci.vehicle.add("vehicle0", "route0") > >> Am Do., 21. Nov. 2019 um 07:24 Uhr schrieb Hao Zhou

Re: [sumo-user] How to reach a certain density level using traCI?

2019-11-20 Thread Jakob Erdmann
A routeID is the name for a list of edges and must be registered first: traci.route.add("route0", ["E3D3","D3C3"]) traci.vehicle.add("vehicle0", "route0") Am Do., 21. Nov. 2019 um 07:24 Uhr schrieb Hao Zhou : > Hey Jakob, I tried the following simple test but it failed, I don't see > why it happe

Re: [sumo-user] How to reach a certain density level using traCI?

2019-11-20 Thread Hao Zhou
Hey Jakob, I tried the following simple test but it failed, I don't see why it happens. veh_id = 0 route_ID = str(["E3D3","D3C3",]) traci.vehicle.add(str(veh_id),route_ID) File "/home/hao/sumo/tools/traci/connection.py", line 105, in _sendExact raise TraCIException(err, prefix[1], _RESULTS[pr

Re: [sumo-user] How to reach a certain density level using traCI?

2019-11-19 Thread Jakob Erdmann
Hello, you can call traci.vehicle.add repeatedly with the same routeID. just make sure to use a new vehicleID every time. Alternatively, you could call sumo with option --scale to easily scale the amount of traffic up or down. regards, Jakob Am Mo., 18. Nov. 2019 um 22:19 Uhr schrieb Hao Zhou :

[sumo-user] How to reach a certain density level using traCI?

2019-11-18 Thread Hao Zhou
Hi all, I want to keep generating vehicles until the network reaches a certain density level. I know sumo has the option to give a limit on the number of vehicles, which is one of the options. But do there exist better approaches?  I want to do multiple experiments with different density level