Traffic Simulation using NetLogo

Hemanth Kumar Mantri
Hemanth Kumar MantriGraduate Teaching Assistant
SIMANUPULATE
           QUARK '08


By
Hemanth Mantri, Anil Kumar, Lenin
B.E(Hons)Computer Science
BITS Pilani, Goa Campus
Problem statement : Simulation of traffic flow at a junction

Software Used : NETLOGO 3.0.2
Why Traffic signaling ?

 ● Fast facts

An average Indian in metros spends 6 days in an year in
traffic jams
37% of the road accidents in India are due to improper
traffic control .




                                       Courtesy : wikipedia
Why Traffic signaling ?

The initial cost of installing traffic signal is justified by

 ● The saving in time

 ● Reducing anxiety

  ● Eliminating manual effort.
Need to design an optimum system to meet individual
junction needs.
DESIGN OBJECTIVES :

● Must be simple

● Easily adaptable to the existing traffic conditions at the
  junction

● Must provide the quickest possible clearance to vehicular
  and pedestrian traffic in all directions

● Must be flexible enough to take care of change in the traffic
  density and character with time.
● The equipment must be easy to start, operate and
  maintain



● Withstand severe weather conditions and supply voltage
  fluctuations.

● Careful study and analysis of the traffic flow at the
  required junction is carried out beforehand to select the
  most economical system.
Our Model :


Quick view

 ● Simulates a busy traffic intersection in which the
   vehicles come from the four directions namely East,
   West, North and South.

 ● Aims to avoid accidents and to manage the waiting
   times of the vehicles

 ● Includes as many real time inputs as possible.
Assumptions:

Each direction of traffic junction has two lanes.


Each square patch (Netlogo term) can be empty or occupied
by exactly 1 vehicle. All vehicles are of same size is assumed
implicitly here.

Explicitly forbids collisions and overtaking.


Pedestrians and Vehicles obey traffic signals (at least up to a
threshold time). This is OK because they are not made to wait
indefinitely.
vehicles :

Allowed to come from the four directions.
Randomly move towards any of the other three directions
Frequency of vehicles on each of the 4 directions is adjustable
Try to move to the patch ahead on each time-step and remain
where they are if the patch ahead is occupied
or if the traffic signal prevents them from moving.

Stop when the signal is red BUT up to a limited time beyond
which they lose patience.
Vehicles at a traffic light about to enter the intersection will
not do so only if there are not more than a specified amount
of cars already in the intersection area.
While a vehicle is stopped its wait-time counter increases by
1 every time-step.
Pedestrians:

 Also come from the four directions
 Cross the road only when all the signals are red (pedestrian
 signal on)
 When the PEDESTRIAN switch is on or their count crosses a
 given threshold the signal favors pedestrians




Graphs/Monitors :
The monitors show the number of vehicles waiting on each
directions and also their avg speeds.
The throughput graph shows the number of vehicles that cross
the junction in given time. The aim is maximize this.
What's New?
● Adaptive to the vehicle frequency in switching the lights.

● No indefinite waiting.

● Provision for pedestrians

● Monitoring vehicle throughput

● Considers the number of waiting cars in every direction
  and signals adjust themselves to reduce this.
1 of 12

Recommended

Nightwatch JS for End to End Tests by
Nightwatch JS for End to End TestsNightwatch JS for End to End Tests
Nightwatch JS for End to End TestsSriram Angajala
691 views13 slides
Considerations for Alert Design by
Considerations for Alert DesignConsiderations for Alert Design
Considerations for Alert DesignJohn Allspaw
9.8K views48 slides
Microservices Communication Patterns with gRPC by
Microservices Communication Patterns with gRPCMicroservices Communication Patterns with gRPC
Microservices Communication Patterns with gRPCWSO2
578 views22 slides
Microsoft AI Platform - AETHER Introduction by
Microsoft AI Platform - AETHER IntroductionMicrosoft AI Platform - AETHER Introduction
Microsoft AI Platform - AETHER IntroductionKarthik Murugesan
2K views69 slides
Les skelet by
Les skeletLes skelet
Les skeletShamilla Gwen Vollebregt
1.6K views12 slides
Netflix - Enabling a Culture of Analytics by
Netflix - Enabling a Culture of AnalyticsNetflix - Enabling a Culture of Analytics
Netflix - Enabling a Culture of AnalyticsBlake Irvine
22.4K views19 slides

More Related Content

Viewers also liked

