A time-varying vehicle path planning method and system with time windows

By establishing a multi-objective model and an adaptive local search method based on Q-learning, the vehicle path planning is optimized, which solves the problems of insufficient transportation time and multi-objective optimization convergence speed in the existing technology, and achieves more efficient vehicle path planning and better performance. Good goal balance.

CN113919772BActive Publication Date: 2024-10-22SHANDONG NORMAL UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202111130874.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-10-22
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

The existing technology ignores the impact of transportation time when solving vehicle routing problems. Especially in traffic congestion situations, it is difficult to effectively balance the conflicting goals of economic benefits, environmental benefits, and social benefits, and the multi-objective optimization algorithm has shortcomings in convergence speed. .

Method used

A time-varying vehicle path planning method with time windows is proposed. By establishing a multi-objective model, using a hybrid initialization strategy and an adaptive local search method based on Q-learning, combined with the crossover strategy and reward update method, the vehicle path is optimized to minimize travel time, energy consumption and improved customer satisfaction.

Benefits of technology

It achieves multi-objective optimization that takes into account customer satisfaction, total duration and energy consumption, improves the efficiency and effect of vehicle route planning, enhances the convergence ability of the algorithm and the diversity of solutions, and can better balance multiple objectives.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113919772B_ABST
    Figure CN113919772B_ABST
Patent Text Reader

Abstract

The invention discloses a time-varying vehicle path planning method and system containing a time window. The method comprises: acquiring basic data, and obtaining an optimal planning path according to the basic data and a time-varying green vehicle path planning multi-objective optimization model containing a soft time window; wherein the construction process of the time-varying green vehicle path planning multi-objective optimization model containing a soft time window comprises: defining the time-varying green vehicle path planning multi-objective optimization model containing a soft time window as a complete completely directed graph, wherein the completely directed graph is composed of a vertex set and an edge set, wherein the vertex set includes a customer set and a vehicle set, wherein each customer is associated with a service time, a commodity demand and a time window, and each edge represents a corresponding vehicle path; and simultaneously defining the multi-objective optimization model as a three-dimensional target minimization problem, and obtaining the optimal planning path by combining the completely directed graph and the three-dimensional target minimization problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle path optimization, and in particular relates to a time-varying vehicle path planning method and system containing a time window. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] In modern transportation, the vehicle routing problem (VRP) introduced by Dantzig and Ramser has been proved by Lenstra and Kan to be an NP-hard problem. VRP has been widely used and studied, such as perishable product transportation, cold chain transportation, express delivery transportation, etc. At the same time, under the pressure of environmental pollution and global warming, the green vehicle routing problem (GVRP) with the goal of improving energy efficiency and reducing carbon emissions has become a research hotspot worldwide. The traditional green vehicle routing problem does not comprehensively consider the actual situation, which is relatively complex and requires considering conflicting goals such as economic benefits, environmental benefits, and social benefits at the same time.

[0004] In the study of vehicle routing problems, the measurement of transportation time between customers is considered to be a key issue. Most technologies simplify the transportation time to a constant. The existing technology studies the capacity-constrained green vehicle routing problem (CGVRP) powered by new energy and uses a competitive memetic algorithm to solve it. There is also a focus on the transportation of dangerous goods. The risk on the road is fixed as the weight on the path. An effective perturbation-based local search algorithm is used to solve the transportation problem of disaster relief supplies when natural disasters occur. Ghannadpour and Zandiyeh used an adaptive multi-objective genetic algorithm to solve the problem of precious goods distribution. The above technical solutions all ignore the impact of transportation time on actual problems. It is worth noting that in practical applications, transportation time should be handled more explicitly. Existing technologies rarely consider this challenging constraint.

[0005] For example, a general function form is used to replace triangular fuzzy numbers as travel time, or it is proposed that the time difference of a day will affect the transportation time. Further analysis proves that the change in vehicle speed caused by traffic congestion is the main reason affecting the change in vehicle transportation time. Recently, the existing technology solves the time-dependent multi-warehouse GVRP problem using a hybrid algorithm combining genetic algorithm (GA) and variable neighborhood search (VNS), or studies the time-dependent vehicle routing problem with time windows (TDVRPTW) with the goal of minimizing the total route duration, and the multi-trip TDVRPTW with the goal of minimizing the travel distance of all trips. However, the research is still limited to the single-objective TDVRPTW concept.

[0006] In addition, many types of multi-objective evolutionary algorithms (MOEAs) have been developed and applied to solve continuous and discrete optimization problems. Compared with single-objective algorithms, multi-objective optimization algorithms have the ability to balance conflicting objectives well, so they have attracted more and more attention from researchers. MOEAs are a group intelligence algorithm that transmits information through interactions between individuals and follows the principle of survival of the fittest. Domination-based MOEAs can put multiple objectives on the same priority and use dominance relationships to decide whether the current solution should be retained. In this way, decision makers can get more reasonable solutions and then make choices based on actual conditions. Generally speaking, the evolutionary process of MOEAs mainly includes three steps: mating, recombination, and environmental selection. However, for VRP, the disturbances generated by mutation and crossover are very large, and it is difficult to converge to the Pareto optimality within a specified time or number of iterations. Therefore, a local search strategy is introduced to make full use of existing solutions and accelerate convergence. In previous studies, most literatures use equal probability methods to select local search strategies, but this method ignores the knowledge generated during the evolution process. Summary of the invention

[0007] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a time-varying vehicle path planning method and system with a time window. The present invention establishes a multi-objective TDGVRPTW model considering customer satisfaction, total duration and energy consumption, proposes a hybrid initialization strategy based on the multi-objective model to solve the initial solution, and proposes two cross strategies to further guide and accelerate the convergence of the algorithm. The adaptive local search method based on Q-learning is embedded to enhance the local search capability. Finally, a reward update method is designed to balance multiple objectives.

[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0009] A time-varying vehicle path planning method with a time window comprises the following steps:

[0010] Acquiring basic data, wherein the basic data includes customer information and vehicle information;

[0011] According to the current basic data and the multi-objective optimization model of time-varying green vehicle path planning with soft time windows, the optimal planning path is obtained;

[0012] The construction process of the multi-objective optimization model for time-varying green vehicle path planning with soft time windows includes:

[0013] The multi-objective optimization model of time-varying green vehicle path planning with soft time windows is defined as a complete completely directed graph, which consists of a vertex set and an edge set. The vertex set includes a customer set and a vehicle set. Each customer is associated with service time, commodity demand and time window, and each edge represents the corresponding vehicle path. At the same time, the multi-objective optimization model is defined as a three-dimensional objective minimization problem. The optimal planning path is obtained by combining the complete directed graph and the three-dimensional objective minimization problem.

