Thank you for the explanation. If the simulation step-length doesn't determine the simulation speed, then what is it used for? What is the purpose of the step-length and how happens during 1 traci.simulationStep()?
On Mon, Feb 1, 2021 at 12:21 AM Jakob Erdmann <[email protected]> wrote: > If you need to start a fresh simulation, you can use traci.load([ ]) > which reloads the network and also allows to set all simulation options. > getDeltaT is not suited for measing simulation speed. It simply returns > the step-length that was set via options. > To measure execution speed you could take the average wall-clock time over > multiple calls to traci.simulationStep. > > regards, > Jakob > > Am So., 31. Jan. 2021 um 20:14 Uhr schrieb . Abdullah <[email protected]>: > >> Hi, >> >> thank you for the answer. Looking at traci.simulation.loadState, it only >> takes a filename, is there a way to specify these options (["--step-length", >> "0.5", '--save-state.rng', "--step-method.ballistic", "--no-step-log", >> "--no-warnings"], port=port) like I can for traci.start >> >> Also, when I measure the time across traci.simulation.getDeltaT(), it >> takes from 0 to 0.001 seconds rather than 0.5 seconds. So, I am a bit >> confused about how long it actually takes for sumo to perform one >> simulation step? >> >> On Sun, Jan 31, 2021 at 5:44 AM Jakob Erdmann <[email protected]> >> wrote: >> >>> Hello, >>> the delay most likely comes from loading the network and setting up all >>> the necessary simulation objects in memory. >>> If you need to start a simulation repeatedly, you can avoid the overhead >>> of network loading by calling traci.simulation.saveState and >>> traci.simulation.loadState >>> >>> regards, >>> Jakob >>> >>> Am Sa., 30. Jan. 2021 um 23:15 Uhr schrieb . Abdullah <[email protected] >>> >: >>> >>>> Hi all, >>>> >>>> I have two codes below. In traci_demo_v1, I have a loop that just >>>> starts and closes a simulation and prints the time taken to do so. In >>>> windows, it takes around 0.5 secs but when I check my task manager (Memory >>>> Usage.PNG file attached below) I see only some memory use of 35MB and no >>>> disk usage. So I was wondering why it takes so long to start or load a >>>> state (without gui)? Is there any way to reduce this time? Also, in >>>> traci_demo_v2 I have a simulation that runs for sometime with step-length >>>> 0.5. But when I measure the time across traci.simulation.getDeltaT(), it >>>> takes from 0 to 0.001 seconds rather than 0.5 seconds. So, I am a bit >>>> confused about how long it actually takes for sumo to perform one >>>> simulation step? >>>> >>>> I am using SUMO v1.7. >>>> >>>> >>>> -- >>>> Thank you. >>>> Abdullah >>>> _______________________________________________ >>>> sumo-user mailing list >>>> [email protected] >>>> To unsubscribe from this list, visit >>>> https://www.eclipse.org/mailman/listinfo/sumo-user >>>> >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> >> >> -- >> Thank you. >> Abdullah >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > -- Thank you. Abdullah
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
