简体   繁体   English

Optaplanner车辆的起止时间

[英]Optaplanner vehicle starting and ending time

This Optaplanner is really very useful. 这个Optaplanner真的非常有用。 I do have a few questions, though. 我确实有几个问题。

I am doing a time-windowed problem, and can't find exact information about the route start and end. 我正在处理一个时间窗问题,无法找到有关路线起点和终点的确切信息。 The Depot.readyTime and dueTime are taken into account, but just as a constraint. 考虑了Depot.readyTimedueTime ,但只是作为约束。 Is there any point where I could find the route start time directly, or do I need to get the ArrivalTime to first customer and subtract the travel time from depot (analogously for the last one)? 有什么地方可以直接找到路线的开始时间,还是我需要将ArrivalTime到达第一个客户并从仓库中减去旅行时间(类似于最后一个)?

Very connected to this is the question if I can limit the working time of the vehicle? 与此相关的问题是我是否可以限制车辆的工作时间?

And the last one from this batch is - is it possible to schedule lunch breaks for the drivers (and how)? 而这批中的最后一个是-是否可以为驾驶员安排午餐时间(以及如何)?

Thank you! 谢谢!

Limiting the working time of the vehicle is a matter of having the VariableListener set the back to depot arrivalTime on each vehicle and then adding a constraint (score rule) to check if it's not too late. 限制车辆的工作时间只需将VariableListener设置为每辆车辆的仓库arrivalTime到达时间,然后添加约束(得分规则)来检查是否为时不晚。

Scheduling lunch breaks is usually best done by adjusting the VariableListener to when it calculates the arrivalTime for the next visit, automatically add an hour if the previous visit crossed the "noon" time. 通常最好将午餐休息时间安排好,方法是将VariableListener调整为在计算下一次访问的到达时间时,如果前一次访问超过“中午”时间,则自动增加一个小时。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM