Next Article in Journal
Minimization of Inhibitor Generation in Rice Straw Hydrolysate Using RSM Optimization Technique
Next Article in Special Issue
MushR: A Smart, Automated, and Scalable Indoor Harvesting System for Gourmet Mushrooms
Previous Article in Journal
Can Digital Finance Improve China’s Agricultural Green Total Factor Productivity?
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Adaptive Nutcracker Optimization Approach for Distribution of Fresh Agricultural Products with Dynamic Demands

1
College of Economics and Management, Shanghai Ocean University, Shanghai 201306, China
2
Department of Nanchang Technology, 901 Yingxiong Dadao, Economic and Technological Development Zone, Nanchang 330044, China
3
Department of Electronic and Electrical Engineering, The University of Sheffield, Sheffield S37AZ, UK
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Agriculture 2023, 13(7), 1430; https://doi.org/10.3390/agriculture13071430
Submission received: 7 June 2023 / Revised: 14 July 2023 / Accepted: 16 July 2023 / Published: 19 July 2023
(This article belongs to the Special Issue Digital Innovations in Agriculture—Series II)

Abstract

:
In the operational, strategic and tactical decision-making problems of the agri-food supply chain, the perishable nature of the commodities can represent a particular complexity problem. It is, therefore, appropriate to consider decision support tools that take into account the characteristics of the products, the needs and the requirements of producers, sellers and consumers. This paper presents a green vehicle routing model for fresh agricultural product distribution and designs an adaptive hybrid nutcracker optimization algorithm (AH-NOA) based on k-means clustering to solve the problem. In the process, the AH-NOA uses the CW algorithm to increase population diversity and adds genetic operators and local search operators to enhance the global search ability for nutcracker optimization. Finally, the experimental data show that the proposed approaches effectively avoid local optima, promote population diversity and reduce total costs and carbon emission costs.

1. Introduction

In recent years, China has issued many relevant documents on accelerating the high-quality development of cold chain logistics and transportation. It has led to the great development of the fresh agricultural products supply chain. More people are choosing to buy fresh agricultural products through e-commerce. On the one hand, fresh agricultural products are perishable, with a short shelf life, high losses and require temperature control. On the other hand, during the cold chain logistics delivery process, fuel consumption and carbon emissions are much higher than in normal logistics. The harm to the environment is higher. Therefore, the study of the fresh dynamic vehicle routing problem will be significant in reducing the commodity value loss, achieving green logistics and sustainable economic development.
This paper investigates the green capacitated vehicle routing problem with dynamic demand (GCVRPDD), which encompasses four topical problems in current vehicle routing research: the vehicle routing problem in cold chain logistics distribution (VRPCLD), the green vehicle routing problem (GVRP), the dynamic vehicle routing problem (DVRP) and the capacitated vehicle routing problem (CVRP). For VRPCLD, Hsu et al. [1] studied the optimal food delivery cycle under multi-vehicle delivery and multi-temperature delivery. Gharehyakheh et al. [2] combined the path optimization problem with temperature, commodity shelf life and energy consumption prediction models. Wu [3] studied the time-dependent split delivery green vehicle routing problem with multiple time windows (TDSDGVRPMTW). Zhang [4] started with a minimized delivery cost function to obtain a more satisfying cold chain delivery. From the above, it can be found that the multi-temperature distribution of fresh agricultural products provides a methodological entry point for research on cold chain distribution.
For the GVRP, Zhou et al. [5] provided a review of models and solution algorithms for green vehicle paths. Zhang et al. [6] compared the effect of considering carbon emissions on path optimization in solving DVRP. Elgharably et al. [7] proposed a stochastic GVRP under the condition that economic, environmental and social aspects are considered simultaneously. Bruglieri et al. [8], based on new energy vehicles, studied the vehicle routing problem in the existence of gas stations. Zhou et al. [9], Li and Zhang [10] and Cai et al. [11] took the optimization of speed into account when studying the carbon emission pollution problem. Yin et al. [12] took the carbon emission allowance and trading policy as the research object and built an upper-layer carbon trading benefit model from the government’s perspective and a lower-layer model from the company’s perspective to describe the vehicle routing problem based on the Stackelberg game framework. The above research literature provides the theoretical basis for the calculation of carbon emission costs in this paper.
For the DVRP, Yang et al. [13] proposed a dynamic optimization strategy based on linear programming theory to cope with customer demand changes. Zhang et al. [14] analyzed the dynamic events and transformed the dynamic problem into a static problem. Guo et al. [15] studied the dynamic carpooling problem based on the school buses dynamically carrying students and solved it based on the decomposition of the shared network concepts. Pan et al. [16] proposed a deep reinforcement learning framework to meet the uncertain customer service demands and the training path planning process dynamics. From the above, the majority of research on the green cold chain vehicle path problem has focused on the static vehicle path problem, without considering the customers’ dynamic demands in fresh agricultural products distribution.
For the CVRP, Kucuk et al. [17] presented constraint programming-based solution approaches for the three-dimensional loading CVRP. Aydinalp Birecik et al. [18] presented an interactive fuzzy approach for solving green CVRP with imprecise travel time for each vehicle and supplier demand. Wang et al. [19] proposed a novel genetic programming approach to simplify the routing policies. Souza et al. [20] proposed a hybrid algorithm based on a discrete adaptation of the differential evolution meta-heuristic, which is designed for continuous problems, combined with local search procedures to solve the CVRP. The above literature provides many excellent algorithms for solving the CVRP.
Vehicle routing problems are difficult to solve using exact mathematical analytical methods. While heuristic algorithms have good results in solving vehicle routing optimization problems, such as ant colony algorithms [21,22,23], genetic algorithms [24,25,26], and particle swarm algorithms [27,28]. Genetic algorithms have disadvantages such as large computational effort and slow convergence, and heuristic algorithms have the disadvantage of large influencing parameters. The nutcracker optimizer algorithm (NOA) [29] has the advantages of high accuracy, fast calculation speed and few parameters. However, there are disadvantages such as easily falling into local optimum and slow convergence speed. To cope with these disadvantages, this paper investigates the impact of carbon emissions on dynamic vehicle path optimization based on temperature control. Based on temperature and geographical location, customers are clustered. To establish a distribution optimization model to minimize the total cost, which contains the vehicle dispatch cost, vehicle transportation cost, value loss, temperature control cost and carbon emission cost, this paper designs an adaptive hybrid nutcracker optimization algorithm (AH-NOA) based on k-means clustering to plan pathways and provides a theoretical basis for logistics companies.
The innovations and contributions of this paper are described as follows:
  • An adaptive hybrid nutcracker optimization algorithm combining genetic algorithm and local search operation is designed, which considers both the search breadth and depth. The population is disturbed by the crossover and mutation operation of the genetic algorithm, and the excellent nutcrackers in the population are deeply searched by the local search operation.
  • The GCVRPDD model has been applied rarely in the research of fresh commodity distribution. To make the model better simulate the actual conditions of fresh commodity distribution, this study will consider and evaluate dynamic demand, carbon emissions and temperature control on the basis of GCVRPDD.
  • In order to improve the quality and diversity of the initial population, two different methods were used to generate the initial population in this paper. The two methods are, respectively, the CW saving algorithm and the Random method.
The remainder of this paper is organized as follows: Section 2 briefly introduces the problem and constructs the GCVRPDD model. Section 3 presents a new solution algorithm. In Section 4, the results of the experiments are analyzed. Finally, the conclusion is given in Section 5.

2. Problem Description and Model Construction

2.1. Problem Description

The GCVRPDD proposed in this paper can be described as follows: the cold chain distribution vehicles depart from the distribution center visit customer nodes in the order of the distribution scheme, update the distribution route periodically when the customer’s demand is dynamically adjusted and finally return to the distribution center. Suppose { 0 } V c denotes the set of nodes and V c denotes the set of customer points before starting distribution. At this time, the customer coordinates and the goods demand q i m w is known. K = { 1 , 2 , 3 , , k } is the set of vehicles and the models are the same. The operating hours of the distribution center are [ T s , T f ] . The vehicle does not stay at the customer’s location during the delivery. The road conditions are stable and fluctuations in vehicle speeds can be ignored. The dispatch center can hold all the information and regulate the vehicles in real time. At the same time, the delivery time does not exceed T k in order to ensure the goods are in good condition.

