简体   繁体   English

如何将时间窗口约束和容量约束添加到 VRP?

[英]How to add both time window constraint and capacity constraint to VRP?

I have just started working on VRPs with Google's OR Tools.我刚刚开始使用 Google 的 OR 工具处理 VRP。 I would like to impose multiple constraints on my VRP ie instead of just adding just one among time window constraint or capacity constraint, I would like to have both the constraints to solve my problem without taking into account the cost.我想对我的 VRP 施加多个约束,即不是只在时间窗口约束或容量约束中添加一个,我希望在不考虑成本的情况下同时使用这两个约束来解决我的问题。 How to achieve this?如何实现这一目标?

everything is shown here, multiple examples, one per feature, in C++/Python/Java/C#.一切都在这里显示,多个示例,每个功能一个,在 C++/Python/Java/C# 中。

https://github.com/google/or-tools/blob/master/ortools/constraint_solver/doc/VRP.md https://github.com/google/or-tools/blob/master/ortools/constraint_solver/doc/VRP.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用容量约束和时间 window 约束作为 VRP 成本最低的单一解决方案? - How to use Capacity constraint and time window constraint as single solution with minimum cost for VRP? OR-tools VRP 一辆车有容量限制和多条路线 - OR-tools VRP one vehicle with capacity constraint and multiple routes 如何修复不满足 biner 约束的 PuLP VRP 模型 - How to fix PuLP VRP Model that not satisfy biner Constraint 如何将服务时间约束添加到具有时间窗口约束的车辆路径问题 - How to add a servicing time constraint to a vehicle routing problem with time window constraints 如何在 Pyomo 中添加标志约束? - How to add a flag constraint in Pyomo? 在pyomo中约束两者或两者都没有 - Constraint with both or neither in pyomo python-constraint添加约束 - python-constraint add constraint 如何使用 python-constraint 将此约束添加到问题中 - How to add this constraint to a problem using python-constraint 如何将数据的时间窗口插入到表中,该窗口与具有唯一约束的现有行部分重叠 - How do insert a time window of data into table that partially overlaps with existing rows with unique constraint 如何在 python 中实现具有时间约束的多处理 - How to achive multiprocessing with time constraint in python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM