Hello, there is currently no simpler method for detecting small jams. You could use subscriptions (sumo.dlr.de/wiki/TraCI/Object_Variable_Subscription) to reduce the communication overhead. If you want to detect large jams (vehicles get blocked for 300 seconds and start teleporting) you can use traci.simulation.getStartingTeleportNumber() regards, Jakob
2015-04-14 3:24 GMT+02:00 SHREYAS JAYANNA (RIT Student) <[email protected]>: > Hello, > > Is there a way to find out if a traffic jam occurred in a timestep through > traci? > > Currently I'm calling getLastStepHaltingNumber() on an edge from traci4j to > find out how many vehicles halted on an edge in a timestep and if this > number is about 80% of the maximum number of vehicles an edge can have on > it, I'm considering it as a congestion. > > The problem is that I have to check this for every edge from the 50 routes > that will be active in the simulation and this takes a lot of time since > sumo has to be queried for this information for 500+ edges. Any better way > to do it would be really awesome! > > Please let me know if any of you know a method to do this which would take > lesser time. > > Thanks & Regards, > Shreyas > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live > exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