2.2. Vehicle Fuel Consumption Model

Demir et al. [30], Suzuki [31] and Hickman [32] have studied the influence of vehicle fuel consumption and carbon emissions. It is pointed out that the distance traveled plays a major role in fuel consumption and carbon emissions. In addition, factors such as vehicle speed, load and characteristics also have a significant impact. At the same time, various fuel consumption and carbon emission measurement models are proposed. In this paper, the MEET model proposed by Hickman is used to complete the calculation. The MEET model includes a carbon emission rate estimation function, a load correction factor and a road slope correction factor. This is applicable to heavy goods vehicles in the weight range of 3.5–32 t. The carbon emission estimation function is:
ε ( v ) = ω 0 + ω 1 v + ω 2 v 2 + ω 3 v 3 + ω 4 v + ω 5 v 2 + ω 6 v 3
where ε ( v ) denotes the carbon emission rate when the vehicle is unloaded and driving on a road with a slope of zero. v denotes the vehicle speed. ω 0 , ω 1 , ω 2 , ω 3 , ω 4 , ω 5 and ω 6 denotes a predefined parameter, which takes different values for trucks with different loads. The load correction factor ( L C ) is as follows:
L C = x 0 + x 1 γ + x 2 γ 2 + x 3 γ 3 + x 4 v + x 5 v 2 + x 6 v 3 + x 7 v
where γ denotes the ratio between the actual load of the vehicle and its capacity. χ 0 , χ 1 , χ 2 , χ 3 , χ 4 , χ 5 , χ 6 and χ 7 are predefined parameters. The value varies with trucks. The vehicle carbon emission rate is c = ε ( v ) L C / 1000 .
During the whole distribution process, the carbon emissions produced by the unit of fuel consumption usually have a fixed value. If the carbon emission caused by 1 L of gasoline is 2.3 kg, the fuel consumption generated by 1 kg of carbon emission is ο = 1 / 2.3 = 0.4348 L/kg. The vehicle fuel consumption rate is f = ο ^ c . Therefore, the fuel consumption of vehicle k traveling from node i to j is F i j w k = f d i j .

2.3. Fresh Agricultural Products Quality Attenuation Model

During transportation, the quality of fresh agricultural products gradually declines. The decline rate is strongly related to the transportation environment, time and transport process stability [33,34].
In this paper, the method discussed in [35] is used to calculate the value loss ( v l i m w k ) based on the time length and temperature ( T ( K ) ).
v l i m w k = q i m w [ 1 e m w t i 0 w k ] p m
where q i m w denotes the demand of customer i for the fresh products ( m ) at a temperature of w . m w denotes the freshness factor of a unit fresh product ( m ) for delivery at a temperature of w . p m is the price of the fresh commodity m . t i 0 w k denotes the delivery time that the vehicle takes to get from the distribution center to the customer ( i ).

2.4. Temperature Cost Model

During transport, different fresh agricultural products have different temperature requirements and the delivery vehicle needs to set the appropriate temperature to suit the attributes carried. When the performance index C O P is used to calculate the energy value change [36], there is C O P = T L / ( T H T L ) . Where T H is the absolute outside ambient temperature and T L is the absolute target temperature after temperature control. The physical quantity corresponding to the absolute temperature is the thermodynamic temperature, denoted as T ( K ) , with the symbol K. T ( K ) is related to the Celsius temperature ( t ) by the equation T ( K ) = 273 + t ( ° C ) . For example, when T H is 25 °C (298 K) and T L is 6 °C (279 K). C O P = 14.68 means that at an ambient temperature of 25 °C, the vehicle temperature is maintained at 6 and needs the temperature control device to absorb 14.68 units of heat. Assuming a temperature control cost of 1 at this point, the temperature control cost factor ( θ m w ) of 5 °C is 14.68 13.9 1 1.06 . Similarly, the temperature control cost factor ( θ m w ) for the other temperature conditions can be obtained, as shown in Table 1.

2.5. Green Capacitated Vehicle Routing Problem with Dynamic Demand Model

In this paper, a combination of the initial distribution path and dynamic adjustment strategy is used to solve GCVRPDD. The concept is shown in Figure 1.

2.5.1. Initial Stage

(1)
Symbol Description
Based on the needs of building the model, this paper uses the corresponding symbols which are listed in Table 2.
(2)
Initial Stage Vehicle Path Model
Objective function:
Z = min { F 1 + F 2 + F 3 + F 4 + F 5 }
F 1 = C 1 j V c k K x 0 j w k
F 2 = C 2 w W j { 0 } V c i { 0 } V c k K F i j w k x i j w k
F 3 = k K m M w W j { 0 } V c i { 0 } V c t i j w k u m w k Q i j w k
To simplify the calculation, it is assumed that no temperature control cost is generated in return.
F 4 = i V c m M w W k K v l i m w k
F 5 = C 4 w W j { 0 } V c i { 0 } V c k K ( F i j w k x i j w k / ο + a t i j w k x i j w k )
s.t.
i { 0 } V c j V c w W x i j w k q j m w C a p , k K
j { 0 } V c k K w W x i j w k = 1 , i V c
i { 0 } V c k K w W x i j w k = 1 , j V c
i { 0 } V c w W x i j w k = i { 0 } V c w W x j i w k , j V c , k K
j V c w W x 0 j w k = i V c w W x 0 i w k 1 , k K
T s + i { 0 } V c j { 0 } V c w W t i j w k x i j w k + i { 0 } V c j V c w W q j m w T S j x i j w k T f , k K
i { 0 } V c j V c w W d i j x i j w k v T k , k K
i S j S w W x i j w k | S | 1 , S V c , S , k K
i , j V c k K w W x i j w k | K | , k K
x i j w k { 0 , 1 } , i , j { 0 } V c , k K , w W
Equation (10) indicates that the sum of the orders does not exceed the vehicle load limit. Equations (11) and (12) indicate that the customer point is served by a vehicle once and only once. Equation (13) indicates that the vehicle must leave after completing the order. Equation (14) represents each vehicle serving only one route, and the vehicle departs from the distribution center and returns after completing the order. Equation (15) represents the vehicle returns to the distribution center at a time no later than the operating deadline. Equation (16) represents the delivery time constraint. Equation (17) represents the elimination of the sub-circuit constraint. Equation (18) represents the number of vehicles performing distribution tasks that do not exceed the maximum number in the distribution center. Equation (19) is the decision variable.

2.5.2. Dynamics Adjustment Stage

