Application of Improved Artificial Bee Colony Algorithm in Urban Vegetable Distribution Route Optimization

According to the characteristics and requirements of urban vegetable logistics and distribution, the optimization model is established to achieve the minimum distribution cost of distribution center. The algorithm of artificial bee colony is improved, and the algorithm based on MATLAB software is designed to solve the model successfully. At the same time, combined with the actual case, the two algorithms are compared to verify the effectiveness of the improved artificial bee colony algorithm in the optimization of urban vegetable distribution path.


Introduction
City vegetable logistics is engaged in transportation, warehousing and other series of vegetable logistics activities within the city limits, it is one of the logistics, business flow and information flow, according to different customers on the delivery time and quantity of vegetables and other requirements, to provide personalized service for customers and distribution [1].As the characteristics of the city itself, making the city vegetable logistics and distribution with a wide range of customers, the number of customer points, customer points between the distribution distance is relatively close to the characteristics of urban vegetable logistics and distribution generally use the car for distribution, not only because the special truck has the advantages of strong maneuverability, flexible response [2], and these advantages can also meet the customer a small number of goods, the number of purchases, delivery to the door of the consumer characteristics.In addition, the urban vegetable logistics and distribution of urban residents have a great impact on daily life.It is necessary to construct a reasonable urban vegetable logistics and distribution system not only to meet the requirements of timeliness, convenience, distribution environment and high distribution efficiency, but also should meet the characteristics of urban customers, distribution flow and other characteristics [3].
Urban vegetable logistics distribution vehicle routing problem can be described as: there are a number of customers need the distribution center to deliver a certain amount of goods, the specific location of each customer point is known.The distribution center with the delivery task has the same type of distribution vehicle, and the quantity meets the demand, all the delivery vehicles have the same carrying capacity of [4].The vehicles that carry the goods depart from the distribution center, along the planned route, the goods to the customer on the route of the hands of the final return to the distribution center.There are certain conditions in the distribution process constraints, each customer can only be a distribution vehicle responsible for the distribution of the task, the time of delivery of the goods within the time required by the customer, otherwise given the appropriate delivery vehicle must be punished [5] [6].In this paper, the establishment of the model first considers the requirements of the customer point to the delivery time, and then considers the optimization model with the total cost as the goal, which is based on the load and distance constraints of the vehicle.Using the improved artificial bee colony algorithm, using MATLAB software programming solution, combined with the case, to verify the feasibility and effectiveness of improving the artificial bee colony algorithm.

Assumptions
As a result of the actual distribution, we will encounter a variety of practical problems, from a different point of view, to solve the problem achieved by the target results are not the same, in order to study and establish the issue of urban vegetable distribution mathematical model [7].Here make the following assumptions: 1) The starting point of each delivery vehicle for the distribution center, and ultimately return to the distribution center.2) The total delivery amount of each distribution route is less than the maximum load of the vehicle.
3) The distance traveled by each delivery vehicle shall not exceed its distance.4) Each customer can only be completed by a car distribution, the cost of each vehicle start and travel unit distance is known.

Model Establishment
In order to facilitate the description of the constructed model, the following symbols are defined:  : a set of vehicles that can be used by the distribution center; (c) Q : the maximum load of a vehicle, in which the vehicle is the same type of vehicle; (d) i q : the customer needs, that is, distribution center should be provided for the customer point of delivery, 1, 2, , i n =  ; (e) D : the maximum distance of the vehicle is the same type of vehicle, so the maximum distance is the same; (f) ij d : the distance from the point i to the point j, , 0,1, 2, , C is the fixed cost of the vehicle, the starting cost required for each ve- hicle to be delivered, 1 C is the distance traveled by the vehicle, the cost per unit length of time per vehicle; (m) i t : the time at which the vehicle serves the customer, 0,1, 2, , i n =  ; (p) ik S : the time period during which the vehicle provides services to the customer, ike S and ikl S are the starting and ending time of vehicles serving customers respectively, 0,1, 2, , ET LT : the customer service time window start and end time, during this time to provide delivery services is the highest customer satisfaction, P S : the penalty cost caused by the service of the customer, that is, the punitive cost caused by the failure to provide service at the time of customer satisfaction.
(w) ijk x : whether or not the vehicle provides service from the customer to the customer, , (q) ik y : whether the vehicle provides the customer with the delivery, The decision variables for the problem are as follows: In this question, the penalty coefficient is introduced and the opportunity cost is expressed as the unit weight per unit time.When the distribution vehicle fails to provide service in the customer satisfaction period, it will be punished in certain proportion.When the actual delivery time is earlier than the service time window, the penalty coefficient is α, when the actual delivery time is later than the service time window, the penalty coefficient is β. ( ) When the cost of cargo damage is calculated, it is assumed that the damage rate of the vegetables is related to the time of the vegetables in the prescribed low-temperature transportation environment, and the deterioration rate of the vegetables is constant and the deterioration rate of the vegetables is constant and the metamorphic function [8] as follows: Among them, i Q the product is the quality of the goods in good condition, t is the product experience the logistics time, δ is the product of the sensitiv- ity coefficient of time, C for the product at a constant temperature deterioration of a constant speed change.In the metamorphic function, the product is more sensitive to time, the δ value is relatively small, on the contrary, the val- ue is larger.
The cost of the entire distribution process is: ( ) p is the unit of the value of the loss of vegetable products.
The VRPSTW studied in this paper will be time cost, with the lowest total cost as the optimization target.The objective function is shown in (2-4).

