Fresh food delivery path planning method and device, storage medium and electronic equipment

By constructing objective functions and constraints in fresh food delivery path planning, combined with adaptive large neighborhood search algorithms and new operators, the problems of low efficiency and high cost in the existing technology are solved, and more efficient path planning and Higher customer satisfaction.

CN118710166APending Publication Date: 2024-09-27ZHEJIANG UNIV OF FINANCE & ECONOMICS
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410839671.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing technology has low efficiency and high cost in fresh food delivery route planning, and does not fully consider customer time satisfaction and fresh food quality satisfaction.

Method used

Based on the target customer group, an objective function is constructed to minimize the total transportation cost, and combined with customer time satisfaction and fresh food quality satisfaction functions as constraints, an improved adaptive large neighborhood search algorithm is used for path planning, and suitable insertion and Remove operators to expand the solution space.

Benefits of technology

It improves the efficiency and stability of path planning, prevents the algorithm from falling into a local optimal solution, saves distribution costs, and improves customer satisfaction and fresh food quality satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710166A
    Figure CN118710166A
Patent Text Reader

Abstract

The invention discloses a fresh food delivery path planning method and device, a storage medium and electronic equipment, and is applied to the technical field of path planning, and the method comprises the steps: carrying out the function construction based on a to-be-delivered target customer group with the minimization of the total transportation cost as a target, and obtaining a target function of a fresh food delivery path planning model; based on the customer time satisfaction function of each user in the target customer group, the fresh food quality satisfaction function and vehicle parameters of a distribution center for performing fresh food distribution for the target customer group, performing constraint condition construction to obtain constraint conditions of the fresh food distribution path planning model; and based on the constraint condition, an improved adaptive large neighborhood search algorithm is adopted to solve the objective function in the fresh food delivery path planning model, and a fresh food delivery path planning result is obtained. According to the method, the path planning efficiency can be improved, and the fresh food delivery cost can be reduced by adopting the path planning method for fresh food delivery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of route planning, and in particular to a method, device, storage medium and electronic device for fresh food delivery route planning. Background Art

[0002] As the size of the fresh product e-commerce market continues to expand, customer shopping habits are shifting from offline to online, and the growing demand for online shopping of fresh products needs to be met. Therefore, the distribution of fresh products has become a hot issue in the logistics industry. The distribution of fresh products is a variant and extension of the vehicle routing problem (VRP). Fresh products are perishable, which means that they need to be refrigerated during storage and distribution to extend their shelf life. Therefore, the online sale of fresh products is very different from conventional e-commerce. Current research on the distribution of fresh products focuses on vehicle routes, delivery times, storage methods, outsourcing, and competitiveness.

[0003] The existing technology for planning fresh food delivery routes generally considers multi-priority time windows and time-varying mixed path optimization methods. Although the algorithm's solution performance has been improved, the customer's psychological behavior is not taken into account when characterizing the time window. At the same time, when designing the algorithm, the corresponding optimization strategy or operator is not designed according to the characteristics of the problem, resulting in a high delivery cost according to the planned route, and the algorithm for generating the planned path is inefficient. Summary of the invention

[0004] In view of this, the present invention provides a fresh food delivery route planning method, device, storage medium and electronic device, the main purpose of which is to solve the current problems of low efficiency in generating fresh food delivery routes and high delivery costs according to the generated routes.

[0005] To solve the above problems, the present application provides a fresh food delivery route planning method, including:

[0006] Based on the target customer group to be delivered, a function is constructed with the goal of minimizing the total transportation cost, and the objective function of the fresh food delivery route planning model is obtained;

[0007] Based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, constraint conditions are constructed to obtain the constraint conditions of the fresh food delivery path planning model;

[0008] Based on the constraint conditions, an improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery path planning model to obtain a fresh food delivery path planning result.

[0009] In order to solve the above problems, the present application provides a fresh food delivery route planning device, comprising:

[0010] Function construction module: used to construct functions based on the target customer group to be delivered and with the goal of minimizing the total transportation cost, and obtain the objective function of the fresh food delivery route planning model;

[0011] Constraint condition construction module: used to construct constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that performs fresh food distribution for the target customer group, so as to obtain the constraint conditions of the fresh food distribution path planning model;

[0012] Solving module: used to solve the objective function in the fresh food delivery path planning model based on the constraint conditions by using an improved adaptive large neighborhood search algorithm to obtain a fresh food delivery path planning result.

[0013] In order to solve the above problem, the present application provides a storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned fresh food delivery route planning method are implemented.

[0014] In order to solve the above problems, the present application provides an electronic device, characterized in that it includes at least a memory and a processor, and a computer program is stored in the memory. When the processor executes the computer program on the memory, the steps of the above-mentioned fresh food delivery route planning method are implemented.

[0015] Beneficial effects of the present application: The present application obtains the objective function of the fresh food delivery path planning model by constructing a function based on the target customer group to be delivered and with the goal of minimizing the total transportation cost; the objective function with the goal of minimizing the total transportation cost can save the delivery cost. Based on the customer time satisfaction function of each user in the target customer group, the fresh food quality satisfaction function and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, the constraint conditions are constructed to obtain the constraint conditions of the fresh food delivery path planning model; the present application comprehensively considers the time satisfaction and fresh food quality satisfaction, improves the traditional deletion operator and combines the traditional insertion operator to design a new insertion operator suitable for this problem. The addition of the new operator will further expand the searchable range in the solution space, thereby avoiding the algorithm from falling into the local optimal solution. In the process of generating the initial solution, the constraints of customer satisfaction and vehicle capacity are taken into account. In the subsequent process of inserting the operator to repair the solution, these two types of constraints are also used to determine whether the selection of the insertion position is reasonable, thereby improving the efficiency of the algorithm. Based on the constraint conditions, the improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery path planning model to obtain the fresh food delivery path planning result. This application adopts an improved adaptive large neighborhood search algorithm to solve the objective function. It is a new strategy to escape from the local optimal solution, and is a new operator that takes into account customer time satisfaction and fresh food quality satisfaction, which improves the overall solution efficiency and stability of this application.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0018] Figure 1 A schematic diagram of a process of planning a fresh food delivery route provided in an embodiment of the present application is shown;

[0019] Figure 2 A flow chart of a fresh food delivery route planning method provided by another embodiment of the present application is shown;