(1)
Dynamic Adjustment Strategy
The dynamic character of GCVRPDD is mainly reflected in customer order updates, where the demand changes in real time during the distribution. In the dynamic adjustment stage, this paper divides the operation time into several homogeneous time slices and adopts a periodic optimization strategy for optimization. Dynamic events that occur in the current time slice are not processed immediately but are globally optimized in the next time slice together with customers who have not received service in the path. With demand dynamically updated, the VRPs within each time slice are static, and the optimization solutions S are continuously passed between time slices. As a result, GCVRPDD is converted into a number of correlated static vehicle routing problems (SVRP), as shown in Figure 2. To simplify the calculation, it is set that the customer being delivered cannot change the demand.
The number of time slices is set to n t , and each time slice is ( T f T s ) / n t [37]. The dynamic demand in the current time slice is not processed immediately and will be passed to the next time slice for optimization. With a larger n t , the dynamic demand response is faster. However, a larger n t does not necessarily result in a better pathway and also leads to system redundancy in computational space [38].
(2)
Dynamic Adjustment Model
In this paper, according to the dynamic event occurrence time, the vehicle location is determined and set as a virtual distribution point. The objective is to minimize the cost and value loss to complete subsequent distribution tasks after a dynamic event has occurred. During the optimization process, the position of vehicle k and the goods surplus ( Q k ) in the dynamic adjustment phase can be determined from the previous phase. According to parameters, such as vehicle speed and load, the cost and value loss of subsequent distribution tasks are solved. Suppose the vehicle’s ( k ) initial distribution path is 0-1-2-3-4-0. In dynamic adjustment, if the vehicle is at customer point 2, the reconfiguration takes customer point 2 as the virtual distribution center. At this point, the goods remaining of vehicle k is Q k = C a p q 1 m w q 2 m w . If the vehicle is between customer points 2 and 3, the reconfiguration takes the vehicle’s current location as the virtual point and does not change the delivery task to customer point 3. The goods remaining are Q k = C a p q 1 m w q 2 m w q 3 m w . If the optimized subsequent distribution path is 3-5-6-0, the distribution path for vehicle k is 0-1-2-3-5-6-0, based on the previous path. The model is as follows:
Z = min { F 1 + F 2 + F 3 + F 4 + F 5 }
F 1 = C 1 j V c a k K a c ( x 0 j w k z k )
F 2 = C 2 w W j { 0 } V c i { 0 } V c k K F i j w k x i j w k
F 3 = k K m M w W j { 0 } V c a V D i { 0 } V c a V D t i j w k u m w k Q i j w k
F 4 = i { 0 } V c a V D m M w W k K v l i m w k
F 5 = C 4 w W j { 0 } V c i { 0 } V c k K ( F i j w k x i j w k / ο + a t i j w k x i j w k )
s.t.
i V D V c a j V c a w W x i j w k q j m w Q k , k K a
i { 0 } V c a j V c a w W x i j w k q j m w C a p , k K a c
| K a | + j V c a k K a c w Q x 0 j w k | K |
j { 0 } V c a k K w W x i j w k = 1 , i V c a
i { 0 } V c a k K w W x i j k = 1 , j V c a
i { 0 } V c a V D w W x i j w k = i { 0 } V c a w W x j i w k , j V c a , k K
j V c a w W x 0 j w k = i V c a w W x i 0 w k 1 , k K a c
k K a j V c a w W x i j w k = 1 , i V D
k K a i { 0 } V c a w W x i j w k = 0 , i V D
k K i V D V c a w W x i 0 w k = k K a c i V c a w W x 0 j w k + | K a |
T q i a T e n d , i V q a
T s a k + i { 0 } V c a V D j { 0 } V c a w W t i j w k x i j w k + i { 0 } V c a V D j V c a w W q j m w T S j x i j w k T f , k K
i S j S w W x i j w k | S | 1 , | S | = j V c a w W x i j w k , k K
i { 0 } V c j V c w W d i j x i j w k v T k , k K
x i j w k { 0 , 1 } , i , j V c a , k K , w W
z k { 0 , 1 } , k K a c
Equations (26) and (27) represent the vehicle load constraint. Equation (28) is the number of delivery vehicles constraint. Equations (29) and (30) denote that the customer has and will only be served once. Equation (31) means that the vehicle leaves the customer’s point after service. Equation (32) indicates that each vehicle serves only one path and that the vehicle departs from the distribution center and returns to the distribution center after completing the order. Equations (33) and (34) mean that only one vehicle leaves the virtual distribution point and does not return. Equation (35) indicates that all vehicles performing a distribution task return to the distribution center after completing all tasks. Equation (36) indicates that the time to process order changes does not exceed the order deadline of the distribution center. Equation (37) represents the vehicle returns to the distribution center at a time no later than the operating deadline. Equation (38) eliminates the sub-loop constraint. Equation (39) is the delivery time constraint. Equations (40) and (41) are the decision variable attributes.

3. Problem Solution and Algorithm Design

3.1. Problem Solution

Step 1: Determine the initial distribution path of the vehicles. The vehicles all depart from the distribution center. According to the pre-departure order information, using the AH-NOA based on k-means clustering to determine the initial plan.
Step 2: Determine whether a dynamic event occurs according to the rolling time domain. If it does, skip to Step 3, otherwise, end.
Step 3: According to the event occurrence time, the vehicle driving path before the dynamic event occurs is derived.
Step 4: Dynamic events occur and relevant order information is updated.
Step 5: Problem transformation. Set up a virtual distribution center based on the location information of vehicles in transit. Integrate undelivered orders and new orders into a new order requirement. Transforming the single-center DVRP into a new multi-center SVRP.
Step 6: Determine the vehicle path after the dynamic event occurs. Based on the new problem obtained in Step 5, the AH-NOA is used to solve it. Use the vehicle path obtained in Step 3 to replace the path between the distribution center and the virtual distribution center. Skip to Step 2.

3.2. The AH-NOA Design Based on K-Means Clustering Algorithm

3.2.1. K-Means Clustering Algorithm

The k-means clustering analysis of customers can reduce the decay of commodity quality and increase customer satisfaction. Because of the integrated consideration of the commodity’s temperature and customer location, it can make the solution more realistic.
Suppose the location coordinates of the customer ( i ) and demand temperature interval of fresh agricultural products are ( x i , y i ) , ( l p i , u p i ) , respectively. The clustering distance between customers i and j is d i j c = | x i x j | + | y i y j | + t r | l p i l p j | + t r | u p i u p j | [39]. t r denotes the conversion factor between distance and temperature. The specific steps are as follows:
(1)
Import customer location, commodity temperature and t r .
(2)
The products are divided into several temperature intervals according to their temperature characteristics while taking into account the customer’s freshness demands.
(3)
The initial number of clustering units is determined as q c based on the k-means clustering algorithm, and the q c initial clustering centers are selected in each temperature control interval.
(4)
Under different temperature intervals, calculate the distance from the customer point to the cluster center and assign the clustered customers to the closest clustered unit.
(5)
Add the number of clustering units as q c = q c + 1 and generate new clustering units and centers.
(6)
Repeat (4) and (5) until the cluster centers no longer change.

3.2.2. Nutcracker Optimizer Algorithm

The nutcracker optimizer algorithm is a swarm intelligence optimization algorithm proposed in 2023. In the summer and autumn, nutcrackers search for food at random and choose to transport the better food to a storage area away from the foraging area. In winter and spring, nutcrackers go to storage areas to find food, which may not necessarily be their food but may also become the food of others. NOA simulates the foraging and food storage behavior based on the nutcracker’s ability to find food by relying on spatial memory mechanisms and achieves the goal of finding the best food.
Heuristic algorithms have good results for solving vehicle routing problems. However, it has a lack of robustness, and the results are easily influenced by a larger number of parameters. NOA has the advantages of high accuracy, fast computation and a small number of parameters. Moreover, due to the characteristics of the problem studied in this paper, a fast computational algorithm is more beneficial to solve the problem. However, there are also disadvantages such as the tendency to fall into local optima and slow convergence. The flow of this algorithm is shown in Figure 3.

3.2.3. Adaptive Hybrid Nutcracker Algorithm

