Contactless Distribution Path Optimization Based on Improved Ant Colony Algorithm

In the context of the normalization of the epidemic, contactless delivery is becoming one of the most concerned research areas. In the severe epidemic environment, due to the frequent encounter of bayonet temperature measurement, road closure, and other factors, the real-time change frequency of each traffic information is high. In order to improve the efficiency of contactless distribution and enhance user satisfaction, this paper proposes a contactless distribution path optimization algorithm based on improved ant colony algorithm. First of all, the possible traffic factors in the epidemic environment were analyzed, and the cost of each link in the distribution process was modeled. *en, the customer satisfaction is analyzed according to the customer service time window and transformed into a cost model. Finally, the total delivery cost and user satisfaction cost were taken as the optimization objectives, and a new pheromone updating method was adopted and the traditional ant colony algorithm was improved. In the experiment, the effectiveness of the proposed model and algorithm is verified through the simulation optimization and comparative analysis of an example.


Introduction
Contactless distribution refers to placing goods in a designated location, such as delivery cabinets and doorsteps. Customers then pick up the goods themselves, thus achieving contactless delivery of goods. Compared with traditional delivery methods, contactless delivery reduces the contact between people [1]. During the COVID-19 outbreak, contactless delivery effectively reduced the risk of cross-infection between delivery personnel and customers. In the context of the normalization of the epidemic, the demand for contactless delivery is increasing day by day. When the epidemic control policy is strict, considering the factors of safety and necessity of life, most of the goods distributed without contact are fresh goods. erefore, the contactless distribution of fresh goods has important research significance. Reasonable planning of fresh goods logistics distribution path not only can reduce the logistics distribution cost and ensure the freshness of fresh products, but also can increase customer satisfaction and enhance the competitiveness of enterprises.
Since the vehicle routing problem was proposed [2], a large number of research achievements have been generated. Desrocherst and Verhoog [3] proposed a hybrid vehicle path model. Solomon and Desrosiers incorporated the concept of time windows into the vehicle routing problem [4]. On this basis, Jabali et al. solved the time window constraint [5] by punishing the cost, introduced the concepts of soft time window and hard time window and established the vehicle routing problem of soft time window. In recent years, advocating green development, with the goal of reducing energy consumption and carbon emissions, green vehicle routing has attracted the attention of academic circles. Tabu search algorithms based on particle swarm optimization (PSO), simulated annealing, and path partition are often used to solve the green vehicle routing problem model [6]. In order to highlight the impact of vehicle energy consumption and carbon emissions on the environment, literature [7] puts forward the problem of pollution path. Literature [8] analyzed the influence of vehicle departure time on vehicle speed, built a time-dependent single target pollution path model, and solved it by using tabu search algorithm and departure time and speed optimization algorithm, respectively. Literature [9] designed a Wolf swarm algorithm to solve the vehicle routing problem of multiple distribution centers. Yan et al. [10] studied the two-dimensional packing vehicle routing problem including time window and multiple vehicle field factors and proposed the quantum particle swarm optimization algorithm to solve the problem. Literature [11] designed a variable neighborhood search algorithm for solving the VRP model. Literature [12] used dynamic programming algorithm to solve the vehicle routing problem. e research on the contactless distribution path of fresh goods is mainly applied to the field of cold chain logistics and transportation. At present, there have been a series of research results in the field of cold chain logistics and transportation. Tarantilis and Kiranoudis [13] took the distribution of meat and milk in Greece as an example to study the vehicle routing problem of open cold chain logistics distribution with multiple models and multiple distribution centers. Amorim et al. [14] constructed a multitime window and multivehicle routing problem for a food distribution problem in Portugal. Yang and Sun [15] studied the VRP model of perishable goods in cold chain logistics and optimized the distribution path by using genetic algorithm. Zhang et al. [16] designed a mathematical model of vehicle path of cold chain logistics with multiple depots and models and solved it through genetic algorithm and elite selection method. Ma et al. [17] studied the vehicle routing optimization model of cold chain logistics based on random demand. Lan et al. [18] analyzed the impact of urban road congestion on the vehicle distribution cost of cold chain logistics, built the corresponding vehicle path optimization model, and designed a hybrid genetic algorithm to solve the problem. In the case of uncertain demand, Li and Wang [19] established the distribution path optimization problem of perishable products with time windows with random customer demand.
To sum up, research on the distribution of vehicles in cold chain logistics has produced certain research results, which lays a good foundation for the research on the green vehicle routing problem in cold chain logistics. However, there are also some limitations, mainly reflected in the following three aspects: (1) e existing cold chain logistics distribution does not consider the real-time impact of road closure, bayonet temperature measurement, and traffic congestion on path planning. (2) At present, the relevant literature of cold chain logistics vehicle routing optimization mainly discusses the economy, and seldom involves the green benefits of vehicle energy saving and emission reduction. (3) Less consideration is given to the impact on user satisfaction. On this basis, the possible traffic factors in the epidemic environment are analyzed in this paper, and the cost of each link is modeled in the distribution process. e fixed cost, transportation cost, refrigeration cost, carbon emission cost, penalty cost, and user satisfaction cost of the vehicle were taken as objective functions to build the model. Based on the traditional ant colony algorithm, the updating method of pheromone is improved, and a path planning algorithm which is more consistent with the contactless distribution model is obtained. e improved post-ant colony algorithm for path planning can adjust the path according to the realtime traffic situation, which can not only improve the efficiency of contactless distribution, but also improve user satisfaction.

