Study of Fair Strategy for Merchant Self-Operated Takeaway Delivery Based on Delivery Plan Optimization
Abstract
:1. Introduction
2. Problem Description and Assumptions
- (1)
- Merchants have sufficient delivery capacity.
- (2)
- Most takeaway deliveries are goods with regular outer packaging, small volume, and lightweight. The capacity limit of the delivery vehicle is no longer considered.
- (3)
- The delivery distance is generally within 5 km. Most delivery vehicles are electric vehicles, and their batteries can be replaced quickly. Therefore, this paper does not consider the battery life of the delivery vehicles.
- (4)
- The number of riders K is assumed to be less than or equal to the number of orders N. When K > N, only the first N riders are each assigned one order, and the remaining riders remain untasked.
3. Model Establishment
- (1)
- The decision variable xij is expressed in Equation (1). When xij is assigned as 1, it means that the rider has reached consumer node j from consumer node i. When xij is assigned as 0, it means the delivery person has not traveled from consumer node i to consumer node j.
- (2)
- The objective function is shown in Equation (2). The shorter the total distance of the rider to complete the delivery task, the higher the efficiency that can be obtained.
- (3)
- The constraints are shown in Formulas (3)–(5).
- (4)
- Considering the consumer’s location would be presented based on its latitude and longitude, the real distance between different locations was calculated according to Equation (6). The Arccos equation is used for short-distance scenarios (<5 km) due to its lower computational cost (requiring fewer trigonometric operations) and negligible precision loss (<0.01% error at 5 km) compared to the Haversine equation (requiring square roots and additional trigonometric functions), sacrificing only minor spherical curvature accuracy for significant speed gains in routing systems.
4. Design of the Algorithm
4.1. K-Means Algorithm
4.2. Improved Ant Colony Algorithm
4.3. The Order Quantity Fair Strategy
4.4. The Travel Distance Fair Strategy
5. Solution and Analysis of Examples
5.1. The Result by K-Means and Improved Ant Colony Algorithm
5.2. The Performance of Order Quantity Fair Strategy
5.3. The Performance of Travel Distance Fair Strategy
6. Conclusions
- (1)
- We employed an improved K-means algorithm to allocate customer orders to riders based on fairness strategies. Additionally, an ant colony algorithm enhanced by a roulette strategy was developed to generate optimal routes for riders.
- (2)
- To ensure equal order distribution, we designed an order quantity fairness strategy that redistributes K-means clustering results by considering the nodes’ distances to all cluster centers. This strategy guarantees that each rider receives a comparable number of orders.
- (3)
- In accordance with the length difference of the optimal route calculated by the ant colony algorithm, the K-means algorithm was improved to redistribute the clustering result based on the designed travel distance fair strategy to balance the travel distance covered by each rider.
- (4)
- A sample with 80 consumer locations was proposed to verify the designed algorithm’s and strategy’s performance. The results demonstrate that the order quantity fair strategy and travel distance fair strategy have a good performance in finding an optimal delivery plan for the merchant.
- (1)
- Integration of real-time data streams for dynamic clustering and routing to enable adaptive responses to real-time order fluctuations, traffic conditions, and rider availability changes.
- (2)
- Generalization of fairness tolerance thresholds across diverse delivery environments (urban/rural) through multi-objective optimization frameworks that simultaneously balance delivery efficiency, cost, and fairness, combined with machine learning-driven context-aware calibration.
- (3)
- Scalability improvements for large-scale datasets (N > 500) in dynamic environments.
- (4)
- Empirical validation and constraint incorporation in real-world logistics systems, including vehicle capacity limits, battery range modeling, and parameter refinement against industry KPIs.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Ramanathan, J.; Subramanian, N.; Abdulrahman, M.D. Decisive Engaging Factors in Crowd Logistics: The Case of China’s Takeaway/Home Delivery Industry. In Proceedings of the 24th ISL Conference on Supply Chain Networks vs Platforms: Innovations, Challenges and Opportunities, Würzburg, Germany, 23–25 September 2019; pp. 377–383. [Google Scholar]
- Teng, R.; Hong-Bo, X.; Kang-Ning, J.; Tian-Yu, L.; Wing, L.; Li-Ning, X. Optimisation of Takeaway Delivery Routes Considering the Mutual Satisfaction of Merchants and Customers. Comput. Ind. Eng. 2021, 162, 107728. [Google Scholar] [CrossRef]
- Pei, Y.L.; Li, D.D.; Xue, W.X. The Evaluation of Customer Experience Using BP Neural Network-Taking Catering O2O Takeaway as an Example. Concurr. Comput. Pract. Exp. 2019, 32, e5515. [Google Scholar] [CrossRef]
- Yeo, V.C.S.; Goh, S.K.; Rezaei, S. Consumer Experiences, Attitude and Behavioral Intention Toward Online Food Delivery (OFD) Services. J. Retail. Consum. Serv. 2017, 35, 150–162. [Google Scholar] [CrossRef]
- Lang, K.; Zhao, Y.; Satapathy, S.C.; Agrawal, R.; García Díaz, V. Cloud Computing Resource Scheduling Based on Improved ANN Model Takeaway Order Volume Forecast. J. Intell. Fuzzy Syst. 2021, 40, 5905–5915. [Google Scholar] [CrossRef]
- Liu, Y.; Guo, B.; Chen, C.; Hu, D.; Yu, Z.; Zhang, D.; Ma, H. FooDNet: Toward an Optimized Food Delivery Network Based on Spatial Crowdsourcing. IEEE Trans. Mob. Comput. 2019, 18, 1288–1301. [Google Scholar] [CrossRef]
- Zhang, M.X.; Wu, J.Y.; Wu, X.; Zheng, Y.J. Hybrid Evolutionary Optimization for Takeaway Order Selection and Delivery Path Planning Utilizing Habit Data. Complex Intell. Syst. 2021, 7, 1919–1932. [Google Scholar] [CrossRef]
- Lai, M.; Xong, T. A Metaheuristic Method for Vehicle Routing Problem Based on Improved Ant Colony Optimization and Tabu Search. J. Ind. Manag. Optim. 2012, 8, 469–484. [Google Scholar] [CrossRef]
- Zhou, Y.; Xie, R.; Zhang, T.; Holguin-Veras, J. Joint Distribution Center Location Problem for Restaurant Industry Based on Improved K-Means Algorithm with Penalty. IEEE Access 2020, 8, 37746–37755. [Google Scholar] [CrossRef]
- Chang, Y.S.; Lee, H.J. Optimal Delivery Routing with Wider Drone-Delivery Areas Along a Shorter Truck-Route. Expert Syst. Appl. 2018, 104, 307–317. [Google Scholar] [CrossRef]
- Zou, P.; Rajora, M.; Liang, S.Y. Multimodal Optimization of Permutation Flow-Shop Scheduling Problems Using a Clustering-Genetic-Algorithm-Based Approach. Appl. Sci. 2021, 11, 3388. [Google Scholar] [CrossRef]
- Li, Z.; Tian, Y.; Bu, X.; Wu, L. Order Batching Problem of Unmanned Warehouse System and k-Max Clustering Algorithm. Comput. Integr. Manuf. Syst. 2021, 27, 1506–1517. [Google Scholar]
- Ha, J.M.; Moon, G. An Application of k-Means Clustering to Vehicle Routing Problems. J. Soc. Korea Ind. Syst. Eng. 2015, 38, 1–7. [Google Scholar] [CrossRef]
- Moreno, S.; Pereira, J.; Yushimito, W. A Hybrid K-Means and Integer Programming Method for Commercial Territory Design: A Case Study in Meat Distribution. Ann. Oper. Res. 2017, 286, 87–117. [Google Scholar] [CrossRef]
- Ning, D.; Zhu, J. Study on Assign Mode of O2O Takeaway Order Delivery Tasks. Shanghai Manag. Sci. 2018, 40, 63–66. [Google Scholar]
- Keçeci, B.; Altıparmak, F.; Kara, İ. A Mathematical Formulation and Heuristic Approach for the Heterogeneous Fixed Fleet Vehicle Routing Problem with Simultaneous Pickup and Delivery. J. Ind. Manag. Optim. 2021, 17, 1069–1100. [Google Scholar] [CrossRef]
- Ai, T.J.; Kachitvichyanukul, V. A Particle Swarm Optimization for the Vehicle Routing Problem with Simultaneous Pickup and Delivery. Comput. Oper. Res. 2009, 36, 1693–1702. [Google Scholar] [CrossRef]
- Kumar, R.S.; Kondapaneni, K.; Dixit, V.; Agoswami, L.S.; Thakur, L.S.; Tiwari, M.K. Multi-Objective Modeling of Production and Pollution Routing Problem with Time Window: A Self-Learning Particle Swarm Optimization Approach. Comput. Ind. Eng. 2016, 99, 29–40. [Google Scholar] [CrossRef]
- Baker, B.M.; Ayechew, M.A. A Genetic Algorithm for the Vehicle Routing Problem. Comput. Oper. Res. 2003, 30, 787–800. [Google Scholar] [CrossRef]
- Ibrahim, M.F.; Nurhakiki, F.R.; Utama, D.M.; Rizaki, A.A. Optimised Genetic Algorithm Crossover and Mutation Stage for Vehicle Routing Problem Pick-Up and Delivery with Time Windows. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1071, 012025. [Google Scholar] [CrossRef]
- AlMuhaideb, S.; Alhussan, T.; Alamri, S.; Altwaijry, Y.; Aljarbou, L.; Alrayes, H. Optimization of Truck-Drone Parcel Delivery Using Metaheuristics. Appl. Sci. 2021, 11, 6443. [Google Scholar] [CrossRef]
- Nian, B.C. Genetic Algorithm for Heuristic Algorithms for the Vehicle Routing Problem with Simultaneous Pick-Up and Delivery. Comput. Oper. Res. 2007, 34, 578–594. [Google Scholar]
- Xu, W.; Li, J. A Fissile Ripple Spreading Algorithm to Solve Time-Dependent Vehicle Routing Problem via Coevolutionary Path Optimization. J. Adv. Transp. 2020, 2020, 8815983. [Google Scholar] [CrossRef]
- Zheng, C.; Haoxun, C.; Farouk, Y.; Bo, D. Adaptive Large Neighborhood Search Algorithm for Route Planning of Freight Buses with Pickup and Delivery. J. Ind. Manag. Optim. 2021, 17, 1771–1793. [Google Scholar]
- Xue, G.; Wang, Z.; Wang, G.; Rey, D. Optimization of Rider Scheduling for a Food Delivery Service in O2O Business. J. Adv. Transp. 2021, 2021, 5515909. [Google Scholar] [CrossRef]
- Ma, X.; Liu, C. Improved Ant Colony Algorithm for the Split Delivery Vehicle Routing Problem. Appl. Sci. 2024, 14, 5090. [Google Scholar] [CrossRef]
- Huang, R.; Ning, J.; Zhao, M.; Xie, F.; Xia, Y.; Yi, G.; Hui, G. Study of Delivery Path Optimization Solution Based on Improved Ant Colony Model. Multimed. Tools Appl. 2021, 80, 28975–28987. [Google Scholar] [CrossRef]
- Zhang, Y.; Liu, Y.; Chen, L.; Liu, Y.; Zhou, J.; Osaba, E. The Optimization of Path Planning for Express Delivery Based on Clone Adaptive Ant Colony Optimization. J. Adv. Transp. 2022, 2022, 482501. [Google Scholar] [CrossRef]
- Liu, W.; Liu, Y.; Zhang, T.; Qiu, N.; Xie, X.; Chang, X.; Chen, J. A Hybrid ACS-VTM Algorithm for the Vehicle Routing Problem with Simultaneous Delivery & Pickup and Real-Time Traffic Condition. Comput. Ind. Eng. 2021, 162, 107747. [Google Scholar]
- Jain, A.K. Data Clustering: 50 Years Beyond K-Means. Pattern Recognit. Lett. 2010, 31, 651–666. [Google Scholar] [CrossRef]
- Likas, A.; Vlassis, N.; Verbeek, J.J. The Global k-Means Clustering Algorithm. Pattern Recognit. 2003, 36, 451–461. [Google Scholar] [CrossRef]
- Hansen, P.; Ngai, E.; Cheung, B.K.; Mladenović, N. Analysis of Global k-Means, an Incremental Heuristic for Minimum Sum-of-Squares Clustering. J. Classif. 2005, 22, 287–310. [Google Scholar] [CrossRef]
- Dorigo, M.; Birattari, M.; Stützle, T. Ant Colony Optimization. IEEE Comput. Intell. Mag. 2006, 1, 28–39. [Google Scholar] [CrossRef]
- Dorigo, M.; Gambardella, L.M. Ant Colonies for the Travelling Salesman Problem. Biosystems 1997, 43, 73–81. [Google Scholar] [CrossRef] [PubMed]
Parameter | Value |
---|---|
α | 2 |
β | 4 |
ρ | 0.3 |
Q | 10 |
Ants number | Nodes number |
Initial pheromone | 1 |
Max iteration | 100 |
Nodes | X | Y | Nodes | X | Y |
---|---|---|---|---|---|
1 | 126.648203 | 45.71826 | 41 | 126.633033 | 45.74165 |
2 | 126.645414 | 45.71514 | 42 | 126.624922 | 45.73883 |
3 | 126.65037 | 45.71365 | 43 | 126.629428 | 45.7382 |
4 | 126.651872 | 45.71565 | 44 | 126.627024 | 45.73431 |
5 | 126.653171 | 45.71766 | 45 | 126.621832 | 45.73755 |
6 | 126.655531 | 45.7139 | 46 | 126.621703 | 45.73275 |
7 | 126.66199 | 45.71493 | 47 | 126.626552 | 45.73197 |
8 | 126.657376 | 45.7091 | 48 | 126.626853 | 45.72991 |
9 | 126.655746 | 45.70659 | 49 | 126.616276 | 45.71191 |
10 | 126.66597 | 45.70953 | 50 | 126.634191 | 45.72838 |
11 | 126.661292 | 45.70333 | 51 | 126.617025 | 45.72961 |
12 | 126.670476 | 45.70519 | 52 | 126.614794 | 45.72541 |
13 | 126.674768 | 45.71068 | 53 | 126.625995 | 45.72733 |
14 | 126.681827 | 45.70198 | 54 | 126.624063 | 45.72002 |
15 | 126.684574 | 45.70767 | 55 | 126.613335 | 45.71999 |
16 | 126.691269 | 45.71514 | 56 | 126.616896 | 45.71574 |
17 | 126.671742 | 45.71723 | 57 | 126.623205 | 45.71639 |
18 | 126.677193 | 45.72463 | 58 | 126.62578 | 45.71214 |
19 | 126.677193 | 45.72463 | 59 | 126.629084 | 45.71861 |
20 | 126.662129 | 45.71939 | 60 | 126.640586 | 45.71993 |
21 | 126.66994 | 45.72326 | 61 | 126.640672 | 45.7172 |
22 | 126.68363 | 45.72511 | 62 | 126.639341 | 45.71496 |
23 | 126.671785 | 45.72874 | 63 | 126.62651 | 45.70995 |
24 | 126.657966 | 45.72314 | 64 | 126.644834 | 45.70396 |
25 | 126.647495 | 45.72469 | 65 | 126.657893 | 45.70333 |
26 | 126.654919 | 45.72799 | 66 | 126.665317 | 45.70369 |
27 | 126.659726 | 45.73054 | 67 | 126.669094 | 45.70279 |
28 | 126.659769 | 45.73314 | 68 | 126.666776 | 45.71127 |
29 | 126.669124 | 45.73152 | 69 | 126.654074 | 45.71022 |
30 | 126.64801 | 45.72835 | 70 | 126.67493 | 45.71289 |
31 | 126.652645 | 45.72275 | 71 | 126.669823 | 45.72275 |
32 | 126.648697 | 45.72287 | 72 | 126.659395 | 45.72493 |
33 | 126.640457 | 45.72631 | 73 | 126.651799 | 45.72395 |
34 | 126.655778 | 45.73296 | 74 | 126.666862 | 45.72712 |
35 | 126.649727 | 45.7347 | 75 | 126.670639 | 45.72454 |
36 | 126.659211 | 45.73701 | 76 | 126.654031 | 45.73149 |
37 | 126.652645 | 45.74045 | 77 | 126.650984 | 45.73353 |
38 | 126.641272 | 45.73799 | 78 | 126.629612 | 45.7309 |
39 | 126.646251 | 45.74207 | 79 | 126.616909 | 45.72362 |
40 | 126.663846 | 45.74758 | 80 | 126.613433 | 45.71852 |
Merchant | 126.648085 | 45.719712 |
Cluster | Number of Nodes | Center Location | Optimal Route Length (km) | Standard Deviation of the Route Lengths (km) |
---|---|---|---|---|
1 | 20 | (126.652731, 45.731321) | 11.59 | 0.0043 |
2 | 23 | (126.623411, 45.725812) | 13.87 | 0.0038 |
3 | 16 | (126.649456, 45.712240) | 8.42 | 0.0038 |
4 | 21 | (126.672374, 45.716193) | 15.18 | 0.0044 |
Cluster | Number of Nodes | Center Location | Optimal Route Length (km) | Standard Deviation of the Route Lengths (km) |
---|---|---|---|---|
1 | 20 | (126.651025, 45.732542) | 11.23 | 0.0052 |
2 | 20 | (126.622107, 45.725252) | 13.47 | 0.0035 |
3 | 20 | (126.649186, 45.713749) | 11.71 | 0.0047 |
4 | 20 | (126.672893, 45.716256) | 14.80 | 0.0044 |
Cluster | Number of Nodes | Center Location | Optimal Route Length (km) | Standard Deviation of the Route Lengths (km) |
---|---|---|---|---|
1 | 16 | (126.652989, 45.733311) | 11.23 | 0.0042 |
2 | 23 | (126.623411, 45.725812) | 13.48 | 0.0038 |
3 | 21 | (126.650481, 45.714486) | 11.24 | 0.0037 |
4 | 20 | (126.672893, 45.716256) | 14.57 | 0.0044 |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Chen, J.; Guo, C.; Kou, J.; Du, J.; Sun, S.; Guo, Y. Study of Fair Strategy for Merchant Self-Operated Takeaway Delivery Based on Delivery Plan Optimization. Appl. Sci. 2025, 15, 6650. https://doi.org/10.3390/app15126650
Chen J, Guo C, Kou J, Du J, Sun S, Guo Y. Study of Fair Strategy for Merchant Self-Operated Takeaway Delivery Based on Delivery Plan Optimization. Applied Sciences. 2025; 15(12):6650. https://doi.org/10.3390/app15126650
Chicago/Turabian StyleChen, Jing, Chengbo Guo, Jiahua Kou, Jiali Du, Shufa Sun, and Yanling Guo. 2025. "Study of Fair Strategy for Merchant Self-Operated Takeaway Delivery Based on Delivery Plan Optimization" Applied Sciences 15, no. 12: 6650. https://doi.org/10.3390/app15126650
APA StyleChen, J., Guo, C., Kou, J., Du, J., Sun, S., & Guo, Y. (2025). Study of Fair Strategy for Merchant Self-Operated Takeaway Delivery Based on Delivery Plan Optimization. Applied Sciences, 15(12), 6650. https://doi.org/10.3390/app15126650