Agent Based Modeling and Simulation - Overview and Tools by
Agent Based Modeling and Simulation - Overview and ToolsAgent Based Modeling and Simulation - Overview and Tools
Agent Based Modeling and Simulation - Overview and ToolsStathis Grigoropoulos
4.7K views32 slides
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari by
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariAgent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariGiuseppe Vizzari
5.4K views46 slides
Agent Based Models by
Agent Based ModelsAgent Based Models
Agent Based ModelsDavid Sherlock
4.5K views13 slides
GIS and Agent-based modeling: Part 1 by
GIS and Agent-based modeling: Part 1GIS and Agent-based modeling: Part 1
GIS and Agent-based modeling: Part 1crooksAndrew
6.9K views91 slides
Benkelman beam by
Benkelman beamBenkelman beam
Benkelman beamPriyansh Singh
17.5K views25 slides
Benkelman beam deflection studies by
Benkelman beam deflection studiesBenkelman beam deflection studies
Benkelman beam deflection studiesvikasravekar
42.9K views33 slides

Viewers also liked(8)

Agent Based Modeling and Simulation - Overview and Tools by Stathis Grigoropoulos
Agent Based Modeling and Simulation - Overview and ToolsAgent Based Modeling and Simulation - Overview and Tools
Agent Based Modeling and Simulation - Overview and Tools
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari by Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariAgent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Giuseppe Vizzari5.4K views
GIS and Agent-based modeling: Part 1 by crooksAndrew
GIS and Agent-based modeling: Part 1GIS and Agent-based modeling: Part 1
GIS and Agent-based modeling: Part 1
crooksAndrew6.9K views
Benkelman beam deflection studies by vikasravekar
Benkelman beam deflection studiesBenkelman beam deflection studies
Benkelman beam deflection studies
vikasravekar42.9K views
Number plate recognition system using matlab. by Namra Afzal
Number plate recognition system using matlab.Number plate recognition system using matlab.
Number plate recognition system using matlab.
Namra Afzal59.7K views

Similar to Traffic Simulation using NetLogo

Safe Road For All 2 by
Safe Road For All 2Safe Road For All 2
Safe Road For All 2Francis Chu
438 views19 slides
TRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdf by
TRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdfTRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdf
TRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdfPriya Sarita Mane
55 views72 slides
Automatic Pneumatic Bumper by
Automatic Pneumatic BumperAutomatic Pneumatic Bumper
Automatic Pneumatic BumperMOHAMMAD TANVEER
59 views6 slides
Makethon ADVITIYA IIT ROPAR by
Makethon ADVITIYA IIT ROPARMakethon ADVITIYA IIT ROPAR
Makethon ADVITIYA IIT ROPARBhavanakanwarRao
58 views16 slides
He final ppt by
He final pptHe final ppt
He final pptShahIshani1996
2.4K views52 slides
Cc503 traffic managemant part1 by
Cc503   traffic managemant part1Cc503   traffic managemant part1
Cc503 traffic managemant part1Syafiqah Jamian
5.4K views61 slides

Similar to Traffic Simulation using NetLogo(20)

Safe Road For All 2 by Francis Chu
Safe Road For All 2Safe Road For All 2
Safe Road For All 2
Francis Chu438 views
TRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdf by Priya Sarita Mane
TRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdfTRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdf
TRAFFIC ENGINEERING & HIGHWAY DRAINAGE_.pdf
Cc503 traffic managemant part1 by Syafiqah Jamian
Cc503   traffic managemant part1Cc503   traffic managemant part1
Cc503 traffic managemant part1
Syafiqah Jamian5.4K views
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION by Mr. Lucky
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
Mr. Lucky5.8K views
Wrong-way vehicle motion detection system by IRJET Journal
Wrong-way vehicle motion detection systemWrong-way vehicle motion detection system
Wrong-way vehicle motion detection system
IRJET Journal11 views
Traffic signal 32&35:DCE:FET:IIUI by civilengineerf14
Traffic signal 32&35:DCE:FET:IIUITraffic signal 32&35:DCE:FET:IIUI
Traffic signal 32&35:DCE:FET:IIUI
civilengineerf142.6K views
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb) by Hossam Shafiq I
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
Hossam Shafiq I3.7K views
Design of Smart Traffic Light Controller Using Embedded System by IOSR Journals
Design of Smart Traffic Light Controller Using Embedded SystemDesign of Smart Traffic Light Controller Using Embedded System
Design of Smart Traffic Light Controller Using Embedded System
IOSR Journals641 views
Design and-analysis-of-a-two-stage-traffic-light-system-using-fuzzy-logic-216... by hanhdoduc
Design and-analysis-of-a-two-stage-traffic-light-system-using-fuzzy-logic-216...Design and-analysis-of-a-two-stage-traffic-light-system-using-fuzzy-logic-216...
Design and-analysis-of-a-two-stage-traffic-light-system-using-fuzzy-logic-216...
hanhdoduc94 views
GreenSwirl: Combining Traffic Signal Control and Route Guidance for Reducing ... by Naoki Shibata
GreenSwirl: Combining Traffic Signal Control and Route Guidance for Reducing ...GreenSwirl: Combining Traffic Signal Control and Route Guidance for Reducing ...
GreenSwirl: Combining Traffic Signal Control and Route Guidance for Reducing ...
Naoki Shibata2.6K views
,Exit Exam Tutorial -Traffic Engineering.pdf by sandipanpaul16
,Exit Exam Tutorial -Traffic Engineering.pdf,Exit Exam Tutorial -Traffic Engineering.pdf
,Exit Exam Tutorial -Traffic Engineering.pdf
sandipanpaul1613 views
A Hybrid Method for Automatic Traffic Control Mechanism by MangaiK4
A Hybrid Method for Automatic Traffic Control MechanismA Hybrid Method for Automatic Traffic Control Mechanism
A Hybrid Method for Automatic Traffic Control Mechanism
MangaiK44 views
Traffic studies (transportation engineering) by Civil Zone
Traffic studies (transportation engineering)Traffic studies (transportation engineering)
Traffic studies (transportation engineering)
Civil Zone509 views
Traffic signal by aloknitb
Traffic signalTraffic signal
Traffic signal
aloknitb11K views
Chapter 2trafficstudies-160822181308 by saibabu48
Chapter 2trafficstudies-160822181308Chapter 2trafficstudies-160822181308
Chapter 2trafficstudies-160822181308
saibabu48315 views