Description of Distribution Problem.
In actual application scenarios, distribution companies will not set up too many distribution centers due to cost constraints [20]. In an epidemic situation, the number of distribution centers set up will be more limited. erefore, in order to be more consistent with the actual situation, the hypothetical situation of the distribution problem in this paper is as follows.
(1) ere is only one distribution center, which has multiple distribution vehicles.
(2) e distribution scope is the residential areas, shopping malls, and other places near the distribution center. e same community or shopping mall will have multiple goods at the same time distribution needs. For the convenience of description, the same residential area, shopping mall, and other residential areas are collectively referred to as the same residential area in the following description.
(3) e location coordinates of each customer can be accurate to the specific community, the demand of each customer is known, and the sum of the demand of the same community is known.
(4) In order to save distribution resources, generally only one vehicle will be arranged to meet the needs of customers in the same location at a time; that is, customers in the same community will only be provided with distribution services by one delivery vehicle.
(5) In this paper, it is assumed that each vehicle starts from the distribution center and returns to the distribution center after completing certain distribution tasks. During the distribution process, the vehicle is only responsible for delivering goods and contacting customers for self-collection. Delivery personnel are not responsible for face-to-face inspection, return, and other services. (6) If the goods are not delivered within the specified time, its quality will decline, and the customer can ask for compensation after receiving the goods. erefore, if the delivery is not within the time frame required by the customer, there will be a penalty fee. (7) Assume that the distribution center has enough vehicles to complete all the distribution tasks, and the distribution vehicles have the same model and are equipped with refrigeration equipment. e maximum loading capacity of the vehicle is known. e customer demand on each distribution route 2 Mathematical Problems in Engineering cannot exceed the maximum loading capacity of the distribution vehicle.
Based on the above assumptions, the cold chain distribution problem of contactless distribution studied in this paper can be described as follows. A fresh goods distribution center distributes fresh goods to the surrounding customer groups, using refrigerated trucks as transportation tools. e demand and geographical location of each customer is known, and each customer has a certain limit on the delivery time of goods. e vehicle shall return to the distribution center after completing certain distribution tasks. In order to optimize the objective function, the driving route is arranged reasonably under the condition of satisfying the customer's demand. Figure 1 is a basic distribution diagram of the problem.

