← Open Source
OptMLGroup

VRP-RL

Reinforcement Learning for Solving the Vehicle Routing Problem.

Model DevelopmentReinforcement LearningPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
710
Stars
234
Forks
+0
This week
1
Contributors
Created 2018-10-22 · Updated 2026-09-27 · #14699 today
Top developers
rezanazari

OptMLGroup/VRP-RL is ranked 14,699 with 710 stars.

Same-category comparison

OptMLGroup/VRP-RL is ranked 14,699 among these 8 peers; PeterWang512/GANSketching is ranked 14,700.

Same-category comparison
NameRankMetrics
xiaowei-hu/CycleGAN-tensorflow14,682
Language:
Python
Stars:
712
Forks:
291
Description:
Tensorflow implementation for learning an image-to-image translation without input-output pairs. https://arxiv.org/pdf/1703.10593.pdf.
ajtulloch/dnngraph14,686
Language:
Haskell
Stars:
711
Forks:
59
Description:
A DSL for deep neural networks, supporting Caffe and Torch.
codefuse-ai/MFTCoder14,687
Language:
Python
Stars:
711
Forks:
69
Description:
High Accuracy and efficiency multi-task fine-tuning framework for Code LLMs. This work has been accepted by KDD 2024.
google/edward214,691
Language:
Jupyter Notebook
Stars:
711
Forks:
77
Description:
A simple probabilistic programming language.
PeterWang512/GANSketching14,700
Language:
Python
Stars:
710
Forks:
94
Description:
Sketch Your Own GAN: Customizing a GAN model with hand-drawn sketches.
agentscope-ai/Trinity-RFT14,701
Language:
Python
Stars:
710
Forks:
85
Description:
Trinity-RFT is a general-purpose, flexible and scalable framework designed for reinforcement fine-tuning (RFT) of large language models (LLM).
hijkzzz/pymarl214,705
Language:
Python
Stars:
710
Forks:
135
Description:
Fine-tuned MARL algorithms on SMAC (100% win rates on most scenarios).
kendricktan/suiron14,707
Language:
Python
Stars:
710
Forks:
77
Description:
Machine Learning for RC Cars.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryReinforcement Learning
KeywordsRL
Stars710
Forks234
Contributors1
Created date2018-10-22
Updated date2026-09-27
Stars in 1 day0
Stars in 7 days0
Rank14,699
Previous rank14,545
Rank change-154
7-day stars rank14,611
Previous 7-day stars rank14,621
7-day stars rank change10
Total stars rank14,726
Previous total stars rank14,702
Total stars rank change-24
CountryUSA
README summary

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).

Paper

Implementation of our paper: Reinforcement Learning for Solving the Vehicle Routing Problem.

Dependencies

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:

python main.py --task=vrp10

It is possible to add other config parameters like:

python main.py --task=vrp10 --gpu=0 --n_glimpses=1 --use_tanh=False 

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:

python main.py --task=vrp10 --is_train=False --model_dir=./path_to_your_saved_checkpoint

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:

python main.py --task=vrp10 --is_train=False --infer_type=single --model_dir=./path_to_your_saved_checkpoint

Logs

All logs are stored in result.txt file stored in ./logs/task_date_time directory.

Sample CVRP solution

Acknowledgements

Thanks to pemami4911/neural-combinatorial-rl-pytorch for getting the idea of restructuring the code.

Nearby in the ranking
Similar items