# Customer-Oriented Vehicle Routing Problem with Environment Consideration: Two-Phase Optimization Approach and Heuristic Solution

Authors: Fanting Meng; Yong Ding; Wenjie Li; Rongge Guo
Journal: Mathematical Problems in Engineering
 (2019)

---

## Abstract

With the fastest consumer demand growth, the increasing customer’s demands trend to multivarieties and small-batch and the customer requires an efficient distribution planning. How to plan the vehicle route to meet customer satisfaction of mass distribution as well as reduce the fuel consumption and emission has become a hot topic. This paper proposes a two-phase optimization method to handle the vehicle routing problem, considering the customer demands and time windows coupled with multivehicles. The first phase of the optimization method provides a fuzzy hierarchical clustering method for customer grouping. The second phase formulates the optimization en-group vehicle routing problem model and a genetic algorithm to account for vehicle routing optimization within each group so that fuel consumption and emissions are minimized. Finally, we provide some numerical examples. Results show that the two-phase optimization method and the designed algorithm are efficient.


---

## Body

## 1. Introduction

The vehicle routing problem (VRP) is a well-known NP-hard problem which has introduced by Dantzig and Ramser [1]. Generally, the VRP is to generate sets of vehicle routes to reduce travel cost. It is worth noting that the VRP has important practical significance of social benefits and enterprisers benefits. Especially, with the development of the economic and electrical business, the logistic delivery acts as a key role. From the survey data, we can find out that the carbon emission of logistic accounts for 80% of total road transport. With the continuous development of commodity economy, it becomes important to process customer orders and deliver them via suitable freight vehicles. Furthermore, customers need to be quickly responded for good delivery, which also become a hot topic.Previous researches on VRP mostly take into account the economic factors, such as distance, cost, and time windows. And varieties of heuristic algorithm are designed to solve these problems [2, 3]. In recent years, how to reduce the energy consumption and carbon emissions has become a hot topic [4, 5]. Especially, with the rapid development of online shopping and express delivery, there is a sharply incasement of tail gas emissions from fuel logistics vehicles. Therefore, reducing the energy consumption and carbon emission has great significance for the ecological system. For logistics transportation enterprisers, the fuel consumption cost is one of the main operating costs, which is directly related to the carbon platoon, which will affect the operators’ profits and social benefits. Enterprises can reduce the cost of fuel consumption and greenhouse gas emission to achieve the goal of energy conservation and emission reduction. Therefore, how to optimize the routes of distribution vehicles and how to reduce energy consumption and carbon emission in the premise of meeting customers demand are the focus of research for logistics transportation enterprisers.However, with the continuous development of the commodity economy, customers have put forward higher requirements of service quality of logistics enterprises. So how to improve the quality of distribution service has become the focus of enterprises. In particular, customer demands tend to be diversified, which proposes higher requirements for delivery service and will lead to increased costs. Providing appropriate service for each customer can improve the satisfaction, gain customers recognition, and loyalty to the enterprisers as well as improving the market competitiveness of enterprise. Deliver the required quantity of goods by reasonable arrangement of distribution vehicle routes. That is the last ring of the logistics service and the last part of the customer orders, which will directly affect the customers' satisfaction. Inappropriate distribution services result in customers' terrible experience and maybe lead to loss of customers and even worse increase the hidden costs of the enterprises. So it is equally important to reduce transportation costs as well as improve the service quality. To achieve a win-win situation for the vehicle distribution path designing, an appropriate clustering method is proposed to divide the customers into reasonable groups. That can effectively improve the efficiency of the people on both sides of the enterprisers and customers.Therefore, this paper proposes a two-phase optimization method to design the vehicle delivery paths with comprehensive consideration of customer demand, energy conservation, and emission reduction. For the first phase, the fuzzy system clustering method (FSCM) is applied to reasonably group the customers according to the qualitative and quantitative indicators. The second phase is en-group path optimization; an en-group vehicle routing optimization model is established with the target of reducing energy consumption and emission reduction. To solve the problem, a genetic algorithm (GA) is designed. Based on the proposed method, we can improve the quality of distribution service, as well as reducing energy consumption and carbon emission in the distribution process.Our paper makes a number of contributions to the literature.( 1 ) We consider the customer requirements for vehicle routing problem. On this basis, a fuzzy hierarchical cluster method is designed, which can process quantitative and qualitative data. In order to guarantee the delivery quality, the customers can be clustered into different groups based on the order information. Then the problem can be converted into an en-group path optimization problem based on clustering results, so that can guarantee the delivery quality.( 2 ) Energy saving and emission reduction are also the targets of our study. To characterize the problem, we formulate the model under both deterministic and dynamic traffic conditions, separately. As we know, the energy consumption is affected by the different vehicle speed. So considering the variety of the vehicle speed is more meaning for the study of reduced energy consumption. On this basis, we design a GA to solve the problem and generate an approximate optimal vehicle routing which can gain better solution results.( 3 ) A two-phase model is proposed to meet the customer demands as well as reduce the fuel consumption. Contrasting to the common model, the two-phase model can improve the solving efficiency and more suitable to deal with customer requirements. The first phase model is a customer-oriented mathematics model which can process customer demands, and at this phase we group the customers into appropriate group, which can improve customers' satisfaction. The second phase model is an en-group VRP that aims to minimize the comprehensive costs including fuel and carbon costs and time penalty costs.The remainder of this paper consists of five sections. Section2 discusses previous related work and highlights the contributions of this paper. Section 3 provides the description of the proposed model. In Section 4, we provide the fuzzy hierarchical cluster method and en-group GA algorithm to solve the problem. We describe the design of experiments and numerical results in Section 5. Finally, we conclude our work and provide the propositions for further study in Section 6.


## 2. Literature Review

The VRP was proposed by Dantzig and Ramser and has been used to solve the optimal distribution route plan of trucks. As the question is raised, it has received wide attention from experts and scholars, especially in the field of operations research. Our work is closing to the multivehicles and green VRP, which considers fuel consumption and time windows. According to the research of different problems, various types of VRP are generated, and corresponding mathematical models are established [6, 7]. Brandao studied the Multitypes VRP and used a tabu search algorithm (TS to solve the problem, analyzed the influence of the vehicle type on the solution effect). To gain optimal results, types of algorithms were designed to solve the problems [8–10]. Specifically, Yazgi designed a greedy stochastic adaptive memory search algorithm to solve mixed fixed vehicle routing problems. Demir et al. [11] designed a large neighborhood search algorithm (VLSN) to solve the problem. In this literature, we review the existing research from three perspectives.In order to reduce the influence of the environment, in recent years, some researchers turn on to study the vehicle routing problems with consideration of fuel consumption (VRPFC). Bektas et al. [12] studied the carbon emissions from VRP issues in several articles, summed up the relevant calculation model for vehicle energy consumption, and gave the effective application scope of the model. Palmer [13] established an integrated vehicle routing model and proposed a measurement model to calculate the CO2 emission. Miguel [3] aimed to reduce carbon emissions and fuel consumption and defined these problems as emissions vehicle routing problem (EVRP). Demir et al. [14] proposed a biobjective model to formulate the pollution routing problem (PRP), with the objective of minimizing the fuel consumption as well as travel time. Kwon et al. [15] studied the problem of vehicle path optimization with consideration of fuel consumption and carbon emissions based on time-varying velocity. The authors used the time-insertion algorithm to solve the single path problem and designed a column generation algorithm based on tabu search algorithm to solve the multipath problem. Huang [4] studied the vehicle routing problem of energy conservation and emission reduction and proposed the concept of green vehicle routing problem. Qian et al. [16] established a heterogeneous vehicle routing model by considering the carbon emissions during the vehicle operation; a tabu search algorithm was designed to solve the problem. Most of the VRP were formulated as mixed interlinear models, and heuristic algorithms are designed to solve the problem. The existing studies use the emission model which include MEET and National Atmospheric Emission Inventory [5, 17].The vehicle routing problem with time windows was proposed by Avelsbergh [18] and widely studied by the researchers. Most of the studies focus on design better algorithms to solve the problem, such as GA, TS, etc. [8, 19, 20]. Specifically, Calvete [21] established a multiobjective optimization model for the vehicle routing problem (VRPSTW), which considered soft time windows and designed a goal planning method to solve the problem. Miguel [3] proposed an iterative route construction and improvement algorithm (IRCI) based on path generation algorithm to solve the VRPTW problem. Cihan et al. [2] proposed a time-dependent dual-target VRP. In the established model, it was assumed that the path selection will be influenced by the time windows.While many contributions have been made to the VRP with time windows and the green vehicle problem, to our knowledge, fewer studies have examined the customer demands. However, processing the customer orders and quick response to varieties of customer demands for delivering the goods via suitable freight vehicles appears to be a key element for efficient logistics service. In previous literature [22], it has been pointed out that customer-based order clustering as well as the vehicle routing strategies should be coordinated to solve the vehicle problem. With the development of the VRP, a lot of studies focus on mathematically formulating the corresponding problems. In our research, we first aim to reasonably group the customers based on the differences of customer demand. On this basis, we target to optimize the vehicles’ travel cost including fixed cost, energy consumption, carbon emission, and punishment for time windows. For simplicity, the problem in this study is called the customer-oriented vehicle routing problem considering energy conservation and emission reduction (C-VRPESER).In this research, we point out seven factors which will affect the customer satisfaction based on the studies [23], such as incorporating location analysis, service quality, service time, external similarity factor, etc. Furthermore, we establish the fuzzy similar matrix to cluster the customers with similar product demand. On the basis of the clustering results, we formulate the en-group optimization model and design a GA to solve the model. This study aims to make the following theoretical contribution to VRP which considers customer demand as well as energy conservation and emission reduction. Then the following two-phase optimization model is proposed to solve the C-VRPESER.


## 3. Problem Description and Model Formulation

