Difference between revisions of "Intersection Optimalization"

From Simulace.info
Jump to: navigation, search
Line 45: Line 45:
 
* The light are set and are not dependent on whether there are any pedestrians or not. 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. Therefore, pedestrians were not included in the simulation as they are not important for it's purpose.
 
* There is limited space for the cars going to Anglická street. 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.
 
* There is limited space for the cars going to Anglická street. 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.
 +
 +
== Agents ==
 +
== Cars ==
 +
Cars are coming from the beginnning of Bělehradská and Anglická street. They are using roads that are displayed in black color in this simulation. According to my research, one third of all the cars coming to the intersection are coming from Anglická street. Cars will stop, if any other car or pedestrians are in front of it.
 +
 +
*'''speed''' – the distance agent travels in one tick
 +
*'''waiting''' – Is the car waiting on the green light? (boolean)
 +
*'''start-time''' – time (ticks) when agent was spawned
 +
 +
== Trams ==
 +
Trams drive on tram rails that are of blue color in this simulation. There are two tram rail, one for each directioni.
 +
 +
*'''speed''' – the distance agent travels in one tick
 +
*'''start-time''' - time (ticks) when agent was spawned
 +
 +
== Lights ==
 +
Traffic lights are of two types - for cars (2) and for trams. When the tram lights are green, the car light are red. After that, car lights for Bělehradská street are greet (and other lights red), then car lights for Anglická street are green (and other lights red).
 +
 +
Then the cycle repeats.
  
 
=Results=
 
=Results=

Revision as of 18:28, 29 January 2018

Project Name: Intersection Optimalization

Class: 4IT496 – Simulation of Systems

Author: Jana Vataščinová

Model type: Agent-Based Simulation

Software used: NetLogo


Problem definition

This simulation portrays the intersection of Anglická and Bělehradská / Škrétova. During afternoon, there are traffic jams on only one street leading to the intersection - on Anglická street.

The intersection is displayed on the picture below. There are two ways from which cars approach the intersection. Vast majority of the cars leave the intersection on Anglická street. For the cars arriving from Bělehradská street, this means turning left, crossing the tram rail.

The intersection is directed by traffic lights.

Xvatj00 pic1.png

Goal of the Simulation

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 fact that the cars are waiting only on one of the incoming streets points to the opinion, that the current setting is not optimal.

Data

I obtained data about the current intersection situation by observing the intersection on Friday from 2.30pm till 3.30pm. This is one of the times when cars are waiting from one side only.

The times of the lights' setting and number of incoming cars were averaged to get regular times that repeat.

Method

NetLogo 6.2. was used for this simulation. This software is suitable for multi-agent system, such as this simulation. Also, it provides visualization and quick results.

Model

Blueprint and Limitations

For the purpose of this simulation, I simplified the intersection. NetLogo world size was set to {{-15,..,15},{-15,..,15}} and the intersection is placed in the middle, as you can see in the following picture.

Black color displays the roads where cars drive. Blue color signifies tram rail. The arrows point to the direction in which cars or trams go.

Xvatj00 pic2.png

  • Vast majority of the cars coming from Bělehradská street turn left to Anglická 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.
  • Similarly as mentioned above, almost none of the cars coming from Anglická street turn right to Škrétova street. As visible on the map of the intersection, there is an extra line solely for cars turning right. But for the purpose of this simulation, this line has no importance, and thus was omitted.
  • Because the roads are full, the cars don't change lines. Thus, this simulation doesn't allow the cars to change lines.
  • The light are set and are not dependent on whether there are any pedestrians or not. Therefore, pedestrians were not included in the simulation as they are not important for it's purpose.
  • There is limited space for the cars going to Anglická street. 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.

Agents

Cars

Cars are coming from the beginnning of Bělehradská and Anglická street. They are using roads that are displayed in black color in this simulation. According to my research, one third of all the cars coming to the intersection are coming from Anglická street. Cars will stop, if any other car or pedestrians are in front of it.

  • speed – the distance agent travels in one tick
  • waiting – Is the car waiting on the green light? (boolean)
  • start-time – time (ticks) when agent was spawned

Trams

Trams drive on tram rails that are of blue color in this simulation. There are two tram rail, one for each directioni.

  • speed – the distance agent travels in one tick
  • start-time - time (ticks) when agent was spawned

Lights

Traffic lights are of two types - for cars (2) and for trams. When the tram lights are green, the car light are red. After that, car lights for Bělehradská street are greet (and other lights red), then car lights for Anglická street are green (and other lights red).

Then the cycle repeats.

Results

Conclusion

Code