Signs and Variables
M: the number of communities served by the logistics distribution center M i : the number of customers in the ith community N: the number of customers served by the logistics distribution center W: the number of refrigerated vans owned by the distribution center d ij : the distance that vehicles travel directly from community i to community j q i : the quantity demanded by all customers in community i p: unit price of fresh goods Q w : maximum load capacity of the delivery vehicle Q ij : the load of a vehicle when it travels directly from community i to community j ρ(Q ij ): fuel consumption per unit distance of goods transporting Q ij when the vehicle travels from community i to community j t k i : the time it takes for vehicle k to reach customer i U(t i ): customer's i satisfaction with goods distribution [ET i , LT i ]: the best service window for customer i [ET * i , LT * i ]: the service time window acceptable to customer i ε 1 : penalty cost per unit time of the vehicle serving customer i before the time ET i ε 2 : penalty cost per unit time of the vehicle serving customer i after the time LT i t i : the time that vehicle k serves customer i, where t 0 � 0 α ijk : a path factor; when vehicle k drives directly from customer i to customer j, its value is 1; otherwise, its value is 0 β ik : the vehicle distribution factor; when the goods of customer i are delivered by vehicle k, the value is 1; otherwise, the value is 0 C1: fixed operating cost of the vehicle C2: unit transport cost of the vehicle C3: environmental cost per unit CO 2 of emissions consumed C e1 : refrigeration cost per unit time during the distribution process C e2 : refrigeration cost per unit time during loading and unloading ω: the emission coefficient of CO 2 r ij : the road condition factor of vehicles driving directly from community i to community j 2.3. Road Traffic Factor. In the severe epidemic environment, due to the frequent encounter of bayonet temperature measurement, road closure, and other factors, the real-time performance of each road condition information changes greatly. In order to improve the efficiency of contactless distribution, these factors need to be considered in the distribution path optimization model. In order to meet the practical application scenarios and facilitate the establishment of the subsequent cost model, the road traffic situation is divided into four situations.
Situation 1: the road condition is good and does not affect the normal work of the delivery vehicle. In this case, the road condition factor r ij is constant 1.
Situation 2: the road condition is good, but there is a temperature measuring bayonet in the road section of the distribution vehicle. Because the temperature measurement and registration of bayonet need a certain time, the distribution of vehicles will be affected to a certain extent. At this point, the road condition factor r ij is a constant greater than 1, and its size is related to the number of specific temperature measuring bayonets. Here, the temperature measurement bayonet information can be obtained by the relevant government departments. In general, temperature bayonet conditions do not change very frequently and generally do not change on the same day, such as r ij ∈ (1, 3].
Situation 3: the road condition is normal, and the road section of the delivery vehicle will encounter congestion. In this case, the road condition factor r ij is a variable greater than 1, and the specific value is determined by the degree of traffic congestion. Traffic congestion is assumed to be captured by real-time information released by the Department of Transportation. In general, traffic jams are highly correlated with the time of day. For example, in the morning and evening peak hours, when the road condition is poor, the value of the road condition factor is large, such as r ij ∈ (3, 5]. Situation 4: in case of severe epidemic, some road sections may be closed in order to control access to the area. When the road is closed, in order to realize the distribution of goods, only a detour can be taken. In this case, the road condition factor r ij will be reassigned according to the detour distance and the traffic Mathematical Problems in Engineering condition, and its value is usually larger, such as r ij ∈ (5, 10].

Distribution Cost Analysis.
In the context of epidemic environment, in order to better reflect the actual situation of contactless distribution, this paper adds carbon emission, customer satisfaction, and traffic conditions on the basis of vehicle cost, refrigeration cost, and penalty cost. Among them, carbon emission and customer satisfaction are calculated as separate cost functions. Route traffic factors affect the cost of each of the above items, but in order to simplify the calculation model, this paper converts the path traffic factors into the influence coefficient of distance.
at is, when the road conditions encounter temperature checkpoints, traffic jams, and road closures, the distance assumption becomes larger, so that the vehicle cost, refrigeration cost, and time cost will all increase.

Fixed Costs of Vehicles.
e fixed cost of using a vehicle is usually constant, including fixed wear and tear on the vehicle and costs related to the use of the vehicle, such as the driver's salary, independent of the vehicle's mileage and the number of customers served. e fixed cost V1 of the vehicle is shown as follows:

Transportation Costs of Vehicles.
e transportation cost of a vehicle mainly refers to the fuel consumption cost, which is usually proportional to the mileage of a vehicle. erefore, the transportation cost V2 of a vehicle can be expressed as follows: (2)