In this paper, we consider a transportation network, that is represented by a directed complete graphM=(N,A). The vertex set N is composed by a depot 0 and a set of customers N0=N∖0={1,2,3,…n}. The number of homogeneous vehicles is a deterministic exogenous parameter and the set of vehicles is represented by K={1,2,3,…m}. The capacity of each vehicle is equal to Qe. Each vehicle k has the earliest departure time ek from the depot after unloaded and the latest arrival time lk at the depot after finishing the services of customers. In practically, we can get the customer i demand for goods from the previous order, denoted by φi1, and we also can get the other demand for different attributes φi2, φi3, φi4, φi5, φi6, and φi7. And to simplify the problem, we divide the seven attributes into two types, quantitative and qualitative. For the qualitative demand, we use triangle fuzzy number (α1,tp, α2,tp, and α3,tp) to present five demand levels (“very high", “high", “medium", “low", and “very low"), in which t presents the customer number and p. On the other hand, mathematical method is used to eliminate the dimensional and evaluate the similarity. On this basis, we cluster the customers into different groups, as shown in Figure 1. The customers can be clustered into three groups, which can be presented by different shapes, triangle, quadrilateral, and pentagon. And en-route goods delivery paths are designed according to the customers' location and time windows, which decide the delivery sequence. And then we connect each customer with a line with arrowheads. And in each group, the vehicle should start from the depot (the vehicle remained at the depot) and return to the depot after serving all the en-group customers.Figure 1
Illustration of the customer groups and distribution routes.The optimization goal of the problem is to minimize the total cost on the basis of customers' group that realizes the en-group distribution vehicle routing optimization. By reasonably scheduling different types of vehicles for each customer group, the utilization rate of vehicles can be improved. And it also can meet the restriction of vehicle load and time limit. The optimal objective includes the vehicle fixed costs, time penalty cost, fuel cost, and carbon emissions. On this way, we can realize minimizing the total cost considering energy conservation and emissions reduction and reducing the cost of comprehensive optimization.In the next sections, this paper focuses on formulating a two-phase model to solve the problem. The first model is generated to cluster the customers into groups and the second phase model aims to give out an optimal route en-group which can reduce the energy consumption and emission.


### 3.1. First Phase Model

The customers demand attributes consist of several indicators; part of them is quantitative indicators, such as time and location. Others are qualitative indexes, such as external and internal characteristics of commodity, customer satisfaction, etc. Through considering the related factors of distribution enterprisers service quality and customer satisfaction, we choose seven indicators as decision variables,(1) physical properties, (2) geographical position, (3) service quality, (4) product value, (5) type of goods, (6) security of goods, and (7) time windows. In order to quantify the decision variables, we define the seven decision variables in Table 1. And the above indicators can represent most of the customer’s demand attributes.Table 1
Definition of customer’s demand attributes.
Variables Variable definitions Variable explanation φ i 1 Physical properties Number of delivery of goods, weight, volume, this article take the quality as reference, the vehicle’s rated load determines the number of delivery vehicles.  φ i 2 Geographical position Customers’ location, customers with similar geography have larger possibility be divided into same group,so that realize the joint distribution.  φ i 3 Service quality Including reaction time, service attitude and service ability. Customer demands for service quality are different,and customers with similar service can be divided into same groups.  φ i 4 Product value Value of products, generally refers to the market value. The high value cargo can be separated from others, this article define the value of the market price of five levels.  φ i 5 Type of goods Types of goods and external similarity with other goods. If the external similarity is higher, that it convenient to load and unload the cargo which will improve the delivery efficient.  φ i 6 Security of goods This property is mainly denote the customer security requirements(e.g., fragile). Especially for the dangerous cargo,the safety is very important.  φ i 7 Pressed for time Present the customer request delivery time limit of time, the latest deadline, we can arrange the customer according to their time windows.However the decision variables should eliminate dimension before using. For modeling convenience, this paper uses the fuzzy clustering method to cluster the customers into appropriate groups, which have the similar demand attributes. Taking into considering the above seven decision variables, the qualitative indicators includeφi3, φi4, φi5, and φi6 and the other three variables are quantitative indicators.In order to calculate the qualitative data, the linguistic terms “very high", “high", “medium", “low", and “very low" are introduced to represent the qualitative decision variables. Specifically, language “very high" can be represented by triangular fuzzy number (0.75, 1, 1), which indicates that the customer’s demand of the service level is much higher than other customers. Similarly, the language “high", “medium", “low", and “very low" can be represented by (0.5, 0.75, 1), (0.25, 0.5, 0.75), (0, 0.25, 0.5), and (0,0,0.25). Based on the language description, we translate the linguistic variables into triangular fuzzy numbers, so that we can calculate the comprehensive similarity between the customers. The linguistic variables represent the correlation between this indicator and customer satisfaction. In this way, each customer’s demand indicators can be denoted by triangular fuzzy number (αi,1p, αi,2p, αi,3p), which can be denoted as follows:(1)φip=αi,1p,αi,2p,αi,3pWe can get the demand attributers from the orders, which will be pregiven by the customers. However, we should transfer the linguistic variables and the quantitative data as standardized data, so that we can use them to calculate the similarity. And the procedure is shown in below.(1) The Processing of Qualitative Decision Variables. In the first step we use the standard deviation transformation to process the qualitative data, which can guarantee the data availability. And for the second step, we introduce the range conversion to standardize the quantitative variables. The constraint (1) can be firstly transformed as follows:(2)φ~ip=α~i,1p,α~i,2p,α~i,,3p,i∈N0where(3)φ~ip=αi,tp-αi,tp¯Stp,i∈N0(4)αi,tp¯=∑i=1Nαi,tpN,t=1,2,3,i∈N0However the indicatorαi,tp¯ is the mean value, Stp is the standard deviation, and N is the total customer number. The value range of p={3,4,5,6}.(5)Stp=∑i=1Nαi,tp-αi,tp¯2N-11/2,t=1,2,3,i∈N0Then we can calculate the similarity of qualitative decision-making variables with Hemingway’s distance method, as follows:(6)Xi,jp=1-∑t=13α~i,tp-α~j,tp3,i,j∈N0X i , j p represents the qualitative correlation between the different customers, and the range of the value is during [0,1]. Xi,jp indicates relationship of attributors φ~ip(k) and φ~jp(k).(2) The Processing of Quantitative Decision Variables.Quantitative decision variables are determined values. However, the dimension of the index is different. In order to eliminate the dimension, the quantitative data are needed to be normalized and converted into standardized data. Then, the normalized variables are treated as a kind of special fuzzy number, which can be used to calculate the similarity of the corresponding quantitative decision variables between two customers.(7)φ~ip=φip-min1≤n≤N⁡φnpmax1≤n≤N⁡φnp-min1≤n≤N⁡φnp,forp∈2,7,i∈N0.φ i p and φnp are the actual value of the quantitative decision variables corresponding to customers i and customers n. N is the number of customers. On the basis of the standardization of the quantitative decision, the similarity can be calculated by (8)Xi,jp=1-φ~ip-φ~jpmax1≤n≤N⁡φ~np-min1≤n≤N⁡φ~np,forp∈2,7,i∈N0.Additionally,φi1 represents the weight of the goods; it can determine the number of customer groups. And it is used as the termination condition of the customer clustering algorithm in this article. So we do nothing for this variable.However, the comprehensive similarity for customers is not simply adding up the similarity for each decision variable. The variables present different influence for the delivery quality. In this paper, we consider the importance of each decision variable and use a mathematical method to calculate the weight coefficient for each parameter. A fuzzy mathematics method is introduced to determine the weight of each decision variable.(3) Weight Calculation of Decision Variables.After obtaining the order information, the managers (experts) of the distribution center are required to submit evaluation reports about the delivery service index. The evaluation value of the impact of each decision variable for the customers is also given out by the managers. The experts' evaluation language is generally described as the influence of decision variables on customer satisfaction. We divide the areas of influence into five evaluations, specifically, largest, large, medium, low, and lowest. To calculate the numerical value, the language evaluation is converted to triangular fuzzy numbers and shown in Table 2.Table 2
Membership function of evaluation linguistic variables.
Language terminology Triangular fuzzy number Judgment scale largest (0.75,1,1) 1 large (0.5,0.75,1) 0.75 medium (0.25,0.5,0.75) 0.5 small (0,0.25,0.5) 0.25 smallest (0,0,0.25) 0Based on the importance of the decision variables for customer satisfaction, the weight of the corresponding decision variables can be calculated. For convenience, we denote some key parameters as follows.W u , p ( u = 1,2 , … , r ,   p = 1,2 , … , m ) represents the evaluation of decision variables p for decision maker u, where r is the total number of decision makers and m is the number of decision variables. And it can be denoted by triangular fuzzy number Wu,p={au,p,bu,p,cu,p}. ωp is the weight value for decision p. Zi,p={Ai,p,Bi,p,Ci,p}(t=1,2,…,N,p=1,2,…,m), where N is the total number of the covering customers. Zi,p represents the comprehensive evaluation index of decision variables p by all decision makers for customer i.(9)Ai,p=1r⊗∑u=1rau,p(10)Bi,p=1r⊗∑u=1rbu,p(11)Ci,p=1r⊗∑u=1rcu,pThe comprehensive evaluation index of decision variablesp for customer i can be calculated as(12)Zi,p=1r⊗∑u=1rWu,pTo simplify, we define the comprehensive membership of decision variablep for customer i as follows:(13)pi=15Ai,p+2Bi,p+2Ci,pThe comprehensive evaluation value of a decision variablep denotes the average value of all customers, such as(14)ω~p=1N∑i=1Npi,forωp>0Considering that ωp should satisfy the constraint ∑p=1mωp=1, so we calculate ωp as follows:(15)ωp=ω~p∑p=1mω~p,p=1,2,…,mThen, the similarity between customeri and customer j can be denoted as follows:(16)Sij=∑p=1mωpXi,jp,i,j∈N0Finally, we get the comprehensive similarity between customers which can be represented by a similarity matrix just as follows:(17)F=SijN×N=1S12⋯S1NS21⋯S2N-1S2N⋮⋮⋱⋮SN1⋮SNN-11


### 3.2. Second Phase Model

For the second phase model, we should assign the appropriate route for the customer en-groups. In this part we consider the energy conservation and emission reduction and target to reduce the comprehensive costs. There, we use the comprehensive emission measurement model to calculate the energy consumption and carbon emission [24]. At first, we regard the travel speed as fixed variables and establish a conventional model. On this basis, we consider the speed as time variation variables and reform the model, which is consistent with the actual situation. To solve the problem, we design a genetic algorithm.To provide a precise statement of this problem, we define the parameters and indices shown in Table3.Table 3
Sets, indices, and parameters in the C-VRPESER.
Notations Detailed Definition N WhereN={0,1,2,⋯,n}, 0 represents the depot, N0=N∖0={1,2,⋯,n} is the set of the customers which should be delivered. A A = { ( i , j ) : i , j ∈ N } represents the arcs. TR Set of of customers in the same customer groupR. l Type of the vehicle. lk kth vehicle with l type. Qel Maximum capacity of each type vehicles i ∈ N 0 Number of customer. qi Demand of customersi. si Time of vehicle arrive at customeri. ai,bi Desired preferred time window for customeri to be serviced. ti Service time of customeri need. dij Distance between the customeri and j. vij Speed of the vehicle travel on the link(i,j). qijlk Load of the vehiclelk travel on the link (i,j). Q c l Light weight of thel type vehicle. c o Per unit cost of fuel. c e Per unit cost of carbon emissions (carbon tax). δc Fuel emission factor. cl Fixed costs of the vehicle used. ek Departure time of the vehicle k from the depot. lk Latest arrival time at the depot after services the customers. c1 Penalty coefficient for earliness arrival. c2 Penalty coefficient for delay delivery. Si Service time of customeri.For the en-group route optimization, we consider two decision variables as follows:(18)xijlk=1,ifthevehiclelktravelonthelinki,j0,otherwise(19)zilk=1,ifthecustomerineedtobeservicedbythekthvehiclefortypel0,otherwiseThe model can be formulated as follows:(20)min⁡uR=c1∑i∈TRmax⁡ai-si,0+c2∑i∈TRmaxsi-bi,0+∑i,j∈TRcoOF,ijQcl+qijlk,vij,dij+∑i,j∈TRceδcOF,ijQcl+qijlk,vij,dij+cls.t.(21)∑lk∈LK∑j∈TRx0jlk=1(22)∑lk∈LK∑j∈TRxj0lk=1(23)∑lk∈LK∑j∈TRxijlk=1,∀i∈TR(24)∑lk∈LK∑j∈TRxjhlk-∑lk∈LK∑j∈TRxhjlk=0,∀h∈TR(25)∑i∈TRqi∑lk∈LK∑j∈TRxijlk≤Qe(26)ai∑lk∈LK∑j∈TRxijlk≤silk≤bi∑lk∈LK∑j∈TRxijlk,∀i∈TR(27)xijlksilk+ti+dijvij≤silk(28)xijlk∈0,1(29)yilk≥0The objective function (20) is to minimize the total routing cost, including fixed cost, energy consumption cost, carbon emission cost, and punishment for time windows. Constraints (21) and (22) guarantee that all service vehicles start from the depot and finally return to the depot for once. Constraint (23) ensures each vehicle travels on the arc (vi,vj) no more than once. Constraint (24) is the flow balance and shows that the number of the vehicles which arrive at the customer is the same as those which depart. Constraint (25) ensures the loading customer demands no more than the vehicle capacity. Inequality (26) is the time window constraint. Constraint (27) represents the time limit for vehicle travel horizon. Constraint (28) is the binary variable constraint. Constraint (29) represents the nonnegative of time.


### 3.3. Model Reformulation

The above model is generated based on the assumption that the drive speed is invariable. However in reality the speed is influenced by a lot of elements. To make the model more practical, we assume that the speed is a ladder type change variable. This paper supposes the vehicles traveling speed as shown in Figure2. On this basis, we build the time-varying velocity distribution vehicle routing optimization model considering the velocity change.Figure 2
The speed trend diagram.The speed is assumed as a step function of time as Figure2. And during different time intervals, the vehicles' travel speed is different. To model convince, the running time is divided into I interval according different extents speed, which can be represented by T1, T2,..., TI. The mth time interval is indicated as [tm,tm+1]; in each time interval velocity is constant.The time of vehicles running on the path(i,j) is a function of the time lti that is the vehicles' departing time from the customer i. The speed of vehicles running on the path often crosses more than one speed range. It is assumed that the vehicle will cross p+1 time intervals. It is clear that the vehicle has p different speed. Assume the vehicle derived the customer i in the m time interval with the speed vijm(lti), then the vehicle speed turns vijm+1(lti) in the next time interval, and we denote the vehicle speed as vijm+p(lti) when the vehicle derives the link (i,j). And the distance for the link (i,j) is denoted by dijm+p(lti). And the total time tti for the vehicle drived across the link (i,j) can be represented by the time function lti as follows:(30)ttijlti=dijmvijmlti+dijm+1vijm+1lti+⋯+dijm+pvijm+pltiConsidering the variety of the vehicle traveling speed, we can represent the fuel consumption function as follows:(31)OF,ijQcl+qijlk,v¯ij,dij=∑q=1IOF,ijQcl+qij,vijm+q,dijm+qIf we assumed that thekth vehicle of the l kind begins the task at time ylk, the objective function can be denoted as follows:(32)min⁡uR=c1∑i∈TRmax⁡ai-si,0+c2∑i∈TRmax⁡si-bi,0+∑i,j∈TRcoOF,ijQcl+qijlk,v¯ij,dij+∑i,j∈TRceδcOF,ijQcl+qijlk,v¯ij,dij+clThe value ofv¯ij depends on the time interval. The time constraint is represented as follows:(33)xijlksilk+ti+ttijsilk+ti≤sjlkThe vehicle service time cannot be earlier than the start time of the distribution center, not later than the time of the delivery center.(34)t1≤ylk≤tI


## 3.1. First Phase Model

The customers demand attributes consist of several indicators; part of them is quantitative indicators, such as time and location. Others are qualitative indexes, such as external and internal characteristics of commodity, customer satisfaction, etc. Through considering the related factors of distribution enterprisers service quality and customer satisfaction, we choose seven indicators as decision variables,(1) physical properties, (2) geographical position, (3) service quality, (4) product value, (5) type of goods, (6) security of goods, and (7) time windows. In order to quantify the decision variables, we define the seven decision variables in Table 1. And the above indicators can represent most of the customer’s demand attributes.Table 1
Definition of customer’s demand attributes.
Variables Variable definitions Variable explanation φ i 1 Physical properties Number of delivery of goods, weight, volume, this article take the quality as reference, the vehicle’s rated load determines the number of delivery vehicles.  φ i 2 Geographical position Customers’ location, customers with similar geography have larger possibility be divided into same group,so that realize the joint distribution.  φ i 3 Service quality Including reaction time, service attitude and service ability. Customer demands for service quality are different,and customers with similar service can be divided into same groups.  φ i 4 Product value Value of products, generally refers to the market value. The high value cargo can be separated from others, this article define the value of the market price of five levels.  φ i 5 Type of goods Types of goods and external similarity with other goods. If the external similarity is higher, that it convenient to load and unload the cargo which will improve the delivery efficient.  φ i 6 Security of goods This property is mainly denote the customer security requirements(e.g., fragile). Especially for the dangerous cargo,the safety is very important.  φ i 7 Pressed for time Present the customer request delivery time limit of time, the latest deadline, we can arrange the customer according to their time windows.However the decision variables should eliminate dimension before using. For modeling convenience, this paper uses the fuzzy clustering method to cluster the customers into appropriate groups, which have the similar demand attributes. Taking into considering the above seven decision variables, the qualitative indicators includeφi3, φi4, φi5, and φi6 and the other three variables are quantitative indicators.In order to calculate the qualitative data, the linguistic terms “very high", “high", “medium", “low", and “very low" are introduced to represent the qualitative decision variables. Specifically, language “very high" can be represented by triangular fuzzy number (0.75, 1, 1), which indicates that the customer’s demand of the service level is much higher than other customers. Similarly, the language “high", “medium", “low", and “very low" can be represented by (0.5, 0.75, 1), (0.25, 0.5, 0.75), (0, 0.25, 0.5), and (0,0,0.25). Based on the language description, we translate the linguistic variables into triangular fuzzy numbers, so that we can calculate the comprehensive similarity between the customers. The linguistic variables represent the correlation between this indicator and customer satisfaction. In this way, each customer’s demand indicators can be denoted by triangular fuzzy number (αi,1p, αi,2p, αi,3p), which can be denoted as follows:(1)φip=αi,1p,αi,2p,αi,3pWe can get the demand attributers from the orders, which will be pregiven by the customers. However, we should transfer the linguistic variables and the quantitative data as standardized data, so that we can use them to calculate the similarity. And the procedure is shown in below.(1) The Processing of Qualitative Decision Variables. In the first step we use the standard deviation transformation to process the qualitative data, which can guarantee the data availability. And for the second step, we introduce the range conversion to standardize the quantitative variables. The constraint (1) can be firstly transformed as follows:(2)φ~ip=α~i,1p,α~i,2p,α~i,,3p,i∈N0where(3)φ~ip=αi,tp-αi,tp¯Stp,i∈N0(4)αi,tp¯=∑i=1Nαi,tpN,t=1,2,3,i∈N0However the indicatorαi,tp¯ is the mean value, Stp is the standard deviation, and N is the total customer number. The value range of p={3,4,5,6}.(5)Stp=∑i=1Nαi,tp-αi,tp¯2N-11/2,t=1,2,3,i∈N0Then we can calculate the similarity of qualitative decision-making variables with Hemingway’s distance method, as follows:(6)Xi,jp=1-∑t=13α~i,tp-α~j,tp3,i,j∈N0X i , j p represents the qualitative correlation between the different customers, and the range of the value is during [0,1]. Xi,jp indicates relationship of attributors φ~ip(k) and φ~jp(k).(2) The Processing of Quantitative Decision Variables.Quantitative decision variables are determined values. However, the dimension of the index is different. In order to eliminate the dimension, the quantitative data are needed to be normalized and converted into standardized data. Then, the normalized variables are treated as a kind of special fuzzy number, which can be used to calculate the similarity of the corresponding quantitative decision variables between two customers.(7)φ~ip=φip-min1≤n≤N⁡φnpmax1≤n≤N⁡φnp-min1≤n≤N⁡φnp,forp∈2,7,i∈N0.φ i p and φnp are the actual value of the quantitative decision variables corresponding to customers i and customers n. N is the number of customers. On the basis of the standardization of the quantitative decision, the similarity can be calculated by (8)Xi,jp=1-φ~ip-φ~jpmax1≤n≤N⁡φ~np-min1≤n≤N⁡φ~np,forp∈2,7,i∈N0.Additionally,φi1 represents the weight of the goods; it can determine the number of customer groups. And it is used as the termination condition of the customer clustering algorithm in this article. So we do nothing for this variable.However, the comprehensive similarity for customers is not simply adding up the similarity for each decision variable. The variables present different influence for the delivery quality. In this paper, we consider the importance of each decision variable and use a mathematical method to calculate the weight coefficient for each parameter. A fuzzy mathematics method is introduced to determine the weight of each decision variable.(3) Weight Calculation of Decision Variables.After obtaining the order information, the managers (experts) of the distribution center are required to submit evaluation reports about the delivery service index. The evaluation value of the impact of each decision variable for the customers is also given out by the managers. The experts' evaluation language is generally described as the influence of decision variables on customer satisfaction. We divide the areas of influence into five evaluations, specifically, largest, large, medium, low, and lowest. To calculate the numerical value, the language evaluation is converted to triangular fuzzy numbers and shown in Table 2.Table 2
Membership function of evaluation linguistic variables.
Language terminology Triangular fuzzy number Judgment scale largest (0.75,1,1) 1 large (0.5,0.75,1) 0.75 medium (0.25,0.5,0.75) 0.5 small (0,0.25,0.5) 0.25 smallest (0,0,0.25) 0Based on the importance of the decision variables for customer satisfaction, the weight of the corresponding decision variables can be calculated. For convenience, we denote some key parameters as follows.W u , p ( u = 1,2 , … , r ,   p = 1,2 , … , m ) represents the evaluation of decision variables p for decision maker u, where r is the total number of decision makers and m is the number of decision variables. And it can be denoted by triangular fuzzy number Wu,p={au,p,bu,p,cu,p}. ωp is the weight value for decision p. Zi,p={Ai,p,Bi,p,Ci,p}(t=1,2,…,N,p=1,2,…,m), where N is the total number of the covering customers. Zi,p represents the comprehensive evaluation index of decision variables p by all decision makers for customer i.(9)Ai,p=1r⊗∑u=1rau,p(10)Bi,p=1r⊗∑u=1rbu,p(11)Ci,p=1r⊗∑u=1rcu,pThe comprehensive evaluation index of decision variablesp for customer i can be calculated as(12)Zi,p=1r⊗∑u=1rWu,pTo simplify, we define the comprehensive membership of decision variablep for customer i as follows:(13)pi=15Ai,p+2Bi,p+2Ci,pThe comprehensive evaluation value of a decision variablep denotes the average value of all customers, such as(14)ω~p=1N∑i=1Npi,forωp>0Considering that ωp should satisfy the constraint ∑p=1mωp=1, so we calculate ωp as follows:(15)ωp=ω~p∑p=1mω~p,p=1,2,…,mThen, the similarity between customeri and customer j can be denoted as follows:(16)Sij=∑p=1mωpXi,jp,i,j∈N0Finally, we get the comprehensive similarity between customers which can be represented by a similarity matrix just as follows:(17)F=SijN×N=1S12⋯S1NS21⋯S2N-1S2N⋮⋮⋱⋮SN1⋮SNN-11


## 3.2. Second Phase Model

For the second phase model, we should assign the appropriate route for the customer en-groups. In this part we consider the energy conservation and emission reduction and target to reduce the comprehensive costs. There, we use the comprehensive emission measurement model to calculate the energy consumption and carbon emission [24]. At first, we regard the travel speed as fixed variables and establish a conventional model. On this basis, we consider the speed as time variation variables and reform the model, which is consistent with the actual situation. To solve the problem, we design a genetic algorithm.To provide a precise statement of this problem, we define the parameters and indices shown in Table3.Table 3
Sets, indices, and parameters in the C-VRPESER.
Notations Detailed Definition N WhereN={0,1,2,⋯,n}, 0 represents the depot, N0=N∖0={1,2,⋯,n} is the set of the customers which should be delivered. A A = { ( i , j ) : i , j ∈ N } represents the arcs. TR Set of of customers in the same customer groupR. l Type of the vehicle. lk kth vehicle with l type. Qel Maximum capacity of each type vehicles i ∈ N 0 Number of customer. qi Demand of customersi. si Time of vehicle arrive at customeri. ai,bi Desired preferred time window for customeri to be serviced. ti Service time of customeri need. dij Distance between the customeri and j. vij Speed of the vehicle travel on the link(i,j). qijlk Load of the vehiclelk travel on the link (i,j). Q c l Light weight of thel type vehicle. c o Per unit cost of fuel. c e Per unit cost of carbon emissions (carbon tax). δc Fuel emission factor. cl Fixed costs of the vehicle used. ek Departure time of the vehicle k from the depot. lk Latest arrival time at the depot after services the customers. c1 Penalty coefficient for earliness arrival. c2 Penalty coefficient for delay delivery. Si Service time of customeri.For the en-group route optimization, we consider two decision variables as follows:(18)xijlk=1,ifthevehiclelktravelonthelinki,j0,otherwise(19)zilk=1,ifthecustomerineedtobeservicedbythekthvehiclefortypel0,otherwiseThe model can be formulated as follows:(20)min⁡uR=c1∑i∈TRmax⁡ai-si,0+c2∑i∈TRmaxsi-bi,0+∑i,j∈TRcoOF,ijQcl+qijlk,vij,dij+∑i,j∈TRceδcOF,ijQcl+qijlk,vij,dij+cls.t.(21)∑lk∈LK∑j∈TRx0jlk=1(22)∑lk∈LK∑j∈TRxj0lk=1(23)∑lk∈LK∑j∈TRxijlk=1,∀i∈TR(24)∑lk∈LK∑j∈TRxjhlk-∑lk∈LK∑j∈TRxhjlk=0,∀h∈TR(25)∑i∈TRqi∑lk∈LK∑j∈TRxijlk≤Qe(26)ai∑lk∈LK∑j∈TRxijlk≤silk≤bi∑lk∈LK∑j∈TRxijlk,∀i∈TR(27)xijlksilk+ti+dijvij≤silk(28)xijlk∈0,1(29)yilk≥0The objective function (20) is to minimize the total routing cost, including fixed cost, energy consumption cost, carbon emission cost, and punishment for time windows. Constraints (21) and (22) guarantee that all service vehicles start from the depot and finally return to the depot for once. Constraint (23) ensures each vehicle travels on the arc (vi,vj) no more than once. Constraint (24) is the flow balance and shows that the number of the vehicles which arrive at the customer is the same as those which depart. Constraint (25) ensures the loading customer demands no more than the vehicle capacity. Inequality (26) is the time window constraint. Constraint (27) represents the time limit for vehicle travel horizon. Constraint (28) is the binary variable constraint. Constraint (29) represents the nonnegative of time.


## 3.3. Model Reformulation

The above model is generated based on the assumption that the drive speed is invariable. However in reality the speed is influenced by a lot of elements. To make the model more practical, we assume that the speed is a ladder type change variable. This paper supposes the vehicles traveling speed as shown in Figure2. On this basis, we build the time-varying velocity distribution vehicle routing optimization model considering the velocity change.Figure 2
The speed trend diagram.The speed is assumed as a step function of time as Figure2. And during different time intervals, the vehicles' travel speed is different. To model convince, the running time is divided into I interval according different extents speed, which can be represented by T1, T2,..., TI. The mth time interval is indicated as [tm,tm+1]; in each time interval velocity is constant.The time of vehicles running on the path(i,j) is a function of the time lti that is the vehicles' departing time from the customer i. The speed of vehicles running on the path often crosses more than one speed range. It is assumed that the vehicle will cross p+1 time intervals. It is clear that the vehicle has p different speed. Assume the vehicle derived the customer i in the m time interval with the speed vijm(lti), then the vehicle speed turns vijm+1(lti) in the next time interval, and we denote the vehicle speed as vijm+p(lti) when the vehicle derives the link (i,j). And the distance for the link (i,j) is denoted by dijm+p(lti). And the total time tti for the vehicle drived across the link (i,j) can be represented by the time function lti as follows:(30)ttijlti=dijmvijmlti+dijm+1vijm+1lti+⋯+dijm+pvijm+pltiConsidering the variety of the vehicle traveling speed, we can represent the fuel consumption function as follows:(31)OF,ijQcl+qijlk,v¯ij,dij=∑q=1IOF,ijQcl+qij,vijm+q,dijm+qIf we assumed that thekth vehicle of the l kind begins the task at time ylk, the objective function can be denoted as follows:(32)min⁡uR=c1∑i∈TRmax⁡ai-si,0+c2∑i∈TRmax⁡si-bi,0+∑i,j∈TRcoOF,ijQcl+qijlk,v¯ij,dij+∑i,j∈TRceδcOF,ijQcl+qijlk,v¯ij,dij+clThe value ofv¯ij depends on the time interval. The time constraint is represented as follows:(33)xijlksilk+ti+ttijsilk+ti≤sjlkThe vehicle service time cannot be earlier than the start time of the distribution center, not later than the time of the delivery center.(34)t1≤ylk≤tI


## 4. Algorithm

To present the customers-oriented vehicle routing problem with environment consideration, a two-phase model is formulated. We design two algorithms to solve the problem. First, we design a fuzzy system clustering algorithm to realize the customers grouping. That algorithm is mainly used to consider the customers demand attributes, including quantitative and qualitative attributes. The second phase model is an en-group VRP that need to design a heuristic algorithm to gain the en-group optimal delivery routes. Here, we compare the performance of several heuristic algorithms, as shown in Table4. In view of the robustness and global optimization of genetic algorithm, we design a genetic algorithm to solve the problem.Table 4
Heuristic algorithm performance comparison.
Algorithm Parameters Features Tabu search algorithm (TS) Tabu sizeNeighborhood structure Number of solutions Local optimumHigher solving efficiency  Ant colony algorithm (ACO) Initial pheromoneInformation increase Information accumulation Disappearance factor Inspiration factor Good parallelismGlobal optimization features Time-consuming  Simulated annealing algorithm (SA) Initial temperatureTemperature return function Mode of state generation Sampling principle Simple implementationFlexible application The algorithm converges slowly  Genetic algorithm (GA) Population numberSelection operator Crossover operator Mutation operator Strong global optimization abilityParallelism and strong robustness


### 4.1. Fuzzy System Clustering Algorithm

On the basis of the similarity matrix, we design a fuzzy system clustering algorithm to cluster the customer into different groups, which are often used to process the data with quantitative and qualitative data [22]. And the specific algorithm procedure is summarized as in Algorithm 1.Algorithm 1:Fuzzy system clustering algorithm.
1 Step  1 : Data initialization, input the fuzzy equivalent matrix F(k). Let iterations π=1. 2 Step  2 : Find out the largest elements in the matrix Fs(k)T, and chose the customer with the smaller number as the target customer and denote it withs. 3 Step  3 : Mark the selected target customer and delete the corresponding row Fs(k)T. Specifically, once a customer is chosen as the target customer, its column is marked byFs(k), mark the corresponding elements in row Fs(k)T as 0. 4 Step  4 : Find out the largest element of matrix Fs(k)T, denoted the similarity value as ωrs. 5 ( 1 ) If ωrs≤λ(pre-given threshold value), then go to Step5. Otherwise, calculate the total weight of the customers Q. 6 ( 2 ) Make judgement, if Q≥Qel, go to Step5. Otherwise, put customers s and r in same group, then delete the corresponding rowFr(k)T of matrix F(k), return to Step4. 7 Step  5: Set the customer clustering termination conditions; if the matrix is empty, then clustering process stops; else let π= π + 1 and got to Step 2.To obtain the cluster solutions, we apply the procedure in Figure3.Figure 3
The flowchart of the fuzzy hierarchical clustering.


### 4.2. En-Group Genetic Algorithm

The proposed model is a mixed-integer linear programming model. When the scale of the problem is expended, it is difficult to solve the problem with accurate algorithm. However, the GA is suitable to solve multivariables complex problem with multiple parameters. It is widely applied in solving VRP due to its extensive generality high efficiency and strong robustness. Therefore we deign GA to solve the problem. The key steps are designed as follows.Encoding. Natural number cod approach is used to characterize chromosomes. Chromosome genes' encoding is based on the results of the customer groups with discontinuous customer numbers. There, 0 expresses the distribution center, and customers are expressed by numbers 1, 2, 3, ⋯, N. Different groups are corresponding different chromosomal genes. The beginning and the end of the genes in the chromosome cod sequence must be "0", on behalf of the vehicle which departs from the distribution center and finally returns to the distribution center after completing the delivery tasks.Initial Solution. Construct initial population chromosome cod using MATLAB programming software under the premise of customer grouping. Specific we randomly give the initial solution as pop(i,2:n-1)=KHz(rand(numel(KHz))),pop(i,1)=0, and pop(i,n)=0, such as KHz(rand(numel(KHz)))=[0,1,4,5,9,12,18,0]. And generate the initial population as a matrix with the dimension popsize∗(n+2).Fitness Function. In this paper, the objective function value is used to measure the fitness value as follows:(35)fk=1-μk-min⁡μmax⁡μ-min⁡μSelection Operator. It is individual selection according to roulette wheel; if the fitness of an individual is denoted by fk, then the probability of being selected can be represented by the following:(36)pk=fk∑k=1KfkCrossover Operator. In order to improve the convergence speed of the algorithm, we chose adaptive crossover probability as follows:(37)Pc=p-k×fmax-ffmax-f¯f≥f¯potherwiseThe values of the parametersp are between the values 0.8~1, and the value of the parameter k is between the value of 0.2~0.4. In this paper, a partial matching crossover strategy is selected, which means that the genes of two crossing points are interchanged by “two points crossing", but the first “0" does not participate in the intersection, as described in Figure 4.Figure 4
The specific crossover operator.Mutation Operator. This paper uses the basic bit variation of random exchange, which means random exchange of the genes encoding of chromosomes to produce new chromosomes.Termination. In this paper, the termination criterion is considered as only if the maximum number of iterations is reached, end the algorithm and output the optimal solution.Based on the aforementioned analysis, the procedure of this heuristic algorithm is summarized By algorithm represented as follows.Step 1.
Obtain the customer group results and determine the customer number corresponding to the genetic code.Step 2.
Set the number of initial populationsn, adaptive crossover probability Pc, mutation probability Pm, and maximum number of iterations N.Step 3.
Randomly generate the initial solutionsX, and let iter m=1.Step 4.
By selecting, crossing, and mutating, generate new strategiesXm, calculate the objective, and let m=m+1.Step 5.
If the algorithm terminates the condition (e.g. reaches the set maximum iteration number), the algorithm is terminated, otherwise returned to Step4.To obtain the optimal solutions, we applied the procedure illustrated in Figure5.Figure 5
The specific flowchart of GA.


## 4.1. Fuzzy System Clustering Algorithm

On the basis of the similarity matrix, we design a fuzzy system clustering algorithm to cluster the customer into different groups, which are often used to process the data with quantitative and qualitative data [22]. And the specific algorithm procedure is summarized as in Algorithm 1.Algorithm 1:Fuzzy system clustering algorithm.
1 Step  1 : Data initialization, input the fuzzy equivalent matrix F(k). Let iterations π=1. 2 Step  2 : Find out the largest elements in the matrix Fs(k)T, and chose the customer with the smaller number as the target customer and denote it withs. 3 Step  3 : Mark the selected target customer and delete the corresponding row Fs(k)T. Specifically, once a customer is chosen as the target customer, its column is marked byFs(k), mark the corresponding elements in row Fs(k)T as 0. 4 Step  4 : Find out the largest element of matrix Fs(k)T, denoted the similarity value as ωrs. 5 ( 1 ) If ωrs≤λ(pre-given threshold value), then go to Step5. Otherwise, calculate the total weight of the customers Q. 6 ( 2 ) Make judgement, if Q≥Qel, go to Step5. Otherwise, put customers s and r in same group, then delete the corresponding rowFr(k)T of matrix F(k), return to Step4. 7 Step  5: Set the customer clustering termination conditions; if the matrix is empty, then clustering process stops; else let π= π + 1 and got to Step 2.To obtain the cluster solutions, we apply the procedure in Figure3.Figure 3
The flowchart of the fuzzy hierarchical clustering.


## 4.2. En-Group Genetic Algorithm

The proposed model is a mixed-integer linear programming model. When the scale of the problem is expended, it is difficult to solve the problem with accurate algorithm. However, the GA is suitable to solve multivariables complex problem with multiple parameters. It is widely applied in solving VRP due to its extensive generality high efficiency and strong robustness. Therefore we deign GA to solve the problem. The key steps are designed as follows.Encoding. Natural number cod approach is used to characterize chromosomes. Chromosome genes' encoding is based on the results of the customer groups with discontinuous customer numbers. There, 0 expresses the distribution center, and customers are expressed by numbers 1, 2, 3, ⋯, N. Different groups are corresponding different chromosomal genes. The beginning and the end of the genes in the chromosome cod sequence must be "0", on behalf of the vehicle which departs from the distribution center and finally returns to the distribution center after completing the delivery tasks.Initial Solution. Construct initial population chromosome cod using MATLAB programming software under the premise of customer grouping. Specific we randomly give the initial solution as pop(i,2:n-1)=KHz(rand(numel(KHz))),pop(i,1)=0, and pop(i,n)=0, such as KHz(rand(numel(KHz)))=[0,1,4,5,9,12,18,0]. And generate the initial population as a matrix with the dimension popsize∗(n+2).Fitness Function. In this paper, the objective function value is used to measure the fitness value as follows:(35)fk=1-μk-min⁡μmax⁡μ-min⁡μSelection Operator. It is individual selection according to roulette wheel; if the fitness of an individual is denoted by fk, then the probability of being selected can be represented by the following:(36)pk=fk∑k=1KfkCrossover Operator. In order to improve the convergence speed of the algorithm, we chose adaptive crossover probability as follows:(37)Pc=p-k×fmax-ffmax-f¯f≥f¯potherwiseThe values of the parametersp are between the values 0.8~1, and the value of the parameter k is between the value of 0.2~0.4. In this paper, a partial matching crossover strategy is selected, which means that the genes of two crossing points are interchanged by “two points crossing", but the first “0" does not participate in the intersection, as described in Figure 4.Figure 4
The specific crossover operator.Mutation Operator. This paper uses the basic bit variation of random exchange, which means random exchange of the genes encoding of chromosomes to produce new chromosomes.Termination. In this paper, the termination criterion is considered as only if the maximum number of iterations is reached, end the algorithm and output the optimal solution.Based on the aforementioned analysis, the procedure of this heuristic algorithm is summarized By algorithm represented as follows.Step 1.
Obtain the customer group results and determine the customer number corresponding to the genetic code.Step 2.
Set the number of initial populationsn, adaptive crossover probability Pc, mutation probability Pm, and maximum number of iterations N.Step 3.
Randomly generate the initial solutionsX, and let iter m=1.Step 4.
By selecting, crossing, and mutating, generate new strategiesXm, calculate the objective, and let m=m+1.Step 5.
If the algorithm terminates the condition (e.g. reaches the set maximum iteration number), the algorithm is terminated, otherwise returned to Step4.To obtain the optimal solutions, we applied the procedure illustrated in Figure5.Figure 5
The specific flowchart of GA.


## 5. Case Study

In this section, in order to verify the effectiveness of the proposed model and algorithms, we conducted experiments with real data. The proposed cluster algorithm and GA algorithm are coded in the MATLAB 2012a. All numerical tests are carried out on a Windows Server 2007 with Intel CPU 64 G RAM to improve the solving efficiency.


### 5.1. Experiment Description and Parameter Settings

The experimenting setting provides the experimental results and analysis which are shown below. As we know, the distribution center is equipped with several Dong Feng vehicles with the rated load for 2 tons and 3 tons and the parameters are shown in Table5. There are 24 customers that should be serviced whose demands can be known in advance, and the customers are supermarkets and the markets in the distribution area. The demand information and location of the customer are shown in Table 6. To calculate the cost, we assume that the driving speed of the vehicle is 40km/h for the fixed speed, and the distance between each customer and distribution center is calculated according to their coordinates. The fuel price is 5.55 Yuan/L, and the cost of carbon emission is 51.52 Yuan/T. The fixed cost of using a vehicle is estimated at 100 RMB per visit.Table 5
The parameters of the covered vehicles.
parameters 2T vehicle 3T vehicle Gross vehicle weightwz 2T 2.5T Vehicle emissionsVl 3.2 3.8 Type of fuelf diesel diesel Load capacitywe 2T 3T The front surface area of a vehicleSc 2.4m2 3m2Table 6
The demand information of the covered customers.
Number Demand Distance External similarity Product value Time window Quality of Service 1 0.5 (-10.3, 9.7) high medium [8:00, 9:00] high 2 0.2 (-4.4,-6.6) low low [10:00, 12:00] lowest 3 0.6 (-8.5, 6.3) medium high [12:00, 12:30] high 4 0.4 (2.7, 9.3) low medium [10:00, 11:00] medium 5 0.3 (-5.3, -4.5) lowest high [14:00, 14:30] low 6 0.1 (-0.6, 5.2) low low [8:00, 9:30] medium 7 0.5 (18.6, -13.2) high highest [11:00, 13:00] highest 8 0.3 (-11.9, 3.7) highest medium [15:00, 16:30] medium 9 0.1 (3.3, 7.8) medium low [14:00, 15:30] high 10 0.1 (-1.8, -11.1) medium medium [13:00, 15:00] medium 11 0.2 (8.6, 2.5) lowest lowest [14:00, 14:30] low 12 0.3 (-6.9, 1.6) medium high [14:00, 15:00] high 13 0.4 (7.8, -7) medium highest [9:00, 11:00] medium 14 0.2 (16.8, -18.4) low high [15:00, 16:00] high 15 0.1 (12.7, -1.8) high medium [11:00,11.30] highest 16 0.6 (14.3, -21.3) medium medium [8:00, 11:00] medium 17 0.2 (8.2, -15.8) low lowest [14:00, 17:00] lowest 18 0.3 (11.5, 10.4) high medium [13:00, 14:30] high 19 0.1 (1.1, -8.5) high highest [10:00, 15:00] high 20 0.4 (20.7, -22.7) medium low [11:00, 12.30] high 21 0.3 (6.4, -0.9) low medium [8:00, 9:30] low 22 0.2 (-7.3, 11.6) highest high [13:00, 14:30] medium 23 0.4 (-12.2, -2.4) medium low [10:00, 12:00] medium 24 0.5 (10.4, 21.7) high high [12:00, 13:00] highest


### 5.2. Customers Group

For simplicity, we choose five parameters as the main variables to cluster the customers into different groups, in which include geographical position, pressed for time, physical properties, product value, and service qualities. Furthermore, we use the customer demand, service time windows, and the latest delivery time as the input data to decide the service authorities and generate the delivery sequence. The corresponding fuzzy evaluation values of the five parameters are shown in Table7.Table 7
The qualitative data of triangle fuzzy evaluation.
Customer number Product external similarity Product value Service quality 1 (0.5, 0.75, 1) (0.25, 0.5, 0.75) (0.5,0.75,1) 2 (0, 0.25, 0.5) (0, 0.25, 0.5) (0, 0, 0.25) 3 (0.25, 0.5, 0.75) (0.5, 0.75, 1) (0.5, 0.75, 1) 4 (0, 0.25, 0.5) (0.25, 0.5, 0.75) (0.25, 0.5, 0.75) 5 (0, 0, 0.25) (0.5, 0.75, 1) (0, 0.25, 0.5) 6 (0, 0.25, 0.5) (0, 0.25, 0.5) (0.25, 0.5, 0.75) 7 (0.5, 0.75, 1) (0.75, 1, 1) (0.75, 1, 1) 8 (0.75,1,1) (0.25,0.5,0.75) (0,0.25,0.5) 9 (0.25, 0.5, 0.75) (0, 0.25, 0.5) (0.5, 0.75, 1) 10 (0.25,0.5,0.75) (0.25,0.5,0.75) (0.25,0.5,0.75) 11 (0, 0, 0.25) (0, 0, 0.25) (0, 0.25, 0.5) 12 (0.25, 0.5, 0.75) (0.5, 0.75, 1) (0.5,0.75,1) 13 (0.25, 0.5, 0.75) (0.75, 1, 1) (0.25, 0.5, 0.75) 14 (0.5, 0.75, 1) (0.5, 0.75, 1) (0.5, 0.75, 1) 15 (0.5, 0.75, 1) (0.25, 0.5, 0.75) (0.75, 1, 1) 16 (0.25,0.5,0.75) (0.25,0.5,0.75) (0.25,0.5,0.75) 17 (0, 0.25, 0.5) (0, 0, 0.25) (0, 0, 0.25) 18 (0.5,0.75,1) (0.25, 0.5, 0.75) (0.5,0.75,1) 19 (0.5, 0.75, 1) (0.75, 1, 1) (0.5,0.75,1) 20 (0.25, 0.5, 0.75) (0, 0.25, 0.5) (0.75, 1, 1) 21 (0, 0.25, 0.5) (0.25, 0.5, 0.75) (0, 0.25, 0.5) 22 (0.75, 1, 1) (0.5, 0.75, 1) (0, 0, 0.25) 23 (0.25, 0.5, 0.75) (0, 0.25, 0.5) (0.25,0.5,0.75) 24 (0.5, 0.75, 1) (0.5, 0.75, 1) (0.5, 0.75, 1)In this paper, different types of vehicles are used for distribution services, which will lead to the fact that group results are different, and thus different vehicle scheduling schemes are available, just as shown in Tables8 and 9. Take consideration of the two tables, we can point out that the vehicle capacity influences the cluster results. The overall utilization rates of the two programs are 91.25%. However, the two programs produce different vehicle fixed costs and different resources. In contrast to the two programs, taking into account the fixed costs of labor costs, we chose the first program as the actual cluster result, in which intragroup path can be obtained. And we use Figure 6 as the demonstration.Table 8
The clustering results of vehicle restrictions for 2 tons.
Cluster condition Group No. Customer No. Cargo volume (tons) Q e λ=2t Group 1 6,21,2,4,17,14,8,22 1.9 Group 2 7,24,15;,1,19,5 2.0 Group 3 9,12,10,3,13,23 1.9 Group 4 11,18,16,20 1.5Table 9
The clustering results of vehicle restrictions for 3 tons.
Cluster condition Group No. Customer No. Cargo volume (tons) Q e λ=3t Group 1 6,21,2,4,17,14,8,22,5,11 2.4 Group 2 7,24,15,1,19,18 2.0 Group 3 9,12,10,3,13,23,16,20 1.9Figure 6
The three-dimensional diagram of the customer grouping.


### 5.3. Delivery Vehicle Path Plan

Combining the customer grouping results in Section5.1, we use the designed genetic algorithm to solve the intragroup delivery vehicle routing model. Considering that the grouped customers only need one delivery vehicle to complete the delivery service, the en-group path solution was converted to the TSP problem. Set the initial population to 100, the mutation probability is 0.09, and the maximum number of iterations was set to 200. Finally, we get the approximate optimal delivery vehicle path plan with a short time consumption. The convergence of the algorithm is shown in Figure 7.Figure 7
The algorithm convergence diagram.Considering the energy cost, carbon emission cost, time penalty cost, and fixed cost in the transportation process as objective functions, the distribution vehicle route within the group is optimized. As a heuristic algorithm, the genetic algorithm is generally not an optimal solution but an approximately optimal solution. Therefore, it needs to execute the program multiple times to obtain a better approximately optimal solution. Finally we get the optimal solution shown in Table10. To show the specific vehicle routing, we give out the delivery path of group 1, as shown in Figure 8.Table 10
The optimization paths results with customer grouping.
Group No. The optimal path en-group Distance(Km) Cost Group 1 0 → 21 → 6 → 4 → 22 → 8 → 5 → 2 → 17 → 14 → 11 → 0 109.22 403.3 Group 2 0 → 1 → 19 → 7 → 15 → 24 → 18 → 0 104.56 329.96 Group 3 0 → 13 → 16 → 20 → 10 → 23 → 3 → 12 → 9 → 0 106.44 359.11Figure 8
The optimal path of group 1.


### 5.4. Group Optimization Effect Analysis

The proposed models consider the customer demand and group the customers on the basis of considering the diversity of customer needs. However, the traditional two-phase vehicle path optimization model is generally based on the customer’s geographical location and time window and does not fully consider the customer’s other demand attributes. Compared with other methods, the customer-oriented distribution vehicle routing model proposed in this paper has two advantages. For one hand, it can improve the efficiency of problem solving. For the other hand, customers with similar demands are divided into same groups, so that the distribution process can provide more targeted services. In order to prove the optimization effect of the grouping method, this paper solves the case by designing the genetic algorithm without grouping and compares the solution results with the calculation results under the grouping situation. In the case of without grouping, the optimal path of delivery vehicles is shown in Table11.Table 11
The optimization paths results with no grouping.
Group No. The optimal path en-group Distribution quality(tons) Path 1 0 → 3 → 1 → 22 → 6 → 9 → 4 → 18 → 11 → 21 → 0 2.7 Path 2 0 → 13 → 19 → 16 → 14 → 7 → 17 → 10 → 2 → 5 → 20 → 0 3 path 3 0 → 12 → 8 → 23 → 24 → 15 → 0 1.6(1) Improve Solution Efficiency.Without grouping, we should calculate the number of vehicles used in the task. In this paper, m=[∑φi1/Qe]+1 is a generally chosen and the number of vehicles is given out 3 of 3t Dongfeng vehicle. The genetic algorithm coding method adopts the natural number coding method and finally determine the chromosome of length 28 as (0,2,4,13,…0,7…,0,16,23,…0). The customers demand between two zeros on the chromosome cannot exceed the vehicle load. We can point out that the chromosome coding length is longer than en-group, which makes the cross-variation complexity, and easy to fall into the local optimum. However, the position of 0 needs to be adjusted after each iteration to ensure vehicle loading constraints. The complexity of the algorithm is high and the solution is difficult. Through the solution, it is found that the convergence effect of the algorithm is less than the en-group algorithm, and it is easy to fall into the local optimum. The calculation results are quite different; the solution time without grouping is about 537s; however the total solution time after grouping is about 300s. It easy to point out that the computational efficiency is improved by 79%.(2) Improve the Quality of Delivery Services.In order to measure the optimization effect of customer grouping on distribution service. We calculate the similarity standard deviation of customer demand attribute values within each group, which are regarded as the comprehensive satisfaction evaluation value of this group. The smaller the standard deviation, the greater the similarity of customer demand, which helps to arrange targeted delivery services and improve service quality. This paper takes the parameter service quality as an example to calculate the standard deviation of the evaluation value. Calculate the similarity standard deviation for two conditions and compare the results. The calculation result is shown in Figure 9.Figure 9
The comparison chart of customer group service quality variance.According to Figure9, it can be seen that the customer has a high similarity to the quality of service requirements on each of the distribution vehicle routes based on the customer grouping, and the variance is small. On the contrary, the solution without grouping has lower similarity in service quality requirements on each path.


### 5.5. Analysis of Optimization Effect of Energy Saving and Emission Reduction

The energy consumption and carbon emissions are affected by many factors; the main influencing factors are path length, vehicle load, and vehicle speed. Existing research mainly aims to reduce transportation costs by shortening the length of vehicle path. The optimization goal set in this paper is no longer simple considering the shortest path, but comprehensively considering reducing energy consumption and carbon emission costs and achieving comprehensive optimization goals based on energy conservation and emission reduction. In order to prove the validity of the model, the classic shortest path model is selected, and the optimization effects of the two types of models are analyzed through case comparison.The optimal path of each group is solved by the shortest path model and the minimum energy consumption and carbon emission model, respectively. The change of objective function causes the change of fitness function. On this basis, we obtain the optimal path for each evaluation mechanism. Furthermore, the corresponding path length, energy consumption, and carbon emission are calculated, respectively. To simplify, we denote the minimum energy consumption and carbon emission path model as ECCM, and the shortest path model is remarked as SPM. Calculate the two models separately and get their corresponding distribution vehicle path plan, as shown in Tables12 and 13.Table 12
The data results of the ECCM.
Group No. The optimal path en-group Distance(Km) Energy consumption(L) Carbon emission(Kg) Group 1 0 → 21 → 11 → 4 → 6 → 22 → 8 → 5 → 2 → 17 → 14 → 0 107.04 14.64 39.36  Group 2 0 → 1 → 24 → 18 → 13 → 7 → 19 → 0 101.21 12.53 34.21  Group 3 0 → 13 → 20 → 16 → 10 → 23 → 3 → 12 → 9 → 0 105.76 14.47 39.5Table 13
The data results of the SPM.
Group No. The optimal path en-group Distance(Km) Energy consumption(L) Carbon emission(Kg) Group 1 0 → 21 → 11 → 14 → 17 → 2 → 5 → 8 → 22 → 6 → 6 → 0 103.26 16.33 44.56 Group 2 0 → 1 → 24 → 18 → 13 → 7 → 19 → 0 101.21 12.53 34.21 Group 3 0 → 13 → 20 → 16 → 10 → 23 → 12 → 3 → 9 → 0 101.94 15.49 42.30It can be seen that, in the distribution vehicle path scheme calculated by the two models, only the optimal paths of the second group are the same; the other two groups are different. This shows that the shortest path of the delivery vehicle is not necessarily the optimal route of the delivery vehicle corresponding to the minimum energy consumption and carbon emissions. Taking the first group as an example, the demand of customer 4 is much larger than other customers. In order to reduce the overall cost, the vehicle will serve the customer 4 as early as possible if the path length does not change much. Finally, we get the total energy consumption of the vehicle distribution calculated by the optimization model ECCM which is 41.64L, and the carbon emission is 113.67kg. Compared with the optimization model SPM, the energy consumption and carbon emissions are reduced by 6.5%.


### 5.6. Sensitivity Analysis of Velocity Variations

The impact of speed changes on vehicle energy consumption and carbon emissions was studied by analyzing the impact of peak hours on road vehicle speeds. According to the investigation, the distribution area generally has traffic congestion from 8:00 to 9:00 am, 12:00 to 14:00, and 17:00 to 19:00; during these periods the speed of vehicle is lower. Assume that the speed of the vehicle varies in steps over one day, as shown in Table14.Table 14
The relational table of velocity and time.
Period [0:00,6:00] [6:00,9:00] [9:00,12:00] [12:00,14:00] [14:00,17:00] [17:00,19:00] [19:00,22:00] Speed(Km/h) 50 30 40 35 40 30 40The distribution activity starts at 8:00 am; taking the optimization of the delivery vehicle path of customer group 1 as an example, the optimal path is obtained, as shown in Figure10. And we also give out the contrast of the three groups' optimal path with and without speed variation, just as Table 15. Affected by the speed change, it may cause the variation of the delivery order. For example, the delivery path of the customer group 3 is changed. This is because the vehicle will try to choose the distribution vehicle path with the lowest total cost. If the vehicle travels according to the original route, the cost is 373.9 Yuan, which is higher than the new delivery vehicle path. In this example, the total cost of distribution considering time-varying speed is 1160.36 Yuan, which is 6.3% higher than the cost of 1091.71 Yuan by fixed speed, and the energy consumption is increased by 5.4%. This shows that the speed change has a certain impact on the distribution cost and fuel consumption, and it needs to be considered when designing the distribution line.Table 15
The data results of the SM.
Group No. The optimal path en-group Whether the path direction changes Total cost(Y) Carbon emission(Kg) Group 1 0 → 21 → 6 → 4 → 22 → 8 → 5 → 2 → 17 → 14 → 11 → 0 NO 445.84 15.89  Group 2 0 → 1 → 19 → 7 → 15 → 24 → 18 → 0 NO 343.52 13.04  Group 3 0 → 13 → 16 → 20 → 10 → 23 → 3 → 12 → 9 → 0 Change 371.00 14.95Figure 10
The optimization paths of time-varying speed problem.


## 5.1. Experiment Description and Parameter Settings

The experimenting setting provides the experimental results and analysis which are shown below. As we know, the distribution center is equipped with several Dong Feng vehicles with the rated load for 2 tons and 3 tons and the parameters are shown in Table5. There are 24 customers that should be serviced whose demands can be known in advance, and the customers are supermarkets and the markets in the distribution area. The demand information and location of the customer are shown in Table 6. To calculate the cost, we assume that the driving speed of the vehicle is 40km/h for the fixed speed, and the distance between each customer and distribution center is calculated according to their coordinates. The fuel price is 5.55 Yuan/L, and the cost of carbon emission is 51.52 Yuan/T. The fixed cost of using a vehicle is estimated at 100 RMB per visit.Table 5
The parameters of the covered vehicles.
parameters 2T vehicle 3T vehicle Gross vehicle weightwz 2T 2.5T Vehicle emissionsVl 3.2 3.8 Type of fuelf diesel diesel Load capacitywe 2T 3T The front surface area of a vehicleSc 2.4m2 3m2Table 6
The demand information of the covered customers.
Number Demand Distance External similarity Product value Time window Quality of Service 1 0.5 (-10.3, 9.7) high medium [8:00, 9:00] high 2 0.2 (-4.4,-6.6) low low [10:00, 12:00] lowest 3 0.6 (-8.5, 6.3) medium high [12:00, 12:30] high 4 0.4 (2.7, 9.3) low medium [10:00, 11:00] medium 5 0.3 (-5.3, -4.5) lowest high [14:00, 14:30] low 6 0.1 (-0.6, 5.2) low low [8:00, 9:30] medium 7 0.5 (18.6, -13.2) high highest [11:00, 13:00] highest 8 0.3 (-11.9, 3.7) highest medium [15:00, 16:30] medium 9 0.1 (3.3, 7.8) medium low [14:00, 15:30] high 10 0.1 (-1.8, -11.1) medium medium [13:00, 15:00] medium 11 0.2 (8.6, 2.5) lowest lowest [14:00, 14:30] low 12 0.3 (-6.9, 1.6) medium high [14:00, 15:00] high 13 0.4 (7.8, -7) medium highest [9:00, 11:00] medium 14 0.2 (16.8, -18.4) low high [15:00, 16:00] high 15 0.1 (12.7, -1.8) high medium [11:00,11.30] highest 16 0.6 (14.3, -21.3) medium medium [8:00, 11:00] medium 17 0.2 (8.2, -15.8) low lowest [14:00, 17:00] lowest 18 0.3 (11.5, 10.4) high medium [13:00, 14:30] high 19 0.1 (1.1, -8.5) high highest [10:00, 15:00] high 20 0.4 (20.7, -22.7) medium low [11:00, 12.30] high 21 0.3 (6.4, -0.9) low medium [8:00, 9:30] low 22 0.2 (-7.3, 11.6) highest high [13:00, 14:30] medium 23 0.4 (-12.2, -2.4) medium low [10:00, 12:00] medium 24 0.5 (10.4, 21.7) high high [12:00, 13:00] highest


## 5.2. Customers Group

For simplicity, we choose five parameters as the main variables to cluster the customers into different groups, in which include geographical position, pressed for time, physical properties, product value, and service qualities. Furthermore, we use the customer demand, service time windows, and the latest delivery time as the input data to decide the service authorities and generate the delivery sequence. The corresponding fuzzy evaluation values of the five parameters are shown in Table7.Table 7
The qualitative data of triangle fuzzy evaluation.
Customer number Product external similarity Product value Service quality 1 (0.5, 0.75, 1) (0.25, 0.5, 0.75) (0.5,0.75,1) 2 (0, 0.25, 0.5) (0, 0.25, 0.5) (0, 0, 0.25) 3 (0.25, 0.5, 0.75) (0.5, 0.75, 1) (0.5, 0.75, 1) 4 (0, 0.25, 0.5) (0.25, 0.5, 0.75) (0.25, 0.5, 0.75) 5 (0, 0, 0.25) (0.5, 0.75, 1) (0, 0.25, 0.5) 6 (0, 0.25, 0.5) (0, 0.25, 0.5) (0.25, 0.5, 0.75) 7 (0.5, 0.75, 1) (0.75, 1, 1) (0.75, 1, 1) 8 (0.75,1,1) (0.25,0.5,0.75) (0,0.25,0.5) 9 (0.25, 0.5, 0.75) (0, 0.25, 0.5) (0.5, 0.75, 1) 10 (0.25,0.5,0.75) (0.25,0.5,0.75) (0.25,0.5,0.75) 11 (0, 0, 0.25) (0, 0, 0.25) (0, 0.25, 0.5) 12 (0.25, 0.5, 0.75) (0.5, 0.75, 1) (0.5,0.75,1) 13 (0.25, 0.5, 0.75) (0.75, 1, 1) (0.25, 0.5, 0.75) 14 (0.5, 0.75, 1) (0.5, 0.75, 1) (0.5, 0.75, 1) 15 (0.5, 0.75, 1) (0.25, 0.5, 0.75) (0.75, 1, 1) 16 (0.25,0.5,0.75) (0.25,0.5,0.75) (0.25,0.5,0.75) 17 (0, 0.25, 0.5) (0, 0, 0.25) (0, 0, 0.25) 18 (0.5,0.75,1) (0.25, 0.5, 0.75) (0.5,0.75,1) 19 (0.5, 0.75, 1) (0.75, 1, 1) (0.5,0.75,1) 20 (0.25, 0.5, 0.75) (0, 0.25, 0.5) (0.75, 1, 1) 21 (0, 0.25, 0.5) (0.25, 0.5, 0.75) (0, 0.25, 0.5) 22 (0.75, 1, 1) (0.5, 0.75, 1) (0, 0, 0.25) 23 (0.25, 0.5, 0.75) (0, 0.25, 0.5) (0.25,0.5,0.75) 24 (0.5, 0.75, 1) (0.5, 0.75, 1) (0.5, 0.75, 1)In this paper, different types of vehicles are used for distribution services, which will lead to the fact that group results are different, and thus different vehicle scheduling schemes are available, just as shown in Tables8 and 9. Take consideration of the two tables, we can point out that the vehicle capacity influences the cluster results. The overall utilization rates of the two programs are 91.25%. However, the two programs produce different vehicle fixed costs and different resources. In contrast to the two programs, taking into account the fixed costs of labor costs, we chose the first program as the actual cluster result, in which intragroup path can be obtained. And we use Figure 6 as the demonstration.Table 8
The clustering results of vehicle restrictions for 2 tons.
Cluster condition Group No. Customer No. Cargo volume (tons) Q e λ=2t Group 1 6,21,2,4,17,14,8,22 1.9 Group 2 7,24,15;,1,19,5 2.0 Group 3 9,12,10,3,13,23 1.9 Group 4 11,18,16,20 1.5Table 9
The clustering results of vehicle restrictions for 3 tons.
Cluster condition Group No. Customer No. Cargo volume (tons) Q e λ=3t Group 1 6,21,2,4,17,14,8,22,5,11 2.4 Group 2 7,24,15,1,19,18 2.0 Group 3 9,12,10,3,13,23,16,20 1.9Figure 6
The three-dimensional diagram of the customer grouping.


## 5.3. Delivery Vehicle Path Plan

Combining the customer grouping results in Section5.1, we use the designed genetic algorithm to solve the intragroup delivery vehicle routing model. Considering that the grouped customers only need one delivery vehicle to complete the delivery service, the en-group path solution was converted to the TSP problem. Set the initial population to 100, the mutation probability is 0.09, and the maximum number of iterations was set to 200. Finally, we get the approximate optimal delivery vehicle path plan with a short time consumption. The convergence of the algorithm is shown in Figure 7.Figure 7
The algorithm convergence diagram.Considering the energy cost, carbon emission cost, time penalty cost, and fixed cost in the transportation process as objective functions, the distribution vehicle route within the group is optimized. As a heuristic algorithm, the genetic algorithm is generally not an optimal solution but an approximately optimal solution. Therefore, it needs to execute the program multiple times to obtain a better approximately optimal solution. Finally we get the optimal solution shown in Table10. To show the specific vehicle routing, we give out the delivery path of group 1, as shown in Figure 8.Table 10
The optimization paths results with customer grouping.
Group No. The optimal path en-group Distance(Km) Cost Group 1 0 → 21 → 6 → 4 → 22 → 8 → 5 → 2 → 17 → 14 → 11 → 0 109.22 403.3 Group 2 0 → 1 → 19 → 7 → 15 → 24 → 18 → 0 104.56 329.96 Group 3 0 → 13 → 16 → 20 → 10 → 23 → 3 → 12 → 9 → 0 106.44 359.11Figure 8
The optimal path of group 1.


## 5.4. Group Optimization Effect Analysis

The proposed models consider the customer demand and group the customers on the basis of considering the diversity of customer needs. However, the traditional two-phase vehicle path optimization model is generally based on the customer’s geographical location and time window and does not fully consider the customer’s other demand attributes. Compared with other methods, the customer-oriented distribution vehicle routing model proposed in this paper has two advantages. For one hand, it can improve the efficiency of problem solving. For the other hand, customers with similar demands are divided into same groups, so that the distribution process can provide more targeted services. In order to prove the optimization effect of the grouping method, this paper solves the case by designing the genetic algorithm without grouping and compares the solution results with the calculation results under the grouping situation. In the case of without grouping, the optimal path of delivery vehicles is shown in Table11.Table 11
The optimization paths results with no grouping.
Group No. The optimal path en-group Distribution quality(tons) Path 1 0 → 3 → 1 → 22 → 6 → 9 → 4 → 18 → 11 → 21 → 0 2.7 Path 2 0 → 13 → 19 → 16 → 14 → 7 → 17 → 10 → 2 → 5 → 20 → 0 3 path 3 0 → 12 → 8 → 23 → 24 → 15 → 0 1.6(1) Improve Solution Efficiency.Without grouping, we should calculate the number of vehicles used in the task. In this paper, m=[∑φi1/Qe]+1 is a generally chosen and the number of vehicles is given out 3 of 3t Dongfeng vehicle. The genetic algorithm coding method adopts the natural number coding method and finally determine the chromosome of length 28 as (0,2,4,13,…0,7…,0,16,23,…0). The customers demand between two zeros on the chromosome cannot exceed the vehicle load. We can point out that the chromosome coding length is longer than en-group, which makes the cross-variation complexity, and easy to fall into the local optimum. However, the position of 0 needs to be adjusted after each iteration to ensure vehicle loading constraints. The complexity of the algorithm is high and the solution is difficult. Through the solution, it is found that the convergence effect of the algorithm is less than the en-group algorithm, and it is easy to fall into the local optimum. The calculation results are quite different; the solution time without grouping is about 537s; however the total solution time after grouping is about 300s. It easy to point out that the computational efficiency is improved by 79%.(2) Improve the Quality of Delivery Services.In order to measure the optimization effect of customer grouping on distribution service. We calculate the similarity standard deviation of customer demand attribute values within each group, which are regarded as the comprehensive satisfaction evaluation value of this group. The smaller the standard deviation, the greater the similarity of customer demand, which helps to arrange targeted delivery services and improve service quality. This paper takes the parameter service quality as an example to calculate the standard deviation of the evaluation value. Calculate the similarity standard deviation for two conditions and compare the results. The calculation result is shown in Figure 9.Figure 9
The comparison chart of customer group service quality variance.According to Figure9, it can be seen that the customer has a high similarity to the quality of service requirements on each of the distribution vehicle routes based on the customer grouping, and the variance is small. On the contrary, the solution without grouping has lower similarity in service quality requirements on each path.


## 5.5. Analysis of Optimization Effect of Energy Saving and Emission Reduction

The energy consumption and carbon emissions are affected by many factors; the main influencing factors are path length, vehicle load, and vehicle speed. Existing research mainly aims to reduce transportation costs by shortening the length of vehicle path. The optimization goal set in this paper is no longer simple considering the shortest path, but comprehensively considering reducing energy consumption and carbon emission costs and achieving comprehensive optimization goals based on energy conservation and emission reduction. In order to prove the validity of the model, the classic shortest path model is selected, and the optimization effects of the two types of models are analyzed through case comparison.The optimal path of each group is solved by the shortest path model and the minimum energy consumption and carbon emission model, respectively. The change of objective function causes the change of fitness function. On this basis, we obtain the optimal path for each evaluation mechanism. Furthermore, the corresponding path length, energy consumption, and carbon emission are calculated, respectively. To simplify, we denote the minimum energy consumption and carbon emission path model as ECCM, and the shortest path model is remarked as SPM. Calculate the two models separately and get their corresponding distribution vehicle path plan, as shown in Tables12 and 13.Table 12
The data results of the ECCM.
Group No. The optimal path en-group Distance(Km) Energy consumption(L) Carbon emission(Kg) Group 1 0 → 21 → 11 → 4 → 6 → 22 → 8 → 5 → 2 → 17 → 14 → 0 107.04 14.64 39.36  Group 2 0 → 1 → 24 → 18 → 13 → 7 → 19 → 0 101.21 12.53 34.21  Group 3 0 → 13 → 20 → 16 → 10 → 23 → 3 → 12 → 9 → 0 105.76 14.47 39.5Table 13
The data results of the SPM.
Group No. The optimal path en-group Distance(Km) Energy consumption(L) Carbon emission(Kg) Group 1 0 → 21 → 11 → 14 → 17 → 2 → 5 → 8 → 22 → 6 → 6 → 0 103.26 16.33 44.56 Group 2 0 → 1 → 24 → 18 → 13 → 7 → 19 → 0 101.21 12.53 34.21 Group 3 0 → 13 → 20 → 16 → 10 → 23 → 12 → 3 → 9 → 0 101.94 15.49 42.30It can be seen that, in the distribution vehicle path scheme calculated by the two models, only the optimal paths of the second group are the same; the other two groups are different. This shows that the shortest path of the delivery vehicle is not necessarily the optimal route of the delivery vehicle corresponding to the minimum energy consumption and carbon emissions. Taking the first group as an example, the demand of customer 4 is much larger than other customers. In order to reduce the overall cost, the vehicle will serve the customer 4 as early as possible if the path length does not change much. Finally, we get the total energy consumption of the vehicle distribution calculated by the optimization model ECCM which is 41.64L, and the carbon emission is 113.67kg. Compared with the optimization model SPM, the energy consumption and carbon emissions are reduced by 6.5%.


## 5.6. Sensitivity Analysis of Velocity Variations

The impact of speed changes on vehicle energy consumption and carbon emissions was studied by analyzing the impact of peak hours on road vehicle speeds. According to the investigation, the distribution area generally has traffic congestion from 8:00 to 9:00 am, 12:00 to 14:00, and 17:00 to 19:00; during these periods the speed of vehicle is lower. Assume that the speed of the vehicle varies in steps over one day, as shown in Table14.Table 14
The relational table of velocity and time.
Period [0:00,6:00] [6:00,9:00] [9:00,12:00] [12:00,14:00] [14:00,17:00] [17:00,19:00] [19:00,22:00] Speed(Km/h) 50 30 40 35 40 30 40The distribution activity starts at 8:00 am; taking the optimization of the delivery vehicle path of customer group 1 as an example, the optimal path is obtained, as shown in Figure10. And we also give out the contrast of the three groups' optimal path with and without speed variation, just as Table 15. Affected by the speed change, it may cause the variation of the delivery order. For example, the delivery path of the customer group 3 is changed. This is because the vehicle will try to choose the distribution vehicle path with the lowest total cost. If the vehicle travels according to the original route, the cost is 373.9 Yuan, which is higher than the new delivery vehicle path. In this example, the total cost of distribution considering time-varying speed is 1160.36 Yuan, which is 6.3% higher than the cost of 1091.71 Yuan by fixed speed, and the energy consumption is increased by 5.4%. This shows that the speed change has a certain impact on the distribution cost and fuel consumption, and it needs to be considered when designing the distribution line.Table 15
The data results of the SM.
Group No. The optimal path en-group Whether the path direction changes Total cost(Y) Carbon emission(Kg) Group 1 0 → 21 → 6 → 4 → 22 → 8 → 5 → 2 → 17 → 14 → 11 → 0 NO 445.84 15.89  Group 2 0 → 1 → 19 → 7 → 15 → 24 → 18 → 0 NO 343.52 13.04  Group 3 0 → 13 → 16 → 20 → 10 → 23 → 3 → 12 → 9 → 0 Change 371.00 14.95Figure 10
The optimization paths of time-varying speed problem.


## 6. Conclusion and Further Study

The fastest consumer demand growth requires an efficient distribution planning. Nowadays, special attention is given to routes in which fuel consumption and emissions can be reduced. The manuscript proposes a two-phase approach to handle vehicle routing problem with time windows and multivehicles coupled with environmental concerns and customer demand. First phase is concerned to establish costumer clusters and second phase is devoted to formulate the en-group mathematical formulation of the problem and develop a genetic algorithm to account for vehicle routing optimization within each group so that fuel consumption and emissions are minimized. The comprehensive emission measurement model from Barth and Scora (2004) is used to calculate the energy consumption and carbon emission. The algorithm accounts for similarity between customers which is represented in a fuzzy similarity matrix; on this basis, the customers can be cluster in appropriate groups. Considering the energy, carbon emission, time penalty, and fixed costs in the transport process incorporated in the objective function, the distribution vehicle route en-group is optimized. Numerical results are presented for real data from Shandong province. Sensitivity analysis of velocity variations is also presented, which verified that the proposed two-phase approach could improve the service quality and reduce the fuel consumption and carbon emission.Further studies can focus on the following aspects.(1) Electric logistics vehicles are not considered in this paper, which will be meaningful for the green vehicle routing problem. The electric vehicle is a critical topic for further study. (2) This study designs a GA algorithm to generate the near-optimal solution; in the future, designing more effective algorithms for larger scale case will be a direction.



---

*Source: 1073609-2019-03-26.xml*