( ) (
) The constraints are: The description of the constraint is as follows: Equation (2-5) indicates that the total demand for all customers per vehicle service does not exceed the capacity limit of the vehicle.(2-6) (2-8) means that each customer point can only be delivered by one car.Type (2-7) means that each vehicle from the distribution center.(2-9) means that each car finally returns to the distribution center.(2-10) means that each car if the arrival point must be service.(2)(3)(4)(5)(6)(7)(8)(9)(10)(11) means that if the vehicle is customer service, the vehicle will leave the point after the task is completed.Equation (2-12) indicates that the total travel distance of each vehicle must not exceed its travel distance limit.(2-15) and (2-16) show the time relationship in which the vehicle arrives at two customers in their distribution route.Equation (2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16)(17) indicates the relationship between the starting and ending time of the vehicle for customer service.(2-18) means that if the vehicle does not provide delivery to the customer, the vehicle will not reach the customer.Equation (2-19) represents the time limit for the start and end of the service time for the customer service.Equation (2-20) indicates that the departure time of the vehicle from the distribution center is zero.

Improved Artificial Bee Colony Algorithm
Human beings based on the nature of bees to collect honey activities, summed up the artificial anthropocentric algorithm theory and to describe.The take bee (the lead bee) to go out looking for honey, and then by jumping dancing and another worker bees in the form of probability to share the source of food information, follow the bee and reconnaissance bee first wait, until the bees bring back the food source information, then choose to follow the honey or find the food near the source to find nectar.From the above description can be learned to adopt bees, follow the bee and reconnaissance bee be able to achieve the identity of the conversion.

Parameter Initialization
According to the constructed path optimization model, the number of customers to remove the distribution center is n − 1.The number of vehicles participating in the distribution center is defined by m, and Q is the number of vehicles in each distribution vehicle.In the actual urban vegetable distribution vehicle routing problem, q i represents customer demand.The expression formula for setting N before the initialization phase is as follows:

Evaluation Method of Profitability
Based on the optimization model of the urban vegetable distribution VRP problem created by the objective function Formula (2-4), we can see that the actual problem to achieve is to minimize the total distribution costs.Artificial colony algorithm uses the reciprocal of the minimum distribution cost as the fitness function, so that the high cost corresponds to the low fitness and the small food source income value.

Population Update
The algorithm at the beginning of operation, there is not much difference in the probability of each food source is worker to find the number of iterations, a gradual increase in worker, not only to expand the search probability of each food source, and previously set good pheromone is gradually cut, resulting in not being left in to find a food source on early in the process of iterative pheromone is nearly equal to zero.In addition, in the posterior iteration of the algorithm, the algorithm will generate local extreme value because of the large amount of information gathered on the path.The update formula is as follows: , τ is a constant.According to this formula can be achieved with the change of the pheromone solution to adjust the use of such methods can improve the efficiency of the ABC algorithm in the global scope, and can effectively prevent the local extreme situation.
When the algorithm is in different iterative stages, the algorithm can not only avoid the local optimization but also accelerate the convergence speed.The set-ting of the constant is as shown in Equation (3)(4).

