Trams drive on tram rails that are of blue color in this simulation. start-time – time (ticks) when agent was spawned.waiting – Is the car waiting on the green light? (boolean).speed – the distance agent travels in one tick.Cars will stop, if any other car or pedestrians are in front of it. According to my research, one third of all the cars coming to the intersection are coming from Anglická street. They are using roads that are displayed in black color in this simulation. This led to the choice that the time of green lights from both sides should stay the same - this means that I kept the time of green light for trams (= red lights for all cars) the unchanged.Ĭars are coming from the beginnning of Bělehradská and Anglická street. There is limited space for the cars going to Anglická street.Therefore, pedestrians were not included in the simulation as they are not important for it's purpose. The light are set and are not dependent on whether there are any pedestrians or not.Thus, this simulation doesn't allow the cars to change lines. Because the roads are full, the cars don't change lines.But for the purpose of this simulation, this line has no importance, and thus was omitted. As visible on the map of the intersection, there is an extra line solely for cars turning right. Similarly as mentioned above, almost none of the cars coming from Anglická street turn right to Škrétova street.The number of cars continuing straight to Škrétova street is so small, that all the cars in the simulation turn left to Anglická street. Vast majority of the cars coming from Bělehradská street turn left to Anglická street.The arrows point to the direction in which cars or trams go. NetLogo world size was set to and the intersection is placed in the middle, as you can see in the following picture.īlack color displays the roads where cars drive. Also, it provides visualization and quick results.įor the purpose of this simulation, I simplified the intersection.
Netlogo traffic simulation software#
This software is suitable for multi-agent system, such as this simulation. The times of the lights' setting and number of incoming cars were averaged to get regular times that repeat. This is one of the times when cars are waiting from one side only. I obtained data about the current intersection situation by observing the intersection on Friday from 2.30pm till 3.30pm. The fact that the cars are waiting only on one of the incoming streets points to the opinion, that the current setting is not optimal. The goal of the simulation is to portray the current situation of the intersection (with the actual current lights' setting and number of incoming cars), and to find out and optimal lights' setting that would minimize the waiting time of the cars. The intersection is directed by traffic lights. For the cars arriving from Bělehradská street, this means turning left, crossing the tram rail. Vast majority of the cars leave the intersection on Anglická street. There are two ways from which cars approach the intersection. The intersection is displayed on the picture below (source: Google Maps). During afternoon, there are traffic jams on only one street leading to the intersection - on Anglická street. This simulation portrays the intersection of Anglická and Bělehradská / Škrétova.