← 开源
OptMLGroup

VRP-RL

Reinforcement Learning for Solving the Vehicle Routing Problem

Model DevelopmentReinforcement LearningPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
710
Star
234
Fork
+0
本周
1
贡献者
创建于 2018-10-22 · 更新于 2026-09-27 · 今日第 14699 名
主要开发者
rezanazari

OptMLGroup/VRP-RL 排名第 14,699,有 710 个星标。

同类别比较

OptMLGroup/VRP-RL 排名第 14,699,此处有 8 个同类条目;PeterWang512/GANSketching 排名第 14,700。

同类别比较
名称排名指标
xiaowei-hu/CycleGAN-tensorflow14,682
语言:
Python
星标数:
712
分叉数:
291
简介:
Tensorflow implementation for learning an image-to-image translation without input-output pairs. https://arxiv.org/pdf/1703.10593.pdf
ajtulloch/dnngraph14,686
语言:
Haskell
星标数:
711
分叉数:
59
简介:
A DSL for deep neural networks, supporting Caffe and Torch
codefuse-ai/MFTCoder14,687
语言:
Python
星标数:
711
分叉数:
69
简介:
High Accuracy and efficiency multi-task fine-tuning framework for Code LLMs. This work has been accepted by KDD 2024.
google/edward214,691
语言:
Jupyter Notebook
星标数:
711
分叉数:
77
简介:
A simple probabilistic programming language.
PeterWang512/GANSketching14,700
语言:
Python
星标数:
710
分叉数:
94
简介:
Sketch Your Own GAN: Customizing a GAN model with hand-drawn sketches.
agentscope-ai/Trinity-RFT14,701
语言:
Python
星标数:
710
分叉数:
85
简介:
Trinity-RFT is a general-purpose, flexible and scalable framework designed for reinforcement fine-tuning (RFT) of large language models (LLM).
hijkzzz/pymarl214,705
语言:
Python
星标数:
710
分叉数:
135
简介:
Fine-tuned MARL algorithms on SMAC (100% win rates on most scenarios)
kendricktan/suiron14,707
语言:
Python
星标数:
710
分叉数:
77
简介:
Machine Learning for RC Cars
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Reinforcement Learning
关键词RL
星标数710
分叉数234
贡献者1
创建日期2018-10-22
更新日期2026-09-27
1 天星标数0
7 天星标数0
排名14,699
上次排名14,545
排名变化-154
7 天星标排名14,611
上次 7 天星标排名14,621
7 天星标排名变化10
总星标排名14,726
上次总星标排名14,702
总星标排名变化-24
国家USA
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. 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.

常见问题

记录了多少星标和分叉?

OptMLGroup/VRP-RL 有 710 个星标和 234 个分叉。

仓库排名是多少?

OptMLGroup/VRP-RL 排名第 14,699。

记录的语言和类别是什么?

OptMLGroup/VRP-RL 有 710 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

OptMLGroup/VRP-RL 与 PeterWang512/GANSketching 比较,后者排名第 14,700,有 710 个星标。

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.

排名相邻
同类项目