mjcortejo / csc931m-complex-systems

This repository contains the projects done for the CSC931M class
0 stars 0 forks source link

Milestone Merge #43

Closed mjcortejo closed 1 year ago

mjcortejo commented 1 year ago

This Pull Request introduces several enhancements and fixes to the traffic simulation project. Here are the fundamental changes:

The move function is now integrated into the travel() function, improving the car movement logic.

The shortest path algorithm was changed to Dijkstra's for weighted graphs, resulting in more accurate route calculations.

Fixes were made to the module for alternating light states at intersections, improving traffic flow control.

Initial implementation of entry points was added, allowing cars to enter the road network at specified locations.

A fix for the no U-turn policy was implemented to prevent cars from turning around at the same edge.

A notebook was added for road network analysis, providing insights into the grid layout and traffic patterns.

The car.remove() function was reinstated after the StopIteration execution, ensuring proper car removal.

Parking nodes were repositioned based on real-life locations in the Philippines, particularly in Bonifacio Global City, Taguig City.

One-way road policies were introduced, enabling traffic to flow in designated directions.

Waiting time attributes were implemented for cars, enhancing simulation realism.

Maximum capacity was enforced for each edge, regulating the number of cars allowed on each road segment.