[0020] Figure 3 A schematic diagram of the route of a fresh food delivery vehicle in an embodiment of the present application is shown;

[0021] Figure 4 A schematic diagram of a time penalty cost function according to an embodiment of the present application is shown;

[0022] Figure 5 A schematic diagram of a time satisfaction function according to an embodiment of the present application is shown;

[0023] Figure 6 A schematic diagram showing a fresh food quality satisfaction function according to an embodiment of the present application is shown;

[0024] Figure 7 The improved adaptive large neighborhood search algorithm framework diagram of the embodiment of the present application is shown

[0025] FIG8( a ) shows a curve diagram showing the relationship between the final solution and the initial solution generated by the improved ALNS in the example C101-25 of the embodiment of the present application;

[0026] FIG8( b ) shows a curve diagram showing the relationship between the final solution and the initial solution generated by the improved ALNS in the example R101-25 according to the embodiment of the present application;

[0027] Fig. 9 Shows a structural block diagram of a fresh food delivery route planning device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0029] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0030] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0031] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0032] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0033] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0034] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0035] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0036] The present application embodiment provides a method for planning a fresh food delivery route. Figure 1 As shown, including:

[0037] Step S101: constructing a function based on the target customer group to be delivered and taking minimizing the total transportation cost as the goal to obtain the objective function of the fresh food delivery route planning model;

[0038] In the specific implementation process of this step, the target customer group is each user to be delivered fresh food, and the total transportation cost includes: time penalty cost, vehicle driving cost and vehicle use cost. By constructing the time penalty cost function, vehicle driving cost function and vehicle use cost, and based on the penalty cost function, vehicle driving cost function and vehicle use cost combination, the objective function of the fresh food delivery path planning model is obtained. Specifically, based on the expected value of the earliest service time, the expected value of the latest service time, the predetermined first time penalty coefficient, the predetermined second time penalty coefficient and the actual delivery time variable of each user in the target customer group to be delivered, a function is constructed to obtain the time penalty cost function corresponding to each user; based on the unit distance transportation cost, the distance between each customer, the predetermined number of vehicles, the path decision variables between each user and the number of users in the target customer group, a function is constructed to obtain the vehicle driving cost function; based on the single vehicle use cost, the predetermined number of vehicles, the path decision variables between each user and the number of users in the target customer group, a function is constructed to obtain the vehicle use cost function; based on the time penalty cost function, the vehicle driving cost function and the vehicle use cost function, a function is constructed to obtain the objective function of the fresh food delivery path planning model.

[0039] Step S102: constructing constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that performs fresh food distribution for the target customer group, and obtaining the constraint conditions of the fresh food distribution path planning model;

[0040] In the specific implementation process of this step, the constraints include customer time satisfaction constraint, fresh food quality satisfaction constraint, vehicle load constraint, service number constraint that each customer is served and only served once, vehicle flow balance constraint, the number of vehicles used does not exceed the number of vehicles already in the distribution center, the driving constraint that each vehicle starts from the distribution center and returns to the center after completing the task, and the value constraints of the decision variables of the fresh food delivery path planning model.

[0041] Step S103: Based on the constraint conditions, an improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery route planning model to obtain a fresh food delivery route planning result.

[0042] During the specific implementation of this step, a preset greedy algorithm is used to randomly plan the delivery path for each user in the target customer group to obtain an initial delivery path corresponding to the target customer group; based on each preset deletion operator and each preset insertion operator, an adaptive operator selection method is used to iteratively optimize the initial delivery path to obtain a fresh food delivery path planning result.

[0043] The present application constructs a function based on the target customer group to be delivered and takes the minimization of the total transportation cost as the goal to obtain the objective function of the fresh food delivery path planning model; the objective function of minimizing the total transportation cost as the goal can save the delivery cost. Based on the customer time satisfaction function of each user in the target customer group, the fresh food quality satisfaction function and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, the constraint conditions are constructed to obtain the constraint conditions of the fresh food delivery path planning model; the present application comprehensively considers the time satisfaction and fresh food quality satisfaction to improve the traditional deletion operator and combines the traditional insertion operator to design a new insertion operator suitable for this problem. The addition of the new operator will further expand the searchable range in the solution space, thereby avoiding the algorithm from falling into the local optimal solution. In the process of generating the initial solution, the constraints of customer satisfaction and vehicle capacity are taken into account. In the subsequent process of inserting the operator to repair the solution, these two types of constraints are also used to determine whether the selection of the insertion position is reasonable, thereby improving the efficiency of the algorithm. Based on the constraint conditions, the improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery path planning model to obtain the fresh food delivery path planning result. This application adopts an improved adaptive large neighborhood search algorithm to solve the objective function. It is a new strategy to escape from the local optimal solution, and is a new operator that takes into account customer time satisfaction and fresh food quality satisfaction, which improves the overall solution efficiency and stability of this application.

[0044] Another embodiment of the present application provides another method for planning a fresh food delivery route, such as Figure 2 As shown, including:

[0045] Step S201: constructing a function based on the earliest service time expectation value, the latest service time expectation value, the predetermined first time penalty coefficient, the predetermined second time penalty coefficient and the actual delivery time variable of each user in the target customer group to be delivered, and obtaining a time penalty cost function corresponding to each user;

[0046] In the specific implementation process of this step, Figure 3 The figure shows a schematic diagram of the fresh food delivery vehicle route of the present application. The mathematical expression of the time penalty cost function corresponding to each user can be expressed as the following formula (1):

[0047]

[0048] Among them, γ1 is a predetermined first time penalty coefficient, γ2 is a predetermined second time penalty coefficient, and the predetermined second time penalty coefficient is greater than the predetermined first time penalty coefficient. The schematic diagram of the time penalty cost function of the present application is as follows: Figure 4As shown, the predetermined first time penalty coefficient is a penalty coefficient for being earlier than the customer's expected time, and the predetermined second time penalty coefficient is a penalty coefficient for being later than the customer's expected time, ET i represents the earliest service time expected by customer point i, LT i The latest service time expected by customer point i, ET i -LT i The time interval is the soft time window expected by customer point i, is the actual delivery time variable. The distribution center of the fresh food company delivers different kinds of fresh food products to N customer points. i and j are used to represent the customer point serial numbers, i, j∈{0,1,…,N}; serial number 0 represents the distribution center, which has K refrigerated trucks with a maximum load of Q. The present invention uses k to represent the delivery vehicle serial number, k∈{1,…,K}. And the vehicle is required to return to the distribution center immediately after completing the delivery task.

