项目 / PyVRP/PyVRP

PyVRP/PyVRP

行业推荐
语言 Python标签 route-optimizationcpppythonvehicle-routing-problemlogisticsoperations-researchoptimizationpickup-deliveryrich-vrptime-windowsvrpmulti-depotorienteering数据更新 2026-11-24 06:50:13 · 仓库 2026-11-23

一段话介绍

开源的车辆路径问题(VRP)求解器,可用 Python 建模并求解带取送货、车队差异、时间窗、多车场和可选客户等多种常见约束的路径问题。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Open-source, state-of-the-art vehicle routing problem solver in an easy-to-use Python package.
735累计星
166Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

路径规划与运输调度

适配系统:运输管理系统、调度优化引擎 · 得分 1.4

内置路径/运力求解算法,可嵌入 TMS 做配载、排线与在途调度决策。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
执行 `pip install pyvrp` 安装后,打开[项目文档](https://pyvrp.org/stable/)从入门教程开始,按示例建立车辆路径问题并求解。各类约束的详细用法也可在文档的专题教程中查阅。仓库入口见 [GitHub](https://github.com/PyVRP/PyVRP)。
特点或设计要点
可通过 `pip` 安装,文档提供快速入门和分主题教程。开源版本覆盖多种常见 VRP 变体;源文将部分能力标为 Enterprise 扩展,本页只介绍开源仓库写明的基本能力。算法说明和实现笔记也可在文档中查阅。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-19 · 语言 Python · 贡献者 —
python

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 5,942 字节。

![PyVRP logo](docs/source/assets/images/logo.svg)

[![PyPI version](https://img.shields.io/pypi/v/PyVRP?style=flat-square&label=PyPI)](https://pypi.org/project/pyvrp/)
[![CI](https://img.shields.io/github/actions/workflow/status/PyVRP/PyVRP/.github%2Fworkflows%2FCI.yml?branch=main&style=flat-square&logo=github&label=CI)](https://github.com/PyVRP/PyVRP/actions/workflows/CI.yml)
[![DOC](https://img.shields.io/github/actions/workflow/status/PyVRP/PyVRP/.github%2Fworkflows%2FDOC.yml?branch=main&style=flat-square&logo=github&label=DOC)](https://pyvrp.org/)
[![codecov](https://img.shields.io/codecov/c/github/PyVRP/PyVRP?style=flat-square&logo=codecov&label=Codecov)](https://codecov.io/gh/PyVRP/PyVRP)
[![DOI:10.1287/ijoc.2023.0055](https://img.shields.io/badge/DOI-ijoc.2023.0055-green?style=flat-square&color=blue)](https://doi.org/10.1287/ijoc.2023.0055)

PyVRP is an open-source, state-of-the-art vehicle routing problem (VRP) solver developed by [Applied Routing](https://appliedrouting.com).
It currently supports VRPs with:
- Pickups and deliveries (capacitated VRP, VRP with simultaneous pickup and delivery, VRP with backhaul, pickup and delivery VRP);
- Vehicles of different capacities, costs, shift durations, routing profiles, and maximum distance and duration constraints (heterogeneous fleet VRP, site-dependent VRP);
- Time windows, client service durations, and release times (VRP with time windows and release times);
- Multiple depots (multi-depot VRP);
- Reloading along routes at different reload depots (multi-trip VRP);
- Optional clients with prizes for visiting (prize collecting, team orienteering problem);
- Mutually exclusive groups for choosing between alternatives (generalised VRP, VRP with multiple time windows);
- **[Enterprise]** Automatic break planning for EU and US hours-of-service regulations;
- **[Enterprise]** Vehicle-client and client-client compatibility constraints and sequencing relations;
- **[Enterprise]** Fairness constraints like load and shift duration balancing;
- **[Enterprise]** Soft clustering to encourage geographically compact routes.

PyVRP is available on the Python package index as `pyvrp`.
It may be installed in the usual way as
```
pip install pyvrp
```

The documentation is available [here][1].

> [!TIP]
> Using or evaluating PyVRP at your company? [Applied Routing](https://appliedrouting.com) provides consulting, custom development, and PyVRP Enterprise, an extended and production-ready version of PyVRP.
> Get in touch at [info@appliedrouting.com](mailto:info@appliedrouting.com) to join a private Slack channel with our team and discuss your use case, PyVRP features, or the roadmap.

### Tutorials

We provide many tutorials that show how to use PyVRP to solve vehicle routing problems.
The [quickstart][4] introduces PyVRP's modelling interface and is a great way to get started.

The following tutorials cover specific features in more detail:
- [Load and vehicle capacities][5]: client pickups, deliveries, and multiple load dimensions.
- [Time and duration constraints][6]: time windows, service durations, release times, shifts and overtime.
- [Profiles][7]: different distances and durations for different vehicle types, and modelling access restrictions.
- [Optional clients][8]: using rewards to visit optional clients.
- [Mutually exclusive groups][9]: modelling alternative services.
- [Reloading][10]: vehicle reloading at depots during routes.
- [Shipments][14]: paired pickup and delivery.

For those interested in PyVRP's underlying algorithm, see [this page][11] for a high-level description of the iterated local search algorithm, and [this notebook][12] for an implementation of the `solve` method using PyVRP's components.

### Getting help

Feel free to open an issue or a new discussion thread here on GitHub.
When writing your issue or discussion, please follow the instructions [here][3].
For professional support, contact us at [info@appliedrouting.com](mailto:info@appliedrouting.com).

### Contributing

While we are very grateful for any contributions you are willing to make, reviewing and maintaining third-party code takes a significant amount of our time.
Before you start working on your contribution, please have a look [here][2] to get started.
Make sure to discuss the change first in a GitHub issue.
Feel free to open a new one if no appropriate issue already exists!

### How to cite PyVRP

If you use PyVRP in your research, please consider citing the following paper:

> Wouda, N.A., L. Lan, and W. Kool (2024).
> PyVRP: a high-performance VRP solver package.
> _INFORMS Journal on Computing_, 36(4): 943-955.
> https://doi.org/10.1287/ijoc.2023.0055

Or, using the following BibTeX entry:

```bibtex
@article{Wouda_Lan_Kool_PyVRP_2024,
  doi = {10.1287/ijoc.2023.0055},
  url = {https://doi.org/10.1287/ijoc.2023.0055},
  year = {2024},
  volume = {36},
  number = {4},
  pages = {943--955},
  publisher = {INFORMS},
  author = {Niels A. Wouda and Leon Lan and Wouter Kool},
  title = {{PyVRP}: a high-performance {VRP} solver package},
  journal = {INFORMS Journal on Computing},
}
```

A preprint of this paper is available on [arXiv][13].

[1]: https://pyvrp.org/stable/

[2]: https://pyvrp.org/stable/dev/contributing.html

[3]: https://pyvrp.org/stable/setup/getting_help.html

[4]: https://pyvrp.org/stable/notebooks/quick_start.html

[5]: https://pyvrp.org/stable/notebooks/load.html

[6]: https://pyvrp.org/stable/notebooks/duration_constraints.html

[7]: https://pyvrp.org/stable/notebooks/profiles.html

[8]: https://pyvrp.org/stable/notebooks/optional_clients.html

[9]: https://pyvrp.org/stable/notebooks/mutually_exclusive_groups.html

[10]: https://pyvrp.org/stable/notebooks/reloading.html

[11]: https://pyvrp.org/stable/dev/algorithm.html

[12]: https://pyvrp.org/stable/notebooks/pyvrp_implementation.html

[13]: https://arxiv.org/abs/2403.13795

[14]: https://pyvrp.org/stable/notebooks/shipments.html
↑