This repo contains a source code in Python as well C/C++ and CUDA for VRP
To compile the program both python and CUDA you will need following tools and libraries.
- Python 3 and above with numpy, networkx and matplotlib
- CUDA 8.0 Toolkit, NVidia GPU, Visual Studio 2015(Any edition)
- Microsoft Windows 7 and above OS
Compiling and Executing Python Program:
- Keep the vrp.py file and datasets in same folder
- Run command in command prompt on Windows "python vrp.py dataset_name.vrp"
Compiling and Executing CUDA Program:
- Create new NVidia project in Visual Studio and update project properties with all necessary included headers
- Add vrp.cu as source in project
- Set thread define values to MAX supported by your NVidia GPU
- Build the program
- Go to your project folder and keep all datasets and routesGraphGen.py in Debug folder
- Run in Bash with the following command "YourProjectName.exe dataset_name.vrp"
- This will generate routes.txt, an output file
- To generate graph run the python script "python routesGraphGen.py" in command prompt
Please contact Prasad Pandit (prasadp4009@gmail.com) if you have any questions.
Thank You..!!!!!!!