Costs of Refrigeration.
e refrigeration cost should be considered in the transportation process of cold chain model. Cooling costs include the energy consumed to keep the vehicle cool during transportation and the cost of additional energy provided by the cooling system during offloading. erefore, in the process of transportation, the refrigeration cost V31 of the refrigerated truck is shown as follows: During the unloading process, the refrigeration cost V32 of the refrigerated truck can be expressed as follows: erefore, the refrigeration cost of the whole process is

Costs of Carbon Emission.
Carbon emission cost mainly refers to the CO 2 emission cost generated by vehicle fuel consumption in the distribution process, carbon emission � fuel consumption × CO 2 emission coefficient. Fuel consumption is related to both transport distance and vehicle load capacity. e fuel consumption per unit distance ρ can be expressed as a linear function dependent on the cargo carrying capacity of the truck X. Divide the total vehicle weight into vehicle dead weight Q 0 and cargo capacity X; then the unit distance fuel consumption ρ(X) is shown as follows: e maximum cargo capacity of the vehicle is set as Q, the fuel consumption per unit distance is ρ * when full load, and the fuel consumption per unit distance is ρ 0 when no load.
us, fuel consumption per unit distance ρ(X) can be expressed as erefore, in the process of fresh agricultural products distribution, if the goods of ij are transported from customer i to customer j, then the carbon emissions generated when driving between (i, j) can be expressed as where ω is the CO 2 emission coefficient, Q ij represents the deadweight when the vehicle travels directly from customer i to customer j, ρ(Q ij ) represents the fuel consumption per unit distance when the vehicle travels between (i, j), and the deadweight is Q ij . In this paper, the carbon emission cost is calculated through the carbon tax mechanism, that is, carbon emission cost � carbon tax × carbon emission. If the carbon tax is set as C3, then the total carbon emission cost V4 in the distribution process can be expressed as

Penalty
Costs. e quality of fresh products is greatly affected by the time factor, so in the process of distribution, each customer has characteristic requirements for the service time window, which is divided into acceptable service time window [ET * i , LT * i ] and optimal service time window [ET i , LT i ] according to the service level. If the delivery time is not within the optimal delivery time, it may lead to the loss of subsequent business. At the same time, the optimal time window is related to the time when distribution starts to serve, so the penalty cost function can be expressed as where Max E is a constant, representing the maximum loss caused outside the acceptable delivery time window.

User Satisfaction.
e customer satisfaction with the service U(t k i ) also depends on the time window when the customer starts the service. e specific function is as follows: In order to take user satisfaction into account in the overall loss function, the loss cost of user satisfaction is defined as follows:

Construction of Distribution Model.
To sum up, considering the influence of traffic path factors and user satisfaction, the final optimization model of distribution path is as follows: where Mathematical Problems in Engineering 5 i,j∈S×S where the objective equation (14) represents the comprehensive cost formula of cold chain logistics transportation including carbon emissions. Equation (15) is the constraint of vehicle carrying capacity. Equation (16) ensures that each customer is only served by one vehicle. Equations (17) and (18) restrict that for any customer, only one vehicle can arrive and depart once. Equation (19) is the elimination condition of secondary loop. Equation (20) represents the continuity of the distribution process.

Improved Ant Colony Algorithm
Because VRP belongs to NP-hard problem, heuristic algorithm is usually used to solve it. e optimization of the distribution path of fresh agricultural products considering carbon emission is also a NP-hard problem. Because its complexity is higher than that of VRP, the algorithm is required to solve it. Ant colony algorithm is a kind of simulated evolutionary algorithm inspired by real ant colony behavior in nature. Ant colony algorithm has shown good performance in many aspects, such as positive feedback, strong robustness, distributed computing, and easy to be combined with other methods. Its positive information feedback mechanism enables it to quickly find better solutions. Distributed computing makes it easy to implement algorithms in parallel and avoid falling into local optimality. erefore, this paper uses the improved ant colony algorithm to solve the model.

