Hi, I apologize for taking so long to send you the code :(
The script that inserts a vehicle when another leaves the network is LoadKeeper: https://wiki.inf.ufrgs.br/LoadKeeper. This page is in portuguese but you can obtain a reasonable translation via google translator. LoadKeeper is part of NetPopulate project, whose code is in: https://github.com/maslab-ufrgs/net-populate If you have any problems using it or have any questions, please let me know. Once again, my sincere apologies for forgetting about this thread. I hope the code can still be useful to you. Best regards, -- Anderson Rocha Tavares http://dcc.ufmg.br/~anderson 2015-07-26 13:17 GMT-03:00 Fatma Marzouk <[email protected]>: > Hi ! > > Please I am interesed in the python script . > I will be grateful if you can send it . > > Thank you > > F > > > Le 24 juil. 2015 à 15:18, Anderson Rocha <[email protected]> > a écrit : > > > > Some time ago I developed a script that inserted a new vehicle when > another > > was removed by SUMO after finishing its trip. > > > > It does not re-route as you asked, but still may be useful... > > > > I don't have it right now, but if you would you like to take a look I can > > search for it and send you. > > > > Regards, > > > > -- > > Anderson Rocha Tavares > > http://dcc.ufmg.br/~anderson > > > > 2015-07-22 8:08 GMT-03:00 Michael Behrisch < > [email protected]>: > > > >> Hi Tran, > >> sorry for the delay, sourceforge was down. > >> > >> Am 2015-07-14 20:14, schrieb Nguyen Nguyen: > >>> Hello All, > >>> I want to maintain a constant number of vehicles in an imported map. > >>> Vehicles will pick a trip initially, stop at the destination, wait for > >>> an amount of time and then follows another trip. Can I do this with > >>> SUMO? Could you please give me some advice? Can I use TraCi to obtain > >>> this? > >> > >> Yes you can of course let you notify via traCI whenever a vehicle ends > >> its route and insert a new one then. But since you mention a large > >> network you probably have a severe runtime overhead when using TraCI > >> with a lot of vehicles. But if you need TraCI anyway then go for it. > >> > >>> The map is quite large so I don't know if using the rerouter is > >>> suitable. > >> > >> Did you try the randomTrips approach mentioned here? > >> > >> > http://sumo.dlr.de/wiki/FAQ#How_do_I_maintain_the_same_number_of_vehicles_in_the_net.3F > >> > >> Regards, > >> Michael > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Don't Limit Your Business. Reach for the Cloud. > >> GigeNET's Cloud Solutions provide you with the tools and support that > >> you need to offload your IT needs and focus on growing your business. > >> Configured For All Businesses. Start Your Cloud Today. > >> https://www.gigenetcloud.com/ > >> _______________________________________________ > >> sumo-user mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/sumo-user > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > sumo-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
