Next Article in Journal
Revealing the Next Word and Character in Arabic: An Effective Blend of Long Short-Term Memory Networks and ARABERT
Previous Article in Journal
Metal Release and Cell Viability of 316L Stainless Steel Sputter-Coated with N-Doped a-C:H Coatings
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Study on the Vehicle Routing Planning Method for Fresh Food Distribution

1
College of Transportation Engineering, Dalian Maritime University, Dalian 116026, China
2
School of Mechanical Engineering and Automation, Dalian Polytechnic University, Dalian 116034, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(22), 10499; https://doi.org/10.3390/app142210499
Submission received: 19 September 2024 / Revised: 14 October 2024 / Accepted: 18 October 2024 / Published: 14 November 2024

Abstract

:
Aimed at the high cost of cold chain distribution of fresh agricultural products within a specified time window, a joint optimization method based on a bi-level programming model for cold chain logistics is proposed for the location of front warehouses and distribution path planning. At the upper level of the bi-level programming model, k-means clustering analysis is used to obtain all accurate information about alternative locations for the front warehouse for site selection, thereby providing the corresponding foundation for the lower level algorithm. At the lower level of the model, a fusion algorithm of particle swarm optimization (PSO) and a genetic algorithm (GA) is used for solving. To accelerate the convergence speed of the population and lower the running time of the algorithm, the parameter values in the algorithm are determined adaptively. An adaptive hybrid algorithm combining the particle swarm optimization algorithm and the genetic algorithm (APSOGA) is used to reallocate the location information on backup points for the front-end warehouse, ultimately determining the facility location of the front-end warehouse and planning the end path from the front-end warehouse to the customer point, achieving joint optimization of the front-end warehouse’s location and path. A comparative analysis of algorithm optimization shows that using the APSOGA hybrid algorithm can reduce the total cost of the logistics network by 14.57% compared to a traditional single-algorithm PSO solution and reduce it by 5.21% compared to using a single GA. This proves the effectiveness of the APSOGA hybrid algorithm in solving location and path planning problems for cold chain logistics distribution companies.

1. Introduction

