algorithm - 如何在jsprit中添加时间限制?

标签 algorithm jsprit

setTimeWindow(new TimeWindow(start_time, end_time))

用于为任务/装运添加时间限制。但我想有一个完整的例子。 jsprit on time bound shipment 有完整的例子吗?

最佳答案

您可以通过这种方式设置货件的取件和派送时间窗口:

装运 shipment = Shipment.Builder.newInstance("1") .addSizeDimension(0,1) .setPickupLocation(Location.newInstance(5,7)) .setPickupTimeWindow(TimeWindow.newInstance(0,1200)) .setDeliveryLocation(Location.newInstance(6,9)) .setDeliveryTimeWindow(TimeWindow.newInstance(2000,4000)) .build();

关于algorithm - 如何在jsprit中添加时间限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35080600/

相关文章:

c++ - 比较两个 std::vectors/arrays 或者通常比较两个 STL 容器

algorithm - Jsprit 的解决方案如果 cargo 有多个尺寸的尺寸是不正确的

jsprit - 车辆路线规划服务的自动分配

algorithm - 在 DAG 中寻找给定长度 N 的路径

algorithm - 用于设计和建模复杂系统的工具

ruby - 寻找下一个最大的整数

java - 无法通过使用 Jsprit 向服务提供时间窗口来获得正确的优化路线

jobs - JSprit 中的相关职位

jsprit 入门 : conceptional advice

c - 如何在c中将多个字符插入到char数组的中间?