#### Abstract

Aiming at the dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information, this study, based on the idea of preoptimization followed by real-time adjustment, establishes a two-stage mathematical model with minimizing delivery cost. In the preoptimization phase, this study, based on historical traffic information, designed a hybrid chaotic genetic algorithm with variable neighborhood search (HCGAVNS) to obtain the initial delivery scheme. In the real-time adjustment phase, the order in which customers are served remains the same and a path selection strategy is proposed to solve the problem according to the real-time traffic information of different paths. The validity of the model and the algorithm are verified through the analysis of instances. The research results can enrich the related research on cold chain vehicle routing problem and provide a theoretical basis for logistics companies to optimize their delivery scheme.

#### 1. Introduction

Dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information is a dynamic vehicle routing problem (DVRP) based on real-time traffic information provided by traffic big data, considering the multigraph between two nodes and real-time adjustment of the driving route. With the continuous development of the e-commerce network, customers’ requirements for timeliness and quality of fresh products are constantly improving. Logistics enterprises are required to deliver fresh products to customers as quickly as possible. However, the driving speed of vehicles is affected by real-time traffic conditions. There are some paths between two nodes in the delivery network. The different paths have different real-time traffic information. Depots need to plan the delivery routes according to the actual road conditions and allocate appropriate paths to reduce the cargo damage cost and improve delivery timeliness. Multicompartment refrigerated vehicles have been widely used in recent years because they can meet customers’ requirements for different fresh-keeping temperatures. For example, supermarkets may have delivery requirements for fresh products such as seafood, raw meat, and vegetables at the same time. If a single compartment refrigerated vehicle is used, multiple deliveries are required. While a multicompartment refrigerated vehicle can meet the delivery requirements at one time, many scholars have studied the DVRP based on real-time traffic information, DVRP with multigraph, and multicompartment refrigerated VRP.

For DVRP based on real-time traffic information, Tang et al. [1] considered the relationship between speed and time in a delivery network and designed a multiobjective particle swarm optimization algorithm to solve the problem. Lin et al. [2] designed an improved A-star exact solution algorithm and a hybrid simulated annealing algorithm to solve the DVRP problem. Considering the time-dependent delivery network, Ge and Zhang [3] applied the improved genetic algorithm to solve the problem. Tong [4] applied a tabu search algorithm to solve VRP based on real-time information. Li et al. [5] considered two situations of frequent and occasional traffic congestion in the delivery network and solved the problem by combining the genetic algorithm with Dijkstra algorithm. Kok et al. [6] avoided congested road sections by finding alternative paths and combined the Dijkstra algorithm with heuristic algorithm to solve the problem. Sabar et al. [7] applied an adaptive evolutionary algorithm to solve the DVRP problem considering traffic congestion. With the rapid development of ITS, more and more scholars have integrated traffic big data into the research of DVRP. Xu and Guo [8] used a big data platform to obtain real-time traffic information and applied a genetic algorithm based on MapReduce in Hadoop, the big data platform, to solve the problem in parallel. Tang et al. [9] collected and processed initial data by big data calculation and proposed a vehicle routing algorithm based on the big data calculation model to solve the problem. Yao and He [10] combined traffic big data with a cold chain delivery management information system and applied an ant colony algorithm to solve the problem.

Most of the traditional DVRP only considered the situation of a single path between two nodes. However, the real delivery network is complicated, and there is often more than one path between two nodes; the research of DVRP with multigraph is essential. Garaix et al. [11] introduced VRP with multigraph for the first time and proposed many possibilities in the path selection of two nodes. Ticha et al. [12] proposed a DVRP with multigraph and time windows and designed an adaptive large neighborhood search algorithm to solve it. Wang et al. [13] considered alternative paths and applied a two-stage particle swarm optimization algorithm to solve the problem. Huang et al. [14] established a mixed integer programming model considering deterministic and stochastic traffic conditions and solved it with an improved Dijkstra algorithm. Setak et al. [15] applied a heuristic algorithm based on a tabu search algorithm to solve the VRP problem with multigraph between two nodes. Qian and Eglese [16] took the path and vehicle speed as decision variables and applied a tabu search algorithm based on a column generation algorithm to solve the time-dependent DVRP with multigraph. Li et al. [17] researched a delivery network with multigraph attributes and applied a double-cycle simulated annealing algorithm to solve the problem.

