如果在目的地

时间:2016-12-12 23:18:09

标签: jsprit

领取多个货物,在中心位置下车。问题是,有时车辆会在中心位置填满并放下东西,但只能完成路线。如果它已经在仓库中,我希望它能够放下它所拥有的一切。

见下文,它将工作#3发送到仓库,在车辆中留下4个其他项目(容量为5)。然后在交付所有东西之前拿起最后的东西。

+--------------------------------------------------------------------------------------------------------------------------------+
| detailed solution                                                                                                              |
+---------+----------------------+-----------------------+-----------------+-----------------+-----------------+-----------------+
| route   | vehicle              | activity              | job             | arrTime         | endTime         | costs           |
+---------+----------------------+-----------------------+-----------------+-----------------+-----------------+-----------------+
| 1       | vehicle              | start                 | -               | undef           | 0               | 0               |
| 1       | vehicle              | pickupShipment        | 3               | 353             | 1253            | 3527            |
| 1       | vehicle              | pickupShipment        | 2               | 1253            | 2153            | 3527            |
| 1       | vehicle              | pickupShipment        | 4               | 2582            | 3482            | 7819            |
| 1       | vehicle              | pickupShipment        | 6               | 3801            | 4701            | 11012           |
| 1       | vehicle              | pickupShipment        | 5               | 4701            | 5601            | 11012           |
| 1       | vehicle              | deliverShipment       | 3               | 5945            | 6845            | 14455           |
| 1       | vehicle              | pickupShipment        | 1               | 7025            | 7925            | 16248           |
| 1       | vehicle              | deliverShipment       | 2               | 8104            | 9004            | 18042           |
| 1       | vehicle              | deliverShipment       | 4               | 9004            | 9904            | 18042           |
| 1       | vehicle              | deliverShipment       | 6               | 9904            | 10804           | 18042           |
| 1       | vehicle              | deliverShipment       | 5               | 10804           | 11704           | 18042           |
| 1       | vehicle              | deliverShipment       | 1               | 11704           | 12604           | 18042           |
| 1       | vehicle              | end                   | -               | 12604           | undef           | 18042           |
+--------------------------------------------------------------------------------------------------------------------------------+

什么是模拟某些时间或货币成本的好方法,以确保货物不会花费任何不必要的时间在车辆上?我想要的只是提货/送货的最佳途径。

0 个答案:

没有答案