With the continuous improvement of the national economy and living standards, the demand for fresh products among residents is also rising, accelerating the cultivation of the public’s habits of online consumption and promoting the continuous development of the e-commerce industry. In 2021, the scale of fresh e-commerce transactions reached CNY 465.81 billion, an increase of 27.92% compared to the same period in 2020 [1]. As the fresh food e-commerce industry gradually matures, people are more interested in a convenient logistics model for online ordering and offline distribution. In response to the expansion of the market scale, a logistics model for fresh e-commerce has continuously been upgraded, and the front warehouse model has become a new choice for many e-commerce enterprises. Through online operations, offline customers’ orders are placed through service stations in the community, enabling goods to quickly reach consumers, solving the “last mile” problem in logistics distribution and improving logistics service quality [2,3].
Fresh products are prone to decay under normal temperatures due to certain characteristics. Therefore, the location of front warehouses and how to improve the efficiency of delivery and avoid the risk of deterioration have become key issues in the research on fresh product logistics. Reasonable location and distribution path planning for front warehouses can optimize the entire supply chain network, thereby minimizing the costs and maximizing the benefits. In order to provide convenient route planning services for the multi-point distribution of fresh agricultural products, a distribution route planning system for delivering fresh agricultural products in the shortest time is proposed [4]. Xu H X et al. [5] focused on summarizing an algorithm based on reinforcement learning and deep reinforcement learning methods for solving the path planning problem for autonomous vehicles; classified the algorithm according to value-based and policy-based methods; and analyzed the characteristics, benefits and drawbacks, and improvement measures for each type of algorithm. Zheng E Z and Lang F et al. [6,7] proposed planning methods for the distribution paths for emergency supplies. For vehicle path optimization, Ren T et al. [8] designed an ant colony algorithm that incorporates a knowledge model of tabu search operators and dynamic probability selection under a knowledge-based elite strategy to solve cold chain path optimization problems. F. Errico et al. [9] developed a method for accurately calculating the probability of route success, which uses a branch-and-cut algorithm to solve vehicle routing problems involving hard time windows and random service times. Ma et al. [10] used the ideal point method, a penalty function, and a Pareto optimal solution set to optimize vehicle delivery routes involving multiple objectives and multiple time windows, reducing the vehicle transportation costs, shortening the transportation distances, and reducing the number of transportation carriers. Avci et al. [11], Ma Y F et al. [12], and Guo Q et al. [13] combined tabu search and a differential algorithm based on 2-OPT ε—an approximate algorithm for performing constrained scheduling. HsiaoYH et al. [14] designed an adaptive biogeographical optimization algorithm for optimizing storage settings, involving multiple categories and temperatures in the logistics and distribution. Waisnawa I et al. [15] modeled a cold chain system for fruit and vegetable rich regions, analyzed the obstacles and problems in traditional fruit and vegetable distribution channels, and created new distribution networks. In response to the problem of location in the product supply chain, Xu et al. [16] adopted a pseudo reverse spider monkey optimization algorithm based on the Laplace distribution (LOBSMO) to solve multi-dimensional complex logistics distribution center location problems. Yan et al. [17] used triangular fuzzy numbers to represent the uncertainty of demand, weighted time, and cost and established a multi-level emergency logistics network. Han S et al. [18] proposed a mixed integer programming (MIP) algorithm for addressing the location of facilities in emergency logistics and meeting various material distribution needs in disasters.
The above research separates distribution vehicle routing optimization problems from distribution center location problems and can only obtain the results for a single type of problem, which cannot meet the requirements of overall optimization. In the process of distribution in cold chain logistics networks, considering collaborative optimization between these two aspects can maximize the benefits of the overall distribution system.
In recent years, domestic and foreign scholars have continuously deepened their research on agricultural product supply chains, comprehensively considering location and routing problems (LRPs), which are divided into single-layer location routing problems, double-layer location routing problems, and multi-layer location routing problems according to the node types. Yan et al. [19] studied a location routing problem with its time windows constrained by the volume of distribution centers, using a two-stage algorithm to determine the location of the distribution centers by introducing space–time distance through a k-means clustering algorithm and then using particle swarm optimization to obtain the optimal distribution path for each distribution center. Yang et al. [20] considered the complex dynamic requirements when conducting location route optimization and proposed a two-stage model. In the first stage, the initial distribution path was designed based on alternative front warehouse locations. After running for a while, the second stage entered the dynamic optimization stage, where real-time new demand points were optimized and calculated to adjust the distribution path. Guo et al. [21] designed a hybrid heuristic algorithm based on a savings algorithm and adaptive large neighborhood search for differences in the status of returned goods while allowing replenishment operations within the front warehouse and taking into account the location of the front warehouse. They proposed improved operators to effectively improve the algorithm speed, reduce the number of vehicles used and the logistics delivery costs.
To sum up, current domestic and foreign scholars often focus on the optimization of transportation routes for fresh product logistics network planning and ignore the impact of selecting appropriate locations to establish front warehouses on the entire logistics network distribution. Both location and route optimization are closer to the actual distribution mode, and considering only one aspect makes it difficult to achieve an optimal solution for overall logistics network planning. In studies that consider both the location of front warehouses and the transportation path, the problem of location is optimized, and the path optimization is performed after obtaining the determined location, without considering the interaction between them. This paper proposes to establish a mathematical model for solving the problem by using bi-level programming, where the upper layer is the problem of location and the lower layer is the problem of path optimization. The output results of the upper and lower layers interact with each other to minimize the total cost of the logistics system. The research aim of this article is to provide convenient path planning services for multi-point delivery of fresh products, shorten delivery time, ensure freshness and reduce the loss of fresh products. We take a fresh food company as an actual case to verify the effectiveness of the model and algorithm.
The paper is organized as follows. A description of the problem is given and modeling is constructed in Section 2. Section 3 is the algorithm design. Section 4 is the case verification and analysis. Finally, in Section 5, the conclusions are reported.

2. Problem Description and Model Construction

By studying location and path problems, a bi-level programming model is constructed to solve the location and path planning problems of a multi-center single vehicle type with time window constraints and an objective function of minimizing the total cost.

2.1. Problem Description

On the O2O e-commerce platform, fresh products account for over 50% of sales. Because of the time constraints in the delivery of fresh products, as well as customers’ requirements for quality and rapid delivery, it is common to establish a front warehouse to deliver to customers in demand within the coverage range. A single front warehouse covers an area within a radius of five kilometers. Compared to traditional distribution models, it directly delivers from the front warehouse to consumers, eliminating preservation and sales processes of intermediate wholesalers, supermarkets, and markets, achieving rapid delivery of fresh products and ensuring a positive shopping experience for customers. Currently, leading warehouses are mostly distributed in cities. By continuously establishing leading warehouses to cover a wider range of consumers, cold chain logistics costs can be effectively shared. A supply chain model of leading warehouses is shown in Figure 1. This article mainly studies how to maximize the benefits of logistics distribution through a two-level planning front warehouse location scheme and terminal path planning from the front warehouse to the point of the customer. Given the distribution vehicle information, volume, distribution and demand of customer service points, time windows, and other information, in addition to not exceeding the volume constraints of the front warehouse and load of the cold chain distribution vehicle, location selection is based on the distribution and demand of customer points. Distribution vehicles can service multiple customer points from the front warehouse, with each customer point being served by only one vehicle and only once.

2.2. Model Construction