The multicompartment refrigerated VRP is a kind of problem combining multicompartment VRP and cold chain VRP. To solve the multicompartment refrigerated VRP, Chen et al. [18] aiming at minimizing the total cost, applied particle swarm optimization algorithm combined with neighborhood search strategy to solve the problem. Wang and Li [19] applied a hybrid fruit fly optimization algorithm to solve the multicompartment VRP to minimize the total transportation distance. Martins et al. [20] allocated the delivery period according to the customer demand within one week and used the adaptive large neighborhood search algorithm to solve the problem to minimize the total delivery cost. Eshtehadi et al. [21] aimed at minimizing the fixed and variable delivery costs and applied the improved adaptive large neighborhood search algorithm to solve the multicompartment VRP. Kaabachi et al. [22] aimed at minimizing the number of vehicles and the distance and combined the ant colony algorithm with a hybrid adaptive generalized variable neighborhood algorithm to solve the problem. Chen et al. [23] considered the oil consumption in the waiting time, aiming at minimizing the total delivery cost and applied the ALNS algorithm to solve the problem. Ostermeier and Hübner [24] considered a mixed delivery method of two different types of vehicles, respectively: single compartment and multicompartment. It applied the fast large-scale domain search algorithm to solve the problem. Hu et al. [25] considered the characteristics of multitemperature codelivery and the time window constraints of customers and applied the genetic algorithm to solve the problem. Henke et al. [26] took the waste glass classification and recycling problem as an example and applied the variable neighborhood search algorithm to solve the problem. Goodson [27] considered the random demand and applied a simulated annealing algorithm to solve it. Alinaghian and Shokouhi [28] applied a hybrid algorithm combined large-scale neighborhood search with variable neighborhood search to solve the problem. Coelho and Leandro [29] applied the branch and bound method to solve the multicompartment delivery problem in oil transportation. In response to the cold chain VRP, Osvald and Stirn [30] considered the impact of the perishability of fresh products on the cost in the cold chain delivery process and effectively reduced the loss of fresh products. Miao et al. [31] considered the cost of fresh product loss in the delivery process and applied an improved genetic algorithm to solve the problem. Zhang and Xu [32] integrated the refrigeration cost into the total delivery cost and solved it with an improved genetic algorithm. Du and Li [33] considered the customer satisfaction, fresh product loss, and oil consumption in the fresh products delivery process and applied the improved simulated annealing algorithm to solve the fresh products delivery problem. Du and Li [33, 34] considered the cost of fresh product loss and fuel consumption in the total cost and applied a hybrid ant colony algorithm to solve the problem. Tao et al. [35] considered the cost of fresh product loss and a carbon tax in the delivery process and applied the global artificial fish swarm algorithm to solve the problem. Zhao et al. [36] considered the economic cost and environmental cost in delivery process and applied an improved ant colony algorithm to solve the problem. Xu [37] considered time window constraints and applied a genetic algorithm to solve the problem.

With the rapid development of the cold chain industry, more and more attention has been paid to the quality of fresh products. Through literature review, it can be seen that the existing research still has the following deficiencies: (1) for DVRP, based on real-time information, the road state or vehicle speed between two nodes is the same or the update frequency was low, and it ignores the real-time change of traffic information, resulting in large deviation from the actual situation; (2) for DVRP with multigraph, most of the delivery routes are schemed according to historical data, and few of the paths in delivery routes are updated according to the real-time traffic data; (3) for multicompartment refrigerated VRP, most references assume that the vehicle speed is constant during the delivery process, ignoring the impact of real-time traffic information. So, the delivery scheme based on constant speed is unable to solve the practical problems. Moreover, although most references consider the different fresh products loss costs in different temperature compartments, they seldom consider the relationship between fresh product loss costs and the remaining fresh products in the compartments, resulting in the inaccurate calculation of fresh product loss costs.

The refrigerated vehicle routing problem proposed in this paper is to optimize the storage and transportation links of cold chain logistics by considering the influence of refrigeration cost and cargo damage cost on the route optimization. Fresh products delivery has the characteristics of “multiple varieties and small batches.” Refrigerated and frozen cargos have different requirements on temperature and humidity. If multiple cargos are transported separately, the loading rate of vehicles will be reduced, and the transportation cost will be increased. If multiple cargos are transported together, the product freshness will be reduced. In the delivery process, multicompartment refrigerated vehicles can not only improve the loading rate but also ensure the freshness of products, reducing the cargo damage and meeting the diversified needs of customers.

In view of the above deficiencies, the dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information is studied. The novelty of this paper is as follows: first, few papers have considered the refrigerated vehicle routing problem with multigraph. The delivery time of refrigerated vehicle routing problem is very important. The speed of vehicles is different in different paths; by selecting different paths, the transportation time can be shortened, and the efficiency can be improved. Second, as for the vehicle routing problem with multigraph, once the selected path is fixed, it will not change. However, in the actual delivery process, the traffic information of different paths is time-varying, so the selection of the path must be updated in real-time according to the traffic information. Third, the refrigerated vehicle routing problem should not only consider the transportation cost and fixed cost but also the refrigeration cost and cargo damage cost in the process of transportation. For refrigerated and frozen cargos transportation, customers generally have time requirements, so the time penalty costs should be included.