To address the disadvantages of the NOA, an adaptive hybrid NOA is proposed. To ensure the diversity of the population, the CW algorithm was used to initialize some of the solutions. To keep the overall quality of the population, better nutcrackers are selected to generate new nutcrackers through the genetic operators and local search operators. A nutcracker winter food search probability and a local optimization avoidance probability are introduced into the decline function so that it can be adaptively adjusted with iterations. In this way, the algorithm’s convergence speed can be increased. It is possible to avoid falling into a local optimum to a certain extent. The AH-NOA flow chart is shown in Figure 4.
The specific steps of the AH-NOA are as follows:
(1)
Initialize the population. To increase the diversity of solutions, the initial population is generated in two ways: CW algorithm and random search.
(2)
Adaptability function. The total cost is used as the fitness function of the algorithm
(3)
Parameter iteration. P a 1 controls the search direction in the storage phase. P a 2 determines the swapping probability between the cache search and recovery phases. δ avoids getting stuck in a local optimum. The P a 1 , P a 2 and δ are improved to adaptively change with the algorithm running using the following equations:
P a 1 = ( i t e r _ max i t e r ) / i t e r _ max
P a 2 = 1 / ( 1 1.5 ( log 2 ( 1 / i t e r ) ) )
δ = exp ( i t e r 4 / i t e r _ max 3 ) i t e r _ max i t e r + 1 0.05
(4)
Movement strategy. Each nutcracker performed foraging, storing food, searching for caches and obtaining food behaviors according to Equations (45)–(51), respectively, based on its current food search status. X k i t e r + 1 denotes the position of the k nutcracker in the i t e r generation. U j and L j denote the upper and lower bounds of the nutcracker’s position at the point j . γ is a random number generated from a levy flight. X M j i t e r denotes the average position of all nutcrackers at point j in the i t e r generation. A , B and C are three nutcrackers randomly selected from the population to facilitate the search for high-quality food sources. τ 1 , τ 2 , r and r 1 are real numbers randomly generated in the interval [ 0 , 1 ] . μ is randomly generated in the interval [ 0 , 1 ] based on a normal distribution.
X k i t e r + 1 = { X k j i t e r τ 1 < τ 2 X M j i t e r + γ ( X A j i t e r X B j i t e r ) + μ ( r 2 U j L j ) τ 1 τ 2 , i t e r < i t e r _ max / 2 X C j i t e r + μ ( X A j i t e r X B j i t e r ) + μ ( r 1 < δ ) ( r 2 U j L j ) o t h e r w i s e
X k i t e r + 1 = { X k i t e r + μ ( X b e s t i t e r X k i t e r ) | λ | + r 1 ( X A i t e r X B i t e r ) τ 1 < τ 2 X b e s t i t e r + μ ( X A i t e r X B i t e r ) X b e s t i t e r l τ 1 < τ 3 o t h e r w i s e
R P k , 1 i t e r = { X k i t e r + α cos ( θ ) ( X A i t e r X B i t e r ) + α R P θ = π / 2 X k i t e r + α cos ( θ ) ( X A i t e r X B i t e r ) o t h e r w i s e
R P k , 2 i t e r = { X k i t e r + ( α cos ( θ ) ( ( U L ) τ 3 + L ) + α R P ) U 2 θ = π / 2 X k i t e r + α cos ( θ ) ( ( U L ) τ 3 + L ) U 2 o t h e r w i s e
λ is a random number generated from a levy flight. X b e s t i t e r is the position of the current optimal nutcracker. τ 3 is a randomly generated real number in the interval [ 0 , 1 ] . l is the diversity factor of the solution linearly decreasing from 1 to 0. ( R P k , 1 i t e r , R P k , 2 i t e r ) denotes the location of the k nutcracker storing food in generation i t e r . U = ( U 1 , U 2 , , U j ) and L = ( L 1 , L 2 , , L j ) denote the range of regions where the nutcracker stores food. R P is a random location. α avoids the algorithm falling into a local optimum and adjusts according to Equation (49):
α = { ( 1 i t e r / i t e r _ max ) 2 i t e r / i t e r _ max r 1 > r 2 ( i t e r / i t e r _ max ) 2 / i t e r o t h e r w i s e
X k i t e r + 1 { X k i t e r τ 7 < τ 8 , τ 3 < τ 4 o r τ 5 < τ 6 X k i t e r + r 1 ( X b e s t i t e r X k i t e r ) + r 2 ( R P k , 1 i t e r X C i t e r ) τ 7 < τ 8 , τ 3 τ 4 X k i t e r + r 1 ( X b e s t i t e r X k i t e r ) + r 2 ( R P k , 2 i t e r X C i t e r ) τ 7 < τ 8 , τ 5 τ 6
X k i t e r + 1 = f 1 ( min ( f ( X k i t e r ) , f ( R P k , 1 i t e r ) , f ( R P k , 2 i t e r ) ) )
r 2 , τ 4 , τ5, τ 6 , τ 7 and τ 8 are a randomly generated real number in the interval [ 0 , 1 ] .
Suppose a vehicle departs from distribution center 0 and needs to make a delivery to customer points 1 and 2. X 1 i t e r is the position of the current nutcracker 1 and X 2 i t e r is the position of the current nutcracker 2. If X 1 i t e r X 2 i t e r , x 12 w k = 1 , x 21 w k = 0 and the order of vehicle visits is 0-1-2-0. Otherwise, x 12 w k = 0 , x 21 w k = 1 and the order of vehicle visits is 0-2-1-0.
(5)
Crossover, mutation and local search behavior. Incorporating the crossover and mutation operators from the genetic algorithm into the NOA can effectively overcome the NOA’s lack of global search capability. The key to enhancing the global search ability is to enhance the diversity of the population, which both genetic operators can achieve. Therefore, the genetic operator is embedded in the NOA to expand the solution space and improve the global search capability.
① Crossover operations
Multiple crossovers can avoid individuals from converging prematurely, but too many crossovers will destroy some better solutions. In this paper, according to the roulette strategy, two crosses, O A and O B , are selected. After the two individuals have been crossed, the recurring points are deleted, resulting in two new nutcrackers. The process is shown in Figure 5.
② Mutation operation
Select two random positions and directly exchange them to complete the mutation operation, as shown in Figure 6.
③ Local search operations
Remove some similar location points based on similarity by using the destruction operator. Under load capacity and time constraints, removed points are inserted back into the total cost. The similarity is calculated as R i j = 1 / ( S i j + d i j / d i j _ max ) , where S i j = 1 means that i and j are not on the same path and S i j = 0 means that i and j are on the same path, d i j _ max = max { j V c , i j | d i j } .
(6)
Algorithm termination. The algorithm is terminated when the maximum number of iterations has been reached.

3.2.4. Time Complexity Analysis of AH-NOA

In the base NOA, if the number of populations is n , then when simulating the foraging and storage behavior, the time magnitude is n . In the cache-search and recovery strategy, generating the R P matrix needs at most n times and the time magnitude is n . Each nutcracker has to search for the best food at most i t e r _ max times. The time magnitude is i t e r _ max . In summary, the time complexity of the NOA is O ( ( n + n ) i t e r _ max ) . AH-NOA adds crossover, mutation and local search behavior to the NOA, which has a time dimension of n . The time complexity of the AH-NOA is O ( ( n + n ) i t e r _ max + n ) .

3.2.5. Algorithm Effectiveness Verification

To verify the effectiveness of the algorithm improvements, a comparison experiment between the basic NOA and AH-NOA was made. Customer location coordinates and service demands were obtained by improving the Solomon dataset [40]. At the same time, the temperature intervals and prices for fresh agricultural products are added, and 12 examples were selected for analysis and comparison. The main parameters are set as follows: p o p s i z e = 50 , i t e r _ max = 200 , p c = 0.8 , p m = 0.1 , t r = 1.2 . Due to the high information level of the order, the communication time between the delivery personnel and the customer is greatly reduced. To simplify the calculation, assume T S i = 0 . The characteristics of the example data set are shown in Table 3. Each set was calculated 20 times and the best values were chosen, as shown in Table 4. Where TD denotes total cost, VL denotes loss of value, VN denotes the number of vehicles and CEC denotes the carbon emissions cost. G a p _ c = ( T D N O A T D A H N O A ) / T D N O A , G a p _ g = ( C E C N O A C E C A H N O A ) / C E C N O A .
Table 4 shows that the AH-NOA outperforms the NOA in terms of TD, CEC and VN. In the pathway optimization model with the lowest total cost, the AH-NOA obtained better results than the NOA. Total costs were optimized by a maximum of 43.82% and an average of 24%. The carbon emissions costs were optimized by a maximum of 43.93% and an average of 25.59%. The t-test and p-value analysis showed that the difference between the calculated TD, CEC and VN for the AH-NOA solution and the NOA was significant. Therefore, the AH-NOA is an effective improvement to the NOA.

4. Example Analysis

4.1. Example Design

Before delivery begins, the distribution center receives orders from 60 customers, which are located in different parts of the city. Each customer has different demands and temperature intervals. The distribution center information is shown in Table 5. The specific customer demands are shown in Table 6. Customer location, demand and commodity temperature attributes are randomly generated using the rand() function according to objective reality. C a p = 200 kg, n t = 32 . The hire cost is C 1 = 60 CNY. The average vehicle speed is 50 km/h. Assume a unit fuel emission factor of 2.63 kg/L. Referring to the average carbon emission trading price on the Beijing, Shanghai and Guangdong exchanges on 19 April 2019, set the unit carbon emission price to 0.1 CNY/kg.

4.2. Example Solution and Results Analysis

4.2.1. Temperature Sensitivity Analysis

Fresh commodities have different sensitivity coefficients at different temperatures, which leads to differences in the value loss. Using the example R108, the temperature control cost and value loss under the temperature range (1 °C)–(6 °C), (−5 °C)–(0 °C) and (−13 °C)–(−8 °C) were calculated. The results are shown in Figure 7.
Figure 7 shows that the temperature control cost and value loss both change with temperature, but they are both paradoxical. When the temperature is at the left end of the interval, the value loss is the smallest and the temperature control cost is the largest. Conversely, when the temperature is the right endpoint of the interval, the commodity is at a higher temperature. The loss is the largest and the temperature control cost is the smallest. This indicates that under a constant external temperature, the value loss gradually increases and the temperature control cost gradually decreases with increasing temperature. The value loss and temperature control costs were different in the increase or decrease during the temperature change. Based on the Pareto optimal principle [41], the optimal temperature in the temperature control intervals (1 °C)–(6 °C), (−5 °C)–(0 °C) and (−13 °C)–(8 °C) are 3 °C, −3 °C and −11 °C, respectively. When the temperature is at its optimum, adjusting the temperature up or down does not result in an optimum.

4.2.2. Carbon Emissions Impact on GCVRPDD

To research the impact of carbon emission cost on the dynamic vehicle routing problem, this paper uses the AH-NOA to solve the dynamic vehicle routing problem, considering carbon emissions and not considering carbon emissions, respectively. The algorithm parameters used are the same. The relevant parameters are C 2 = 5.2 CNY/km and f k w = 0.12 L/km. The algorithm was programmed using Matlab R2016a and implemented running on Windows 10, 8 G and 2.80 GHz.
(1) Results and Analysis of the Initial Scheme
(a)
Results of Initial Scheme
The AH-NOA was used to solve the vehicle path problem with and without considering carbon emissions. The initial distribution path is shown in Figure 8. Figure 8a shows that eight vehicles were dispatched. Figure 8b shows that nine vehicles were dispatched. There are some differences in the vehicle paths for the two distribution schemes, which are mainly due to whether or not carbon costs are taken into account. The specific routes for the two distribution schemes are shown in Table 6 and Table 7, respectively. The stars in Figure 8 represent distribution centers and the dots represent customer points.
(b)
Results Comparison
Comparing Table 7 and Table 8, it can be seen that there are significant differences in the paths of the two schemes. There is a significant difference in the order of delivery customers. The carbon emission cost, value loss and total cost have obvious changes, as shown in Table 9. As can be seen from Table 9, the distribution scheme, considering the carbon emission cost, is CNY 119 more in value loss than without considering. However, the carbon emission cost decreased by 9.9%, while the transportation cost and total cost also decreased by 9.7% and 10.1%, respectively. This is largely attributable that the distribution scheme, considering carbon emission costs, needs to provide priority delivery to customers with larger loads. Although this causes an increase in value loss, it achieves a lower carbon emission cost and total cost during the shelf life of the commodity. Therefore, distribution schemes considering the carbon emission costs must reduce carbon emissions while minimizing the total cost.
(2) Adjustment and Comparison Analysis of Pathway under Real-time Information
During the vehicle operation, the dispatch center receives information on all dynamic events, as shown in Table 10. To simplify the calculation, it is assumed that dynamic events only occur within a certain interval.
Dynamic events occur at [8:45, 9:00]. According to the dynamic adjustment strategy, the current dynamic event is adjusted in the next time slice based on the rolling time domain division. Thus, the dynamic event handling time slice is at [9:15, 9:30]. Based on the updated demand information, the AH-NOA is used to solve the GCVRPDD separately. The distribution route scheme is shown in Figure 9. As can be seen in Figure 9, vehicles complete their tasks according to the new route arrangement. The specific routes are shown in Table 11.
Comparing Figure 9a,b, it can be seen that the two distribution schemes are completely different. There are also significant differences in the costs of each distribution. This is shown in Table 12. It can be seen from Table 12 that the distribution scheme considering carbon emissions increased in value loss by CNY 105 and decreased the transportation cost and total cost by 6.4% and CNY 36, respectively. Although there is a significant value loss, this loss is still within the goods freshness and the distribution scheme considering carbon emissions is 6.3% lower in carbon emissions, which is good for the positive corporate social image and corporate future development. The examples used are universally applicable because they are randomly generated based on actual situations. The above comparison can demonstrate that considering carbon emissions in the dynamic vehicle path can reduce carbon emissions and total cost. The AH-NOA can effectively solve the GCVRPDD. By comparing the initial route and adjusted costs of the two schemes, it was found that the distribution scheme considering carbon emissions had a greater change in the number of vehicles, carbon emission costs, transport costs and total costs. This is shown in Table 13.

5. Conclusions

This paper researches GCVRPDD based on the AH-NOA. Firstly, through the analysis of the problem, using virtual customer points to transform dynamic vehicle paths into SVRP based on the rolling time domain, and construct a two-stage GCVRPDD model with the goals of minimizing vehicle dispatch costs, transport costs, temperature control costs, value loss and carbon emissions costs. Secondly, the AH-NOA is designed according to the model characteristics and improvements are made to reduce its disadvantages. The CW algorithm is added to initialize partial solutions to ensure population diversity. Better nutcrackers are selected to ensure the overall quality of the population by generating new nutcrackers. The decay function is introduced to improve the convergence speed of the algorithm and to avoid falling into a local optimum. The algorithm is compared with the original NOA to verify the effectiveness and reasonableness of the algorithm improvements. According to the algorithm and the model, it found the optimal temperature in three different temperature control intervals. Finally, the GCVRPDD is solved based on two different distribution schemes. The results show that the distribution scheme considering carbon emission costs, while higher in value loss, is lower in carbon emissions and total costs and has a significantly fewer number of vehicles. Considering the carbon emission cost in DVRP can lead to a significant increase in carbon emissions, transport costs and total costs compared to SVRP. This is because the quality of fresh agricultural products declines as the vehicle time in transit increases. To reduce the value loss of fresh agricultural products, companies need to generate more carbon emissions to meet customer demand, resulting in increased carbon emissions costs, transportation costs and total costs. However, with the emergence of diversity in consumer demand, it is more realistic to consider carbon emissions in dynamic delivery. At the same time, the AH-NOA adds a new solution method to dynamic vehicle path optimization.
Future research will focus on the effects of distribution vehicle temperature dynamics, customer time windows, customer satisfaction and other factors to make the problem more realistic.

Author Contributions

D.W.: Supervision, Methodology and Writing—original draft. R.Y.: Formal analysis, Validation, Software and editing. H.J.: Conceptualization, Funding acquisition. F.C.: Resources. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the China National Social Science Fund Project “Study on dynamic optimization of urban main and non-staple food reserve and supply system under abnormal conditions” (No. 22BGL274), and the Major Projects of the National Social Science Foundation of China (No. 22ZDA058).

Data Availability Statement

All experimental data in this paper comes from https://people.idsia.ch//~luca/macs-vrptw/problems/welcome.htm (accessed on 10 March 2023.)

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hsu, C.-I.; Chen, W.-T.; Wu, W.-J. Optimal delivery cycles for joint distribution of multi-temperature food. Food Control 2013, 34, 106–114. [Google Scholar] [CrossRef]
  2. Gharehyakheh, A.; Krejci, C.C.; Cantu, J.; Rogers, K.J. A Multi-Objective Model for Sustainable Perishable Food Distribution Considering the Impact of Temperature on Vehicle Emissions and Product Shelf Life. Sustainability 2020, 12, 6668. [Google Scholar] [CrossRef]
  3. Wu, D.; Wu, C. Research on the Time-Dependent Split Delivery Green Vehicle Routing Problem for Fresh Agricultural Products with Multiple Time Windows. Agriculture 2022, 12, 793. [Google Scholar] [CrossRef]
  4. Zhang, B. The Optimization of Distribution Path of Fresh Cold Chain Logistics Based on Genetic Algorithm. Comput. Intell. Neurosci. 2022, 2022, 4667010. [Google Scholar] [CrossRef] [PubMed]
  5. Xiancheng, Z.; Kaijun, Z.; Li, W.; Changshi, L.; Xingbin, H. Review of green vehicle routing model and its algorithm in logistics distribution. Syst. Eng.-Theory Pract. 2021, 41, 213–230. [Google Scholar]
  6. Jin-liang, Z.; Chao, L. Research on Dynamic Distribution Vehicle Route Optimization under the Influence of Carbon Emission. Chin. J. Manag. Sci. 2022, 30, 184–194. [Google Scholar]
  7. Elgharably, N.; Easa, S.; Nassef, A.; El Damatty, A. Stochastic Multi-Objective Vehicle Routing Model in Green Environment with Customer Satisfaction. IEEE Trans. Intell. Transp. Syst. 2022, 24, 1337–1355. [Google Scholar] [CrossRef]
  8. Bruglieri, M.; Ferone, D.; Festa, P.; Pisacane, O. A GRASP with penalty objective function for the Green Vehicle Routing Problem with Private Capacitated Stations. Comput. Oper. Res. 2022, 143, 105770. [Google Scholar] [CrossRef]
  9. Xian-cheng, Z.; Yang, L.; Cai-hong, H.; Chang-shi, L.; Kun, Y. Multi-depot green vehicle routing model and its optimization algorithm with time-varying speed. Control. Decis. 2022, 37, 473–482. [Google Scholar]
  10. Li, J.; Zhang, J.H. Practice Vehicle routing problem with time windows based on carbon emissions and speed optimization. Syst. Eng.-Theory Pract. 2014, 34, 3063–3072. [Google Scholar]
  11. Cai, L.; Lv, W.; Xiao, L.; Xu, Z. Total carbon emissions minimization in connected and automated vehicle routing problem with speed variables. Expert Syst. Appl. 2021, 165, 113910. [Google Scholar] [CrossRef]
  12. Yin, F.; Zhao, Y. Optimizing vehicle routing via Stackelberg game framework and distributionally robust equilibrium optimization method. Inf. Sci. 2021, 557, 84–107. [Google Scholar] [CrossRef]
  13. Yang, J.; Jaillet, P.; Mahmassani, H. Real-time multivehicle truckload pickup and delivery problems. Transp. Sci. 2004, 38, 135–148. [Google Scholar] [CrossRef] [Green Version]
  14. Zhang, T.; Lai, P.Z.; He, Q.F.; Jin, Z.H. Optimization of Dynamic Vehicle Routing of Urban Distribution Based on the Real-time Information. Syst. Eng. 2015, 33, 58–64. [Google Scholar]
  15. Guo, X.; Samaranayake, S. Shareability network based decomposition approach for solving large-scale single school routing problems. Transp. Res. Part C-Emerg. Technol. 2022, 140, 103691. [Google Scholar] [CrossRef]
  16. Pan, W.; Liu, S.Q. Deep reinforcement learning for the dynamic and uncertain vehicle routing problem. Appl. Intell. 2023, 53, 405–422. [Google Scholar] [CrossRef]
  17. Kucuk, M.; Yildiz, S.T. Constraint programming-based solution approaches for three-dimensional loading capacitated vehicle routing problems. Comput. Ind. Eng. 2022, 171, 108505. [Google Scholar] [CrossRef]
  18. Aydinalp Birecik, Z.; Oezgen, D. An interactive possibilistic programming approach for green capacitated vehicle routing problem. Neural Comput. Appl. 2023, 35, 9253–9265. [Google Scholar] [CrossRef]
  19. Wang, S.; Mei, Y.; Zhang, M.; Yao, X. Genetic Programming With Niching for Uncertain Capacitated Arc Routing Problem. IEEE Trans. Evol. Comput. 2022, 26, 73–87. [Google Scholar] [CrossRef]
  20. Souza, I.P.; Boeres, M.C.S.; Moraes, R.E.N. A robust algorithm based on Differential Evolution with local search for the Capacitated Vehicle Routing Problem. Swarm Evol. Comput. 2023, 77, 101245. [Google Scholar] [CrossRef]
  21. Eltoukhy, A.E.E.; Hussein, M.; Xu, M.; Chan, F.T.S. Data-driven Game-theoretic Model Based on Blockchain for Managing Resource Allocation and Vehicle Routing in Modular Integrated Construction. Int. J. Prod. Res. 2022, 61, 4472–4502. [Google Scholar] [CrossRef]
  22. Song, W.; Yuan, S.; Yang, Y.; He, C. A Study of Community Group Purchasing Vehicle Routing Problems Considering Service Time Windows. Sustainability 2022, 14, 6968. [Google Scholar] [CrossRef]
  23. Wu, L.-J.; Chen, Z.-G.; Chen, C.-H.; Li, Y.; Jeon, S.-W.; Zhang, J.; Zhan, Z.-H. Real Environment-Aware Multisource Data-Associated Cold Chain Logistics Scheduling: A Multiple Population-Based Multiobjective Ant Colony System Approach. IEEE Trans. Intell. Transp. Syst. 2022, 23, 23613–23627. [Google Scholar] [CrossRef]
  24. Futalef, J.P.; Munoz-Carpintero, D.; Rozas, H.; Orchard, M.E. An online decision-making strategy for routing of electric vehicle fleets q. Inf. Sci. 2023, 625, 715–737. [Google Scholar] [CrossRef]
  25. Vieira, B.S.; Ribeiro, G.M.; Bahiense, L. Metaheuristics with variable diversity control and neighborhood search for the Heterogeneous Site-Dependent Multi-depot Multi-trip Periodic Vehicle Routing Problem. Comput. Oper. Res. 2023, 153, 106189. [Google Scholar] [CrossRef]
  26. Voigt, S.; Frank, M.; Fontaine, P.; Kuhn, H. Hybrid adaptive large neighborhood search for vehicle routing problemswith depot location decisions. Comput. Oper. Res. 2022, 146, 105856. [Google Scholar] [CrossRef]
  27. Abbaspour, S.; Aghsami, A.; Jolai, F.; Yazdani, M. An integrated queueing-inventory-routing problem in a green dual-channel supply chain considering pricing and delivery period: A case study of construction material supplier. J. Comput. Des. Eng. 2022, 9, 1917–1951. [Google Scholar] [CrossRef]
  28. Wang, Y.; Ran, L.; Guan, X.; Fan, J.; Sun, Y.; Wang, H. Collaborative multicenter vehicle routing problem with time windows and mixed deliveries and pickups. Expert Syst. Appl. 2022, 197, 116690. [Google Scholar] [CrossRef]
  29. Abdel-Basset, M.; Mohamed, R.; Jameel, M.; Abouhawwash, M. Nutcracker optimizer: A novel nature-inspired metaheuristic algorithm for global optimization and engineering design problems. Knowl.-Based Syst. 2023, 262, 110248. [Google Scholar]
  30. Demir, E.; Bektas, T.; Laporte, G. A comparative analysis of several vehicle emission models for road freight transportation. Transp. Res. Part D-Transp. Environ. 2011, 16, 347–357. [Google Scholar] [CrossRef]
  31. Suzuki, Y. A dual-objective metaheuristic approach to solve practical pollution routing problem. Int. J. Prod. Econ. 2016, 176, 143–153. [Google Scholar] [CrossRef]
  32. Zhou, X.C.; Liu, C.S.; Zhou, K.J.; He, C.H.; Huang, X.B. Improved ant colony algorithm and modelling of time-dependent green vehicle routing problem. J. Manag. Sci. China 2019, 22, 57–68. [Google Scholar]
  33. Ghare, P.M.; Schrader, G.H. A model for exponentially decaying inventory system. Int. J. Prod. Res. 1963, 21, 449–460. [Google Scholar]
  34. Hsu, C.-I.; Hung, S.-F.; Li, H.-C. Vehicle routing problem with time-windows for perishable food delivery. J. Food Eng. 2007, 80, 465–475. [Google Scholar] [CrossRef]
  35. Leng, L.; Zhang, J.; Zhang, C.; Zhao, Y.; Wang, W.; Li, G. Decomposition-based hyperheuristic approaches for the bi-objective cold chain considering environmental effects. Comput. Oper. Res. 2020, 123, 105043. [Google Scholar] [CrossRef]
  36. Wang, J.; Liu, H.; Zhao, R. The optimization of cold chain operation based on fresh food safety. Syst. Eng.-Theory Pract. 2018, 38, 122–134. [Google Scholar]
  37. Kilby, P.; Prosser, P.; Shaw, P. Dynamic VRPs: A Study of Scenarios. Univ. Strathclyde Tech. Rep. 1998, 1. [Google Scholar]
  38. Montemanni, R.; Gambardella, L.M.; Rizzoli, A.E.; Donati, A. Ant colony system for a dynamic vehicle routing problem. J. Comb. Optim. 2005, 10, 327–343. [Google Scholar] [CrossRef]
  39. Wang, Z. Delivering meals for multiple suppliers: Exclusive or sharing logistics service. Transp. Res. Part E-Logist. Transp. Rev. 2018, 118, 496–512. [Google Scholar] [CrossRef]
  40. Solomon, M. Algorithms for the vehicle routing and scheduling problem with time window constarints. Oper. Res. 1987, 35, 254–265. [Google Scholar] [CrossRef] [Green Version]
  41. Ishibuchi, H.; Setoguchi, Y.; Masuda, H.; Nojima, Y. Performance of Decomposition-Based Many-Objective Algorithms Strongly Depends on Pareto Front Shapes. IEEE Trans. Evol. Comput. 2017, 21, 169–190. [Google Scholar] [CrossRef]
Figure 1. Initial planning + dynamic adjustment strategy.
Figure 1. Initial planning + dynamic adjustment strategy.
Agriculture 13 01430 g001
Figure 2. GCVRPDD rolling time domain dynamic optimization.
Figure 2. GCVRPDD rolling time domain dynamic optimization.
Agriculture 13 01430 g002
Figure 3. NOA flow chart.
Figure 3. NOA flow chart.
Agriculture 13 01430 g003
Figure 4. AH-NOA flow chart.
Figure 4. AH-NOA flow chart.
Agriculture 13 01430 g004
Figure 5. Crossover operation.
Figure 5. Crossover operation.
Agriculture 13 01430 g005
Figure 6. Mutation operation.
Figure 6. Mutation operation.
Agriculture 13 01430 g006
Figure 7. Fresh commodity value loss and temperature control paradox diagram.
Figure 7. Fresh commodity value loss and temperature control paradox diagram.
Agriculture 13 01430 g007
Figure 8. Vehicle routing.
Figure 8. Vehicle routing.
Agriculture 13 01430 g008
Figure 9. Distribution paths after dynamic events.
Figure 9. Distribution paths after dynamic events.
Agriculture 13 01430 g009
Table 1. θ m w under different temperatures.
Table 1. θ m w under different temperatures.
TemperatureCOP θ m w TemperatureCOP θ m w
6 °C14.681−3 °C9.641.52
5 °C13.91.06−4 °C9.281.58
4 °C13.191.11−5 °C8.931.64
3 °C12.551.17−8 °C8.031.83
2 °C11.961.23−9 °C7.761.89
1 °C11.421.29−10 °C7.511.95
0 °C10.921.34−11 °C7.282.02
−1 °C10.461.40−12 °C7.052.08
−2 °C10.041.46−13 °C6.842.15
Table 2. Symbol definition in the GCRPDD optimization.
Table 2. Symbol definition in the GCRPDD optimization.
ParameterDefinitionParameterDefinition
C 1 The vehicle dispatch cost s t 0 k Time of vehicle departure from distribution center
C 2 The transportation cost per distance T k The maximum vehicle time in transit
C 3 The fuel price W A set of temperature control ranges
C 4 The unit price of carbon emissions F 1 The delivery vehicle dispatch cost
C a p The rated load capacity of the vehicle F 2 The transport cost
T S i The customer service time F 3 The temperature control cost
d i j The distance between i and j F4The temperature control cost
t i j w k The travel time of vehicle k from i to j at temperature w F 5 The carbon emission cost
x i j w k 0–1 decision variable,1 if vehicle k travels from i to j at temperature w and 0 otherwise u m w k = C 3 f k w θ m w The temperature-controlled cost of fresh commodity m at temperature w
Q i j w k The load capacity of vehicle k from customer i to j at w f k w The fuel consumption of a hundred kilometers of vehicle k at temperature w
a The carbon emissions per hour of temperature-controlled equipment θ m w The temperature-controlled cost factor unit of fresh commodity at w
V q a The new set of customer T s a k The vehicle’s departure time at the distribution center
V c a The original set of orders not served constitutes V D A set of virtual distribution center
z k 0–1 decision variable, the newly dispatched vehicle Q k The remaining goods of the vehicle k
K a The set of vehicles currently performing the delivery task K a c The set of new vehicles to be dispatched ( K a c is the complement of K a )
T q i a The change moment in customer demand s t d k The time when the vehicle leaves the distribution center or virtual distribution center.
T e n d The order deadline
Table 3. Dataset characteristics.
Table 3. Dataset characteristics.
Case No.Customer NumbersTemperature Control IntervalPrice
1–340(−5 °C)–(0 °C)10
(1 °C)–(6 °C)7
4–660(−5 °C)–(0 °C)10
(−13 °C)–(−8 °C)15
7–980(−5 °C)–(0 °C)10
(1 °C)–(6 °C)7
(−13 °C)–(−8 °C)15
10–12100(−5 °C)–(0 °C)10
(1 °C)–(6 °C)7
(−13 °C)–(−8 °C)15
Table 4. Comparison of algorithm solution results.
Table 4. Comparison of algorithm solution results.
No.NameAH-NOANOAGap_cGap_g
TDVLCECVNTDVLCECVN
1C10196418320351716205235543.82%13.62%
2R101138319234151713185428619.26%20.33%
3RC101181224540372540272571928.66%29.42%
4C102174637937162150364495818.79%25.05%
5R1022226317547828962707321023.14%25.27%
6RC10233084227241039833579051416.95%20.00%
7C103290039840373705407561921.73%28.16%
8R103334029948674178325634820.06%23.34%
9RC1034222391632956373468931325.10%29.23%
10C1043756511545959865599721337.25%43.93%
11R1044175420705104522391860127.67%18.02%
12RC1044943446638963743949211322.45%30.73%
Ave2898 350 500 83783340 68410 24%25.59%
t-test −6.035 −6.81−6.325
p-value 0.000059 0.0000190.000038
Table 5. Distribution center information.
Table 5. Distribution center information.
X/kmY/km T s T f
008:0016:00
Table 6. Customer information.
Table 6. Customer information.
No.X/kmY/kmDemand/kgTemperature Control IntervalNo.X/kmY/kmDemand/kgTemperature Control Interval
1−27−258(−5 °C)–(0 °C)3181523(−5 °C)–(0 °C)
231311(1 °C)–(6 °C)32−18−1011(1 °C)–(6 °C)
3−4−2925(1 °C)–(6 °C)3329−243(−5 °C)–(0 °C)
430−1812(−13 °C)–(−8 °C)34252016(−13 °C)–(−8 °C)
526−12(−13 °C)–(−8 °C)3521148(−13 °C)–(−8 °C)
6−39−2621(−13 °C)–(−8 °C)36−4−1111(−13 °C)–(−8 °C)
7−23−2310(−5 °C)–(0 °C)3734−1224(1 °C)–(6 °C)
8−22211(−13 °C)–(−8 °C)381−1119(1 °C)–(6 °C)
93−334(−13 °C)–(−8 °C)3913817(1 °C)–(6 °C)
1093323(−5 °C)–(0 °C)4020−2713(−5 °C)–(0 °C)
1161225(−5 °C)–(0 °C)4131−3918(1 °C)–(6 °C)
127115(−13 °C)–(−8 °C)42−20108(−13 °C)–(−8 °C)
133102(1 °C)–(6 °C)43−5−363(−13 °C)–(−8 °C)
14−9−2916(−13 °C)–(−8 °C)44−39178(−13 °C)–(−8 °C)
15−2712(−13 °C)–(−8 °C)45−32317(1 °C)–(6 °C)
1641417(−5 °C)–(0 °C)4630−425(1 °C)–(6 °C)
17−92219(−5 °C)–(0 °C)4723286(1 °C)–(6 °C)
18−1−2622(−5 °C)–(0 °C)48−22524(−13 °C)–(−8 °C)
19342018(1 °C)–(6 °C)4921−224(−13 °C)–(−8 °C)
2011−1524(1 °C)–(6 °C)50182825(1 °C)–(6 °C)
21−32−3212(−13 °C)–(−8 °C)5191613(−5 °C)–(0 °C)
222345(−13 °C)–(−8 °C)52−5−3015(1 °C)–(6 °C)
2310918(1 °C)–(6 °C)53−9−119(−13 °C)–(−8 °C)
24−24−3222(−13 °C)–(−8 °C)54−29307(1 °C)–(6 °C)
25−30−1812(−5 °C)–(0 °C)55−38−227(−5 °C)–(0 °C)
269−912(−13 °C)–(−8 °C)56−16−3713(−13 °C)–(−8 °C)
27−182811(−13 °C)–(−8 °C)576−249(1 °C)–(6 °C)
28−33216(1 °C)–(6 °C)581717(−13 °C)–(−8 °C)
2916−3722(−13 °C)–(−8 °C)59−374011(1 °C)–(6 °C)
30−40618(−5 °C)–(0 °C)60−143819(1 °C)–(6 °C)
Table 7. Initial route considering the carbon emission costs.
Table 7. Initial route considering the carbon emission costs.
Vehicle Serial No.PathwayTemperature Control Interval
10−>45−>28−>59−>60−>54−>0(1 °C)–(6 °C)
20−>3−>52−>32−>57−>41−>37−>0
30−>23−>50−>47−>39−>19−>2−>13−>46−>20−>38−>0
40−>33−>40−>18−>7−>1−>55−>25−>0(−5 °C)–(0 °C)
50−>11−>16−>31−>51−>10−>17−>30−>0
60−>49−>14−>56−>24−>21−>6−>15−>8−>48−>53−>0(−13 °C)–(−8 °C)
70−>43−>9−>29−>4−>5−>34−>12−>58−>0
80−>26−>36−>42−>44−>27−>22−>35−>0
Table 8. Initial route without considering the carbon emission costs.
Table 8. Initial route without considering the carbon emission costs.
Vehicle Serial No.PathwayTemperature Control Interval
10−>38−>20−>3−>52−>46−>23−>0(1 °C)–(6 °C)
20−>2−>13−>37−>41−>57−>0
30−>39−>19−>47−>50−>60−>0
40−>32−>45−>28−>59−>54−>0
50−>7−>1−>25−>55−>30−>0(−5 °C)–(0 °C)
60−>11−>16−>31−>51−>10−>17−>0
70−>33−>40−>18−>0
80−>8−>15−>6−>21−>24−>56−>14−>12−>0(−13 °C)–(−8 °C)
90−>36−>43−>29−>9−>49−>4−>0
Table 9. Cost comparison of two distribution schemes.
Table 9. Cost comparison of two distribution schemes.
Distribution SchemeVNCECVLTrCTC
Considering the carbon emission costs85993183702535
Without considering the carbon emission costs96652374102821
Table 10. Dynamic event information.
Table 10. Dynamic event information.
No.Customer No.X/kmY/kmDynamic TimeDynamic EventTemperature Control Interval
16127−28:46New customer point demand 19 kg(1 °C)–(6 °C)
262−22−158:49New customer point demand 18 kg(−13 °C)–(−8 °C)
363−22−148:50New customer point demand 10 kg(−13 °C)–(−8 °C)
45018288:52Demand reduced by 10 kg(1 °C)–(6 °C)
528−33218:58Demand increased by 5 kg(1 °C)–(6 °C)
Table 11. Specific distribution routes after change under the two distribution schemes.
Table 11. Specific distribution routes after change under the two distribution schemes.
Distribution SchemeVehicle Serial No.PathwayTemperature Control Interval
Considering the carbon emission costs10−>28−>60−>59−>54−>0(1 °C)–(6 °C)
20−>3−>52−>32−>57−>20−>38−>0
30−>23−>50−>47−>39−>41−>37−>61−>46−>13−>2−>19−>0
60−>49−>14−>21−>6−>63−>24−>56−>0(−13 °C)–(−8 °C)
70−>43−>9−>29−>4−>0
80−>26−>36−>42−>44−>15−>8−>48−>62−>0
90−>35−>34−>22−>58−>12−>53−>27−>0
100−>5−>0
Without considering the carbon emission costs10−>38−>20−>3−>52−>46−>61−>0(1 °C)–(6 °C)
20−>2−>13−>37−>41−>57−>0
30−>39−>19−>47−>0
40−>32−>45−>28−>50−>23−>0
130−>60−>54−>59−>0
80−>8−>15−>6−>63−>21−>0(−13 °C)–(−8 °C)
90−>36−>43−>29−>44−>0
100−>34−>35−>26−>49−>4−>0
110−>22−>27−>48−>42−>53−>12−>0
120−>5−>58−>62−>24−>56−>14−>9−>0
Table 12. Cost comparison of two distribution schemes after dynamic events.
Table 12. Cost comparison of two distribution schemes after dynamic events.
Distribution SchemeVNCECVLTrCTC
Considering the carbon emission costs106673204122823
Without considering the carbon emission costs137122154402859
Table 13. The extent of cost changes before and after distribution program adjustments.
Table 13. The extent of cost changes before and after distribution program adjustments.
Distribution SchemeIncreased Number of VehiclesIncreased CECIncreased TrCIncreased TC
Considering the carbon emission costs26842288
Without considering the carbon emission costs1473038
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

Wu, D.; Yan, R.; Jin, H.; Cai, F. An Adaptive Nutcracker Optimization Approach for Distribution of Fresh Agricultural Products with Dynamic Demands. Agriculture 2023, 13, 1430. https://doi.org/10.3390/agriculture13071430

AMA Style

Wu D, Yan R, Jin H, Cai F. An Adaptive Nutcracker Optimization Approach for Distribution of Fresh Agricultural Products with Dynamic Demands. Agriculture. 2023; 13(7):1430. https://doi.org/10.3390/agriculture13071430

Chicago/Turabian Style

Wu, Daqing, Rong Yan, Hongtao Jin, and Fengmao Cai. 2023. "An Adaptive Nutcracker Optimization Approach for Distribution of Fresh Agricultural Products with Dynamic Demands" Agriculture 13, no. 7: 1430. https://doi.org/10.3390/agriculture13071430

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