Basic
Step of the Algorithm. e basic flow of ant colony algorithm is as follows.
Step 1. Initialize parameters. ere are m ants; start from the distribution center at the same time and select the first access point according to certain conditions, respectively.
Step 2. List all unvisited points for each ant and set the number of them as S1.
Step 3. Judge the value of S1. If S1 � 0, it means that the ant has completed all the distribution tasks and should return to the distribution center to end the distribution of this line. If S1 > 0, then S2 (S2 ≤ S1) is selected from S1 unaccessed points that meet the access conditions. If S2 � 0, it means that no optional point meets the conditions, and the vehicle returns to the distribution center. If S2 > 0, then S � min (S1, S2), and add the distribution center to the candidate access points. Select one point as the next service point according to a certain probability, and return to Step 2.
Step 4. Judge whether all ants have completed the delivery task. If so, calculate the total route length of each ant, select the shortest route and record it, and update the pheromone according to the rules.
Step 5. Calculate the minimum value of routes passed by each ant in each operation, denoted as L i (i � 1, 2, . . ., N); after multiple calculations, the iterative optimal solution can be obtained as min (L i ).

Heuristic Factor.
Heuristic factor is the key factor inspiring ant to select nodes and the core part of ant colony algorithm, which can directly affect the algorithm's solution quality. e influence of vehicle load is taken into account in the model built for the optimization of fresh agricultural products distribution path considering carbon emissions. If only the distance is taken as a heuristic factor, the solution results will be affected, resulting in fuel waste and cost increase. erefore, the customer's demand for goods is introduced into the heuristic factor, which makes the algorithm take into account the influencing factors of fuel consumption when selecting the next node. e heuristic factors for the optimization of the distribution path of fresh agricultural products considering carbon emissions are shown as follows: As shown in equation (21), on the premise of satisfying the vehicle load and time constraints, the ant individual will comprehensively calculate the heuristic factor according to the current load and distance. e distance is in the denominator, so the smaller the distance, the larger the heuristic factor, and the greater the probability that the ant will choose this customer point. Similarly, the load weight is at the molecular position, so the greater the demand for goods at the next customer point is, the greater the value of heuristic factor is, and the greater the selection probability is. In other words, the customer point with large demand is given priority for delivery, so as to reduce the load weight of the delivery vehicle and reduce fuel consumption.

Improved Pheromone Update Strategy.
In the classical model, the specific updating mode of the pheromone left by the kth ant from i to j is as follows [21]. e ant quantity system is Inspired by the ideas of genetic algorithm, such as genetic inheritance, recombination and mutation, a new pheromone updating method is proposed in this paper. e new pheromone updating method can effectively retain the better route segments and combine reasonably between different route segments, so as to facilitate the rapid generation of the optimal solution. e pheromone left by the kth ant from i to j changes to where ω1, ω2, ω3, and ω4 need to be determined according to specific problems. In general, ω1 is positive, ω2, ω3, and ω4 are negative, and ω1 � 2.0, ω2 � ω3 � ω4 � −0.5 are used in the calculation of this paper. e value of equations (22)-(25) is based on whether the k ant passes through sections i and j.
After improvement, new symbols need to be defined as follows: K kij : the number of temperature measuring points at bayonet of the subline where the segment from point i to point j passed by the k ant L kij : the length of the subline from point i to point j that the k ant passes R k : the total length of the route traveled by the k ant e indicator K kij can strengthen the pheromone in the excellent subsegments. e indicator L kij can distinguish between subpaths with the same or similar number of access points. Indicator R k reflects the advantages and disadvantages of the general routes passed by different ants. rough such pheromone updating method, the unblocked road sections can fully retain the relative stability, thus generating a better combination. On this basis, a small correction factor is added to all the road pheromones to ensure certain variation effect and avoid the algorithm falling into local optimal prematurely.
where α is the relative importance of residual information and β is the relative importance of heuristic information. In this paper, let α � 1, β � 1. ρ is the pheromone volatilization parameter; ρ is set as 0.5. τ 0 is the pheromone correction factor to increase the probability of choosing different routes and avoid the precocity of the algorithm. In this paper, τ 0 is set as 0.1. Equations (25)-(28) represent the updating steps of pheromone. Equation (26) represents the probability that the kth delivery vehicle starts from community i and takes different community j as the target point. e 2-opt local optimization algorithm is mixed into the ant colony algorithm. After all ants have completed the construction of the solution, the best solution of each generation is locally improved before the pheromone on each path is updated, so as to accelerate the convergence speed of the ant colony algorithm.