To better solve the objectives of this article, the following assumptions are made:
(1)
Fresh products include fruits and vegetables, meat, and aquatic products. The degree of freshness is an important indicator that determines the value of these fresh products. Different types of products have different properties. This article only considers the category of fresh fruits and melons in the fresh category.
(2)
The distribution of customer points and demand are known and remain stable for a while without change.
(3)
The delivery vehicle maintains a constant speed in the delivery process.
(4)
Within the service time window, there are no new orders added for delivery vehicles.
The decision variables of the model are as follows.
X h i = 1 , front   warehouse h servers   customer   point   i 0 , else
Y h = 1 , front   is   established   at   h 0 , else
x i j k = 1 , vehicle   k   tarvels   from   customer   point   i   to   j 0 , else
x e h k = 1 , vehicle   k   tarvels   from   central   warehouse   e   to   front   warehouse   h 0 , else
x k 1 = 1 , vehicle   k 1   is   used 1 , else
x k 2 = 1 , vehicle   k 2   is   used 1 , else
y i k = 1 , customer   point   i   is   serviced   by   vehicle   k 0 , else
Descriptions of the symbols are given in Table 1.
The bi-level programming mathematical model is constructed as follows.
Upper model. In the cold chain logistics network for distributing fresh agricultural products, the location and quantity of the front warehouses are determined based on the degree of customer dispersion and the distribution of fresh agricultural products from the primary network node to the secondary network node. A reasonable location can achieve full coverage of nearby demand points and greatly improve vehicle delivery efficiency. The upper objective function includes the cost of building a front warehouse, vehicle transportation costs, refrigeration costs, cargo damage costs and time window penalty costs. The objective is to minimize the total cost of the system. The mathematical model is shown in Equation (8).
min Z = h H i I Y h ( C h + T h ) + e E h H C e h d e h Y h + k K e E C r k 1 t e h x k + k K C k 1 x e h k + θ 1 ω t k K h H x k 1 g e h ( 1 e δ t e h ) + θ 2 ω t h H i I x k 2 g h i ( 1 e δ t h i ) + k K i I j I C k 2 x i j k + k K i , j H I C p d i j x i j k + i I β 1 max E T i t t , 0 + i I β 1 max t t L T i , 0
Constraints s.t.:
1 h H Y h
h H R i h Y h 1 i I
Y h = { 0 , 1 } h H
Equation (9) indicates that the demand point is serviced by the front warehouse at least once. Equation (10) represents the construction of at least one front warehouse to cover demand points. Equation (11) represents the value constraint of the decision variable Y h .
Lower layer planning. Based on the location scheme of the initial front warehouse and the customer point division of the upper layer model, decisions are made on the terminal distribution path for each customer point in the region. The distribution cost includes the terminal vehicle transportation cost, the fixed cost when the electric vehicle starts, and the time window penalty cost. The mathematical model is given in Equation (12) to minimize the total cost of vehicles delivered along the specified route.
min z = k K i , j H I C p d i j x i j k + k K i I j I C k 2 x i j k + θ 2 ω t h H i I x k 2 g h i ( 1 e δ t h i ) + i I β 1 max E T i t t , 0 + i I β 1 max t t L T i , 0
Constraints s.t.:
X h i Y h h H
j V k K x i j k = 1 i I
u I i V p u x i j k Q k k K
i I X h i k = j I X j h k k K ,   h H
h H Y h i = 1 i I
x h 1 h 2 k = 0
i I j I x i j k = | S k | 1 k K
g V x i g k = g V x g j k k K ,   i , j V
0 i I h H X h i P i O h Y h
t j k = k K x i j k ( t i k + d i j v + Δ t i ) i , j V
t d i = max ( E T i t i , 0 ) i I
x i j k = 0 , 1 i , j V , k K
t i E i i I
t i L i i I
Equation (13) indicates that the front warehouse can only be selected to provide services to the customer points. Equation (14) indicates that each customer point has been served by only one vehicle once and will not repeat the service. Equation (15) indicates that the total amount of goods required by customers on each line where vehicle k is installed does not exceed the maximum carrying capacity of the vehicle. Equation (16) indicates that each vehicle departs from the front warehouse and returns to the front warehouse. Equation (17) indicates that the same customer point has only one front warehouse to provide services. Equation (18) indicates that there is no collaborative relationship between any two front warehouses. Equation (19) represents the elimination sub-loop. Equation (20) indicates that vehicles in each path are continuously transported to adjacent customer points. Equation (21) represents the volume constraint of the front warehouse. Equation (22) represents the time change of the vehicle between customer points. Equation (23) indicates the waiting time required by the vehicle to arrive before the customer’s time window. Equation (24) represents a value constraint on whether the decision variable uses the vehicle k for distribution between two customer points. Equations (25) and (26) jointly ensure that the vehicle arrives within the customer’s time window.
In summary, the upper level model is the dominant layer in the two-layer model, which completes facility location decisions and determines the starting point of vehicles in the lower level path planning. The lower level model is a subordinate layer, which is the follower of the dominant layer. It allocates customer points according to time and distance; solves the single vehicle path problem corresponding to the front warehouse; determines vehicle path planning; affects distribution costs, fresh arrival time and the resulting cargo damage costs; and reacts to upper level decisions. Finally, the global model of master–slave optimization is constructed with the iterative goal of minimizing the total cost of the fresh logistics network system in the dominant layer.

