OR-Tools:确保同一站点的车辆访问节点组

发布于 2025-01-16 08:23:20 字数 132 浏览 0 评论 0原文

我想使用 OR-Tools 来解决 CVRP,其中每个节点都有一个标签,并且具有相同标签的所有节点都必须由来自同一起始位置的车辆访问。这个起始位置是哪个并不重要,唯一的要求是对于具有相同标签的所有节点来说它是相同的。有没有办法使用路由库对此进行建模?

I would like to use OR-Tools to solve a CVRP where each node has a label, and all the nodes that have the same label have to be visited by vehicles that originate from the same starting location. It does not matter which this starting location is, the only requirement is that it is the same for all the nodes with the same label. Is there a way to model this using the routing library?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与风相奔跑 2025-01-23 08:23:20

我建议使用“SetAllowedVehiclesForIndex”方法。

I suggest the use of "SetAllowedVehiclesForIndex" method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文