e Experimental Setup.
In consideration of various factors of vehicle distribution in cold chain logistics, data of class C (centralized distribution), class R (random distribution), and class RC (mixed distribution) in Solomon's VRPTW database were used as the test data [22] in this paper. Each example had 100 customer points and 1 distribution center. In order to better fit the reality, the initial time of the model is set as 6:00 a.m., which is the earliest service time of the distribution center and is set as time 0. According to the law of urban traffic, 7:00 to 9:00 and 17:00 to 19:00 in the afternoon are set as traffic jam periods, and the traffic in other periods is smooth. e temperature measuring bayonet points are randomly distributed on each route, and there is only one at most for each plot location, and the road is closed at most once for each plot location. e selected vehicle no-load weight is 5000 kg; capacity is 1000 weight units. If a weight unit is 2 kg, then the vehicle capacity is 2 t, and the corresponding carbon emission rate coefficient is ω0 � 110, ω1 � 0, ω2 � 0, ω3 � 3.75 × 10 − 4 , ω4 � 8 702 , ω5 � 0, and ω6 � 0. Corresponding coefficient of load correction factor for [22] is χ 0 � 1.27, χ 1 � 0.0614, χ 2 � 0, χ 3 � 0.001 1 , χ 4 � −0.00235, χ 5 � 0, χ 6 � 0, and χ 7 � −1.33. e values of other parameters involved in the model are shown in Table 1, and those of algorithm parameters are shown in Table 2 [8]. e algorithm was programmed by MATLAB R2020 and calculated on 16 GB PC with CPU3.0 GHz memory.

Large Data Case for Path Optimization.
e RC204 dataset was used to calculate path optimization. Its program running time is 290.3 s, and the total distribution cost is 10052.8 yuan. A total of 9 vehicles are used for distribution, and the cost of manpower and vehicle use is 2943.9 yuan, the cost of refrigeration is 2656.6 yuan, the cost of fuel consumption is 3904.1 yuan, the cost of carbon emission is 50.1 yuan, the cost of waiting for punishment at the customer point early is 395.7 yuan, and the cost of customer satisfaction loss is 102.4 yuan. e specific path optimization scheme is shown in Table 3. In Table 3, SN represents the vehicle number, VR (vehicle driving) represents the vehicle driving path (0 represents the distribution center and 1-100 represents the customer point), and VAT (vehicle driving time) represents the time of the vehicle arriving at each customer point. e calculation results show the following contents: (1) e algorithm in this paper can obtain the optimal planning path in a relatively short time.
(2) By combining VR and VAT, it can be seen that due to the influence of road factors, customer service time window, vehicle load, and other constraints, there are obvious differences in the distribution routes of cold chain logistics vehicles. Vehicle 2 served the largest number of customer points, reaching 21. Vehicles 8 and 9 serve the least number of customer points. e reason for this is that each requirement point has a different time window, and vehicle routing planning must meet customer point time window requirements while ensuring minimum fitness.
(3) From VAT, it can be seen that both vehicle 1 and vehicle 2 start to distribute from the distribution center at 0, while the departure time of other vehicles is different. If you start at 0, you need to bear a large time window penalty. It shows that it is necessary to consider time dependence when planning the path of logistics enterprises. e route should be planned scientifically according to the actual situation of the road network, the time window of the customer points, and the cost of refrigeration and fuel consumption in the transportation process. (4) According to VAT, vehicle 4 completely avoids the congestion period. Vehicles 1, 3, 6, 7, and 8 only enter the morning rush hour, not the evening rush hour. However, vehicles 2, 5, and 9 only entered the evening rush hour and did not enter the morning rush hour. is indicates that the method proposed in this paper can reasonably avoid the traffic jam period and improve the efficiency of vehicle distribution.