3. Algorithm Design

The location routing problem (LRP) is a complex system problem composed of Facility Location Problem (FLP) and vehicle routing problem (VRP) and there is a dependency relationship between FLP and VRP [22]. The network level of the front warehouse location and path planning studied in this paper belongs to two-level LRP (2E-LRP), where the upper level location is used to solve a single objective multiple constraint problem and the lower level path planning is used to solve a multiple time window path problem. This paper uses k-means-based considerations to introduce temporal and spatial distance factors to cluster customer points and determine the initial set of candidate points for the front warehouse.
Cluster analysis is an unsupervised learning method that has the advantages of fast computation speed and low computational complexity, making it suitable for processing large-scale data. We divide the samples according to certain rules, gather highly correlated samples in the same cluster and divide irrelevant samples into different clusters to analyze the differences in the properties and correlations between samples.
This chapter conducts cluster analysis on customer points that require front services, providing a good set of candidate point locations for future front warehouse site selection.

3.1. Generation of Candidate Points for Front Warehouse

In the front warehouse mode, demand points are scattered everywhere, and the level of demand of the points is determined by forecasting based on the level of demand of the customer points over the years. Using the improved k-means algorithm, the traditional method of calculating the distance between the centroid and the sample is replaced by calculating the distance between the longitude and latitude of two points in the actual front warehouse problem, replacing the Euclidean distance in the traditional algorithm. Traditional site selection uses the maximum coverage model to establish a mathematical model. It is necessary to determine each location of alternative points in advance and then select a location from these alternative points. In this paper, the set coverage model is used to obtain the front warehouse reserve points through improved k-means clustering analysis. For this, a flowchart is shown in Figure 2. The selection of K values in cluster analysis is evaluated and analyzed based on the clustering effect. The process of k-means clustering analysis is as follows.
Step 1: Import customer point information.
Step 2: Calculate the distance between the customer point and the cluster center.
Step 3: Assign customer points to the nearest cluster point.
Step 4: Update the list of customer points.
Step 5: If the list of customer points in the region has changed, return to step 3.
Step 6: Output cluster point center position.
Step 7: Update the center position of the clustering point until the customer point list remains unchanged.
Step 8: Output optimal cluster point center position.
The selection of K values in k-means clustering analysis is evaluated and analyzed based on the clustering effect. We try to make the distance within each cluster as close as possible and the distance between each cluster as far as possible. When the value of k is different, we set K to 5, 6, 7… 10 and calculate the inter-class distance, intra-class distance, number of samples in the maximum cluster and number of samples in the minimum cluster for different clustering results under each K value. The k-means clustering parameter analysis is shown in Table 2.
From Table 2, it can be seen that the K value with the smallest intra-class distance, the largest inter-class distance and the smallest difference in sample size between the maximum and minimum clusters is 15.

3.2. Combining GA with PSO to Solve Double-Layer Model

The fusion of multiple heuristic algorithms can compensate for the shortcomings of a single algorithm. This paper combines the crossover and mutation operations in a genetic algorithm (GA) with particle swarm optimization (PSO) to improve the convergence speed of the GA and avoid defects of the PSO algorithm falling into local optima. By utilizing crossover and mutation operations in the GA, randomness and diversity are provided for particles in the PSO, while replacing the worst particles with the best chromosomes in offspring, resulting in continuous population evolution. The adaptive hybrid algorithm combining the PSO algorithm and GA (APSOGA) is used to reallocate the location information of backup points in the front warehouse, ultimately determining the facility location of the front warehouse and planning the end path from the front warehouse to the customer point, achieving joint optimization of the front warehouse location and path.
(1)
Generation of initial solution.
The PSO algorithm uses the floating point encoding method to generate two groups of data according to the number of demand points. One group of data is used to determine the corresponding distribution point of the demand point, and the other group of data is used to determine the distribution order of each demand point, to obtain the initial particle position and speed and to calculate the fitness of all particles. This is denoted as X i = x 1 , x 2 , x 3 , x n 1 , x n ( i 1 , n ) , where X n is the particle position, V i is the particle velocity and n is the number of particles.
(2)
Update particle position.
In the initial solution, the local optimal particle position (Pbest) and the global optimal particle position (Gbest) of all the current particles are calculated, corresponding to different arrangement orders of customer points. Particle P i is the local optimal particle with the smallest fitness among the current population particles, that is
F ( P i ) = min i = 1 n F ( P b e s t i ) , i n
F ( P i ) iteratively updates the position of the particle, and its position and velocity are calculated according to Formulas (28) and (29)
X i k + 1 = X i k + V i k
V i k + 1 = ω V i k + C 1 × rand ( 1 ) × ( X Pbest k X i k ) + C 2 × rand ( 2 ) × ( X Gbest k X i k )
where V i k represents the rate of particle k , rand ( 1 ) and rand ( 2 ) represent random numbers within the range of 0 to 1, and C 1 and C 2 represent learning factor constants. ω represents the inertia weight, reflecting the ability of particles to inherit previous velocities. After updating the fitness value of the particle, we can recalculate the fitness function value. If the current particle fitness function value is better than P b e s t i , we can replace it and use the replacement Formula (30) to update the position of particle.
F ( P b e s t i ) = F ( P i ) , F ( P i ) < F ( P b e s t i ) F ( P b e s t i ) , o t h e r s
(3)
Selection and crossover of GA
We select a particle (Gbest) with the best fitness on a chromosome and a random particle in the existing population to perform a cross operation, generate a random intersection, generate two new offspring particles, calculate the fitness values of the two offspring particles and obtain two new paths.
(4)
Mutation of GA
For particles in the offspring chromosome, to avoid high similarity with the parent particle, two solutions of an offspring particle are randomly selected for exchange to obtain a new mutated offspring.
(5)
Calculation of fitness value
The optimal solution is found by calculating the fitness value of the particle. For the objective function, minimizing the cost of the cold chain logistics network is more in line with the expectations of the enterprise, so obtaining solutions with smaller objective function values will be prioritized. The function fitness F = min Z .
The overall algorithm steps are as follows (as shown in Figure 3).
Step 1: Read the data and set the number of iterations to 1.
Step 2: Encode to generate an initial population and transfer the initial location plan to the lower level model.
Step 3: Solve the lower level model, allocate customer points based on the spatio-temporal distance and solve the vehicle routing problem for a single parking lot corresponding to the front warehouse.
Step 4: Calculate the fitness value of the upper level model algorithm based on customer point allocation and corresponding vehicle path results.
Step 5: Conduct selection, crossover and mutation of the upper level algorithm (location selection based on 0–1 coding), using the tournament selection method to perform single-point crossover and two-point mutation to obtain new offspring.
Step 6: Repeat steps 3 to 5, solve the lower level model in sequence and calculate the fitness value of the function.
Step 7: Increase the number of iterations by 1 and repeat the above steps until the algorithm reaches the termination condition. Output the optimal solution with the lowest total cost.