More from Hemanth Kumar Mantri

TCP Issues in DataCenter Networks by
TCP Issues in DataCenter NetworksTCP Issues in DataCenter Networks
TCP Issues in DataCenter NetworksHemanth Kumar Mantri
1.5K views32 slides
Basic Paxos Implementation in Orc by
Basic Paxos Implementation in OrcBasic Paxos Implementation in Orc
Basic Paxos Implementation in OrcHemanth Kumar Mantri
1.3K views28 slides
Neural Networks in File access Prediction by
Neural Networks in File access PredictionNeural Networks in File access Prediction
Neural Networks in File access PredictionHemanth Kumar Mantri
720 views17 slides
Connected Components Labeling by
Connected Components LabelingConnected Components Labeling
Connected Components LabelingHemanth Kumar Mantri
2.3K views52 slides
JPEG Image Compression by
JPEG Image CompressionJPEG Image Compression
JPEG Image CompressionHemanth Kumar Mantri
6.8K views42 slides
Search Engine Switching by
Search Engine SwitchingSearch Engine Switching
Search Engine SwitchingHemanth Kumar Mantri
282 views30 slides

Recently uploaded

Business X Design - People, Planet & Product by
Business X Design - People, Planet & ProductBusiness X Design - People, Planet & Product
Business X Design - People, Planet & ProductCyber-Duck
28 views42 slides
slide deck by
slide deckslide deck
slide deckshamailalsabri
7 views6 slides
A.K DESIGNS by
A.K DESIGNSA.K DESIGNS
A.K DESIGNSnikitasingh113603
6 views4 slides
portfolio_20231206_Re.pdf by
portfolio_20231206_Re.pdfportfolio_20231206_Re.pdf
portfolio_20231206_Re.pdfSivaphan Wuttingam
14 views65 slides
BeatsFest Brand Guidelines Final.pdf by
BeatsFest Brand Guidelines Final.pdfBeatsFest Brand Guidelines Final.pdf
BeatsFest Brand Guidelines Final.pdfEddiePena9
8 views12 slides
DR Portfolio.pptx by
DR Portfolio.pptxDR Portfolio.pptx
DR Portfolio.pptxrobertsd2
25 views11 slides

Recently uploaded(20)

Business X Design - People, Planet & Product by Cyber-Duck
Business X Design - People, Planet & ProductBusiness X Design - People, Planet & Product
Business X Design - People, Planet & Product
Cyber-Duck28 views
BeatsFest Brand Guidelines Final.pdf by EddiePena9
BeatsFest Brand Guidelines Final.pdfBeatsFest Brand Guidelines Final.pdf
BeatsFest Brand Guidelines Final.pdf
EddiePena98 views
DR Portfolio.pptx by robertsd2
DR Portfolio.pptxDR Portfolio.pptx
DR Portfolio.pptx
robertsd225 views
Samsung Galaxy Watch 5 Presentation by aryasheel1
Samsung Galaxy Watch 5 PresentationSamsung Galaxy Watch 5 Presentation
Samsung Galaxy Watch 5 Presentation
aryasheel113 views
type book PDF to PPT.pptx by samboggiano
type book PDF to PPT.pptxtype book PDF to PPT.pptx
type book PDF to PPT.pptx
samboggiano6 views
Indian wedding dresses design.pdf by Aur Dikhao
Indian wedding dresses design.pdfIndian wedding dresses design.pdf
Indian wedding dresses design.pdf
Aur Dikhao5 views
Sugar Air Kiss Lipstick by aryasheel1
Sugar Air Kiss LipstickSugar Air Kiss Lipstick
Sugar Air Kiss Lipstick
aryasheel111 views
500% Sales Growth with Amazon A+ Content by Fahima
500% Sales Growth with Amazon A+ Content500% Sales Growth with Amazon A+ Content
500% Sales Growth with Amazon A+ Content
Fahima11 views
Cocktail Merchandise by nyhapedraza
Cocktail MerchandiseCocktail Merchandise
Cocktail Merchandise
nyhapedraza35 views
Legal PPT Presentation.pptx by 125071063
Legal PPT Presentation.pptxLegal PPT Presentation.pptx
Legal PPT Presentation.pptx
1250710635 views
Using Experiential Design to Understand the Future of AI & Immersive Storytel... by Kent Bye
Using Experiential Design to Understand the Future of AI & Immersive Storytel...Using Experiential Design to Understand the Future of AI & Immersive Storytel...
Using Experiential Design to Understand the Future of AI & Immersive Storytel...
Kent Bye20 views
Canned Cocktail Flat Labels by nyhapedraza
Canned Cocktail Flat LabelsCanned Cocktail Flat Labels
Canned Cocktail Flat Labels
nyhapedraza38 views

Traffic Simulation using NetLogo

  • 1. SIMANUPULATE QUARK '08 By Hemanth Mantri, Anil Kumar, Lenin B.E(Hons)Computer Science BITS Pilani, Goa Campus
  • 2. Problem statement : Simulation of traffic flow at a junction Software Used : NETLOGO 3.0.2
  • 3. Why Traffic signaling ? ● Fast facts An average Indian in metros spends 6 days in an year in traffic jams 37% of the road accidents in India are due to improper traffic control . Courtesy : wikipedia
  • 4. Why Traffic signaling ? The initial cost of installing traffic signal is justified by ● The saving in time ● Reducing anxiety ● Eliminating manual effort. Need to design an optimum system to meet individual junction needs.
  • 5. DESIGN OBJECTIVES : ● Must be simple ● Easily adaptable to the existing traffic conditions at the junction ● Must provide the quickest possible clearance to vehicular and pedestrian traffic in all directions ● Must be flexible enough to take care of change in the traffic density and character with time.
  • 6. ● The equipment must be easy to start, operate and maintain ● Withstand severe weather conditions and supply voltage fluctuations. ● Careful study and analysis of the traffic flow at the required junction is carried out beforehand to select the most economical system.
  • 7. Our Model : Quick view ● Simulates a busy traffic intersection in which the vehicles come from the four directions namely East, West, North and South. ● Aims to avoid accidents and to manage the waiting times of the vehicles ● Includes as many real time inputs as possible.
  • 8. Assumptions: Each direction of traffic junction has two lanes. Each square patch (Netlogo term) can be empty or occupied by exactly 1 vehicle. All vehicles are of same size is assumed implicitly here. Explicitly forbids collisions and overtaking. Pedestrians and Vehicles obey traffic signals (at least up to a threshold time). This is OK because they are not made to wait indefinitely.
  • 9. vehicles : Allowed to come from the four directions. Randomly move towards any of the other three directions Frequency of vehicles on each of the 4 directions is adjustable Try to move to the patch ahead on each time-step and remain where they are if the patch ahead is occupied or if the traffic signal prevents them from moving. Stop when the signal is red BUT up to a limited time beyond which they lose patience.
  • 10. Vehicles at a traffic light about to enter the intersection will not do so only if there are not more than a specified amount of cars already in the intersection area. While a vehicle is stopped its wait-time counter increases by 1 every time-step.
  • 11. Pedestrians: Also come from the four directions Cross the road only when all the signals are red (pedestrian signal on) When the PEDESTRIAN switch is on or their count crosses a given threshold the signal favors pedestrians Graphs/Monitors : The monitors show the number of vehicles waiting on each directions and also their avg speeds. The throughput graph shows the number of vehicles that cross the junction in given time. The aim is maximize this.
  • 12. What's New? ● Adaptive to the vehicle frequency in switching the lights. ● No indefinite waiting. ● Provision for pedestrians ● Monitoring vehicle throughput ● Considers the number of waiting cars in every direction and signals adjust themselves to reduce this.