[0049] Step S202: constructing a function based on the unit distance transportation cost, the distance between each customer, the number of scheduled vehicles, the path decision variables between each user, and the number of users in the target customer group to obtain a vehicle travel cost function;

[0050] In the specific implementation process of this step, the mathematical expression of the vehicle driving cost function can be expressed as the following formula (2):

[0051]

[0052] Among them, Z1 is the vehicle driving cost, z travel represents the unit distance transportation cost, represents the distance between customer point i and customer point j, represents the first decision variable. When vehicle k visits customer point j (i≠j) from customer point i, the first decision variable The value is 1, otherwise the first decision variable The value is 0.

[0053] Step S203: constructing a function based on the single vehicle use cost, the number of scheduled vehicles, the path decision variables between the users, and the number of users in the target customer group to obtain a vehicle use cost function;

[0054] In the specific implementation process of this step, the mathematical expression of the vehicle use cost function can be expressed as follows:

[0055]

[0056] Among them, z used is the cost of using the vehicle once, and Z3 is the cost of using the vehicle.

[0057] Step S204: constructing a function based on the time penalty cost function, the vehicle travel cost function and the vehicle use cost function to obtain an objective function of a fresh food delivery route planning model;

[0058] In the specific implementation process of this step, first, the time penalty cost function corresponding to each user is cumulatively calculated to obtain a target time penalty cost function. The mathematical expression of the target time penalty cost function can be expressed as the following formula (4):

[0059]

[0060] Among them, z pi is the time penalty cost function corresponding to customer point i. Then, based on the target time penalty cost function, the vehicle travel cost function and the vehicle use cost function, a function is constructed to obtain the objective function of the fresh food delivery path planning model. The mathematical expression of the objective function can be shown in the following formula (5):

[0061] Min Z=Z1+Z2+Z3 (5);

[0062] Among them, Z is the total transportation cost.

[0063] Step S205: constructing a function based on the psychological reference point of the time satisfaction of each user, the time satisfaction scaling coefficient corresponding to each user, the scheduled time satisfaction lateness coefficient, the reference time corresponding to the psychological reference point of each user, the elapsed time of the reference time corresponding to each user, the scheduled time satisfaction gain coefficient and the scheduled satisfaction loss coefficient, so as to obtain the time satisfaction function corresponding to each user;

[0064] In the specific implementation process of this step, the time satisfaction function corresponding to each user The mathematical expression of can be shown as follows:

[0065]

[0066] Where f represents the customer time satisfaction function, f 0i represents the customer psychological reference point in time satisfaction, ρ i represents the time satisfaction scaling coefficient corresponding to each customer point i, λ represents the lateness coefficient of the scheduled time satisfaction, T 0i Indicates the reference time corresponding to the psychological reference point of customer point i, ΔT ref represents the time elapsed of the reference time of customer point i’s time satisfaction, α represents the preset time satisfaction gain coefficient, and β represents the preset time satisfaction loss coefficient. The corresponding time satisfaction function graph is as follows: Figure 5 shown.

[0067] Step S206: constructing a function based on the first time point at which each user's satisfaction with fresh food quality begins to decline, the second time point at which each user's satisfaction with fresh food quality declines to a preset threshold, and the sensitivity coefficient of the decline in satisfaction with fresh food quality corresponding to each user, to obtain a fresh food quality satisfaction function corresponding to each user;

[0068] In the specific implementation process of this step, the mathematical expression of the freshness quality satisfaction function corresponding to each user can be expressed as the following formula (7):

[0069]

[0070] Among them, g represents the quality satisfaction function, FT i1 represents the first time point when the freshness of the product at customer point i begins to decline, FT i2 μ represents the second time point at which the freshness of the product at customer point i drops to a preset threshold, the preset threshold may be 0, and the preset threshold may be set according to actual needs. i represents the sensitivity coefficient of customer point i to the decline in product freshness. The corresponding diagram of the freshness quality satisfaction function is as follows: Figure 6 As shown, when μ i >1, indicating that customers are more sensitive to the decline in freshness; when 0<μ i <1, indicating that customers have a high tolerance for the decline in freshness; when μ i =1, the function graph at this time is the same as the freshness function graph of fresh products.

[0071] Step S207: constructing constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that performs fresh food distribution for the target customer group, and obtaining the constraint conditions of the fresh food distribution path planning model;

[0072] In the specific implementation process of this step, the constraints include customer time satisfaction constraint, fresh food quality satisfaction constraint, vehicle load constraint, service times constraint that each customer is served and only served once, vehicle flow balance constraint, the number of vehicles used does not exceed the number of vehicles already in the distribution center, the driving constraint that each vehicle starts from the distribution center and returns to the distribution center after completing the task, and the value constraint of the decision variables of the fresh food distribution path planning model. Specifically, the mathematical expression of the customer time satisfaction constraint can be shown as the following formula (8):

[0073]

[0074] Among them, θ represents the expected value of time satisfaction. Indicates the actual delivery time when the vehicle arrives at the customer point. The mathematical expression of can be shown as follows:

[0075]

[0076] in, Indicates driving time, driving time The mathematical expression of can be expressed as follows:

[0077]

[0078] Indicates the waiting time when arriving early. The mathematical expression of can be expressed as follows:

[0079]

[0080] in, represents the service time required by vehicle k at customer point i, and takes represents the waiting time of vehicle k at customer point i, and takes represents the travel time of vehicle k from customer point i to customer point j, v represents the travel speed of the vehicle, It represents the decision variable. When vehicle k delivers to customer point i, the value is 1, otherwise it is 0.

[0081] The fresh food quality satisfaction constraint can be expressed as follows:

[0082]

[0083] The vehicle load constraint can be expressed as follows:

[0084]

[0085] The service times constraint that each customer is served and only served once can be expressed as the following formula (14):

[0086]

[0087] The mathematical expression of vehicle flow balance constraint can be expressed as follows:

[0088]

[0089] The mathematical expression of the constraint that the number of vehicles used does not exceed the number of vehicles already in the distribution center can be expressed as follows:

