This desktop application is built with PySide6 to solve the Traveling Salesman Problem (TSP) using a Genetic Algorithm. The app provides an intuitive interface for users to input their data and find an optimal solution to the TSP.
- Genetic Algorithm: The app employs a Genetic Algorithm to find an optimal solution to the TSP.
- Interactive Interface: Users can easily input their TSP data and visualize the results through the interactive graphical interface.
- Configurable Parameters: The Genetic Algorithm parameters are configurable, allowing users to experiment with different settings.
- Result Visualization: The app displays the optimized route and relevant statistics to help users understand the solution.
-
Clone the repository:
git clone https://github.com/Alibakhshov/TSP-with-Genetic-Algorithm.git
-
Navigate to the project directory:
cd TSP-with-Genetic-Algorithm
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python main.py
-
Choose the matrix size and click on the "Ok" button to generate a random distance matrix.
-
Input the matrix values and select the starting node.
-
Click on the "Run" button to start the Genetic Algorithm.
If you'd like to contribute to this project, please follow the Contribution Guidelines.
This project is licensed under the MIT License.