4. Example Analysis

4.1. Data Collection

This paper verifies the effectiveness of the mathematical model through example analysis. Taking Dingdong Maicai, Shahe district, as an example, ShaheDistrict, a city was selected as a research area. The longitude and latitude coordinates were picked up through Baidu map coordinate points, and 68 customer points in the residential area were selected. The refrigerated delivery truck departs from the city center warehouse to deliver goods to various front warehouses. According to the needs and locations of customer points, electric vehicles depart from corresponding front warehouses for delivery services. The basic information of each customer point includes community name, latitude and longitude coordinates, demand for customer points, time window restrictions and service time. The starting and ending service time of the front warehouse is [540,1260], starting from zero and the delivery time should be within the service time window as much as possible. When the service time window is exceeded, penalty costs will be incurred. The supply of fresh products rather than a single category of fruits, meat and seafood is believed to have little change in consumer demand over a while. The basic information of some customer points is shown in Table 3.

4.2. Site Selection Planning for Front Warehouses

Using the K-means algorithm to perform cluster analysis on 68 customer points, the cluster center serves as an alternative point for establishing the front warehouse and the initial plan for selecting the location of the front warehouse is obtained. The cluster analysis results are shown in Figure 4. In the figure, the horizontal axis represents longitude and the vertical axis represents latitude.
Eight alternative points are passed into the lower level model as the initial solution, and after obtaining the allocation of customer points and vehicle paths, they are returned to the upper level model. According to the capacity and time window constraints of the front warehouse, we adjust the location plan of the front warehouse and determine the location of the front warehouse from eight alternative front warehouses, as shown in Table 4.

4.3. Path Planning of Front Warehouse

The path planning of the front warehouse includes mainline distribution and branch distribution. Main line delivery is the allocation of refrigerated trucks from the large warehouse in the city center to supply fresh products to the front warehouse, and each front warehouse is served by a refrigerated truck, as shown in Figure 5.
Two electric vehicles can be used in each front warehouse area to complete delivery services. The electric vehicle starts from the front warehouse, selects the appropriate number of vehicles to load goods based on the corresponding customer demand and electric vehicle capacity in the area and delivers goods to the customer points along the optimal path in the sequence. After completing the delivery, it returns to the front warehouse, forming a closed-loop route. We design a delivery path to minimize the delivery cost at a lower level and solve it using the APSOGA fusion algorithm. The algorithm parameters are c 1 = 0.5 and c 2 = 0.5 , the maximum number of iterations is λ = 100 , and other parameters are fresh product unit mass loss ω t = 0.02 , fresh product corruption rate δ = 5 % and mainline unit time cooling cost C r k 1 = 1.2 . After calculation, the mileage traveled by all electric vehicles for distribution is 4895.211 km, and the distribution cost is CNY 158,536.6. The distribution mileage and cost of electric vehicles in each region are shown in Table 5.

4.4. Algorithm Optimization Comparison