[0090]

[0091] The mathematical expression of the driving constraint that each vehicle starts from the distribution center and returns to the distribution center after completing the task can be expressed as the following formula (17):

[0092]

[0093] The mathematical expression of the value constraints of the decision variables of the fresh food delivery route planning model can be expressed as the following formula (18):

[0094]

[0095] Step S208: using a preset greedy algorithm to randomly plan a delivery path for each user in the target customer group to obtain an initial delivery path corresponding to the target customer group;

[0096] In the specific implementation process of this step, when the first insertion position of the path planning is determined, the distribution center is used as the first starting point and the first ending point of the path planning, and the insertion cost of each customer in the customer set to be inserted composed of the target customer group into the first insertion position between the first starting point and the first ending point is calculated respectively to obtain the initial insertion cost corresponding to each user; the user with the smallest initial insertion cost that satisfies the customer time satisfaction constraint, the fresh food quality satisfaction constraint and the vehicle capacity constraint is determined as the initial insertion target user, and the initial insertion target user is inserted into the first insertion position to generate the current path, and the initial insertion target user is deleted from the customer set to be inserted to update the customer set to be inserted; when the non-first insertion position of the path planning is determined, the insertion cost of each user in the current customer set to be inserted into each insertion position of the current path is calculated respectively to obtain each intermediate insertion cost corresponding to the same customer; the mathematical expression for calculating the insertion cost can be shown as the following formula (19):

[0097] C μ =c j,i +c i,j+1 -c j,j+1 (19);

[0098] Among them, C μ represents the insertion cost of inserting customer point i into the jth position of the path, c j,i It represents the total cost change from customer point i to customer point j during delivery.i,j+1 represents the total cost change from customer point i to customer point j+1 during delivery, c j,j+1 Represents the total cost change from customer point j to customer point j+1 during delivery. Screen each of the intermediate insertion costs, determine the intermediate target insertion cost corresponding to each of the positions to be inserted, and insert the users corresponding to each of the intermediate target insertion costs into each of the positions to be inserted to update the current path. Repeat the above insertion method until all the customers in the updated customer set to be inserted are inserted, and generate the initial delivery path. When a non-first insertion position is determined, it is determined whether the insertion of each of the users in the current customer set to be inserted into each of the positions to be inserted into the current path satisfies the customer time satisfaction constraint, fresh food quality satisfaction constraint, and vehicle capacity constraint corresponding to each of the users, and a judgment result is obtained; when the judgment result is that the insertion of the target user in the current customer set to be inserted into each of the positions to be inserted into the current path does not satisfy any of the constraints of the customer time satisfaction constraint, fresh food quality satisfaction constraint, and vehicle capacity constraint corresponding to the target user, the distribution center is used as the second starting point of the path planning and the second ending point of the path planning, and the target user is inserted between the second starting point and the second ending point to update the current path.

[0099] Step S209: Based on each preset deletion operator and each preset insertion operator, the initial delivery path is optimized in a cyclic and iterative manner using an adaptive operator selection method to obtain a fresh food delivery path planning result.