[0014] The encoding and decoding of each feasible solution in one or more embodiments specifically includes:

[0015] Each feasible solution can be encoded into a two-dimensional vector, which includes a customer service sequence vector and a scheduling sequence for each vehicle. The scheduling sequence for each vehicle is the same as the customer service sequence vector, indicating the correspondence between customers and vehicles. The encoded feasible solution is decoded, and each target is calculated according to the scheduling order of each vehicle to obtain the transportation time from node i to node j.

[0016] The hybrid initialization strategy of one or more embodiments includes four problem-specific heuristic methods: a random method, a k-nearest neighbor heuristic, an improved forward insertion heuristic, and an earliest first time heuristic.

[0017] One or more embodiments of exploring the search space based on the cross strategy of the Pareto front specifically include:

[0018] The crossover strategies include similar customer order crossover, customer block order crossover, best cost-best path crossover and improved PTL.

[0019] The Q-learning algorithm described in one or more embodiments specifically includes:

[0020] Perceive the state of the current environment and select the predicted action based on the Q table;

[0021] The action is performed in the current environment and the reward value is obtained; the Q table is updated;

[0022] A new reward calculation method is designed that takes into account the relative reduction between targets. If the reward is negative, the contribution is small and the Q value decreases. Otherwise, the Q value increases.

[0023] Before obtaining the optimal planning path as described in one or more embodiments, each feasible solution is encoded and decoded, and an initial solution is obtained using a mixed initial strategy; based on the initial solution, the search space is explored based on a cross strategy based on the Pareto front, and the local search capability is enhanced by embedding an adaptive local search method based on Q-learning, as well as a reward update method to balance multiple objectives to obtain the optimal solution to the three-dimensional objective minimization problem.

[0024] The three-dimensional objective minimization problem described in one or more embodiments includes minimizing travel time, minimizing energy consumption, and maximizing customer satisfaction score.

[0025] The multi-objective optimization model of one or more embodiments includes constraints, including return time constraints, vehicle capacity constraints, single visit constraints, soft time window assumptions, vehicle type assumptions, and departure time assumptions.

[0026] One or more embodiments provide a time-varying vehicle path planning system with a time window, comprising:

[0027] A data acquisition module is configured to: acquire basic data, the basic data including customer information and vehicle information;

[0028] The optimal planning path module is configured to include the following steps:

[0029] According to the current basic data and the multi-objective optimization model of time-varying green vehicle path planning with soft time windows, the optimal planning path is obtained;

[0030] The construction process of the multi-objective optimization model for time-varying green vehicle path planning with soft time windows includes:

[0031] The multi-objective optimization model of time-varying green vehicle path planning with soft time windows is defined as a complete completely directed graph, which consists of a vertex set and an edge set. The vertex set includes a customer set and a vehicle set. Each customer is associated with service time, commodity demand and time window, and each edge represents the corresponding vehicle path. At the same time, the multi-objective optimization model is defined as a three-dimensional objective minimization problem. The optimal planning path is obtained by combining the complete directed graph and the three-dimensional objective minimization problem.

[0032] One or more embodiments provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the time-varying vehicle path planning methods with time windows described above are implemented.

[0033] One or more embodiments provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-described methods for time-varying vehicle path planning with a time window.

[0034] One or more of the above technical solutions have the following beneficial effects:

[0035] The present invention establishes a multi-objective TDGVRPTW model considering customer satisfaction, total duration and energy consumption, proposes a hybrid initialization strategy based on the multi-objective model to solve the initial solution, and proposes two cross strategies to further guide and accelerate the convergence of the algorithm. An adaptive local search method based on Q-learning is embedded to enhance the local search capability. Finally, a reward update method is designed to balance multiple objectives. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0037] Figure 1 It is a flow chart of the overall method of time-varying green vehicle path planning with time windows in an embodiment of the present invention;

[0038] Figure 2 It is a speed-time relationship diagram in an embodiment of the present invention;

[0039] FIG. 3( a ) is a diagram of an embodiment of the present invention in time zone z r Distance travelled within

[0040] FIG3( b ) is a diagram showing the distance from node i to in an embodiment of the present invention.

[0041] Figure 4 is the transportation time function of arc (, j) at any departure time t in the embodiment of the present invention;

[0042] Figure 5 is a customer satisfaction function in an embodiment of the present invention;

[0043] Figure 6(a)-Figure 6(c) is an example of a feasible solution in an embodiment of the present invention;

[0044] Figure 7(a)-Figure 7(b) It is the customer sequence crossover process in the embodiment of the present invention;

[0045] Figure 8 The client block sequence crossover process in the embodiment of the present invention;

[0046] Fig. 9 This is the IPTL process in the embodiment of the present invention;

[0047] Figure 10(a)-Figure 10(d) This is the BCBRC process in the embodiment of the present invention;

[0048] Figure 11(a)-Figure 11(d) These are four mutation strategies in the embodiments of the present invention;

[0049] Fig.12 This is the Reward calculation process in the embodiment of the present invention;

[0050] Figure 13(a)-Figure 13(j) are 5 local search operator neighborhood functions in the embodiment of the present invention;

[0051] Figure 14(a)-Figure 14(b) is the final PF of C101_100 and R101_100 in the embodiment of the present invention;

[0052] Figure 15(a)-Figure 15(b) It is a HV variation trend diagram of Cr and LSr under 95% confidence interval in the embodiment of the present invention;

[0053] Fig.16 is a mean value diagram of RV in an embodiment of the present invention;

[0054] Fig.17 is the initial PF of C102_100 obtained by different algorithms in the embodiments of the present invention;

[0055] Figure 18(a)-Figure 18(b) ANOVA analysis of QMOEA-SC and QMOEA-SC in the embodiment of the present invention;

[0056] Figure 19(a) to Figure 19(f) Box plots of IGD and HV under different customer groups for five different algorithms in the embodiments of the present invention;

[0057] Figure 20(a)-Figure 20(b) This is the process of generating the optimal solution of C102 in the embodiment of the present invention;

[0058] Figure 21(a)-Figure 21(d) 1 is the customer distribution and optimal solution of the example in the embodiment of the present invention. DETAILED DESCRIPTION

[0059] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0060] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0061] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0062] Embodiment 1

[0063] like Figure 1 As shown, this embodiment discloses a time-varying vehicle path planning method with a time window, comprising the following steps:

[0064] S101: Acquire basic data, the basic data including customer information, vehicle information and warehouse information;

[0065] Specifically, the customer information includes:

[0066] 1) The quantity of goods required by the customer;

[0067] 2) The customer’s geographic location, i.e., coordinates;

[0068] 3) The optimal delivery time period and the acceptable time period set by the customer are inclusive, that is, the optimal delivery time is within the acceptable time period;

[0069] The vehicle information includes information such as the maximum capacity of the vehicle;

[0070] The warehouse information includes the start time and end time of the warehouse work.

[0071] S102: inputting the current basic data into a time-varying green vehicle path planning multi-objective optimization model with a soft time window to obtain an optimal planning path;

[0072] The construction process of the multi-objective optimization model for time-varying green vehicle path planning with soft time windows includes:

[0073] The multi-objective optimization model of time-varying green vehicle path planning with soft time windows is defined as a complete completely directed graph, which consists of a vertex set and an edge set. The vertex set includes a customer set and a vehicle set. Each customer is associated with service time, commodity demand and time window, and each edge represents the corresponding vehicle path. At the same time, the multi-objective optimization model is defined as a three-dimensional objective minimization problem. The optimal planning path is obtained by combining the complete directed graph and the three-dimensional objective minimization problem.

[0074] As one or more embodiments, the multi-objective optimization model is defined as a complete directed graph G(C', E), where C' = C ∪ {c0} is a vertex set, where C = {c1, c2, ..., c n} is a set of n customers, c0 represents the starting vertex and the ending vertex of the vehicle. Each customer i∈C is associated with a service time s i , commodity demand q i and time window [ee i ,ll i ] are associated with each vehicle, and the maximum capacity of each vehicle is Q.

[0075] The path R is represented as a node sequence starting from the warehouse, visiting the customer sequence, and then returning to the warehouse. E = {e(i, j)|i, j∈C, i≠j} is a set of edges, each of which has a slope w. ij and category η, i.e., fast, medium, and slow sections, t ij It is defined as the duration between node i and node j, such as Figure 2 Its value and distance d are shown ij and speed s in time zone p p related.

[0076] The constraints of the model include:

[0077] (1) Return time constraint C1: The vehicle must return to the warehouse before the warehouse closes;

[0078] (2) Vehicle capacity constraint C2: the vehicle capacity cannot be exceeded;

[0079] (3) Single access constraint C3: Each customer is served only once;

[0080] (4) Soft time window assumption S1: Customer c i Allow vehicles to arrive early ( <ee i ) and delayed arrival (>ll i ), which will affect customer satisfaction;

[0081] (5) Vehicle type Assumption S2: Use a homogeneous fleet;

[0082] (6) Departure Time Assumption S3: For a warehouse, the departure time of a vehicle is zero.

[0083] In this embodiment, the multi-objective optimization function is defined as a three-dimensional objective minimization problem, specifically including: a travel time function f1(x) that varies with time, an energy consumption function f2(x) and a customer satisfaction function f3(x); expressed as:

[0084] Minimize F(x)={f1(x), f2(x), f3(x)} (1)

[0085] where x is the decision vector in the search space Ω.

[0086] As one or more embodiments, the construction process of the travel time function f1(x) is as follows:

[0087] The working day T is divided into p time zones, namely T = {z1, z2, ..., z r , …, z p}.

[0088] like Figure 2 As shown, the travel time function v(·) is a piecewise linear function. For a given edge e(i, j), the travel time t ij It may be necessary to cross multiple time zones, and the distance d ij The composition is shown in Figure 3(b); if vehicle k is in time zone z r =[tt r-1 ,tt r ] The starting time from node i to node j is recorded as The maximum travel time is:

[0089] Let the continuous variable They represent the maximum driving distance, actual driving distance and remaining driving distance respectively. Figure 3(a) shows the relationship between these three distances, namely

[0090] According to the prior art, if the speed-time function is a step function, then for any e(i, j), j∈C′, i≠j, the transportation time function τ(·) is Figure 4 The piecewise linear function shown.

[0091] The travel time function τ(·) can be modeled as a piecewise linear function:

[0092] Assume that each e(i, j) spans at most two time zones. Figure 4 As shown, z r Time zone by and It consists of two parts. is the breakpoint. When the vehicle leaves node i within , the vehicle only needs one time period, so the travel time is a fixed value. When the vehicle departs from the range, the travel time will change because the vehicle crosses multiple time periods. Inside, the function slope and its intersection with the y-axis is represented as follows:

[0093]

[0094] From the above, we can see that if the departure time Occurs in z r The transportation time is calculated as follows:

[0095]

[0096] If the vehicle is r From node to node j in the time zone, is 1; otherwise, it is set to 0. Therefore, the transportation time of e(i, j) can be calculated by formula (5):

[0097] The total vehicle transportation time f1(x) can be expressed as:

[0098] As one or more embodiments, the energy consumption function 2(x) is constructed as follows:

[0099] The carbon emissions of a vehicle in e(i, j) are:

[0100] Where e, G ij , They are respectively the carbon emissions under no-load environment, driving speed and zero slope, slope correction factor, and load correction factor.

[0101] e=(110+0.000375·v 3 +8702 / v) (8)

[0102]

[0103] Among them, w ij is the slope of e(i, j), is the ratio of the load and capacity of vehicle k on e(i, j); ω and v are the unit fuel consumption cost and carbon emission cost respectively.

[0104] The fuel consumption rate of vehicle k for e(i, j) is:

[0105]

[0106] Therefore, the energy consumption f2(x) is expressed as:

[0107]

[0108] In the formula, ω and They are unit fuel consumption cost and carbon emission cost respectively.

[0109] As one or more embodiments, the construction process of the customer satisfaction function f3(x) is as follows:

[0110] In the actual logistics system, customer satisfaction is one of the most important indicators to measure the efficiency of logistics distribution. In order to measure customer satisfaction more accurately, Figure 5 As shown, the evaluation method is adopted to model customer satisfaction as a piecewise function;

[0111] The time window is divided into two parts, including the preferred time window [e i ,l i ] and the allowed time window [ee i ,ll i ];

[0112] At the same time, the customer satisfaction score is divided into five levels, and the customer satisfaction scores of the five levels increase in sequence, that is, the customer satisfaction score of the first level is less than the customer satisfaction score of the second level, the customer satisfaction score of the second level is less than the customer satisfaction score of the third level, and so on. The customer satisfaction score of the fifth level is the highest. If the customer receives the service at the required time, the customer satisfaction score is full marks; otherwise, the customer satisfaction score gradually decreases as the difference between the vehicle arrival time and the expected time increases.

[0113] When the vehicle arrives at customer i at time t, there are four situations: customer satisfaction cs i (t) is expressed as:

[0114]

[0115] in, And ξ∈{1,2,3}.

[0116] Furthermore, customer satisfaction can be expressed as:

[0117]

[0118] S104: Based on the multi-objective optimization function, a multi-objective evolutionary algorithm based on Q-learning is used to obtain an initial solution;

[0119] Specifically include:

[0120] (1) Replacing the initial strategy of the prior art with a hybrid initial strategy, which includes four specific heuristics to generate high-quality and diverse initial solutions;

[0121] (2) Based on the Pareto-front crossover strategy, knowledge is learned from the approximate Pareto-front, and the hormone convergence process is used to obtain the search space;

[0122] (3) Adaptive local search method based on Q-learning to improve local search capabilities;

[0123] The specific implementation is as follows:

[0124] (1) The total number of individual evaluations is set as the termination condition; (2) Ps, Cr, and LSr are the population size, crossover rate, and local search rate, respectively; (3) A random method is used to select strategies in the crossover and mutation stages; (4) A non-dominated strategy is used to generate and update the approximate PF.

[0125]

[0126]

[0127] S105: Each feasible solution can be encoded into a two-dimensional vector, wherein the two-dimensional vector includes a customer service sequence vector L1 and a dispatch sequence L2 of each vehicle, wherein the dispatch sequence L2 of each vehicle has the same length as the first vector, indicating the correspondence between the customer and the vehicle;

[0128] The customer service sequence vector L1 contains integers, where N is the number of customers. It should be noted that the vector L1 is divided by the vehicle capacity constraint and the warehouse closing time.

[0129] To speed up the crossover and mutation operations, no start and end nodes are added to the vehicle's visit sequence.

[0130] Decode the encoded feasible solution, and calculate each target according to the scheduling order of each vehicle to obtain the transportation time t from node i to j ij ;

[0131] Figure 6(a)-Figure 6(c) is a solution example, where there are 9 customers and 3 cars. Three paths are constructed as r1 = {3, 5, 9}, r2 = {7, 1, 6} and r3 = {8, 2, 4} respectively.

[0132] The specific calculation process of operation time is as follows:

[0133]

[0134]

[0135] In order to generate an initial solution with better performance, a hybrid initial solution strategy is embedded, which includes four problem-specific heuristic methods: random method, k-nearest neighbor heuristic (k-NNH), improved forward insertion heuristic (IPFIH) and earliest first time heuristic (EPH).

[0136] Assume that m represents the initial population size, the specific embedding process is as follows:

[0137] 1) Generate m / 4 feasible solutions using random methods;

[0138] 2) Generate m / 4 feasible solutions using k-NNH;

[0139] Considering the situation of customer clustering, the k-NNH algorithm is used. When vehicle k serves customer i, the next customer is randomly selected from the k nearest neighbors of the current customer i. Running K-NNH multiple times will result in several different initial solutions. Obviously, the value of k determines the degree of diversity.

[0140] Preferably, k is set to 1 / 5 of the number of customers.

[0141] 3) Generate m / 4 feasible solutions through IPFIH;

[0142] The IPFIH generates m / 4 feasible solutions as follows:

[0143] Select the first customer i, where d 0i represents the distance between customer i and the warehouse, ll i is the maximum acceptable time window for customer i, p i is the polar coordinate angle of customer i in the warehouse.

[0144] It should be noted that h i The larger the value of , the greater the probability that the customer will be selected.

[0145] Inspired by k-NNH, the next customer to be served is randomly selected from the k largest h obtained from equation (15), where p1 is the polar coordinate angle of the first customer. Running this process multiple times will result in different initial solutions.

[0146]

[0147] The implementation process of the IPFIH includes:

[0148]

[0149]

[0150] 4) Use EPH to generate m / 4 feasible solutions.

[0151] EPH is designed for customers with narrow time windows. The details are as follows:

[0152] First, generate a random sequence F containing all customers; then, insert the customers in F into the current vehicle in sequence, where the customer set Π in the current vehicle v is sorted in non-ascending order according to the earliest start time of the priority time window. Repeat at least once until all customers in F have been visited. The EPH process in the algorithm is as follows:

[0153]

[0154]

[0155] As one or more embodiments, based on the Pareto-front crossover strategy, learning knowledge from the approximate Pareto-front, and performing a hormone convergence process to obtain a search space specifically include:

[0156] The crossover strategy includes two crossover algorithms: Similar Customer Sequential Crossover (SCOX) and Customer Block Sequential Crossover (CBOX). On the basis of making full use of the non-dominated solution set information, the algorithm's ability is enhanced. In addition, the Best Cost-Best Path Crossover (BCBRC) and Improved PTL (IPTL) are used to explore the solution space and prevent the algorithm from falling into the local optimum.

[0157] The process of the four crossover methods is as follows:

[0158] SCOX: First, select the customers with the most occurrences at each position of each route from PS to construct a temporary route, then randomly select two parents from the population, and compare the customer positions of each parent on each route with the temporary route. If they are the same, the customer is placed at the same position of its offspring. Finally, the empty positions of the offspring are filled according to the customer order of the other parent.

[0159] The whole process of SCOX is as follows Figure 7(a)-Figure 7(b) shown.

[0160] The following example illustrates the SCOX process. Assume that there are three non-dominated solutions in PS, denoted by π i , i = 1, 2, 3, each solution contains 9 customers. The solutions are as follows:

[0161] π1={[9,6,7],[2,4],[3,5,1,8]}

[0162] π2={[3,1,7],[5,8,2],[6,4,9]}

[0163] π3={[1, 4, 2, 7], [3, 6, 5, 8], [9]}

[0164] Step 1: In the calculation, the length of the maximum path is used as the size of the temporary path. At this time, the length of the temporary route is 4.

[0165] Step 2: Find the customer with the largest number of appearances in each position k (k=1, 2, ..., 4). For example, the number of times each customer i (i=1, 2, ..., 9) appears in position 1 is 1, 1, 3, 0, 1, 1, 0, 0, and 2. Similarly, the number of times each customer i appears in positions 2, 3, and 4 is as follows:

[0166] Position 2:1,0,0,3,1,2,0,1and 0

[0167] Position 3:1,2,0,0,1,0,2,0and 1

[0168] Position 4: 0, 0, 0, 0, 0, 0, 1, 2and 0

[0169] Then the most frequent customers are selected at each location to form a temporary route (3, 4, 2, 8).