To verify the effectiveness of the APSOGA fusion intelligent optimization algorithm, a two-stage optimization was performed on the above example. The number of front warehouses and alternative points are determined through K-means clustering analysis, and based on this, the location and end path optimization of front warehouses are carried out. The final iteration goal is the total upper cost. A comparison of the solution results between the APSOGA fusion algorithm and the traditional single intelligent algorithm is shown in Figure 6. In Figure 6, the horizontal axis represents the number of iterations, and the vertical axis represents the objective function value.
The optimal solution curve in Figure 6 represents the convergence of different intelligent optimization algorithms for the same example. The total objective function values calculated by a single intelligent optimization algorithm, PSO and GA, are CNY 1.0614 million and CNY 974,700, respectively, while the total objective function obtained by the APSOGA fusion algorithm is CNY 925,600. Compared to a single algorithm, the total cost decreased by CNY 134,900 and CNY 48,200, respectively. Therefore, compared to solving with a single heuristic algorithm, the adaptive algorithm has a better solving effect. Compared with the other five heuristic algorithms, APSOGA has the lowest total cost, reducing the total costs by 25.75% and 25.74%, respectively, compared to using the adaptive particle swarm optimization algorithm (APSO) and the adaptive genetic algorithm (AGA), and reducing the total cost by 25.84% compared to using the GA. This confirms the effectiveness of the APSOGA in solving this type of LRP. The APSOGA has a faster solving speed than the traditional algorithms PSO and GA, as shown in Table 6.

5. Conclusions

This article proposes an APSOGA fusion algorithm based on a bi-level programming model to solve the problem of front warehouse location and path planning in fresh agricultural product logistics networks. The study investigates the impact of time window constraints and upper and lower level mutual decision-making on front warehouse location path optimization. A K-means clustering algorithm was designed for the coordinates of customer points within the region, using the distance between longitude and latitude coordinates as a similarity measure to find various centroids in the coordinates, namely the front warehouse backup points mentioned earlier. An APSOGA fusion algorithm is used to solve the double-layer model. The upper layer considers whether to establish a front warehouse at that point, which affects the allocation results of the lower layer’s customer points. The lower layer model considers the vehicle routing problem for multiple parking lots with time windows and returns the results to the upper layer model, iterating the objective function of the upper model as the overall objective, while meeting the needs of various customer points and the maximum capacity of the front warehouse to minimize the total logistics cost of the objective function, which is CNY 925,600. The APSOGA fusion algorithm reduces the total cost of the logistics network by 14.57% compared to the traditional single algorithm PSO solution and by 5.21% compared to the single GA. This proves the effectiveness of the APSOGA fusion algorithm in solving the location and path planning problems of fresh food companies. This provides a reference for solving the problem of fresh logistics network distribution in the front warehouse mode.

Author Contributions

Writing—original draft, Y.W. (Yuxuan Wang); Writing—review & editing, Y.W. (Yajun Wang); Software, J.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

