Efficient Delivery Services Sharing with Time Windows
Abstract
:1. Introduction
2. Related Work
2.1. Delivery Service Routing (DSR)
2.2. Delivery Service Sharing (DSS)
2.2.1. Vehicle-Oriented DSS
2.2.2. Customer-Oriented DSS
3. Model and Algorithm Framework
3.1. The Model
3.2. The Algorithm Framework
- Delivery service routing with the fixed window (DSR-Fix). We first consider the DSR-Fix variant where orders have the fixed drop-off window and there is no order sharing in routing plan. In terms of the fixed drop-off window, we mean that each order has a fixed drop-off time window, i.e., , and each order can only be finished at its fixed window . In terms of without order sharing, we mean that orders are served in sequence and each courier can only serve one order at a time.
- Delivery service routing with the flexible windows (DSR-Fle). In DSR-Fle, each order has a flexible drop-off time window , but they are still cannot be shared by a courier in the same service time.
- Delivery service sharing with the fixed window (DSS-Fix). In DSS-Fix, multiple orders can be shared and served at a time, but each order has the fixed drop-off time window .
4. The Algorithms
4.1. The DSR-Fix Variant Algorithm
Algorithm 1: CSN-based DSR-Fix (CSN-DSR-Fix). |
Input: Customer Orders R. Output: Served orders . 1 Construct the CSN ; 2 Invoke Algorithm 2 to find top n node-disjoint delivery plans; 3 Return the served orders ; |
Algorithm 2: Hopcroft–Karp Maximum Matching Algorithm. |
4.2. The DSR-Fle Variant Algorithm
4.2.1. Problem Formulation
- , set to 1 if order is served by the courier as a first order;
- , set to 1 if order is served immediately after ;
- , set to 1 if order is served by a courier;
- , the drop-off period of order .
4.2.2. The Approximation Algorithm
Algorithm 3: Splitting-Based Approximation Algorithm for DSR-Fle (Spl-DSR-Fle). |
4.2.3. Improvement on the Spl-DSR-Fle Algorithm
Algorithm 4: Iterative Improvement over Spl-DSR-Fle (Ite-DSR-Fle). |
4.3. The DSS-Fix Variant Algorithm
4.3.1. Problem Formulation and Complexity Analysis
4.3.2. The Heuristic Algorithm
- For the virtual order (resp. ), if it is not served in the solution , (resp. ) will be deleted from the CSN .
- For the virtual orders and that belong to the same 2-order sharing , if they are both served in , one of the them will be deleted from the CSN .
- For the virtual order (resp. ), if it is served in , and both of the real orders and are also served in , (resp. ) will be deleted from the CSN .
- For the virtual order (resp. ), if it is served in , however, only one of the real orders and is served in , both and will be deleted from the CSN .
Algorithm 5: Iterative Algorithm for DSS-Fix (Ite-DSS-Fix). |
4.4. The DSS-Fle Variant Algorithm
Algorithm 6: The DSS-Fle Variant Algorithm (DSS-Fle). |
Input: Customer orders R. Output: Served orders . 1 Initialize ; 2 Invoke the Ite-DSR-Fle algorithm (i.e., Algorithm 4) to generate “fixed” orders with fixed drop-off periods; 3 Invoke the Ite-DSS-Fix() algorithm (i.e, Algorithm 5) to return the served orders ; 4 Return . |
5. Experimental Evaluation
5.1. Validate the Ite-DSR-Fle Variant Algorithm
- The integer-programming-based optimal solution (IPopt): We use the CPLEX (version 12.6) to solve this IPopt (i.e., Equations (1)–(5)) to return the optimal solution.
- Greedy: Each customer order is assigned with its latest drop-off period as its fixed drop-off period, based on which the CSN-DSR-Fix (i.e., Algorithm 1) is employed to return the solution.
5.2. Validate the DSS-Fle Variant Algorithm
5.2.1. Validate the Advantage of Order Sharing and Scalability
5.2.2. Validate the Advantage over Existing Heuristics
- Greedy: Each customer order is assigned with its latest drop-off period as its fixed drop-off period, based on which the CSN-DSR-Fix (i.e., Algorithm 1) is employed to return the solution.
- Insertion-based Heuristics (Insert-Heu): The Greedy algorithm is first employed to derive a solution of n delivery sharing plans . For any order that is not served in , a re-optimization of inserting into a sharing plan is elaborated. Given the delivery plan of a temporally-ordered route of pickup and drop-off regions of h orders, the insertion heuristic attempts to insert pick-up region and drop-off region into these regions. A feasible insertion of into must satisfy (1) without violating the order service in the rest of the plan , and (2) the number of on-board orders is smaller than the courier’s capacity c ( in this experiment). There are possible ways of insertion for each order and each plan, where l is the number of orders. Given these n delivery plans and l orders in total, there are insertion computations.
6. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Solomon, M.M. Algorithms for the Vehicle Routing and Scheduling Problems with Time Window Constraints. Oper. Res. 1987, 35, 254–265. [Google Scholar] [CrossRef] [Green Version]
- Bent, R.; Hentenryck, P.V. Waiting and Relocation Strategies in Online Stochastic Vehicle Routing. In Proceedings of the 20th International Joint Conference on Artificial Intelligence, IJCAI 2007, Hyderabad, India, 6–12 January 2007; pp. 1816–1821. [Google Scholar]
- Kamar, E.; Horvitz, E. Collaboration and Shared Plans in the Open World: Studies of Ridesharing. In Proceedings of the 21st International Joint Conference on Artificial Intelligence, IJCAI 2009, Pasadena, CA, USA, 11–17 July 2009; p. 187. [Google Scholar]
- Ota, M.; Vo, H.; Silva, C.; Freire, J. STaRS: Simulating Taxi Ride Sharing at Scale. IEEE Trans. Big Data 2017, 3, 349–361. [Google Scholar] [CrossRef]
- Jiang, S.; Chen, L.; Mislove, A.; Wilson, C. On Ridesharing Competition and Accessibility: Evidence from Uber, Lyft, and Taxi. In Proceedings of the 2018 World Wide Web Conference on World Wide Web, WWW 2018, Lyon, France, 23–27 April 2018; pp. 863–872. [Google Scholar]
- Vazifeh, M.M.; Santi, P.; Resta, G.; Strogatz, S.H.; Ratti, C. Addressing the minimum fleet problem in on-demand urban mobility. Nature 2018, 557, 534–538. [Google Scholar] [CrossRef] [PubMed]
- Bertsimas, D.; Jaillet, P.; Martin, S. Online Vehicle Routing: The Edge of Optimization in Large-Scale Applications. Oper. Res. 2019, 67, 143–162. [Google Scholar] [CrossRef]
- Hosni, H.; Naoum-Sawaya, J.; Artail, H. The shared-taxi problem: Formulation and solution methods. Transp. Res. Part B Methodol. 2014, 70, 303–318. [Google Scholar] [CrossRef]
- Bei, X.; Zhang, S. Algorithms for Trip-Vehicle Assignment in Ride-Sharing. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), New Orleans, LA, USA, 2–7 February 2018; pp. 3–9. [Google Scholar]
- Ma, S.; Zheng, Y.; Wolfson, O. Real-Time City-Scale Taxi Ridesharing. IEEE Trans. Knowl. Data Eng. 2015, 27, 1782–1795. [Google Scholar] [CrossRef]
- Potvin, J.Y.; Rousseau, J.M. An Exchange Heuristic for Routeing Problems with Time Windows. J. Oper. Res. Soc. 1995, 46, 1433–1446. [Google Scholar] [CrossRef]
- Taillard, É.D.; Badeau, P.; Gendreau, M.; Guertin, F.; Potvin, J.Y. A Tabu Search Heuristic for the Vehicle Routing Problem with Soft Time Windows. Transp. Sci. 1997, 31, 170–186. [Google Scholar] [CrossRef] [Green Version]
- Bent, R.; Van Hentenryck, P. A Two-Stage Hybrid Local Search for the Vehicle Routing Problem with Time Windows. Comput. Oper. Res. 2006, 33, 875–893. [Google Scholar] [CrossRef]
- Schneider, M.; Stenger, A.; Goeke, D. The Electric Vehicle-Routing Problem with Time Windows and Recharging Stations. Transp. Sci. 2014, 48, 500–520. [Google Scholar] [CrossRef]
- Desaulniers, G.; Errico, F.; Irnich, S.; Schneider, M. Exact Algorithms for Electric Vehicle-Routing Problems with Time Windows. Oper. Res. 2016, 64, 1388–1405. [Google Scholar] [CrossRef]
- Xinyu, W.; Shuai, S.; Jiafu, T. Iterative Local-Search Heuristic for Weighted Vehicle Routing Problem. IEEE Trans. Intell. Transp. Syst. 2020, in press. [Google Scholar]
- Berbeglia, G.; Cordeau, J.F.; Laporte, G. Dynamic pickup and delivery problems. Eur. J. Oper. Res. 2010, 202, 8–15. [Google Scholar] [CrossRef]
- Santi, P.; Resta, G.; Szell, M.; Sobolevsky, S.; Strogatz, S.H.; Ratti, C. Quantifying the benefits of vehicle pooling with shareability networks. Proc. Natl. Acad. Sci. USA 2014, 111, 13290–13294. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Hopcroft, J.E.; Karp, R.M. An n 5/2 Algorithm for Maximum Matchings in Bipartite Graphs. SIAM J. Comput. 1973, 2, 225–231. [Google Scholar] [CrossRef]
- Das, A.; Gollapudi, S.; Kim, A.; Panigrahi, D.; Swamy, C. Minimizing Latency in Online Ride and Delivery Services. In Proceedings of the 2018 World Wide Web Conference on World Wide Web, WWW 2018, Lyon, France, 23–27 April 2018; pp. 379–388. [Google Scholar]
- Xiang, Z.; Chu, C.; Chen, H. A fast heuristic for solving a large-scale static dial-a-ride problem under complex constraints. Eur. J. Oper. Res. 2006, 174, 1117–1139. [Google Scholar] [CrossRef]
- Hasan, M.H.; Hentenryck, P.V.; Budak, C.; Chen, J.; Chaudhry, C. Community-Based Trip Sharing for Urban Commuting. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), New Orleans, LA, USA, 2–7 February 2018; pp. 6589–6597. [Google Scholar]
- Santos, D.O.; Xavier, E.C. Dynamic Taxi and Ridesharing: A Framework and Heuristics for the Optimization Problem. In Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence, IJCAI’13, Beijing, China, 3–9 August 2013; pp. 2885–2891. [Google Scholar]
- Lowalekar, M.; Varakantham, P.; Jaillet, P. ZAC: A Zone Path Construction Approach for Effective Real-Time Ridesharing. In Proceedings of the Twenty-Ninth International Conference on Automated Planning and Scheduling, ICAPS 2018, Berkeley, CA, USA, 11–15 July 2019; pp. 528–538. [Google Scholar]
- Zhu, M.; Liu, X.; Wang, X. An Online Ride-Sharing Path-Planning Strategy for Public Vehicle Systems. IEEE Trans. Intell. Transp. Syst. 2019, 20, 616–627. [Google Scholar] [CrossRef]
- Boesch, F.T.; Gimpel, J.F. Covering Points of a Digraph with Point-Disjoint Paths and Its Application to Code Optimization. J. ACM 1977, 24, 192–198. [Google Scholar] [CrossRef]
- Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness. In Mathematical Sciences; W.H.Freeman: New York, NY, USA, 1990. [Google Scholar]
- Watts, D.J.; Strogatz, S.H. Collective dynamics of ’small-world’ networks. Nature 1998, 393, 440–442. [Google Scholar] [CrossRef] [PubMed]
Notation | Description |
---|---|
the set of n couriers available for food delivery services | |
the set of m regions of a city | |
the set of l customer orders need in service | |
the time window of the order | |
the pickup region of the order | |
the drop-off region of the order | |
the time distance of traveling from the drop-off region of to the pickup region of and delivering to its drop-off region |
Time Window | Demand | Order Service Rate (OSR) | Runtime (Second) | ||||
---|---|---|---|---|---|---|---|
IPopt | Ite-DSR-Fle | Greedy | IPopt | Ite-DSR-Fle | Greedy | ||
One period | Low | 0.528 | 0.502 | 0.459 | 26.4 | 0.21 | 0.05 |
Medium | 0.471 | 0.451 | 0.405 | 44.4 | 0.34 | 0.07 | |
High | 0.451 | 0.435 | 0.385 | 60.1 | 0.44 | 0.09 | |
Three periods | Low | 0.530 | 0.506 | 0.473 | 27.8 | 0.30 | 0.06 |
Medium | 0.514 | 0.487 | 0.437 | 43.8 | 0.55 | 0.07 | |
High | 0.481 | 0.454 | 0.389 | 63.4 | 0.64 | 0.07 | |
Five periods | Low | 0.576 | 0.543 | 0.488 | 33.0 | 0.45 | 0.07 |
Medium | 0.534 | 0.500 | 0.442 | 54.0 | 0.90 | 0.07 | |
High | 0.529 | 0.484 | 0.433 | 80.4 | 1.07 | 0.08 |
Demand | Order Service Rate (OSR) | Runtime (Second) | ||||||
---|---|---|---|---|---|---|---|---|
DSS-Fle | Ite-DSS-Fix | Ite-DSR-Fle | DSR-Fix | DSS-Fle | Ite-DSS-Fix | Ite-DSR-Fle | DSR-Fix | |
2000 | 0.572 | 0.554 | 0.563 | 0.544 | 3.20 | 0.38 | 3.02 | 0.36 |
4000 | 0.326 | 0.307 | 0.313 | 0.302 | 18.4 | 1.83 | 16.2 | 1.33 |
6000 | 0.239 | 0.222 | 0.227 | 0.219 | 44.6 | 4.01 | 43.9 | 3.67 |
8000 | 0.196 | 0.184 | 0.189 | 0.180 | 95.4 | 9.48 | 75.1 | 6.78 |
10,000 | 0.172 | 0.159 | 0.163 | 0.155 | 134.6 | 19.73 | 124.5 | 12.9 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, W.; Tao, H.; Jiang, Y. Efficient Delivery Services Sharing with Time Windows. Appl. Sci. 2020, 10, 7431. https://doi.org/10.3390/app10217431
Wang W, Tao H, Jiang Y. Efficient Delivery Services Sharing with Time Windows. Applied Sciences. 2020; 10(21):7431. https://doi.org/10.3390/app10217431
Chicago/Turabian StyleWang, Wanyuan, Hansi Tao, and Yichuan Jiang. 2020. "Efficient Delivery Services Sharing with Time Windows" Applied Sciences 10, no. 21: 7431. https://doi.org/10.3390/app10217431