Path Planning for Different Distribution Examples.
Different types of dataset were used to calculate the path optimization. Each dataset was calculated 10 times, and the average value was taken as the final result. e experimental results are shown in Table 4, where EX represents the type of calculation example, TC represents the total cost of distribution, TMC represents the cost of manpower and vehicle start-up and rental, CC represents refrigeration cost, FC represents fuel consumption, CF represents carbon emission cost, PC represents the penalty cost of time window, UC represents the cost of customer satisfaction loss, and VN represents the number of vehicles. As shown in Figure 2 and Table 4, the following can be obtained: (1) In the solution process of different calculation examples, the algorithm can reach the optimal solution and achieve stability within 400 iterations. It indicates that the algorithm can solve the model in this paper well, and the convergence is good. (2) e total distribution cost, vehicle use and labor cost, refrigeration cost, and vehicle use number of C-type dataset are the highest among all types, but the fuel consumption cost is the lowest compared with other types. e main reason is that the C-type distribution customer points are mainly concentrated in several areas and the driving distance is short, so the fuel consumption cost is relatively low. However, the customer time window is relatively narrow. As the customer point service time of the C-type dataset in Solomon's database is 90 min, which is different from the 10 min service time of R and RC customers, the vehicle can only serve fewer customers, and the total delivery travel time is longer. (3) e total distribution cost, vehicle rental and labor cost, and number of vehicles of R-type and RC-type categories are less than those of C-type categories,     Mathematical Problems in Engineering mainly because the service time of these two types is only 10 min, customers are randomly distributed, and the time window requirements of customers are relatively loose, so the vehicles can deliver to multiple customers, and the total driving time is shorter. (4) In the total cost composition of distribution, all types of TMC and CC account for a relatively high proportion, accounting for more than half of the total cost, while C accounts for more than 70%. is shows that the cost of logistics distribution mainly comes from vehicle use cost, manpower cost, and refrigeration cost. e main influencing factor is the travel time, so to reduce the logistics cost, the most important thing is to reduce the total transportation time. (5) e proportion of fuel consumption cost in logistics is low, the highest is only about 38% of the total cost of RC-type dataset, and the lowest is only about 22% of C-type dataset. e carbon emission ratio is very low, accounting for only 0.2% to 0.4% of the total cost. It shows that from the economic point of view of logistics enterprises, the carbon emission cost generated by the current carbon tax can hardly effectively promote the energy conservation and emission reduction of enterprises.

Simulation under Different Traffic Factors.
On the premise that other conditions of the algorithm remain unchanged, the traffic factors r ij are set as 1.5, 3.5, and 8.5 to simulate the situation of temperature measuring jam, traffic jam, and road closure. en, the path planning was performed on RC204 dataset. Each case was solved for 10 times, and the average value was taken as the final result. e optimized results obtained are shown in Table 5, where CP represents the carbon emissions and TT represents the traveling time.
By observing the recognition results in Table 5, the following can be seen: (1) With the increase of traffic factors, the total cost of distribution, vehicle use cost, labor cost, and refrigeration cost will increase to varying degrees, indicating that these costs are positively correlated with congestion.
(2) With the increase of traffic factor, fuel consumption and carbon emissions increase, indicating that congestion will affect the greenness of cold chain logistics distribution path. e driving time also increases, indicating that traffic congestion will affect the speed and thus affect vehicle path planning.
(3) Although traffic factors change significantly, TC, TMC, CC, FC, CP, and VN have little change because the model constructed in this paper can make most vehicles effectively avoid the traffic jam period, which demonstrates the effectiveness of the model and solving algorithm in this paper.

Conclusion
Under the background of normal epidemic situation, the contactless distribution of fresh goods has important research significance. Reasonable planning of fresh goods logistics distribution path can not only reduce the distribution cost in logistics, but also increase customer satisfaction. is paper studies the possible traffic factors in the epidemic environment and comprehensively considers the vehicle management cost, fuel consumption and carbon emission cost, refrigeration cost, time window penalty cost, and user satisfaction cost. An optimization model for this problem is built, and an improved ant colony algorithm model based on path partitioning strategy is designed. e heuristic factor and pheromone updating strategy of basic ant colony algorithm are improved. e simulation results show that the model can deal with various traffic factors effectively. e proposed algorithm can achieve better optimization results in different distributed data cases.

Data Availability
e labeled dataset used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e author declare that they have no conflicts of interest regarding the publication of this paper.