Hi, Thank you so much for the help. May I know what part of a simulation is random? Like for what aspects of the simulation is the random number generator being used?
On Tue, Nov 24, 2020 at 1:28 AM Jakob Erdmann <[email protected]> wrote: > Your simulations diverge because > 1) the primary call to traci.start sets step-length 0.5 but the call to > loadState does not set the step-length > 2) the simulation state does not store the random number generator by > default. You can fix this by setting option <save-state.rng value="true"/> > in your sumocfg > > Am Mo., 23. Nov. 2020 um 18:02 Uhr schrieb . Abdullah <[email protected]>: > >> Hi, >> >> Just wondering if you were able to run the code or not? >> >> On Fri, Nov 20, 2020 at 2:00 PM . Abdullah <[email protected]> wrote: >> >>> Hi, >>> >>> Thank you for your email. I have attached a zip file >>> below. teleporting_vehicle_v1.py does not save any states >>> and teleporting_vehicle_v2.py saves and loads state once. >>> >>> On Fri, Nov 20, 2020 at 1:19 PM Jakob Erdmann <[email protected]> >>> wrote: >>> >>>> This problem has not been reported before. Please send in a minimal >>>> example scenario (either to the mailing list or attached as a zip on a new >>>> github issue). >>>> >>>> regards, >>>> Jakob >>>> >>>> Am Fr., 20. Nov. 2020 um 19:25 Uhr schrieb . Abdullah <[email protected] >>>> >: >>>> >>>>> Hi, >>>>> >>>>> I have a network where only 2 cars are travelling (for testing >>>>> purpose). If I let the simulation run to completion none of cars stand too >>>>> long in front of an intersection and no teleportation occurs. But when I >>>>> save a state in the middle of the simulation and start the simulation >>>>> again >>>>> from the saved state, the cars do travel to the nearest intersection but >>>>> then they get stuck there and get teleported to the next edge. They do not >>>>> move even when there is a green phase or there are no vehicles in the >>>>> opposite lanes. Has anybody faced this kind of problem before and know why >>>>> this is happening? >>>>> >>>>> For saving state I am using: >>>>> traci.simulation.saveState('saved_simulation') >>>>> traci.close() >>>>> >>>>> And for loading state: >>>>> traci.start([checkBinary('sumo-gui'), "-c", "config.sumocfg", >>>>> "--load-state", 'saved_simulation']) >>>>> >>>>> I am using SUMO 1.7.0. Let me know if you want me to give you a small >>>>> code for sanity check. >>>>> >>>>> -- >>>>> 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 >>> >> >> >> -- >> 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
