The Traffic Flow Simulation using the Jacobi Method is a Java-based application that models traffic flow across a network of junctions. It uses the Jacobi Method, a numerical technique, to solve systems of linear equations iteratively. This project provides an educational tool to explore traffic dynamics and analyze flow behavior under varying conditions.
- User-Friendly GUI: A graphical user interface built with Java Swing allows intuitive user interaction.
- Iterative Simulation: Simulates traffic flow iteratively, showing the evolution of conditions over multiple iterations.
- Input Guidance: Includes a guide tab to assist users in understanding input parameters and configurations.
- Tabbed Interface: Organizes outputs, input variables, and guides into structured tabs.
- Convergence Check: Verifies if the Jacobi method converges and notifies users about the status.
- Number of Junctions (n): Specifies the traffic network's complexity.
- Connectivity Matrix (A): Represents traffic flow relationships between junctions.
- External Forces (b): Indicates external traffic entering each junction.
- Initial Guess (x): Represents the initial conditions of traffic flow.
- Traffic Flow Results: Displays computed traffic flow at each junction.
- Iteration Details: Tabulated data showing changes in traffic flow for each iteration.
- Convergence Status: Informs users whether the simulation successfully converged.
- Model Simplicity: Simplified traffic model; does not capture all real-world complexities.
- Numeric Stability: The Jacobi method may fail to converge for certain configurations.
- Limited Visualization: The focus is on textual rather than graphical output.
- Clone this repository:
git clone https://github.com/Gengo-bit/Traffic-Flow-Simulation-using-the-Jacobi-Method.git
- Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse).
- Build and run the TrafficFlowSimulation class.
- Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse).
- Build and run the
TrafficFlowSimulation
class. - Enter the number of traffic junctions.
- Input the connectivity matrix, external forces, and initial guess.
- Click "Simulate Traffic Flow" to view results.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Submit a pull request with a detailed explanation of your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.
- Paul Emmanuel Corsino - Leader, Main Programmer, Sub Documentation
- Klinnsonveins Yee - Main Documentation, Sub Programmer
2024 © Department of Computer Engineering