Submitted:
27 March 2024
Posted:
28 March 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- We build a dataset from MAX Delivery company headquartered in Barcelona, Spain. The dataset comprises 7707 order records. Each record contains details regarding the time and coordinates of delivery personnel assigned to specific customer orders.
- We used the Haversine formula to accurately calculate the distances between delivery people and customer orders. This is essential for generating an assignment matrix to solve the optimization problem related to order allocation.
- We propose two different supervised machine learning methods techniques to estimate delivery time and distance for each delivery person to each customer. This is key because the dataset only contains specific data points for completed deliveries, and creating the assignment matrix requires calculating potential delivery times for all delivery person-customer combinations.
- We used the Munkres Algorithm with the cost matrices obtained from the Haversine calculations, as well as the linear and polynomial regression methods. The Munkres optimization algorithm solves the task assignment problem, which optimally assigns delivery people to customer orders. The algorithm efficiently determines the best possible assignments by considering the costs associated with each assignment and guarantees an optimal solution for this task.
- Finally, we compared the effectiveness of the Haversine calculations, linear regression, and polynomial regression techniques after applying the Munkres optimization algorithm to solve the task assignment problem.
2. Materials and Methods
2.1. Data Acquisition
2.2. Haversine Formula to Estimate Cost Matrix
2.3. Machine Learning to Estimate Cost Matrix
2.3.1. Linear Regression
2.3.2. Polynomial Regression
2.4. Munkres Algorithm
3. Results
3.1. Regression Results
3.2. Task Assignment Problem Results
4. Conclusions
Author Contributions
Acknowledgments
References
- Farooq, Q.; Fu, P.; Hao, Y.; Jonathan, T.; Zhang, Y. A review of management and importance of e-commerce implementation in service delivery of private express enterprises of China. Sage Open 2019, 9, 2158244018824194. [Google Scholar] [CrossRef]
- Giuffrida, N.; Fajardo-Calderin, J.; Masegosa, A.D.; Werner, F.; Steudter, M.; Pilla, F. Optimization and machine learning applied to last-mile logistics: A review. Sustainability 2022, 14, 5329. [Google Scholar] [CrossRef]
- Bruni, M.E.; Fadda, E.; Fedorov, S.; Perboli, G. A machine learning optimization approach for last-mile delivery and third-party logistics. Computers & Operations Research 2023, 157, 106262. [Google Scholar]
- Reis, J.; Amorim, M.; Cohen, Y.; Rodrigues, M. Artificial intelligence in service delivery systems: a systematic literature review. Trends and Innovations in Information Systems and Technologies: Volume 1 8 2020, pp. 222–233.
- Gursoy, D.; Chi, O.H.; Lu, L.; Nunkoo, R. Consumers acceptance of artificially intelligent (AI) device use in service delivery. International Journal of Information Management 2019, 49, 157–169. [Google Scholar] [CrossRef]
- Adak, A.; Pradhan, B.; Shukla, N.; Alamri, A. Unboxing deep learning model of food delivery service reviews using explainable artificial intelligence (XAI) technique. Foods 2022, 11, 2019. [Google Scholar] [CrossRef] [PubMed]
- Jahanshahi, H.; Bozanta, A.; Cevik, M.; Kavuk, E.M.; Tosun, A.; Sonuc, S.B.; Kosucu, B.; Başar, A. A deep reinforcement learning approach for the meal delivery problem. Knowledge-Based Systems 2022, 243, 108489. [Google Scholar] [CrossRef]
- Huang, S.H.; Huang, Y.H.; Blazquez, C.A.; Chen, C.Y. Solving the vehicle routing problem with drone for delivery services using an ant colony optimization algorithm. Advanced Engineering Informatics 2022, 51, 101536. [Google Scholar] [CrossRef]
- Asih, A.M.S.; Sopha, B.M.; Kriptaniadewa, G. Comparison study of metaheuristics: Empirical application of delivery problems. International Journal of Engineering Business Management 2017, 9, 1847979017743603. [Google Scholar] [CrossRef]
- Tian, Z.; Zhong, R.Y.; Vatankhah Barenji, A.; Wang, Y.; Li, Z.; Rong, Y. A blockchain-based evaluation approach for customer delivery satisfaction in sustainable urban logistics. International Journal of Production Research 2021, 59, 2229–2249. [Google Scholar] [CrossRef]
- Joshi, M.; Singh, A.; Ranu, S.; Bagchi, A.; Karia, P.; Kala, P. Batching and matching for food delivery in dynamic road networks. 2021 IEEE 37th international conference on data engineering (ICDE). IEEE, 2021, pp. 2099–2104.
- Joshi, M.; Singh, A.; Ranu, S.; Bagchi, A.; Karia, P.; Kala, P. FoodMatch: Batching and matching for food delivery in dynamic road networks. ACM Transactions on Spatial Algorithms and Systems (TSAS) 2022, 8, 1–25. [Google Scholar] [CrossRef]
- Wang, X.; Wang, L.; Wang, S.; Yu, Y.; Chen, J.f.; Zheng, J. Solving online food delivery problem via an effective hybrid algorithm with intelligent batching strategy. International Conference on Intelligent Computing. Springer, 2021, pp. 340–354.
- Wang, N.; Guo, J. Multi-task dispatch of shared autonomous electric vehicles for Mobility-on-Demand services–combination of deep reinforcement learning and combinatorial optimization method. Heliyon 2022, 8. [Google Scholar] [CrossRef]
- Nair, A.; Yadav, R.; Gupta, A.; Chakraborty, A.; Ranu, S.; Bagchi, A. Gigs with guarantees: Achieving fair wage for food delivery workers. arXiv, arXiv:2205.03530 2022.
- Robusto, C.C. The cosine-haversine formula. The American Mathematical Monthly 1957, 64, 38–40. [Google Scholar] [CrossRef]
- Basyir, M.; Nasir, M.; Suryati, S.; Mellyssa, W. Determination of nearest emergency service office using haversine formula based on android platform. EMITTER International Journal of Engineering Technology 2017, 5, 270–278. [Google Scholar] [CrossRef]
- Maulud, D.; Abdulazeez, A.M. A review on linear regression comprehensive in machine learning. Journal of Applied Science and Technology Trends 2020, 1, 140–147. [Google Scholar] [CrossRef]
- Hope, T.M. Linear regression. In Machine Learning; Elsevier, 2020; pp. 67–81.
- Heiberger, R.M.; Neuwirth, E.; Heiberger, R.M.; Neuwirth, E. Polynomial regression. R Through Excel: A Spreadsheet Interface for Statistics, Data Analysis, and Graphics 2009, 269–284. [Google Scholar]
- Avery, M. Literature review for local polynomial regression. Unpublished manuscript 2013. [Google Scholar]
- Shah, K.; Reddy, P.; Vairamuthu, S. Improvement in Hungarian algorithm for assignment problem. Artificial Intelligence and Evolutionary Algorithms in Engineering Systems: Proceedings of ICAEES 2014, Volume 1. Springer, 2015, pp. 1–8.
- Sanseverino, E.R.; Ngoc, T.N.; Cardinale, M.; Vigni, V.L.; Musso, D.; Romano, P.; Viola, F. Dynamic programming and Munkres algorithm for optimal photovoltaic arrays reconfiguration. Solar Energy 2015, 122, 347–358. [Google Scholar] [CrossRef]





| Mean squared error (MSE) |
Root Mean squared error (RMSE) |
|
|---|---|---|
| Distance estimation - linear regression |
6.9 [] | 20.3 [m] |
| Distance estimation - polynomial regression |
2.6 [] | 4.5 [m] |
| Time estimation - linear regression |
120.9 [] | 11.0 [s] |
| Time estimation - polynomial regression |
59.6 [] | 7.7 [s] |
| Method | Average [km] |
Standard Deviation [km] |
Summation of total distance [km] |
|---|---|---|---|
| Munkres | 4.55 | 3.24 | 34956.84 |
| Linear regression + Munkres |
4.55 | 3.23 | 34957.74 |
| Polynomial regression + Munkres |
4.62 | 4.49 | 35526.26 |
| Average [minutes] |
Standard Deviation [minutes] |
Summation of total time [minutes] |
|
|---|---|---|---|
| Linear Regression + Munkres |
19.24 | 9.12 | 147891.23 |
| Polynomial Regression + Munkres |
17.01 | 5.25 | 130747.82 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 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/).