1) I'm afraid there is no simple way. Via TraCI, you could store the edge of each vehicle from one time step to the next and then compare it with the current edge to compute the flows. 2) You can save the simulation state using traci.simulation.saveState and the reload the simulation from that state using traci.load but this is not optimized for speed. See https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html
Am Mi., 23. Okt. 2019 um 19:58 Uhr schrieb Lixo Lixo < [email protected]>: > Hi! > > Thank you in advance for your help! > > I am struggling trying to mix Cell Transmission Model and Sumo Traffic > Simulator. I have two quick questions. > > 1) Is there any simple way to compute the flows between one cell to > another using Sumo? More precisely, can I measure the number of cars that > went from one edge to another at any time step? > > 2) Is there any way to reverse the last step taken by the simulation using > Traci? That is, going backwards in time using the python interface? > > Thank you again for your help! Any information will be greatly appreciated. > > Best, > Mike > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
