Reinforcement Learning for Solving the Vehicle Routing Problem We use Reinforcement for solving Travelling Salesman Problem (TSP) and Vehicle Routing Problem (VRP). Paper Implementation of our paper: Reinforcement Learning for Solving the Vehicle Routing Problem. 2 tqdm How to Run Train By default, the code is running in the training mode on a single gpu. For running the code, one can use the following command: It is possible to add other config parameters like: There is a full list of
all configs in the config. Also, task specific parameters are available in task_specific_params. py Inference For running the trained model for inference, it is possible to turn off the training mode. For this, you need to specify the directory of the trained model, otherwise random model will be used for decoding: The default inference is run in batch mode, meaning that all testing instances are fed simultanously. It is also possible to do inference in single mode, which
means that we decode instances one-by-one. The latter case is used for reporting the runtimes and it will display detailed reports. For running the inference with single mode, you can try: Logs All logs are stored in result. Sample CVRP solution Acknowledgements Thanks to pemami4911/neural-combinatorial-rl-pytorch for getting the idea of restructuring the code.
Frequently asked questions
How many stars and forks are recorded?
OptMLGroup/VRP-RL has 710 stars and 234 forks.
What is the repository rank?
OptMLGroup/VRP-RL is ranked 14,699.
What language and category are recorded?
OptMLGroup/VRP-RL has 710 stars, uses Python and belongs to Model Development.
Which repository is closest in rank?
OptMLGroup/VRP-RL is compared with PeterWang512/GANSketching, ranked 14,700 with 710 stars.
README
Reinforcement Learning for Solving the Vehicle Routing Problem
We use Reinforcement for solving Travelling Salesman Problem (TSP) and Vehicle Routing Problem (VRP).
There is a full list of all configs in the config.py file. Also, task specific parameters are available in task_specific_params.py
Inference
For running the trained model for inference, it is possible to turn off the training mode. For this, you need to specify the directory of the trained model, otherwise random model will be used for decoding:
The default inference is run in batch mode, meaning that all testing instances are fed simultanously. It is also possible to do inference in single mode, which means that we decode instances one-by-one. The latter case is used for reporting the runtimes and it will display detailed reports. For running the inference with single mode, you can try: