Code covered by the BSD License  

Highlights from
Nagel Schreckenberg model implementation

5.0

5.0 | 3 ratings Rate this file 33 Downloads (last 30 days) File Size: 2.14 KB File ID: #34956
image thumbnail

Nagel Schreckenberg model implementation

by

 

06 Feb 2012 (Updated )

Simulation of the Nagel Schreckenberg single-lane traffic model, with visualization and plotting.

| Watch this File

File Information
Description

Simulation the Nagel Schreckenberg single lane model. All standard parameters are implemented:

-vmax
-density
-braking probability

Also, rendering flag allows user to disable rendering for faster flow-density curve calculations.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
06 Jun 2013 nguyen  
06 Jun 2013 Son  
28 May 2013 Thomas Kelly  
28 May 2013 Thomas Kelly

Hi Alex,
I've tried your code out in R2011a and it works perfectly. I'm just wondering how I would go about drawing up a time/cell plot from it to show flow over time? (Similar to what you have implemented in your analyze.m file) I can't quite figure out how to do it.

Thank you in advance

13 Jan 2013 sgtdf

Hi Alex,
I tried your code in R2011b, the figure shows a only single straight line at flow value of zero, can you please fix it? Or tell me the reason why? Thank you very much for your help.

Updates
16 Jul 2012

Fixed problem with vehicle velocity updates.

14 Jan 2013

Fixed a problem with vmax=1 showing zero flow.

13 Jun 2013

Fixed calculated of total flow for FD plot

Contact us