OR-Tools:确保同一站点的车辆访问节点组
我想使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用“SetAllowedVehiclesForIndex”方法。
I suggest the use of "SetAllowedVehiclesForIndex" method.