We thank all the authors of the references that gave us inspiration and help. The authors are grateful to the editors and anonymous reviewers for their valuable comments that improved the quality of this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Gong, Y.; Liu, D. Research on the impact of online reviews on consumers’ purchasing intentions of fresh cut flowers. China Collect. Econ. 2022, 721, 103–105. [Google Scholar]
  2. Guo, X.H.; Ji, M.J.; Wen, D.S. Task allocation and path planning of distributed multi-UAV for “last-mile” distribution. Syst. Eng. TheoryPract. 2021, 41, 946–961. [Google Scholar]
  3. Zhou, Y.W.; Li, F. Problems and challenges faced by new retail operation management. J. Syst. Manag. 2022, 31, 1041–1055. [Google Scholar]
  4. Wu, Z.K.; Jiang, Z.Y.; Zhang, W.F.; Zeng, T.; Ye, L.P. Distribution route planning system for fresh agricultural products in the shortest time. Inf. Technol. 2024, 4, 100–105,114. [Google Scholar]
  5. Xu, H.X.; Wu, Z.Z.; Liang, Y.Y. Review of research on path planning methods for autonomous vehicles based on reinforcement learning. Appl. Res. Comput. 2023, 40, 3211–3217. [Google Scholar]
  6. Zheng, E.Z.; Zhang, Y.C.; Xu, Y.M. Path planning of earthquake emergency supplies distribution based on improved GeneticAlgorithm. North China Earthq. Sci. 2024, 42, 25–29,72. [Google Scholar]
  7. Lang, F. GIS-Based Route Planning Method for Emergency Distribution of Power Supplies. J. Jilin Univ. 2024, 42, 294–300. [Google Scholar]
  8. Ren, T.; Luo, T.Y.; Li, S.X.; Xiang, S.; Xiao, H.L.; Xing, L.N. Knowledge-based ant colony algorithm for cold chain logistics distribution pathoptimization. Control Decis. 2022, 37, 545–554. [Google Scholar]
  9. Mejjaouli, S.; Babiceanu, R.F. Cold supply chain logistics: System optimizastandardtion for real-time rerouting transportation solutions. Comput. Ind. 2018, 95, 68–80. [Google Scholar] [CrossRef]
  10. Ma, L.; Wang, C.X.; Zhang, Z.Y.; Dong, R. Pigeon-flock-water drop algorithm for multi-objective multi-time window vehicle path problem. Comput. Eng. Appl. 2021, 57, 237–250. [Google Scholar]
  11. Avci, M.; Topaloglu, S. A hybrid metaheuristic algorithm for heterogeneous vehicle routing problem with simultaneous pickup and delivery. Expert Syst. Appl. 2016, 53, 160–171. [Google Scholar] [CrossRef]
  12. Ma, Y.F.; Wang, S.; Huang, L.Y.; Cheng, C. Scheduling problem and algorithm of low-carbon pick-up and delivery vehicle under fuzzy demand. Comput. Appl. 2021, 41, 851–859. [Google Scholar]
  13. Guo, Q.; Wang, N. The Vehicle Routing Problem with Simultaneous Pickup and Delivery Considering the Total Number of Collected Goods. Mathematics 2023, 11, 311. [Google Scholar] [CrossRef]
  14. Hsiao, Y.H.; Chen, M.C.; Chin, C.L. Distribution planning for perishable foods in cold chains with quality concerns: Formulation and solution procedure. Trends Food Sci. Technol. 2017, 61, 80–93. [Google Scholar] [CrossRef]
  15. Waisnawa, I.; Santosa, I.; Sunu, I.P.W.; Igab, W. Model development of cold chains for fresh fruits and vegetables distribution: A case study in Bali Province. J. Phys. Conf. Ser. 2018, 953, 012109. [Google Scholar] [CrossRef]
  16. Xu, X.P.; Yang, Z.; Liu, L. Spider monkey algorithm to solve the location problem of logistics distribution center. Comput. Eng. Appl. 2020, 56, 150–157. [Google Scholar]
  17. Yan, S.; Qi, J.P. Research on site selection of multi-level emergency logistics facilities considering uncertain demand. Oper. Res. Manag. 2022, 31, 7–13. [Google Scholar]
  18. Han, S.; Jeong, H.; Park, J. Study on the Facility Planning for Relief Logistics Relieving Damage from Natural Disaster. J. Soc. E-Bus. Stud. 2019, 23. [Google Scholar] [CrossRef]
  19. Yan, F.; Peng, T.T.; Shen, C.R. Solving Site-Path Problem with Volume Constraint Based on Spatiotemporal Clustering. Control Decis. 2021, 36, 2504–2510. [Google Scholar]
  20. Yang, Y.L.; Zhang, J.; Sun, W.J.; Pu, Y. Research on site selection-path problem based on pharmaceutical front warehouse under dynamic demand. Control Decis. -Mak. 2023, 38, 1670–1678. [Google Scholar]
  21. Guo, F.; Huang, Z.H.; Huang, W.L. Research on the Route of Delivery Vehicles Considering Front Warehouse Location and Service Strategy. Syst. Eng. TheoryPract. 2021, 41, 962–978. [Google Scholar]
  22. Errico, F.; Desaulniers, G.; Gendreau, M.; Rei, W.; Rousseau, L.M. The vehicle routing problem with hard time windows and stochastic service times. Euro J. Transp. Logist. 2018, 7, 223–251. [Google Scholar] [CrossRef]
