Hi, the fastest way is to use command line sumo without any external control but libsumo should be right next.
Best regards, Michael Am 17.11.21 um 18:45 schrieb Pradeep Viyaluru Harinath: > Thank you , it works now. > > But the speed isn’t as quick it is in general with command prompt. What > is the fastest method in SUMO , is using lib sumo quickest of all? > > Thanks and regards, > V.H.Pradeep > > ------------------------------------------------------------------------ > *From:* Michael Behrisch <[email protected]> > *Sent:* Wednesday, November 17, 2021 5:53 AM > *To:* Sumo project User discussions; Pradeep Viyaluru Harinath > *Subject:* Re: [sumo-user] [EXTERNAL] Re: traci execution speed > > Hi, > Libsumo ist picky about types. So you need to convert everything to a > string before calling setParameter. > > Best regards, > Michael > > Am 17. November 2021 01:41:08 MEZ schrieb Pradeep Viyaluru Harinath > <[email protected]>: > > Thank you for your response. > > I have used the command “ libsumo as traci “ but to only get the > following error. I have tried importing the libsumo as package and > then running it, even then I face the same error. Can I know what > could have been the reason for this error since I have not got that > error while using traci > > > > Regards, > > V.H.Pradeep > > > > *From:* sumo-user <[email protected]> *On Behalf Of > *Jakob Erdmann > *Sent:* Tuesday, November 16, 2021 3:39 AM > *To:* Sumo project User discussions <[email protected]> > *Subject:* [EXTERNAL] Re: [sumo-user] traci execution speed > > > > * **_EXTERNAL EMAIL_*** > This email originated outside of The University of Texas at San > Antonio. > Please exercise caution when clicking on links or opening attachments. > > > > Each individual traci command costs time because data must be passed > between your code and sumo. > > - reduce the number of traci commands (i.e. by caching values that > do not change or by using subscriptions) > > - switch to libsumo https://sumo.dlr.de/docs/Libsumo.html > > <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo.dlr.de%2Fdocs%2FLibsumo.html&data=04%7C01%7Cpradeep.viyaluruharinath%40utsa.edu%7C1a35f840ed5a4454066008d9a9c0d16b%7C3a228dfbc64744cb88357b20617fc906%7C0%7C1%7C637727467903389588%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YpvyRvsxWmNArYoCUp3%2FvvZE9jj9eyeLZCFTHOqPDRY%3D&reserved=0> > > > > regards, > > Jakob > > > > Am Di., 16. Nov. 2021 um 02:28 Uhr schrieb Pradeep Viyaluru Harinath > <[email protected] > <mailto:[email protected]>>: > > Hello All, > > I am running a python code which allows traci to iterate for > about 100 times. I notice that as the simulation time increases > the traci slows down considerably and it takes forever to > produce the output. However when I run using the command prompt > it hardly takes a minute to run simulation but when I use traci > it takes close to 10 mins to complete the simulation run. > > > > Let me know if there is something I need to work on to improve > the processing speed. > > > > Regards, > > V.H.Pradeep > > > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=04%7C01%7Cpradeep.viyaluruharinath%40utsa.edu%7C1a35f840ed5a4454066008d9a9c0d16b%7C3a228dfbc64744cb88357b20617fc906%7C0%7C1%7C637727467903399585%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CIYmapL4tpHpHNxSaU5F7aiR6E0VdZE%2Bk%2FRjS2wn%2Bk4%3D&reserved=0> > > -- > Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet. _______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