Nectar Selection
Follow the bee according to the nectar fitness value corresponding to the selected probability to choose the appropriate honey to go honey, the formula is as follows: Follow the bee according to the nectar fitness value corresponding to the selected probability to choose the appropriate honey to go honey, the formula such as follow the bee to a certain probability in the poor near the nectar to find a new source.Compare the current nectar and the previous nectar fitness value, if the former is greater than or equal to the latter, then use the current nectar to replace the previous nectar, otherwise, remain unchanged.

Population Elimination
When the bees (or follow bees) continuous limit failed to search better circulation nectar, this solution is determined (i.e. the nectar will fall into the local optimal solution).Bees (or follow bees) to give up the nectar, and into the investigation bee, continue to search for new nectar, the search formula is: )

Case Analysis
The distribution center of an enterprise provides distribution service for 15 customer points.The distribution center is represented by the serial number 0, and the serial number 1 -15 represents 15 clients respectively.The enterprise uses the same type of freight car for 15 customer point distribution.Among them, the maximum carrying capacity of each car is 5 tons, the vehicle fixed cost is 100, the consumption time cost of 250 vehicles, earlier than the time window to the customer point penalty cost is 250 per ton per hour, the vehicle later arrived time windows penalty cost customers per ton of 300 per hour.The distribution center and customer information statistics are shown in Table 1.It is necessary to arrange vehicles to complete the distribution task, so that the total cost of the distribution cost and the penalty cost is the least, so as to find the reasonable distribution route for the distribution center.Data processing was carried out by Matlab2010 software.
Distribution center and customer distribution status are shown in Figure 1.

Case Solving and Analysis
The number of leading bees accounted for 50%, followed by bees accounted for 10%, reconnaissance bees accounted for 40%, A = 1.

Comparison of Different Algorithms
In order to facilitate the comparison, the paper analyzes the data of the same enterprise and the customer point of the same group.On the basis of the same distance, traffic volume and distance limit, the optimization process of vehicle routing problem under soft time window constraint is simulated, The optimal target value of the algorithm is the total cost of distribution, and the specific data of the number of iterations of the total distribution vehicle convergence are shown in Table 2.
Comparison of the case data can be seen, the same customer restrictions on the distance, distance, volume, when the time constraint is not too strict, is the vehicle routing problem with soft time windows, an improved artificial bee colony algorithm in general distribution vehicle problems and artificial bee colony algorithm is the same, but the distribution of the total cost savings of 1091.78;   and convergence the speed of the improved artificial bee colony algorithm is faster.The main reason is the analysis algorithm, improved artificial bee colony algorithm with variable neighborhood search update strategy, the best individual search direction is better than stronger, compared with the traditional artificial bee colony algorithm, optimize the operation speed and quality optimization.

Conclusion
Logistics and distribution activities is an important part of the logistics system to achieve the optimization of vehicle routing that can directly optimize the logistics and distribution activities, not only can improve the economic efficiency of enterprises, but also to help achieve the logistics management of scientific.Vehicle routing problem as a combinatorial optimization problem, has a strong theory, application value, in the field of logistics and distribution has been widely used [9].Although the degree of attention to the research of vehicle routing problem is growing, but the expansion of the basic distribution routing problem with time constraint is not deep enough, but has yet to find the solution more quickly and accurately, so there are many scholars pay close attention in the limited time to find the most satisfactory solution to the problem of [10].On the basis of the previous scholars' research, this paper studies the vehicle routing problem with time constraints, takes into account the influence of time on the distribution path, analyzes the different criteria of the customer's time requirements, but the problems studied in this paper do not consider the actual distribution.The impact of road conditions on the speed of the road, in the next step can also be added to the peak period, the impact of non-peak time on the speed of the introduction of real-time changes in speed to study.

- 1 )
Population size N = 50; N/2 indicates the number of food sources is also the number of honey mining bee; single maximum limit = 20; maximum number of iterations MaxCycle = 500.Solution of the initialization function [solu] = Initial (num), this method is used to generate the problem of the initial solution.Method of production: by looking for the nearest customer service point, one by one distribution, and meet the constraints.The solution space is defined by V[N][n][n], and the initial feasible solution number is denoted by N.

Figure 1 .
Figure 1.Distribution center and customer distribution.

Figure 2 .
Figure 2. Distribution route and convergence process for algorithm.

Figure 3 .
Figure 3. Improved route and convergence process for algorithm.

Table 1 .
Distribution center and customer information.