[0100] In the specific implementation process of this step, for each iteration round of each iteration stage, random screening is performed from each preset deletion operator to obtain a first deletion operator, and screening is performed from each preset insertion operator to obtain a first insertion operator; each preset deletion operator includes: Random Removal (RR), Worst Cost Removal (WCR), Quality Shawn Removal (QSR), Worst Lateness Removal (WLR), Worst Travel-cost Removal (WTR), Worst Travel-cost Removal with Noise (WTRN), Satisfaction Similarity Removal (SSR), Worst Satisfaction ... Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QLR), Worst Lateness Removal (WLR), Worst Travel-cost Removal (WTR), Worst Travel-cost Removal with Noise (WTRN), Satisfaction Similarity Removal (SSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (QSR), Worst Satisfaction Removal (Q The preset deletion operators include Greedy Insertion (GI), Regret Insertion (RI), Sequence Greedy Insertion (SGI), Travel-time Greedy Insertion (TGI), Sequence Regret Insertion (SRI), and other preset insertion operators. Based on the deletion rule corresponding to the first deletion operator, the first user in the initial delivery path is deleted, and the first user is inserted using the insertion rule corresponding to the first insertion operator to obtain the first path; after each iteration round, the objective function is used to calculate the first path corresponding to each iteration round to obtain the function value of each iteration round; the framework diagram of the improved adaptive large neighborhood search algorithm of the present application is shown in FIG. Figure 7As shown; Among them, the deletion rule of the random deletion operator is: this operator does not calculate any indicators for each customer point, and directly randomly deletes several customer points from the current solution. This operator method is the simplest, with great uncertainty, and it is not easy to produce high-quality solutions, but it is this randomness that is conducive to expanding the algorithm search space and avoiding falling into local optimality. The deletion rule of the worst cost deletion operator is: the purpose of this operator design is to find and delete the customer points that have the greatest impact on the target cost of the current solution, and then find a more cost-saving position to insert them, so as to obtain a lower-cost optimal solution. The deletion rule of the quality correlation deletion operator is: this operator is adapted from the correlation deletion operator, and the definition of correlation is adapted. In this operator, the correlation between customer point j and reference customer point is calculated. i The mathematical expression of correlation is shown in the following formula (20):

[0101] S i,j =φ1dx j +φ2|q i -q j |+φ3|FT1 i -FT1 j |+φ4l ij (20);

[0102] Among them, φ1, φ2, φ3, φ4 represent the weight factors of the linear combination of the above formula; d ij Represents the straight-line distance between two customer points; q i Indicates the delivery demand of the customer point; FT1 i Indicates the time when the freshness of the product ordered by the customer begins to decline; ij Indicates whether the paths of the two customer points are the same. If they are the same, then l ij =-1, if different then l ij=1. It can be seen that the more similar two customer points are, the smaller the correlation is. The deletion rule of the worst lateness deletion operator is: This operator is similar to WCR, but after traversing each customer point, it finds several customer points with the largest degree of lateness and deletes them. The deletion rule of the worst travel cost deletion operator is: This operator is similar to WCR, but only considers the travel cost of the vehicle instead of the total transportation cost when calculating the deletion cost. Since the unit travel cost remains unchanged, this operator will delete the customer points that have the greatest impact on the travel cost, that is, the total route length. The deletion rule of the noise worst travel cost deletion operator is: This operator is similar to WTR, but adds a random noise factor when calculating the travel cost. The deletion rule of the similar satisfaction deletion operator is: This operator is adapted from the correlation deletion operator, but deletes customers who are similar only in time satisfaction. First, a reference customer point is randomly selected from the current solution, and then several customer points with the closest time satisfaction are deleted. The deletion rule of the worst satisfaction deletion operator is: This operator is similar to WLR, but deletes several customer points with the lowest time satisfaction among all customer points at one time. After the deletion operator completes the destruction of the current solution, the insertion operator will insert the customer points in the deletion list into the path of the current solution one by one according to a certain insertion strategy. Among them, if the customer points served by a certain vehicle have all been deleted at this time, it is also possible to insert the customer points into the new route. When the deletion list is empty, update the parameter values ​​of the current solution. I1. Greedy Insertion Operator (GI): The purpose of this operator design is to find the best insertion position for each customer point in the deletion list. The operator will traverse each customer point to be inserted, and then calculate the target cost difference obtained by traversing all the insertable positions for each customer point, that is, the insertion cost, and finally select the position with the smallest insertion cost for insertion. The insertion rule of the regret insertion operator is: the operator selects the corresponding insertion position by calculating and comparing the regret value of each customer point in the deletion list. It will first select customer points from the deletion list in turn, calculate the objective function cost of each position in the insertion path, and take the absolute value of the difference between the minimum cost and the second minimum cost as the regret value of the customer point; then traverse each customer point to be inserted in turn to obtain the corresponding regret value, find the customer point with the largest regret value and insert it into the corresponding minimum cost position. Finally, repeatedly calculate the regret value and compare the selected insertion position until the deletion list is empty. The insertion rule of the sequence insertion operator is: This operator is similar to GI, but when comparing the insertion cost, the customer point to be inserted is inserted into the corresponding minimum cost position in turn, instead of traversing all the customer points to be inserted and then selecting. Compared with GI, this operator insertion saves more time. The insertion rule of the driving time greedy insertion operator is: This operator is similar to GI, but the measurement indicator for selecting the insertion position is replaced by the vehicle driving time.The insertion rule of the sequence regret insertion operator is: this operator is a combination of RI and SGI, and the insertion index in SGI is replaced by the minimum cost with the regret value. Based on the function value of each iteration round, the preset solution update strategy is used to update the global optimal solution; specifically, when the number of times the current function value has not been updated is equal to the preset number threshold, the preset deletion operator and the preset insertion operator are randomly selected in the above manner; when the number of times the current function value has not been updated is less than the preset number threshold, the roulette algorithm is used to select the preset deletion operator and the preset insertion operator according to the current weight value of each operator. After each iteration stage is completed, the preset weight update strategy is used to score each of the preset deletion operators and each of the preset insertion operators to obtain a first score value corresponding to each of the deletion operators and a second score value corresponding to each of the insertion operators; specifically, after a new solution is generated in each iteration, the corresponding operator will be scored according to the quality of the new solution. The quality and score of the new solution are as follows: if the new solution is better than the global optimal solution, score σ1 is added; if the new solution is only better than the current solution, score σ2 is added; if the new solution is worse than the current solution but is still accepted as the current solution, score σ3 is added; if the new solution is worse than the current solution and is not accepted, score σ4 is added. In general, σ1>σ3>σ2>σ4 is set, and the scores are not much different from each other, to prevent a certain operator from being selected all the time because of its excessive weight. At the same time, it can be seen that setting σ3>σ2 is to increase the frequency of acceptable poor solutions, thereby expanding the search space and preventing the algorithm from falling into the local optimal situation. When the new solution is worse than the current solution, the algorithm will generate a random number, and the new solution will be accepted as the current solution when the following conditions are met: The mathematical expression of the random number r can be shown as the following formula (21).

[0103]

[0104] Among them, z(y new ) is the total transportation cost of the new solution; z(z cur ) is the total transportation cost of the current solution; T is the current simulated annealing temperature, and the initial T = 0.072·z(z init ) and changes with the iteration of the algorithm (T = c T T), where z(z init ) is the total transportation cost of the initial solution. Based on each of the first scoring values ​​and each of the second scoring values, a preset weight update function is used to calculate, and a first weight value corresponding to each of the preset deletion operators and a second weight value corresponding to each of the preset insertion operators are obtained; specifically, at the end of each iteration stage, the score of each operator is used to update the operator weight. If the optimal solution is not updated in two consecutive iteration stages, the score and weight of the operator will be initialized directly. The weight calculation mathematical formula for operator i after the end of the jth iteration stage can be expressed as follows (22):

[0105]

[0106] where w i,j represents the weight of operator i in the jth iteration stage; S i,j represents the total score of operator i in the jth iteration stage; τ i.j It represents the number of times operator i is used in the jth iteration stage; π represents the sensitivity factor of operator weight calculation. It represents the average score of operator i after each selection. The higher the score, the greater the role of operator i in the jth iteration stage. The path optimization process of the next iteration stage is performed based on each of the first weight values, each of the second weight values, each of the preset deletion operators, and each of the preset insertion operators until each of the preset iteration stages ends, and the final global optimal solution is determined as the target path of the fresh food delivery route planning.

[0107] The present application constructs a function based on the target customer group to be delivered and takes the minimization of the total transportation cost as the goal to obtain the objective function of the fresh food delivery path planning model; the objective function of minimizing the total transportation cost as the goal can save the delivery cost. Based on the customer time satisfaction function of each user in the target customer group, the fresh food quality satisfaction function and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, the constraint conditions are constructed to obtain the constraint conditions of the fresh food delivery path planning model; the present application comprehensively considers the time satisfaction and fresh food quality satisfaction to improve the traditional deletion operator and combines the traditional insertion operator to design a new insertion operator suitable for this problem. The addition of the new operator will further expand the searchable range in the solution space, thereby avoiding the algorithm from falling into the local optimal solution. In the process of generating the initial solution, the constraints of customer satisfaction and vehicle capacity are taken into account. In the subsequent process of inserting the operator to repair the solution, these two types of constraints are also used to determine whether the selection of the insertion position is reasonable, thereby improving the efficiency of the algorithm. Based on the constraint conditions, the improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery path planning model to obtain the fresh food delivery path planning result. This application adopts an improved adaptive large neighborhood search algorithm to solve the objective function. It is a new strategy to escape from the local optimal solution, and is a new operator that takes into account customer time satisfaction and fresh food quality satisfaction, which improves the overall solution efficiency and stability of this application.

[0108] In order to clearly express the present application, the present application is explained below in combination with a specific application scenario. The specific process is as follows:

[0109] Step 301: Setting a mathematical model for the fresh food delivery problem and related parameters in an improved adaptive large neighborhood search algorithm.

[0110] Taking into account the irrational behavior of customers, the present invention adopts the risk attitude coefficient α=β=0.88 to characterize the time satisfaction function, and the loss aversion coefficients γ1=1, γ2=2.25 to characterize the time penalty cost function; the unit early waiting penalty cost in the model of the present invention is set to 0.5, and the unit penalty cost of customer dissatisfaction caused by late arrival is 1; the unit driving cost is 1, and the vehicle use cost is 50; the time satisfaction lateness coefficient λ is 1.25, and the customer psychological reference point shift time ΔT ref is 60. The parameters used in the algorithm are obtained through preliminary experimental adjustment, and the specific values ​​are shown in Table 1.

[0111] Table 1 Algorithm parameter list

[0112]

[0113]

[0114] Step 302: Algorithm performance analysis.

[0115] This experiment compares the standard ALNS algorithm and the improved ALNS algorithm of the present invention in solving this problem model, given that the expected value of customer satisfaction is 0.8 and the customer psychological reference point and freshness sensitivity coefficient are set to 0.8 and 1.0 respectively. Under the above parameter settings, 20 experiments were conducted using the 25-node and 50-node examples in Solomon_C101 and Solomon_R101, respectively, and the average values ​​were taken. The results are shown in Table 2.

[0116] Table 2 Comparison of performance of adaptive large neighborhood search algorithm before and after improvement

[0117]

[0118] From the comparison results in Table 2, it can be seen that in Solomon_C101, for the example of 25 nodes, the variance of the solution obtained by the improved ALNS is significantly improved compared with the standard ALNS, which proves that the improved algorithm has a higher accuracy rate when solving problems; for the example of 50 nodes, the improved ALNS can obtain better feasible solutions, and the quality of the worst solution of the improved ALNS is better than the quality of the best solution of the standard ALNS, indicating that the standard ALNS falls into a local optimal state, and the local optimal escape strategy of the improved ALNS designed by the present invention has a better effect. Moreover, the solution time of the improved ALNS is shorter, indicating that the deletion operator and the insertion operator designed according to the characteristics of the problem can effectively save the solution time and obtain a better solution. For the examples of 25 nodes and 50 nodes in Solomon_R101 with stricter time windows, the improved ALNS can still obtain the best feasible solution that performs better than the standard ALNS, and the average value, variance and calculation time of the improved ALNS are also better than the standard ALNS.

[0119] Therefore, it can be found that the algorithm has good robustness and can adapt to the personalized characteristics of each actual example. Comparing the results before and after the algorithm improvement, it can be found that the new operator designed by the present invention based on the characteristics of the problem can better jump out of the local optimum. Coupled with the diversity of the neighborhood and its own large scale, a structured approach can be used to explore a larger range of the solution space, thereby obtaining a better solution. In summary, the improved ALNS algorithm designed by the present invention has strong adaptability to the problems studied by the present invention.

[0120] Step 303: The degree of improvement of the initial solution.

[0121] Examples C101-25 and R101-25 are used to study the degree of improvement of the initial solution, and the results are shown in Figure 8(a) and Figure 8(b). Figure 8(a) shows that the final solution generated by the improved ALNS in Example C101-25 has an improvement of about 95% on the total delivery cost in the initial solution. Figure 8(b) shows that in Example C101-25, the improved ALNS improves the initial solution by about 50%. Therefore, even if the initial solution used changes, the final solution will not be significantly affected, and the proposed improved ALNS can achieve relatively stable performance.

[0122] Another embodiment of the present application provides a fresh food delivery route planning device, such as Fig. 9 As shown, including:

[0123] Function construction module 1: used to construct functions based on the target customer group to be delivered and with the goal of minimizing the total transportation cost, and obtain the objective function of the fresh food delivery route planning model;

[0124] Constraint condition construction module 2: used to construct constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that performs fresh food distribution for the target customer group, so as to obtain the constraint conditions of the fresh food distribution path planning model;

[0125] Solving module 3: used to solve the objective function in the fresh food delivery route planning model based on the constraint conditions by using an improved adaptive large neighborhood search algorithm to obtain a fresh food delivery route planning result.

[0126] In the specific implementation process, the function construction module 1 is specifically used to: construct a function based on the expected value of the earliest service time, the expected value of the latest service time, the predetermined first time penalty coefficient, the predetermined second time penalty coefficient and the actual delivery time variable of each user in the target customer group to be delivered, so as to obtain a time penalty cost function corresponding to each user; construct a function based on the unit distance transportation cost, the distance between each customer, the predetermined number of vehicles, the path decision variables between each user and the number of users in the target customer group to obtain a vehicle driving cost function; construct a function based on the single vehicle use cost, the predetermined number of vehicles, the path decision variables between each user and the number of users in the target customer group to obtain a vehicle use cost function; construct a function based on each of the time penalty cost functions, the vehicle driving cost function and the vehicle use cost function to obtain the objective function of the fresh food delivery path planning model.

[0127] During the specific implementation process, the fresh food delivery route planning device also includes: a time satisfaction function module and a fresh food quality satisfaction function module; the time satisfaction function module is specifically used to: construct a function based on the psychological reference point of the time satisfaction of each user, the time satisfaction scaling coefficient corresponding to each user, the predetermined time satisfaction lateness coefficient, the reference time corresponding to the psychological reference point of each user, the elapsed time of the reference time corresponding to each user, the predetermined time satisfaction gain coefficient and the predetermined satisfaction loss coefficient to obtain the time satisfaction function corresponding to each user; the fresh food quality satisfaction function module is specifically used to: construct a function based on the first time point when the fresh food quality satisfaction of each user begins to decline, the second time point when the fresh food quality satisfaction of each user declines to a preset threshold, and the sensitivity coefficient of the decline in fresh food quality satisfaction corresponding to each user to obtain the fresh food quality satisfaction function corresponding to each user.

[0128] In the specific implementation process, the solution module 3 is specifically used to: use a preset greedy algorithm to randomly plan the delivery path for each user in the target customer group to obtain an initial delivery path corresponding to the target customer group; based on each preset deletion operator and each preset insertion operator, use an adaptive operator selection method to iteratively optimize the initial delivery path to obtain a fresh delivery path planning result.

[0129] In the specific implementation process, the solution module 3 is also used for: when determining the first insertion position of the path planning, taking the distribution center as the first starting point of the path planning and the first ending point of the path planning, respectively calculating the insertion cost of each customer in the customer set to be inserted composed of the target customer group into the first insertion position between the first starting point and the first ending point, and obtaining the initial insertion cost corresponding to each user; determining the user with the smallest initial insertion cost among the users who simultaneously meet the customer time satisfaction constraint, the fresh quality satisfaction constraint and the vehicle capacity constraint as the initial insertion target user, and inserting the initial insertion target user into the first insertion position to generate the current The previous path is calculated, and the initial insertion target user is deleted from the customer set to be inserted to update the customer set to be inserted; when the non-first insertion position of the path planning is determined, the insertion cost of each user in the current customer set to be inserted into each position to be inserted on the current path is calculated respectively, and each intermediate insertion cost corresponding to the same customer is obtained; each intermediate insertion cost is screened, and the intermediate target insertion cost corresponding to each position to be inserted is determined, and the user corresponding to each intermediate target insertion cost is inserted into each position to be inserted to update the current path, and the above insertion method is repeatedly executed until all the customers in the updated customer set to be inserted are inserted, and the initial delivery path is generated.

[0130] In the specific implementation process, the solution module 3 is also used for: when determining a non-first insertion position, judging whether each user in the current customer set to be inserted into each insertion position of the current path satisfies the customer time satisfaction constraint, fresh food quality satisfaction constraint and vehicle capacity constraint corresponding to each user, and obtaining a judgment result; when the judgment result is that the target user in the current customer set to be inserted into each insertion position of the current path does not satisfy any one of the customer time satisfaction constraint, fresh food quality satisfaction constraint and vehicle capacity constraint corresponding to the target user, the distribution center is used as the second starting point of the path planning and the second end point of the path planning, and the target user is inserted between the second starting point and the second end point to update the current path.

[0131] In the specific implementation process, the solution module 3 is also used for: for each iteration round of each iteration stage, randomly screening from each preset deletion operator to obtain a first deletion operator and screening from each preset insertion operator to obtain a first insertion operator; deleting the first user in the initial delivery path based on the deletion rule corresponding to the first deletion operator, and inserting the first user using the insertion rule corresponding to the first insertion operator to obtain a first path; after each iteration round, using the objective function to calculate and process based on the first path corresponding to each iteration round to obtain the function value of each iteration round; based on the function value of each iteration round, using the preset solution update strategy to update the global optimal solution ; After each iteration stage is completed, each of the preset deletion operators and each of the preset insertion operators is scored using a preset weight update strategy to obtain a first score value corresponding to each of the deletion operators and a second score value corresponding to each of the insertion operators; based on each of the first score values ​​and each of the second score values, a preset weight update function is used to calculate to obtain a first weight value corresponding to each of the preset deletion operators and a second weight value corresponding to each of the preset insertion operators; based on each of the first weight values, each of the second weight values, each of the preset deletion operators and each of the preset insertion operators, a path optimization process for the next iteration stage is performed until each of the preset iteration stages is completed, and the final global optimal solution is determined as the target path for fresh food delivery route planning.

[0132] Another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the following method steps are implemented:

[0133] Step 1: Based on the target customer group to be delivered, a function is constructed with the goal of minimizing the total transportation cost to obtain the objective function of the fresh food delivery route planning model;

[0134] Step 2: constructing constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, and obtaining the constraint conditions of the fresh food delivery route planning model;

[0135] Step three: Based on the constraint conditions, an improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery route planning model to obtain a fresh food delivery route planning result.

[0136] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0137] The specific implementation process of the above method steps can be found in any of the above-mentioned embodiments of the fresh food delivery route planning method, and this embodiment will not be repeated here.

[0138] Another embodiment of the present application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, and the processor implements the following method steps when executing the computer program in the memory:

[0139] Step 1: Based on the target customer group to be delivered, a function is constructed with the goal of minimizing the total transportation cost to obtain the objective function of the fresh food delivery route planning model;

[0140] Step 2: constructing constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, and obtaining the constraint conditions of the fresh food delivery route planning model;

[0141] Step three: Based on the constraint conditions, an improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery route planning model to obtain a fresh food delivery route planning result.

[0142] The specific implementation process of the above method steps can be found in any of the above-mentioned embodiments of the fresh food delivery route planning method, and this embodiment will not be repeated here.

[0143] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A fresh food delivery route planning method, characterized in that: include: Based on the target customer group to be delivered, a function is constructed with the goal of minimizing the total transportation cost, and the objective function of the fresh food delivery route planning model is obtained; Based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that delivers fresh food to the target customer group, constraint conditions are constructed to obtain the constraint conditions of the fresh food delivery path planning model; Based on the constraint conditions, an improved adaptive large neighborhood search algorithm is used to solve the objective function in the fresh food delivery path planning model to obtain a fresh food delivery path planning result.

2. The method according to claim 1, characterized in that Based on the target customer group to be delivered, a function is constructed with the goal of minimizing the total transportation cost, and the objective function of the fresh food delivery route planning model is obtained, which specifically includes: Based on the expected value of the earliest service time, the expected value of the latest service time, the predetermined first time penalty coefficient, the predetermined second time penalty coefficient and the actual delivery time variable of each user in the target customer group to be delivered, a function is constructed to obtain a time penalty cost function corresponding to each user; A function is constructed based on the unit distance transportation cost, the distance between each customer, the number of scheduled vehicles, the path decision variables between each user, and the number of users in the target customer group to obtain a vehicle travel cost function; A function is constructed based on a single vehicle use cost, a number of reserved vehicles, a path decision variable between users, and the number of users in the target customer group to obtain a vehicle use cost function; Function construction is performed based on the time penalty cost function, the vehicle travel cost function and the vehicle use cost function to obtain the objective function of the fresh food delivery route planning model.

3. The method according to claim 1, characterized in that Before constructing constraint conditions based on the customer time satisfaction function and the freshness quality satisfaction function of each user in the target customer group, the method further includes: Based on the psychological reference point of the time satisfaction of each user, the time satisfaction scaling coefficient corresponding to each user, the scheduled time satisfaction lateness coefficient, the reference time corresponding to the psychological reference point of each user, the elapsed time of the reference time corresponding to each user, the scheduled time satisfaction gain coefficient and the scheduled satisfaction loss coefficient, a function is constructed to obtain a time satisfaction function corresponding to each user; Based on the first time point when each user's satisfaction with fresh food quality begins to decline, the second time point when each user's satisfaction with fresh food quality declines to a preset threshold, and the sensitivity coefficient of the decline in fresh food quality satisfaction corresponding to each user, a function is constructed to obtain a fresh food quality satisfaction function corresponding to each user.

4. The method according to claim 1, characterized in that The objective function in the fresh food delivery route planning model is solved by using an improved adaptive large neighborhood search algorithm based on the constraint conditions to obtain a fresh food delivery route planning result, specifically including: A preset greedy algorithm is used to randomly plan a delivery path for each user in the target customer group to obtain an initial delivery path corresponding to the target customer group; Based on each preset deletion operator and each preset insertion operator, an adaptive operator selection method is used to optimize the initial delivery path in a cyclic and iterative manner to obtain a fresh food delivery path planning result.

5. The method according to claim 4, characterized in that The method of using a preset greedy algorithm to randomly plan a delivery path for each user in the target customer group to obtain an initial delivery path corresponding to the target customer group specifically includes: When determining the first insertion position of the path planning, taking the distribution center as the first starting point of the path planning and the first ending point of the path planning, respectively calculating the insertion cost of each customer in the customer set to be inserted consisting of the target customer group into the first insertion position between the first starting point and the first ending point, and obtaining the initial insertion cost corresponding to each user; Determine the user with the lowest initial insertion cost among the users who simultaneously satisfy the customer time satisfaction constraint, the fresh food quality satisfaction constraint and the vehicle capacity constraint as the initial insertion target user, insert the initial insertion target user into the first insertion position to generate the current path, and delete the initial insertion target user from the set of customers to be inserted to update the set of customers to be inserted; When determining a non-first insertion position of the path planning, respectively calculating the insertion cost of each user in the current customer set to be inserted into each insertion position of the current path, and obtaining each intermediate insertion cost corresponding to the same customer; The intermediate insertion costs are screened to determine the intermediate target insertion costs corresponding to the positions to be inserted, and the users corresponding to the intermediate target insertion costs are inserted into the positions to be inserted to update the current path. The above insertion method is repeated until all the customers in the updated customer set to be inserted are inserted, thereby generating the initial delivery path.

6. The method according to claim 5, characterized in that The method further comprises: When a non-first insertion position is determined, it is determined whether the insertion of each user in the current set of customers to be inserted into each insertion position of the current path satisfies the customer time satisfaction constraint, fresh food quality satisfaction constraint and vehicle capacity constraint corresponding to each user, and a determination result is obtained; When the judgment result is that the target user in the current customer set to be inserted into each to-be-inserted position of the current path does not satisfy any of the customer time satisfaction constraint, fresh food quality satisfaction constraint and vehicle capacity constraint corresponding to the target user, the distribution center is used as the second starting point of the path planning and the second end point of the path planning, and the target user is inserted between the second starting point and the second end point to update the current path.

7. The method according to claim 4, characterized in that The initial delivery path is optimized iteratively based on each preset deletion operator and each preset insertion operator using an adaptive operator selection method to obtain a fresh food delivery path planning result, specifically including: For each iteration round of each iteration stage, randomly select from each of the preset deletion operators to obtain a first deletion operator, and select from each of the preset insertion operators to obtain a first insertion operator; Deleting the first user in the initial delivery path based on the deletion rule corresponding to the first deletion operator, and inserting the first user using the insertion rule corresponding to the first insertion operator to obtain a first path; After each iteration round ends, using the objective function to perform calculation processing based on the first path corresponding to each iteration round to obtain the function value of each iteration round; Based on the function value of each iteration round, a preset solution updating strategy is adopted to update the global optimal solution; After each iteration phase is finished, each of the preset deletion operators and each of the preset insertion operators is scored using a preset weight update strategy to obtain a first score value corresponding to each of the deletion operators and a second score value corresponding to each of the insertion operators; Based on each of the first scoring values ​​and each of the second scoring values, a preset weight update function is used to calculate to obtain a first weight value corresponding to each of the preset deletion operators and a second weight value corresponding to each of the preset insertion operators; Based on each of the first weight values, each of the second weight values, each of the preset deletion operators, and each of the preset insertion operators, the path optimization process of the next iteration stage is performed until each of the preset iteration stages is completed, and the final global optimal solution is determined as the target path of the fresh food delivery route planning.

8. A fresh food delivery route planning device, characterized in that: include: Function construction module: used to construct functions based on the target customer group to be delivered and with the goal of minimizing the total transportation cost, and obtain the objective function of the fresh food delivery route planning model; Constraint condition construction module: used to construct constraint conditions based on the customer time satisfaction function, fresh food quality satisfaction function of each user in the target customer group and the vehicle parameters of the distribution center that performs fresh food distribution for the target customer group, so as to obtain the constraint conditions of the fresh food distribution path planning model; Solving module: used to solve the objective function in the fresh food delivery path planning model based on the constraint conditions by using an improved adaptive large neighborhood search algorithm to obtain a fresh food delivery path planning result.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the fresh food delivery route planning method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: The method at least comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the fresh food delivery route planning method according to any one of claims 1 to 7 when executing the computer program on the memory.

Citation Information

Cited By

  • Multi-type fresh food community group purchase path planning method considering heterogeneous customer demands

    CN119417347A

  • Fresh agricultural product picking and distribution integrated scheduling method based on coevolution algorithm

    CN119539364A

  • Electric vehicle path planning method based on improved crow search algorithm

    CN120525149A

  • Food order processing method based on big data and intelligent distribution system

    CN122222507A