[0170] Subsequently, two parents are randomly selected from the population, for example, p1 = {[3, 1, 9, 8], [2, 4, 7], [5, 6]} and p2 = {[5, 1, 2], [3, 6], [8, 4, 7, 9]}. Each route in the parent is then compared with the temporary route, and customers at the same location are found and retained. Therefore, the positions of customers 3, 4, and 8 in parent 1 are left to offspring 1. Similarly, the customer positions in parent 2, namely 3, 4, and 2, are retained for offspring 2.

[0171] Finally, the empty positions are filled with customers that are not present in descendant 1 and in the order of customers from parent 2. Thus, customers (5, 1, 2, 6, 7, 9) are placed in order in descendant 1. Similarly, descendant 2 (1, 9, 2, 3, 8, 7, 4, 5, 6) is created.

[0172] CBOX: First, a temporary set is constructed from the customer pairs that appear most frequently in the PS. Then, two parents are randomly selected from the population, the parents are compared with the temporary set, and the same customer pairs are retained for the offspring. Finally, the blank positions are filled with non-repeated customers. The whole process is as follows Figure 8 shown.

[0173] Let's use the same example π i , i∈{1, 2, 3} to explain the process of CBOX.

[0174] Step 1: Create a temporary set. First, count the number of times a customer pair appears in each path in the PS. For example, the number of times customer 1 is served before other customers is 0, 0, 0, 1, 0, 0, 1, 1, and 0. Therefore, (1, 4) is the first customer pair in the temporary set. Similarly, the number of times customers 2-9 are served before other customers can be counted:

[0175] Customer 2:0,0,0,1,0,0,1,0and 0

[0176] Customer 3:1,0,0,0,1,1,0,0and 0

[0177] Customer 4:0,1,0,0,0,0,0,0and 1

[0178] Customer 5:1,0,0,0,0,0,0,2and 0

[0179] Customer 6:0,0,0,1,1,0,0,0and 0

[0180] Customer 7:0,0,0,0,0,0,0,0and 0

[0181] Customer 8:0,1,0,0,0,0,0,0and 0

[0182] Customer 9:0,0,0,0,0,1,0,0and 0

[0183] Finally, the temporary set is {(1, 4), (2, 7), (3, 1), (4, 2), (5, 8), (6, 5), (8, 2), (9, 6)}.

[0184] Step 2: Randomly select two parents, for example, P1 = {[3, 1, 9, 6], [2, 4, 7], [5, 8]} and P2 = {[5, 6, 4], [3, 1], [8, 2, 7, 9]}. Compare with the temporary set, and if the same customer pair is found in the parent, save it in the offspring. Therefore, the customer pair (3, 1) and (5, 8) in parent P1 is retained in offspring 1. Similarly, the customer pair (3, 1) and (8, 2) in parent P2 is retained in offspring 2. Then, use the same method as SCOX to fill the remaining customers into the vacant positions of the offspring.

[0185] IPTL: The IPTL method retains some parent information. First, offspring 1 and offspring 2 have all the sequences of parent 1 and parent 2 respectively. Next, two points are randomly selected from parent 1 and parent 2, and then a part of these two points is intercepted and copied to the front of the offspring. Finally, duplicate customers are deleted to maintain the uniqueness of customers. Fig. 9 The whole process of IPTL is shown.

[0186] BCBRC: BCBRC can reduce the total duration and the number of vehicles at the same time. The paths with the minimum running time of each parent are retained as C1 and C2 respectively. Then, the retained customers are deleted from the other parent node. Figure 10(a)-Figure 10(d) As shown, P2 removes client C1 = {2, 4, 7}. Finally, the removed client is inserted into the position with the shortest acquisition time.

[0187] To further avoid premature convergence, we use four basic mutation operators to generate random changes, namely reverse, relocate, swap, and exchange, as shown in Figure 11:

[0188] In Figure 11(a), Reverse: Randomly select two locations and flip the order of the customers therein.

[0189] In Figure 11(b), Exchange: Randomly select 2 positions from each route to exchange.

[0190] In Figure 11(c), Relocate: Randomly select a customer and assign it to a random location.

[0191] In Figure 11(d), Swap: Randomly swap two positions in the current route.

[0192] Adaptive local search method based on Q-learning, specifically including:

[0193] First, the algorithm perceives the state of the current environment and selects the following predicted action based on the n·n Q table. Then, the action is executed in the current environment and the reward value is obtained. Finally, the Q table is updated according to formula (16):

[0194] Q(s t ,a t )=(1-α)·Q(s t ,a t )+α·[r t+1 +γ·max Q(s t+1 ,a t+1 )] (16)

[0195] Where t, α, γ, r, s, and a are the current time, learning rate, discount factor, reward, state, and action, respectively.

[0196] In addition, a new reward calculation method considering the relative reduction between goals is designed, which is described as follows:

[0197]

[0198] where p i and i are the i-th target values ​​of the parent and child, respectively. The larger the reward value, the better the selected strategy. In this way, multiple targets are considered simultaneously under the same priority.

[0199] If the reward is negative, the contribution is small and the Q value decreases; otherwise, the Q value increases, which means that the probability of the strategy being selected next time will increase.

[0200] like Fig.12 As shown, for the minimization problem of three objectives, P = (6, 8, 4) and O = (4, 5, 8) are the target value sets of the parent and the child respectively. Then, the reward is calculated by formula (17), reward = 0.21.

[0201] In addition, the ε-greedy strategy is used in action selection to provide a certain degree of randomness and prevent falling into the local optimum, as shown in Algorithm 5. This method has an ε probability of randomly selecting an action and a 1-ε probability of using the Q table to obtain the best action in the current state. Moreover, as the number of iterations increases, ε decreases at a decay rate.

[0202]

[0203]

[0204] The combination of Q-learning, multi-objective rewards and ε-greedy methods is called adaptive local search based on Q-learning. The details are as follows: (1) The Q table is initialized to a random number between 0 and 0.25. (2) Q-learning is used to select one from four neighborhood operators. (3) Each individual is improved until no further improvement can be obtained. (4) Considering the constraints (C1-C2), equation (17) is used to determine whether the current solution is adopted.

[0205]

[0206] In order to explore the solution space and accelerate convergence, a local search operator is used.

[0207] Internal 2-opt is to solve the problem of vehicle travel distance being increased due to vehicle path intersection. As shown in Figure 13(a) and Figure 13(b), r = [0, 2, 5, 4, 9, 0] is the vehicle travel route. Then, the edges (2, 5) and (4, 9) are replaced by the edges (2, 4) and (5, 9). Then r′ = [0, 2, 5, 4, 9, 0] is obtained.