The contributions of this paper can be summarized as follows:(i)Considering the multiple paths between two nodes and the real-time traffic information in different paths, as well as the cargo damage cost and refrigeration cost in the delivery process, a two-stage mixed integer programming model is established based on the idea of preoptimization followed by real-time adjustment to minimize the total cost.(ii)A hybrid variable neighborhood chaotic genetic algorithm is designed to solve the model. Pseudorandomness of chaotic system is introduced into the algorithm to ensure the diversity of initial solutions, and an adaptive neighborhood search number strategy is introduced to balance the breadth and depth required by population evolution.

#### 2. Data Acquisition and Processing

Tang et al. [9] show that traffic big data have the 4V characteristics of volume, velocity, variety, and veracity. In this paper, the path selection of dynamic road network is based on a big data processing platform, and the specific framework is shown in Figure 1. Historical traffic information, depot information, customer information, and cost information are integrated into one system. Historical traffic data include the daily traffic volume and occupancy data. At the same time, the vehicle routes, vehicle location, and customer information are outputted by the dynamic VRP module and are inputted into the multisource module together with updated traffic information. Among them, the traffic data are collected by the Twin Cities Highway in the United States (https://www.d.umn.edu/tdrl/services.htm). Through the TravelTimeMetroTC software (https://www.d.umn.edu/∼tkwon/TDRLSoftware/Download.html), the daily traffic volume and occupancy data are used to estimate the vehicle speed of each road.

#### 3. Problem and Mathematical Model

##### 3.1. Problem Description

The dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information studied in this paper is descripted as follows: the delivery network has a complete directed graph , where nodes set is , 0 represents the depot, and represents the customer set. represents the edge set. This paper considers that there are multiple paths between two nodes, as shown in Figure 2. represents any path in the path set between two nodes, and the vehicle only chooses one of them to travel and represents the distance of path between node and node . represents a vehicle and each vehicle is equipped with two compartments, namely, the refrigerated compartment and the frozen compartment. The capacity of each compartment is equal to . represents the product set, represents the refrigerated cargos, represents the frozen cargos, and the demand for each product at the customer is .

The service time window of the customer is , in which represents the earliest acceptable service time of the customer and represents the latest acceptable service time of the customer . is the time window when the customer allows the vehicle to serve. There is no time penalty cost only when the vehicle serves the customer within the . The vehicle arriving earlier or later than the customers’ time window will incur penalty cost, in which represents the waiting cost per unit time and represents the delay cost per unit time. The working time window of the depot is , and it means that the depot only operates within this time window. Vehicles must leave the depot after and return to the depot before . There is an additional constraint that must be less than ; otherwise, it may result in the vehicle not returning to the depot before . represents the service time at customer . represents the unit fuel consumption cost; represents the vehicle fixed cost. The decision variable indicates whether the vehicle goes from node to node through the path , which is 1 and not 0. The problem to be solved is that the depot preoptimizes the delivery route according to the known customer information, historical traffic information, and the customer demand for different kinds of fresh products. During the delivery process, the path selected may not be the optimal path as the delivery time and real-time traffic information change, so the path needs to be reselected according to the real-time traffic information to minimize the total delivery cost.

##### 3.2. Speed Function Determination

In this paper, historical traffic information of roads is obtained through the big data platform, and a dynamic speed curve represents the predicted driving speed of a road section with an update frequency of 30 seconds per time. The update frequency is the same as real-time traffic information and the driving speed on a certain road section of a certain day is shown in Figure 3. Among them, the prediction of road speed is based on historical data. On weekdays, the speed data are predicted according to the historical data of the previous week displayed on the data platform. On the rest days, the speed data are predicted according to the historical data of rest days of the first five weeks displayed on the data platform.

First, the predicted traffic information on a day is divided into several periods at a time of 30 seconds, and the working hours of the depot are divided into periods according to the same frequency based on the delivery start time and traffic information. It is assumed that the time when the vehicle departs from the node belongs to . The predicted speed of the path is . There are two possibilities for vehicles traveling from node to node , respectively: intraperiod and interperiod. Intraperiod refers to that the vehicle can arrive at node within the time period when it starts from node , without crossing the time period. Interperiod refers to that the vehicle needs to cross multiple time periods to reach node , and the speed will change once for each period. If , the vehicle arrives at the node within the first time period, there is no need to travel across time periods. Otherwise, it is necessary to travel across time periods. Assuming that the vehicle travels from node to node across time periods, the distance traveled in each period is . Vehicle travels at speed until it enters the time period. The speed of the vehicle in the time period is , and so on. The speed when the vehicle leaves the different paths of the road section is . At this time, the speed of the vehicle at different times of the different paths of the road section can be expressed as . In summary, the predicted travel time that a vehicle chooses a different path from node to node can be calculated by the following equation:

As shown in Figure 4, the time that the vehicle leaves node is the ending moment of time period . There are two possibilities for the time of the vehicle arriving at node . The first one is that the vehicle arrives at node before the ending of time period . That is to say, , . The second one is that the vehicle arrives at node after the ending of time period , which crosses two time periods . That is to say, .

##### 3.3. Analysis of Refrigeration Cost and Cargo Damage Cost in Delivery Process

###### 3.3.1. Refrigeration Cost

Because fresh products are perishable, the refrigerant needs to be consumed during transportation to keep the temperature in the cabin constant [34], it will incur refrigeration cost. The refrigerant consumption during transportation is related to the temperature difference between the inside and outside of the compartment, the inside and outside surface area of the compartment, and the transportation time. The amount of refrigerant consumption during loading and unloading process is related to the heat load generated by opening and closing the door. The inside and outside temperature of the compartment is constant, and the vehicle is the same. The door only needs to be opened and closed once during loading and unloading process. Under these circumstances, the refrigeration cost during loading and unloading process is approximately positively related to the loading and unloading time. According to literature [25], the calculation of refrigeration cost is shown in the following equations:

represents the total refrigeration cost incurred during delivery, in which represents the refrigeration cost incurred during the transportation process. indicates the refrigeration cost incurred during loading and unloading process. indicates the temperature difference between inside and outside of the refrigerated compartment. indicates the temperature difference between inside and outside of the frozen compartment. indicates the thermal conductivity coefficient of the vehicle. indicates the heat load coefficient during loading and unloading process. indicates the outside surface area of the refrigerated vehicle body. indicates the inside surface area of the refrigerated vehicle body. indicates the inside surface area of the frozen vehicle body. indicates the outside surface area of the frozen vehicle body. indicates the volume of each compartment. indicates the refrigerant consumption per unit time. indicates the unit price of the refrigerant. indicates the refrigeration cost per unit time during loading and unloading process.

###### 3.3.2. Cargo Damage Cost

There is a fixed temperature range inside the vehicles. However, the transportation process is affected by factors such as shaking of the vehicle body and loading and unloading process; cargos will be damaged during the transportation process. Therefore, we have introduced the cargo damage rate related to the compartment temperature of different kinds of fresh products. Even if the fresh products are in the appropriate temperature range, the quality of the products will deteriorate with the increase in the delivery time. Besides, when the vehicle arrives at the customer to start loading and unloading, the heat exchange inside the compartment caused by the switch of each compartment door will also affect the quality of fresh products, resulting in a certain cargo damage cost. Assuming that the temperature does not change during the delivery process, the cargo damage rate of fresh products does not change. The damage cost is mainly affected by the length of transportation time, the number of times that a door opens and closes during the loading and unloading process, the heat exchange between the inside and outside of the compartment when the door is opened and closed, and the loading and unloading time. To calculate the cargo damage rate, we have introduced the Arrhenius equation [28]. represents the reaction rate constant at temperature , is the thermodynamic temperature is the molar gas constant, the unit is is the apparent activation energy, the unit is is an antecedent factor, also known as the Arrhenius constant

It can be known from (5) that when the temperature of the compartment in which the fresh products located is different, the cargo damage rate is also different, and the cargo damage rate increases with the increase of compartment temperature. Therefore, the cargo damage cost is calculated as follows:where is the total cargo damage cost in the delivery process, is the cargo damage cost in the transportation process, is the refrigeration cost in the loading and unloading process, is the unit refrigerated cargo value, is the unit frozen cargo value, is the refrigerated compartment cargo damage rate, is the frozen compartment cargo damage rate, and is the amount of cargo in each compartment when the vehicle leaves node .

##### 3.4. Assumption

The model assumes the following:(1)The vehicles are the same model and have the same performance, and the number of vehicles can meet the needs of all customers(2)The vehicle departs from the depot and finally returns to the depot(3)Only one vehicle will be delivered once, and each customer will only accept the service of one vehicle(4)The locations of depot and customers and the customer demand for different cargos are known(5)The capacity of the depot must be able to meet all customer demands

##### 3.5. Mathematical Model

In this paper, the strategy of “preoptimization followed by real-time adjustment” is adopted to solve the dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information.

###### 3.5.1. Preoptimization Stage Model

As shown in Figure 5, during the preoptimization phase, the predicted travel speed functions at different times throughout the day are known. Based on the predicted travel speeds of all road sections, the transit time of different paths at a certain moment is calculated. The transit time of each path is ; this paper selects the path with the shortest predicted arrival time during this period, so the path 1 is selected.

According to the above description, the preoptimization phase model is as follows:

Equation (8) is the objective function, which indicates the total transportation cost, including vehicle fixed cost, transportation cost, time window penalty cost, refrigeration cost, and cargo damage cost. Equation (9) indicates that vehicles sent from the depot cannot exceed the number limit. Equation (10) indicates that the vehicle departs from the depot and returns to the depot. Equations (11) and (12) indicate that each customer is served by only one vehicle. Equation (13) ensures the balance of vehicles entering and leaving each node. It restricts the total in-degrees and out-degrees for each node. Equation (14) indicates that the service volume of each vehicle to customers shall not exceed the compartment capacity. Equation (15) is the subtour elimination constraint. Equation (16) ensures that the time when the vehicle returns to the depot does not exceed the working deadline of the depot. Equation (17) calculates the time of the vehicle arriving at node from node by sum of the arrival time of node , the service time at node , and the travel time from node to node . Equation (18) is a decision variable attribute.

###### 3.5.2. Adjust Strategies and Models in Real-Time

*Adjust Strategy in Real-Time*. In the real-time adjustment stage, the order of customers in the preoptimization stage is kept unchanged. Firstly, the paths are selected according to the rules shown in Figure 6. The time of the vehicle passing through a selected path between two nodes may be different from the predicted time; when the vehicle goes to the next node, the travel time of different paths needs to be predicted again. As shown in Figure 6, the real transit time and the service time of the previous node are used to calculate the real arrival time at the node . The real departure time to the next node is calculated based on the service time of the node . Figure 6(a) indicates that the real arrival time is later than the predicted arrival time. Figure 6(b) indicates that the real arrival time is earlier than the predicted arrival time. If the real arrival time is different, the real departure time and the predicted arrival time to the next node will also be different.

**(a)**

**(b)**

###### 3.5.3. Real-Time Adjust Models

Since the calculation of cargo damage cost and refrigeration cost is related to the real transit time between two nodes, equation (6) is updated to as follows:

Equation (9) is updated to as follows:

Objective function:

Equation (21) is the objective function of the real-time adjustment stage, including transportation cost, time window penalty cost, refrigeration cost, and cargo damage cost. Equations (9)–(16) and (18) are the same as the preoptimization stage. Equation 22 calculates the arrival time of node *j* from node *i* by the sum of the arrival time of node *i*, the service time at node *i*, and the travel time from node *i* to node *j*.

#### 4. Solution Approach

The dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information studied in this paper considers such factors as multicompartment refrigerated vehicle, multigraph, time window, real-time traffic information, and so on. As an extension of classical VRP, it also belongs to NP-hard problem. It cannot obtain an optimal solution within a reasonable calculation time, so it is essential to solve it with a heuristic algorithm. The proof of NP-hard problem is as follows.

Theorem 1. *The dynamic multicompartment refrigerated vehicles routing problem with multigraph based on real-time traffic information is an NP-hard problem.*

*Proof. *This model is an extension of Garaix et al. [11] to multicompartment refrigerated vehicle, time window, and real-time traffic information problem. As it is presented by Garaix et al. [11], the fixed sequence arc selection problem (FSASP) is NP-hard. So, the model proposed in this paper is NP-hard as well. Furthermore, there are several papers that the multicompartment vehicle routing problems are NP-hard (Kaabachi et al. [22], Ostermeier and Hübner [24], and Coelho and Leandro [29]).

Genetic algorithm (GA) is a heuristic algorithm based on genetic theory and natural selection, which has been widely used in vehicle routing problems [38]. It combines the survival rules of the fittest and the random exchange mechanism of genetic information in the population in the process of biological evolution. It has good robustness and global search performance. However, the algorithm is easy to converge prematurely, and the initial population of the traditional genetic algorithm is mostly generated randomly. Most seemingly random species in real biological systems follow certain rules-genetic theory. Aiming at this characteristic, this paper initializes the population through the chaos phenomenon. The variable neighborhood search algorithm uses multiple different neighborhood structures for systematic search and has a strong local search capability. Therefore, this paper combines a genetic algorithm and variable neighborhood search algorithm and designs an improved hybrid chaotic genetic algorithm with variable neighborhood search algorithm based on the idea of preoptimization followed by real-time adjustment. In the preoptimization stage, this algorithm is used to obtain the optimal delivery route and path selection scheme. In the real-time adjustment stage, the optimal path is reoptimized and is selected at the customer according to the real-time traffic information to minimize the loss of fresh products. The algorithm flow is shown in Figure 7.

##### 4.1. Encoding and Initial Population Generation

The algorithm in this paper adopts the form of natural number coding. Since the type of customer demand is uncertain, when generating the initial population, the initial value of logistic mapping is generated randomly according to the population size. The chaotic system of each group (each group consists of values) is calculated by equation (23), and the initial population is generated according to the position of values in the chaotic system of each group.

The purpose of studying chaos is to reveal the laws generally followed by some complex problems that may be hidden behind seemingly random, chaotic, and disordered phenomena. In a given chaotic equation , if there is an initial value , making , then is said to be the fixed point of . In the logistic mapping, are fixed points, and Figure 8 shows the nature of the fixed point. As can be seen from Figure 8, when the initial value is a fixed point, the system loses ergodicity. If the initial value of the logistic mapping is and , the pseudorandom number is generated by multi-iteration. When , any is always established, and when , the system is in a completely chaotic state, it has all the characteristics of a chaotic system, so the value of chaotic coefficient in this paper is 4.

After the initial population is generated according to the chaos principle, the depot is inserted before the first customer, and then the depot is inserted into the customer arrangement by using the nearest neighbor insertion method. When the sum of the demand for exactly one kind of cargos at a customer exceeds the compartment capacity, the insertion operation is performed. The insertion position of each “0” is recorded. It will arrange vehicles according to the number and location of “0,” as shown in Figure 9. From Figure 9, the route served by each vehicle can be confirmed only by recording the location of each depot, i.e., the service sequence of the first vehicle is 3-7-4, and the service sequence of the second vehicle is 2-1-5. By using this method, the feasibility of generating the initial solution can be ensured, and the problems of unfixed coding length and difficulty in repairing the infeasible solution can be avoided.

##### 4.2. Fitness

The fitness function of chromosomes can be constructed according to objective function. The fitness function of a chromosome can be expressed as follows:where is the objective function value of the chromosome .

##### 4.3. Selection

The selection operation adopts the strategy of combining elite selection with roulette. The specific steps are as follows: firstly, the individuals are ranked in descending order of fitness value. Then, some elite individuals are reserved, and the remaining individuals are reserved by roulette. The probability of everyone being selected is proportional to the fitness function value, i.e., the higher the fitness function value, the higher the probability of the individual being selected. On the contrary, the lower the probability of being selected. When each generation of disturbance is over, the elite individuals are compared with the optimal offspring. If the elite individuals are superior to the offspring, the offspring are directly replaced; otherwise, the elite individuals are updated.

##### 4.4. Evolution

The evolutionary operation in this paper adopts a sequential crossover operator. As shown in Figure 10, when parent A is crossed sequentially, parent B is randomly selected from the population. Firstly, points , , , and are randomly generated; the part between and of the parent A is taken as the first segment of the subgeneration. A1 and the subsequent points of the subgeneration A1 are related to parent B, i.e., the customers between and in the parent B are eliminated first. In the elimination process, the position sequence of the customers in the parent B is not changed, and then the eliminated customers are arranged as the second segment of the subgeneration A1 to form the subgeneration A1 and the subgeneration B1.

##### 4.5. Local Search Strategy

###### 4.5.1. Neighborhood Structure

Firstly, neighborhood structure sets are constructed; the individual in the population starts to be disturbed from the first neighborhood structure . If no improved solution is found within the preset neighborhood search times , the next neighborhood structure is executed. Otherwise, if an improved solution is obtained in a certain neighborhood structure, then is made, and the iteration is restarted by returning to the first neighborhood structure. Until the iteration is cycled to the last neighborhood structure, and when the improved solution is not found, the search is terminated. When the number of variable neighborhood search cycles reaches the preset , the search is terminated, and the algorithm enters the next stage. In this paper, three neighborhood structures are used to enhance the local search capability of the algorithm.(1)Insert: randomly select customers and from the chromosome and insert after . As shown in Figure 11(a), customer 3 and customer 6 are selected randomly; customer 3 is inserted after customer 6.(2)Exchange: randomly select customer and , then exchange their positions. As shown in Figure 11(b), customer 3 and customer 6 are selected randomly; customer 3 and customer 6 exchanged locations.(3)2-OPT: randomly select customers and and exchange the order of other customers among customers and . As shown in Figure 11(c), the position of customer 3 is kept unchanged, and customers 4, 5, 7, and 6 are in reverse order.

###### 4.5.2. Adaptive Mechanism

In this paper, an adaptive neighborhood search number strategy is proposed to enhance the breadth and depth of the algorithm search so that the variable neighborhood search algorithm can jump out of the local optimization. Neighborhood search times have a great influence on the searchability of the algorithm, which directly leads to the performance of the algorithm. In the iterative process of the algorithm, the disturbance intensity required by the population is different. At the beginning of the iteration, the number of neighborhood searches should be small to make the population converge quickly. However, with the continuous iteration of the population, the number of neighborhood searches is increased to enhance the search capability of the algorithm. The adaptive neighborhood search number strategy in this paper is as follows:(1)Setting the initial neighborhood search number and the number of times that the optimal solution is continuously unchanged .(2)If the optimal solution of the population after this iteration is not improved, let , . If the perturbed solution is improved, let , .(3)When the number of times that the optimal solution has not changed continuously until the preset value , the algorithm terminates and outputs the optimal solution.

##### 4.6. Calculation of Double-Loop Objective Function

When the real departure time and the predicted departure time of the same road section are different, the speed of the vehicle will be different, and the travel time of the same road section will be different in the first and second phases. Therefore, in the second phase of the solution, this paper designs a double-loop iteration to realize the route selection with the shortest travel time and the calculation of the cost. The specific process is shown in Figure 12. The inner cycle calculates the travel time by calling in the predicted traffic data and the distance matrix corresponding to different roads, and the outer cycle starts by comparing the recorded travel times of different paths and calls the traffic data of the real-time data platform at the same time and records the real-time of the selected path and the time period when it reaches the customer, thus calculating various costs, and takes the time when it reaches the customer as the new departure time for the next loop.

##### 4.7. Time Complexity Analysis of the Algorithm

This section analyzes the time complexity of the algorithm. Assume that the customer scale is , the population size is , and the maximum number of iterations is . The time complexity of the algorithm is calculated as follows: (1) generate initial population. ; (2) fitness function calculation. ; (3) selecting operation. ; (4) evolution operation. ; (5) variable neighborhood search (including three neighborhood structures): ; (6) calculation of double-loop objective function. . To sum up, the time complexity of the algorithm can be calculated as .

#### 5. Numerical Experiments

##### 5.1. Example Description

There is no general example set at present due to the excessive related constraints and multigraph characteristics of cold chain delivery vehicles under the dynamic route delivery mode. The real-time information of the road network in this paper uses the data published by the University of Minnesota. It randomly selects groups historical data for prediction and generates kinds of different speed information. This paper adopts A-n45-k6 in the international standard instance library, which has one depot and forty-four customers. The specific information is shown in Table 1. The customer demand is multiplied by 0.1 based on the standard instance and divided into two types according to the ratio of 2 : 1. The unit of customer demand is ton, and the customer demand in the instance is the quantity on a given day. Assuming that there are three paths between two nodes, the distance matrix is expanded from one to three, in which the position coordinates are unchanged, and the distance of different paths between nodes is randomly multiplied by the distance coefficient [17]. The coefficient value is changing from 0.8 to 1.2. There are two types of cargo to be delivered, and the temperature required for refrigerated cargos is 0°C; the frozen cargos temperature is −10°C. The external temperature is 20°C. We select Dongfeng refrigerated commercial vehicle (DFH5160XLCEX2B) as the transport vehicle. It has a payload capacity of 8 t, a compartment size of 8 × 2.44 × 2.4 m, and the fuel consumption of 25.9 L per hundred kilometers. A compartment is divided into two compartments in the form of an intermediate compartment partition according to a volume ratio of 2 : 1. The working time window of the depot is 6 : 00–19 : 00. The remaining parameters are shown in Table 2.

##### 5.2. Algorithm Test

After repeated tests, the parameters of this algorithm are set as follows: population size , maximum iteration number , initial variable neighborhood search number = 1, maximum neighborhood cycle number = 1000, and preset value . The value of the parameter is related to the customer scale , when , , and , when , , and , and when , , and .

To verify the performance of HCGAVNS, we calculate the C1A data provided by reference [40] and compare the results with ant colony optimization (ACO) [40], adaptive genetic algorithm (AGA), improved adaptive genetic algorithm (IAGA), artificial bee colony (ABC), and particle swarm optimization (PSO) [18]. The results are shown in Table 3. Figure 13 is the optimal circuit diagram for this instance, and Figure 14 is the optimal circuit diagram of reference [40].

As can be seen from Table 3, the results of HCGAVNS are better than those of other algorithms, and the improvement ranges of other five algorithms are 1.6%, 3.1%, 2.3%, 0.7%, and 0.5% respectively. Moreover, as can be seen from Figures 13 and 14, the number of customers served by each vehicle in reference [40] is quite different, with each vehicle serving at least 2 customers and up to 12 customers. The maximum number of customers served by per vehicle in this paper is 11 and at least 4, which is more in line with the actual status of logistics services.

To further verify the effectiveness of the algorithm proposed in this paper in solving different scales instances, PSO, ABC, a hybrid genetic algorithm with variable neighborhood search (HGAVNS), and HCGAVNS proposed in this paper are applied to 14 instances in the VRP international standard instance library in the same adaptation way as the C1A instance in reference [40]. The optimal results and mean values are shown in Table 4, where the bolded items are relatively better in comparison, and the deviation of the optimal solution is shown in Table 5.

From Table 4, we can see that among the four algorithms, 16 data solved by HCGAVNS are better than other algorithms, and most of the optimal results are improved. From Table 5, we can see that the maximum deviation of the optimal solution of this algorithm is 4.1% and the minimum deviation is 0.9%, and the average deviation of the optimal solution is 2.1%, which is more stable than PSO and ABC. Therefore, we can see that the algorithm designed in this paper has a good optimization ability for different scale instances and the effectiveness and applicability of this algorithm have been verified again.

##### 5.3. Example Comparison

The instance in this paper is modified to reduce the number of paths of two nodes to 1 in the case of multicompartment, and the distance matrix of single path is directly calculated by the standard instance. Under the same assumptions and system optimization environment, the HCGAVNS algorithm designed in this paper is used to solve the multigraph delivery and the single-graph delivery problem ten times, and the results of ten times are listed in Table 6.

As can be seen from Table 6, in the case of multigraph, the optimal solution of the scheme is 7695.50, the cargo damage cost is 1136.10, the worst solution is 8460.80, the cargo damage cost is 1087.30, and the average value is 8141.48. Compared with this, the deviation of the optimal solution is 5.4%, the deviation of the worst solution is 3.9%, and the solution results are relatively stable. In the case of single graph, the optimal solution of the scheme is 8214.30, and the cargo damage cost is 1097.80. The worst solution is 9264.00, and the cargo damage cost is 1397.70. The average value is 8697.79. Compared with this, the deviation of the optimal solution is 5.4%, the deviation of the worst solution is 6.5%, and the convergence result is also relatively stable. Through comparison, it can be seen that the total service cost of the multigraph strategy is reduced by 6.3%, and the cargo damage cost is reduced by 4.2%. It is not difficult to find that the multigraph strategy can reduce the delivery cost, improve the delivery efficiency of fresh products logistics e-commerce providers, and reduce the resource limitation of refrigerated vehicles. The delivery routes corresponding to the optimal solution in the preoptimization stage are shown in Table 7.

Due to the local adjustment strategy adopted in this paper, only the secondary selection of paths between two nodes is reconducted based on preoptimization, so the order of nodes in the real-time adjustment stage is the same as in the preoptimization stage. The route and information of the minimum total cost of the dynamic multicompartment refrigerated vehicle routing problem with multigraph based on updated traffic information are shown in Table 8.

From Tables 7 and 8, the route selection based on the real-time traffic information can reduce the cost of cargo damage and reduce the delivery time to continuously meet the strict requirements of customers on fresh products delivery. To sum up, the algorithm designed in this paper can stably solve the dynamic multicompartment refrigerated vehicle routing problem with a multigraph based on real-time traffic information.

To verify the effectiveness of the algorithm presented in this paper in terms of solving efficiency, the solution results and running time of the three algorithms for the problem studied in this paper are showed in Table 9.

The difference between the three algorithms is that IAGA adds a reversal operation basis on adaptive genetic algorithm (AGA). The difference between HCGAVNS and the other two algorithms is that HCGAVNS uses an adaptive variable neighborhood search algorithm to replace mutation operation and uses a chaotic system to generate initial solutions to increase the diversity of the population. As can be seen from Table 9, the algorithm designed in this paper is superior to AGA and IAGA in both solution quality and efficiency. This is mainly because the chaotic systems increase the diversity of initial solutions and improve the solution quality. Adaptive variable neighborhood search algorithm uses the neighborhood structure composed of different actions to carry out an alternate search and achieves a good balance between concentration and evacuation. The adaptive search mechanism adopts the adaptive neighborhood search number strategy to control the number of neighborhood searches and improves the solution efficiency of the algorithm.

#### 6. Conclusions

This paper studies the dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information. The main conclusions are as follows:(1)The dynamic multicompartment refrigerated vehicle routing problem with multigraph based on real-time traffic information is a deepening and expansion of VRP. It is beneficial to improve delivery efficiency based on real-time traffic information reflected by a big data platform and to fully combine the complex and diverse characteristics of the road network environment in real life to plan delivery routes.(2)The model considers the impact of vehicle routing planning on fresh products damage, refrigeration cost, vehicle fixed cost, and time window penalty cost on the total cost, which can more objectively and accurately reflect the operation of the cold chain logistics system.(3)The HCGAVNS algorithm is designed to ensure the diversity of initial solutions by using chaotic phenomena, and the strategy of combining elite reservation and roulette is adopted in the selection operation to ensure the effective convergence of the algorithm. Moreover, evolutionary operation and adaptive search mechanism are used to improve the local search capability, besides the solution quality.

The research in this paper applies to the delivery network based on the real road network, which can further reduce the delivery cost of logistics enterprises and provide a theoretical solution for logistics enterprises to use traffic big data. In the future, we will consider the scenes closer to the actual delivery, such as delivery network sharing. We will also study the convergence speed of the algorithm and the further improvement of the quality of the optimal solution.

#### Data Availability

The data used to support the findings of this study are available at https://www.d.umn.edu/tdrl/index.htmhttps://www.bernabe.dorronsoro.es/vrp/ and references [17, 34, 39, 40].

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This work was supported by the Special Project of National Emergency Management System Construction of the Chinese National Funding of Social Science (20VYJ024).