This is a matlab program simulating the traffic situation in Shanghai and Chengdu, which contains the grid road system and overpass ring road system.
- The linked list is applied in moving cars.
- Cars are randomly created and have a random generated destination. After reaching the destination, cars are deleted from the system.
- There has certain rate of break down and recover of each car. The red dot in the gif following shows the broken cars.
- There have traffic lights on the grid system but not on the ring road.
- Run the
main.m
file in matlab to start the program.