[0208] Internal or-opt obtains the optimal solution by changing the connections of three edges. As shown in Figure 13(c) and Figure 13(d), replacing (2,8), (3,4), (5,9) with (2,4), (5,8), (3,9) yields r1′=[0,2,4,5,8,3,9,0]. It is worth noting that the service order for customer 3 and customer 8 is the same.

[0209] External exchange is dedicated to exchanging the positions of customers in different routes. As shown in Figure 13(e) and Figure 13(f), two routes in a solution are randomly selected, such as r1 = [0, 2, 6, 7, 0] and r2 = [0, 9, 4, 5, 0], and customers 4 and 6 are replaced, resulting in r′1 = [0, 2, 4, 7, 0] and r2′ = [0, 9, 6, 5, 0].

[0210] External 2-opt* is an extension of Internal 2-opt, and its purpose is to modify two edges in different paths. As shown in Figure 13(g) and Figure 13(h), the edges (2,5) and (9,4) in different paths are replaced by (2,4) and (9,5). r1′=[0,2,4,0] and r2′=[0,9,5,0] are obtained respectively.

[0211] External relocate selects customers and then moves them from one path to another. As shown in Figure 13(i) and Figure 13(j), r1 = [0, 2, 6, 7, 0] and r2 = [0, 9, 5, 0] are two randomly selected routes. Customer 6 moves from r1 to r2, resulting in r1′ = [0, 2, 7, 0] and r2′ = [0, 9, 6, 5, 0].

[0212] In order to verify the proposed algorithm, standard benchmark instances and specific problem instances are introduced respectively. Subsequently, in order to further improve the performance of the algorithm, the algorithm parameters are optimized. Next, a series of related experiments are designed to verify the effectiveness of the proposed strategy. At the same time, the algorithm is compared with other multi-objective evolutionary algorithms. Finally, the algorithm is tested on the VRPTW instance.

[0213] All algorithms are implemented on the PlatEMO platform, and all tests are performed on a laptop with Intel(R) Core(TM) i5-6300HQCPU@2.30GHz and 8GB RAM.

[0214] Solomon divides the 56 instances into three categories according to the customer distribution, where C, R and RC represent customer cluster distribution, customer random distribution and the combined distribution of C and R. Each category is further divided into short scheduling period and long scheduling period according to the size of the customer time window, which are denoted as 1 and 2.

[0215] Experimental example:

[0216] The TDGVRPTW instance is generated based on the Solomon instance and the Dabia dataset. Each example can be named t_k_s, where t is a three-category distribution t∈{C, R, RC}, k is a time window type k∈{1, 2}, and s is the number of customers s∈{25, 50, 100}. There are 168 instances in total. The number of customers in each category, warehouse opening hours, vehicle capacity, and service time are all known quantities, as can be seen in Table 1. Table 2 shows the speed level in each time zone. The time range l0 is divided into 5 time zones. In addition, according to the different characteristics of the road, the speed is divided into three levels, namely fast, medium, and slow. The road slope value is generated by a 0-1 uniform distribution. The coefficients ω and They are set to 7.5 and 0.06 respectively. In formula (16), α, γ, ε and decayrate are set to 0.1, 0.9, 0.05 and 0.999 respectively.

[0217] Table 1 Example information

[0218]

[0219] Table 2 Speed ​​information for each time period

[0220]

[0221] Evaluation indicators

[0222] All algorithms were run 10 times independently, and the maximum number of calculations for each instance was set to 20,000. Then, the approximate PFs of all algorithms were merged to obtain the final PF of each instance. Figure 14(a) and Figure 14(b) show the final PFs of C101_100 and R101_100.

[0223] The performance indicators used are as follows:

[0224] Hypervolume (HV) is used as an indicator to evaluate the performance of the algorithm. This indicator is calculated by normalizing all target values ​​at the reference point [3.1, 3.1, 3.1]. Therefore, the boundary area surrounded by the reference point and PF is used as the basis for measuring the convergence and diversity of the solution. The higher the HV value, the better the quality of the solution.

[0225] The inverted generational distance (IGD) indicator is used to measure the distance between the approximate PF and the final PF. The smaller the IGD value, the closer the approximate optimal solution is to the final PF.

[0226] Relative percentage increase (RPI) is also used to analyze all data comparing algorithms in the same instance. The RPI value is calculated by formula (18):

[0227] Among them, D c To compare the 1-HV or IGD values ​​obtained by the algorithm, D b is the best value of 1-HV or IGD. As with HV, the lower the RPI value, the better the quality of the approximate optimal solution.

[0228] In order to study the impact of key parameters (crossover rate Cr and local search rate LSr) on QMOEA, the experimental design method (DOE) is used to calibrate the QMOEA parameters, and the maximum number of evaluations is set to 3000. For example, for the cases with 25, 50 and 100 customers, the population size PS is set to 30, 50 and 100 respectively. Table 3 lists the parameter levels of these two parameters.

[0229] Table 3 Level settings of Cr and LSr

[0230]

[0231] A full factor analysis method was used with a total of 6 × 6 = 36 different combinations of the two factors. Six cases were randomly selected from each of C1, C2, R1, R2, RC1 and RC2. Using these 36 cases, each case was independently run 5 times to calibrate the proposed QMOEA. The 95% confidence intervals of the parameters Cr and LSrHV are shown in Figure 15.

[0232] As can be seen from Figure 15(a), the HV value is better when Cr = 0.15. After this point, the performance of the algorithm gradually decreases as Cr increases. Similarly, for the local search level shown in Figure 15(b), when LSr = 0.5, the stability of the algorithm or the HV value can obtain the optimal value. Thus, the optimal parameter combination is obtained, that is, = 0.15, = 0.5.