Figure 1. Supply chain mode of front warehouse.
Figure 1. Supply chain mode of front warehouse.
Applsci 14 10499 g001
Figure 2. Cluster analysis flowchart.
Figure 2. Cluster analysis flowchart.
Applsci 14 10499 g002
Figure 3. The overall algorithm steps.
Figure 3. The overall algorithm steps.
Applsci 14 10499 g003
Figure 4. Cluster analysis results.
Figure 4. Cluster analysis results.
Applsci 14 10499 g004
Figure 5. Trunk delivery route.
Figure 5. Trunk delivery route.
Applsci 14 10499 g005
Figure 6. Iterative convergence graph of different algorithms.
Figure 6. Iterative convergence graph of different algorithms.
Applsci 14 10499 g006
Table 1. Descriptions of the symbols.
Table 1. Descriptions of the symbols.
SymbolsDescription of Symbol
E The set of large warehouses in a city center, { e | e E }
H The set of candidate points for the front warehouse, { h | h H }
I The set of customer points for distribution, { i | i I }
W = I H The set of the customer point i and the front warehouse h
K The set of delivery vehicles, { k | k K }
( i , j ) The point from the distribution center to the front warehouse i , j H , i j
p i The demand at the customer point (kg)
O h The capacity of the front warehouse (kg)
C h The unit fixed cost of the front warehouse h (CNY)
T h The operating cost of the front warehouse h (CNY)
C e h The unit distance transportation cost of trunk distribution vehicles from the central warehouse to the front warehouse (CNY/km)
d e h The distance from the central warehouse to the front warehouse of the main delivery vehicle
d h i The distance between the front warehouse and the customer point
d h i max The farthest distance between customer points that regional vehicles can deliver to and the front warehouse
t e h The time from the central warehouse to the front warehouse for the main delivery vehicle
t i k The service time of the vehicle k at the customer point i
t i / t j The time when the vehicle arrives at the customer point i or j
t d i The waiting time for the vehicle at the customer point i
C k 1 The fixed cost per unit distance of mainline vehicles (CNY/km)
C p The transportation cost per unit distance of branch line vehicles (CNY/km)
C k 2 The fixed cost per unit distance of branch line vehicles (CNY/km)
C r k 1 The unit time cooling cost of mainline vehicles (CNY/h)
θ 1 The unit loss cost from the large warehouse in the city center to the front warehouse
θ 2 The unit loss cost from the front warehouse to the customer point i
F k The vehicle capacity
ω t The cargo damage amount at time t (kg)
δ The corruption rate of the goods
g e h The transportation volume from the large warehouse in the city center to the front warehouse h (kg)
d i j The distance from the customer point i to the customer point j (km)
R i h The distance between the front warehouse and the customer point
Δ t i The service time of the vehicle at the customer point i
E T i The earliest expected arrival time at the customer point i
L T i The latest expected arrival time at the customer point i
β 1 The penalty coefficient per unit time that the vehicle performs the service earlier than the earliest expected service start time of the customer point i
β 2 The penalty coefficient per unit time that the vehicle performs the service later than the latest expected service start time of the customer point i
Table 2. K-means cluster parameter analysis.
Table 2. K-means cluster parameter analysis.
K 5678910111213141516
Intra class distance2.371.931.731.621.421.361.311.261.211.191.081.12
Inter class distance0.70.720.750.730.78 0.7
The number of samples in the minimum cluster1111114755111131
The number of samples in the maximum cluster242518251717172513121113
Table 3. The basic information of customer point.
Table 3. The basic information of customer point.
No.NameLatitudeLongitudeDemandStart of Time Window/minEnd of Time Window/minService Time/min
1N0122.559823114.2271341520.0453359318
2N0222.560746114.228704501.972978910
3N0322.563047114.228713669.289495419
4N0422.563074114.2296861720.8991105120
5N0522.559611114.229892573.678985820
64N6422.601627114.307327348.941077113710
65N6422.60637114.3120962652.962768714
66N6622.606548114.315331467.4670476410
67N6722.606693114.3169082055.455161119
68N6822.604831114.3210112260.9493099012
Table 4. Position of front warehouses.
Table 4. Position of front warehouses.
No.LatitudeLongitudeChoose or Not
122.5938114.2725Yes
222.5556114.2401Yes
322.6057114.3118Yes
422.5640114.2508No
522.5658114.2464Yes
622.5618114.2339No
722.5949114.2536Yes
822.5605114.2320Yes
Table 5. Distribution routes and electric vehicle mileage within each region.
Table 5. Distribution routes and electric vehicle mileage within each region.
No.Distribution RoutesTransportation Mileage/kmDelivery Cost/CNY
17-28-29-35-18-32-25-7
7-27-24-26-23-37-7
288.518
322.272
4327.764
4834.075
22-21-20-19-9-16-15-13-12-10-8-2
2-22-14-11-17-2
459.597
215.979
6893.953
3239.684
36-36-44-49-31-40-48-6
6-33-45-47-30-34-38-6
344.550
346.577
51,682.456
51,986.601
44-55-54-51-52-53-52-43-42-41-4
4-46-56-39-54-4
590.014
429.683
8850.211
6445.242
55-67-65-62-61-66-58-5
5-63-60-59-57-68-64-5
624.889
666.192
9373.334
9992.882
63-69-70-72-74-3
3-71-73-75-3
287.399
319.541
431.098
479.311
Table 6. Performance comparison of algorithms.
Table 6. Performance comparison of algorithms.
AlgorithmsPSOGAAPSOGA
Run time/S8.2988.4348.154
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.

Share and Cite

MDPI and ACS Style

Wang, Y.; Wang, Y.; Leng, J. A Study on the Vehicle Routing Planning Method for Fresh Food Distribution. Appl. Sci. 2024, 14, 10499. https://doi.org/10.3390/app142210499

AMA Style

Wang Y, Wang Y, Leng J. A Study on the Vehicle Routing Planning Method for Fresh Food Distribution. Applied Sciences. 2024; 14(22):10499. https://doi.org/10.3390/app142210499

Chicago/Turabian Style

Wang, Yuxuan, Yajun Wang, and Junyu Leng. 2024. "A Study on the Vehicle Routing Planning Method for Fresh Food Distribution" Applied Sciences 14, no. 22: 10499. https://doi.org/10.3390/app142210499

APA Style

Wang, Y., Wang, Y., & Leng, J. (2024). A Study on the Vehicle Routing Planning Method for Fresh Food Distribution. Applied Sciences, 14(22), 10499. https://doi.org/10.3390/app142210499

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop