Hello,
this can be achieved via TraCI by simply checking the total number of
vehicles present in each time step and removing vehicles if the number is
too high. You can retrieve the number of vehicles inserted in the last step
which are probably good candidates for removal.
regards,
Jakob


2014-03-24 12:26 GMT+01:00 Ricardo Grunitzki <[email protected]>:

> Hi all,
>
> I have a trip file generated from an OD matrix with 39000 vehicles. In our
> simulation we need to limit the max number of running cars - 5000 vehicles.
> We use TraCI to interact with the vehicles and sometimes they have their
> routes changed.  Thus, we do not know how long they will remain in the
> simulation.
>
> So, there is a way to limit the number of cars in simulation? That is, when
> the network occupancy reaches a threshold, we need the simulator stops
> loading vehicles. However, when the network occupancy is less than that
> threshold, we need the simulator starts to load vehicles again.
>
> is it possible?
>
> Thanks
>
> --
>
> ---------------------------------------------------------------------------------
> Ricardo Grunitzki
> Federal University of Rio Grande do Sul - UFRGS/Brazil
> ==========================================
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to