[0233] In order to prove the effectiveness of the initial strategy, we designed two algorithms, namely QMOEA-R uses only random strategy and QMOEA-H uses mixed strategy. QMOEA-R and QMOEA-H are run independently 30 times in all examples and only obtain the non-dominated solution set of the first generation population. We record the HV obtained from each run of each example as RV (Response Variable). The mean value of RV is shown in Fig.16 For greater clarity, based on the number of customers s∈{25, 50, 100, Fig.16 It is divided into three parts.

[0234] from Fig.16 It can be seen that QMOEA-H is much better than QMOEA-R. In 147 out of 168 cases (87.5%), the HV of QMOEA-H is significantly better than the random strategy, indicating that the mixed initial strategy can provide a high-quality and diverse initial population. Moreover, as the number of customers increases, the difference between QMOEA-H and QMOEA-R becomes more significant, and the effectiveness of the mixed strategy will become more obvious. The main reason for this phenomenon is that as the number of customers increases, the convergence and diversity conflicts of the solution become more obvious.

[0235] Fig.17 The approximate PF of C102_100 obtained by QMOEA-H and QMOEA-R in the initialization phase is shown. We can clearly see that QMOEA-H is significantly better than QMOEA-R in both distribution and convergence.

[0236] Table 4 Experimental results of QMOEA-SC and QMOEA-NSC

[0237]

[0238]

[0239] To verify the effectiveness of SCOX and CBOX, two different types of QMOEA algorithms are designed, namely, QMOEA-NSC without SCOX and SBOX and QMOEA-SC with SCOX and SBOX. The calculation results of HV and IGD are summarized in Table 4. “A” represents the average of a set of examples. For example, AC1_25 is the average of all examples of C1 with 25 customers, namely, C101_25, C102_25, C103_25, C104_25, C105_25, C106_25, C107_25, C108_25, C109_25. The best IGD and HV values ​​are marked in bold. Table 4 reports that QMOEA-SC solves 13 out of 18 problems (72.2%) with optimality. For the IGD values, it is obvious that QMOEA-NSC is more effective than QMOEA-SC, especially when the number of customers increases.

[0240] In addition, for all examples of IGD and 1-HV, non-factorial ANOVA was performed on QMOEA-SC and QMOEA-NSC. The ANOVA results are shown in Figure 18(a) and Figure 18(b), respectively. It can be clearly seen that the correlation index p<0.05 indicates that SCOX and SBOX are significantly effective within the 95% LSD (least-significant difference) interval.

[0241] In order to verify the performance of the proposed Q-learning based adaptive local search method, QMOEA-NQ with randomly selected neighborhoods and QMOEA-Q with adaptive local search are designed. The calculation results of HV and IGD of the two algorithms are shown in Table 5. The first column gives 18 randomly selected instances. Each instance is run 5 times by QMOEA-NQ and QMOEA-Q respectively, and the average HV and IGD values ​​are obtained. The HV comparison of the two algorithms is given in the second and third columns, respectively. The results of IGD are provided in the fourth and fifth columns, respectively.

[0242] It can be seen from Table 5 that: (1) For the HV value, QMOEA-Q obtained 12 optimal values, which means that the algorithm is better than QMOEA-NQ in both convergence and diversity. (2) For the IGD value, QMOEA-Q obtained 10 good values, which further verifies the effectiveness of the adaptive local search method.

[0243] Table 5 Experimental results of QMOEA-NQ and QMOEA

[0244]

[0245] When solving MO-TDGVRPTW, five algorithms, MOEA / D (2007), MaOEA-CSS (2017), RPDNSGAII (2018), and hpaEA (2019), are extended to solve the problem. In order to make a fair comparison, each compared algorithm sets the same maximum number of evaluations and repeats the execution 10 times for 168 instances. The HV and IGD values ​​of each case are obtained.

[0246] All data of 168 cases were analyzed using RPI and divided into three groups according to the number of customers s = {25, 50, 100}. Figure 19(a) to Figure 19(f) The box plots of IGD and 1-HV are shown. The first column is the classification of the number of customers. The second and third columns provide the RPI of HV and IGD of the five different algorithms, respectively. For the HV value, the QMOEA algorithm achieves the minimum RPI value, which is largely superior to all the compared algorithms. For the IGD value, there is no significant difference among QMOEA, MaOEA-CSS, RPDNSGAII, and RPDNSGAII. The above analysis shows that QMOEA can achieve better performance in terms of solution diversity. The comparison results of HV and IGD values ​​of all examples with 50 customers are shown in Table 6.

[0247] Table 6 HV and IGD values ​​for the case with 50 customers

[0248]

[0249]

[0250]

[0251] The QMOEA is further tested on the Solomon example without considering the slope, speed change and customer satisfaction. The benchmark example has been thoroughly studied and the optimal solution can be directly obtained from the literature. When the multi-objective optimization algorithm is used to solve the problem, TD and NV are set to the same priority. At the same time, Tan et al. found that there is a positive correlation between the C1 and C2 objectives, that is, C1 and C2 have unique solutions. Therefore, we use the characteristics of C1 and C2 to verify the reliability of the algorithm.

[0252] For C1 and C2, the parameters used by the algorithm in this paper are shown in Table 7, and the calculation results are shown in Table 8. Figures 20(a) and 20(b) show the process of iterative solution generation and the final solution of example C102. Therefore, the experiment once again verified Tan's findings. As shown in Table 8, QMOEA can solve 14 (82.4%) of the 17 problems optimally. The difference between the remaining problems and the optimal solution is less than 1.06%. Therefore, the algorithm is effective.

[0253] Table 7 Parameters of QMOEA

[0254]

[0255] In addition, Figure 21(a) and Figure 21(c) show the customer location distribution of the C1 and C2 examples, where (40, 50) represents the parking lot, where each vehicle starts from and eventually returns to, and other points represent customer locations. The optimal paths of C102 and C205 are shown in Figure 21(b) and Figure 21(d), respectively, where different lines represent different vehicle routes.

[0256] Table 8 Optimal solutions for C1 and C2 examples

[0257]

[0258]

[0259] This embodiment studies the three-objective version of TDGVRPTW and proposes a multi-objective optimization algorithm based on Q-Learning, in which the three objectives of total vehicle travel time, energy consumption and customer satisfaction are considered simultaneously. First, a hybrid initialization method containing four different initialization methods is used to improve the quality of the solution. Secondly, two Pareto frontier-based crossover strategies are designed to explore the search space and accelerate the convergence process. Subsequently, the sequence of local search operators is determined by the Q-learning algorithm to improve the mining capability. Finally, the effectiveness of the algorithm is verified by examples.

[0260] In future work, the TDGVRPTW model needs to be further developed to consider more realistic constraints, such as heterogeneous vehicle transportation, open vehicle transportation, warehouse capacity constraints, etc. In addition, in order to achieve better performance, the knowledge of specific problems in various realistic industrial environments should be extracted and utilized. In addition, reinforcement learning with deep reinforcement learning networks and other state-of-the-art strategies should also be studied. At the same time, better heuristic strategies should be designed to accelerate the convergence process of the solution.

[0261] Embodiment 2

[0262] This embodiment provides a time-varying vehicle path planning system with a time window, including:

[0263] A data acquisition module is configured to: acquire basic data, the basic data including customer information and vehicle information;

[0264] The optimal planning path module is configured to include the following steps:

[0265] According to the current basic data and the multi-objective optimization model of time-varying green vehicle path planning with soft time windows, the optimal planning path is obtained;

[0266] The construction process of the multi-objective optimization model for time-varying green vehicle path planning with soft time windows includes:

[0267] The multi-objective optimization model of time-varying green vehicle path planning with soft time windows is defined as a complete completely directed graph, which consists of a vertex set and an edge set. The vertex set includes a customer set and a vehicle set. Each customer is associated with service time, commodity demand and time window, and each edge represents the corresponding vehicle path. At the same time, the multi-objective optimization model is defined as a three-dimensional objective minimization problem. The optimal planning path is obtained by combining the complete directed graph and the three-dimensional objective minimization problem.

[0268] Embodiment 3

[0269] The embodiment of this specification provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the time-varying green vehicle path planning method with time windows in the first embodiment are implemented.

[0270] Embodiment 4

[0271] The embodiment of this specification provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the time-varying green vehicle path planning method with time windows in the first embodiment are implemented.

[0272] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A time-varying vehicle path planning method with a time window, characterized in that: The steps include: Acquiring basic data, wherein the basic data includes customer information, vehicle information, and warehouse information; The optimal planning path is obtained based on customer information, vehicle information, warehouse information and a multi-objective optimization model for time-varying green vehicle path planning with a soft time window. The construction process of the multi-objective optimization model for time-varying green vehicle path planning with soft time windows includes: The multi-objective optimization model of time-varying green vehicle path planning with soft time windows is defined as a complete fully directed graph, which consists of a vertex set and an edge set. The vertex set includes a customer set and a vehicle set. Each customer is associated with service time, commodity demand and time window, and each edge represents a corresponding vehicle path. At the same time, the multi-objective optimization model is defined as a three-dimensional objective minimization problem, which includes the minimum travel time, the lowest energy consumption and the highest customer satisfaction score. Specifically, it includes: the travel time function that varies with time , energy consumption function And customer satisfaction function ; expressed as: Based on the multi-objective optimization function, a multi-objective evolutionary algorithm based on Q-learning is used to obtain the initial solution; Specifically, it includes: encoding and decoding each feasible solution, and obtaining an initial solution by adopting a hybrid initial strategy; encoding and decoding each feasible solution is: each feasible solution can be encoded into a two-dimensional vector, and the two-dimensional vector includes a customer service sequence vector and a scheduling sequence of each vehicle, and the scheduling sequence of each vehicle is the same as the customer service sequence vector, indicating the corresponding relationship between customers and vehicles, decoding the encoded feasible solution, and calculating each target according to the scheduling order of each vehicle to obtain the slave node To Node The hybrid initial strategy includes four problem-specific heuristics: a random method, a k-nearest neighbor heuristic, an improved forward insertion heuristic, and an earliest first time heuristic. The multi-objective optimization model includes constraints, which include return time constraints, vehicle capacity constraints, single visit constraints, soft time window assumptions, vehicle type assumptions, and departure time assumptions; Based on the initial solution, the search space is explored based on the cross strategy of Pareto frontier and the local search capability is enhanced by embedding the adaptive local search method based on Q-learning and the reward update method to balance multiple objectives to obtain the optimal solution of the three-dimensional objective minimization problem. Finally, the optimal planning path is obtained by combining the completely directed graph and the three-dimensional objective minimization problem.

2. A time-varying vehicle path planning method with a time window as claimed in claim 1, characterized in that: The adaptive local search method based on Q-learning embeds the enhanced local search capability, including: Perceive the state of the current environment and select the predicted action based on the Q table; Actions are performed in the current environment and receive reward value; Update Q table; A new reward calculation method is designed that takes into account the relative reduction between targets. If the reward is negative, the contribution is small and the Q value decreases. Otherwise, the Q value increases.

3. A time-varying vehicle path planning system with a time window, characterized in that: include: A data acquisition module is configured to: acquire basic data, the basic data including customer information, vehicle information and warehouse information; The optimal planning path module is configured to include the following steps: The optimal planning path is obtained based on customer information, vehicle information, warehouse information and a multi-objective optimization model for time-varying green vehicle path planning with a soft time window. The construction process of the multi-objective optimization model for time-varying green vehicle path planning with soft time windows includes: The multi-objective optimization model of time-varying green vehicle path planning with soft time windows is defined as a complete fully directed graph, which consists of a vertex set and an edge set. The vertex set includes a customer set and a vehicle set. Each customer is associated with service time, commodity demand and time window, and each edge represents a corresponding vehicle path. At the same time, the multi-objective optimization model is defined as a three-dimensional objective minimization problem, which includes the minimum travel time, the lowest energy consumption and the highest customer satisfaction score. Specifically, it includes: the travel time function that varies with time , energy consumption function And customer satisfaction function ; expressed as: Based on the multi-objective optimization function, a multi-objective evolutionary algorithm based on Q-learning is used to obtain the initial solution; Specifically, it includes: encoding and decoding each feasible solution, and obtaining an initial solution by adopting a hybrid initial strategy; encoding and decoding each feasible solution is: each feasible solution can be encoded into a two-dimensional vector, and the two-dimensional vector includes a customer service sequence vector and a scheduling sequence of each vehicle, and the scheduling sequence of each vehicle is the same as the customer service sequence vector, indicating the corresponding relationship between customers and vehicles, decoding the encoded feasible solution, and calculating each target according to the scheduling order of each vehicle to obtain the slave node To Node The hybrid initial strategy includes four problem-specific heuristics: a random method, a k-nearest neighbor heuristic, an improved forward insertion heuristic, and an earliest first time heuristic. The multi-objective optimization model includes constraints, which include return time constraints, vehicle capacity constraints, single visit constraints, soft time window assumptions, vehicle type assumptions, and departure time assumptions; Based on the initial solution, the search space is explored based on the cross strategy of Pareto frontier and the local search capability is enhanced by embedding the adaptive local search method based on Q-learning and the reward update method to balance multiple objectives to obtain the optimal solution of the three-dimensional objective minimization problem. Finally, the optimal planning path is obtained by combining the completely directed graph and the three-dimensional objective minimization problem.

4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the time-varying green vehicle path planning method with time window described in any one of claims 1-2 are implemented.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the time-varying green vehicle path planning method containing a time window described in any one of claims 1-2 are implemented.

Citation Information

Patent Citations

  • Multi-target vehicle route planning method based on self-adaptive local searching chain

    CN109764882A

  • A heterogeneous hazardous chemical substance transportation path planning method with a time window

    CN109948855A

  • System and method for routing optimization

    CN112567399A

  • Method for solving problem of vehicle route problem with soft time window

    CN112733272A

  • Method for solving multi-target traveling salesman problem through deep reinforcement learning based on meta-learning

    CN112800680A