A UAV material distribution planning method
Through the drone material distribution planning method, the problem of urban traffic congestion and shortage of material storage is solved, efficient material distribution is achieved within the constrained time, the model solution process is simplified, and traditional distribution methods are applied, which improves distribution efficiency and uniform warehouse location. sex.
Patent Information
- Application Number
- CN202210409526.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-19
AI Technical Summary
Urban traffic congestion causes material distribution vehicles to be unable to deliver materials on time, and storage conditions for scarce materials are high and expensive. How to reasonably select storage warehouses and distribution scope is an issue that needs to be solved urgently.
Using the drone material distribution planning method, by determining the number and location of warehouses, calculating the distance between warehouses, establishing a reserve warehouse quantity model and a drone material distribution planning model, using genetic algorithms to solve the problem to achieve the minimum number of reserve warehouses and minimize the total distribution time.
Realizes material distribution within constrained time, improves distribution efficiency, reduces model complexity, simplifies operations, is suitable for traditional distribution methods, and shows the optimization effect of reserve warehouse location distribution uniformity and distribution time in practical applications.
Smart Images

Figure CN114881555B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of material distribution, and in particular to a method for planning material distribution by unmanned aerial vehicle (UAV). Background Art
[0002] Nowadays, urban traffic jams are frequent, and vehicles are greatly affected by unknown traffic conditions during driving, resulting in the inability of material delivery vehicles to deliver materials on time. Since drones are not restricted by terrain factors and traffic conditions, they can deliver scarce materials. Considering the high storage requirements and high cost of scarce items, how to reasonably select warehouses and distribution ranges for scarce materials according to actual conditions is an urgent problem to be solved. Summary of the invention
[0003] In view of the above-mentioned problems, the present invention aims to provide a UAV material distribution planning method, which can realize material distribution within the constrained time and has high distribution efficiency.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0005] A method for planning the distribution of materials by unmanned aerial vehicles, characterized in that it comprises the following steps:
[0006] S1: Determine the number, location and distribution range of warehouses;
[0007] S2: Calculate the distance between any two warehouses based on the warehouse coordinate data;
[0008] S3: Taking the minimum number of reserve warehouses as the goal and the delivery time as the constraint, a reserve warehouse quantity model is established;
[0009] S4: Solve the reserve warehouse quantity model in step S3 to obtain the minimum number of reserve warehouses;
[0010] S5: Establish a drone material delivery planning model with the goal of minimizing the maximum total delivery time of each reserve warehouse;
[0011] S6: Solve the drone material distribution planning model established in step S5 to obtain the final drone material distribution plan.
[0012] Furthermore, the distance between the two warehouses in step S2 is calculated as follows:
[0013]
[0014] Where, d ij is the distance between warehouse i and warehouse j, (x i ,y i ) is the coordinate of warehouse i, (x j ,yj ) are the coordinates of warehouse j.
[0015] Furthermore, the specific operation of establishing the reserve warehouse quantity model in step S3 includes the following steps:
[0016] S301: Let warehouse i be the reserve warehouse, and warehouse i delivers materials to warehouse j, then
[0017] a ij ≤id i (i, j = 1, 2, ..., m) (2)
[0018] In the formula, id i It is the quantification of whether warehouse i is a reserve warehouse. When warehouse i is a reserve warehouse, it is the id i The value is 1, otherwise it is 0; a ij is the quantity of materials delivered from warehouse i to warehouse j, when warehouse i is a reserve warehouse and delivers materials to warehouse j i The value of j is 1, otherwise it is 0; m is the total number of warehouses;
[0019] Each warehouse needs one and only one reserve warehouse to distribute materials.
[0020]
[0021] S302: Taking the delivery time as a rigid constraint,
[0022]
[0023] Where n is the delivery time; Formula (4) can be transformed into
[0024] a ij d ij ≤n(i,j=1,2,…,m) (5)
[0025] S303: With the minimum number of reserve warehouses as the goal and the delivery time as the constraint, a reserve warehouse quantity model is established, and we can get
[0026]
[0027] The constraints are
[0028]
[0029] Furthermore, the specific operation of solving the reserve warehouse quantity model in step S4 includes the following steps:
[0030] S401: Analyze the constraints of the reserve warehouse quantity model, and we can get
[0031] Conclusion 1: According to constraint (5), d ij >n, a ij =0(i,j=1,2,…,m);
[0032] Conclusion 2: According to constraints (2) and (3), if id i =0, then a ij =0(j=1, 2, ..., m);
[0033] If id i =1, there are two cases:
[0034] Case A: Then a ij =0(j≠j0); where, Indicates existence, that is, existence
[0035] Case b: The remaining variables are to be determined;
[0036] S402: Determine whether the coefficients in the constraint conditions satisfy conclusion 1. If so, determine the value of the variable and go to step S404. Otherwise, go to step S403.
[0037] S403: Determine whether the coefficients in the constraint conditions satisfy conclusion 2. If so, determine the value of the variable. If not, divide into cases a and b. In case a, go to step S404, and in case b, go to step S405.
[0038] S404: repeating steps S402 and S403 until the value of the variable cannot be determined;
[0039] S405: Use implicit enumeration to solve the values of all variables and obtain the minimum number of reserve warehouses hnum.
[0040] Furthermore, the specific operation of establishing the drone material distribution planning model in step S5 includes the following steps:
[0041] S501: Considering that scarce materials have high storage requirements and are expensive, keeping the number of reserve warehouses unchanged, still hnum, the total distribution time of the reserve warehouse is expressed as
[0042]
[0043] S502: Convert equation (7) into
[0044] min t (8)
[0045] In the formula, t represents the total delivery time of the reserve warehouse;
[0046] S503: According to step S502, a drone material distribution planning model can be established with the goal of minimizing the total distribution time of the reserve warehouse.
[0047]
[0048] Furthermore, the specific operation of solving the drone material distribution planning model in step S6 includes the following steps:
[0049] S601: Revise the drone material distribution planning model established in step S5 to obtain
[0050]
[0051] Take equality as constraint and inequality as judgment condition;
[0052] S602: Using genetic algorithm to solve the revised UAV material distribution planning model.
[0053] Furthermore, the specific operation of step S602 includes the following steps:
[0054] S6021: Input data, set population size, genetic generation, and crossover rate;
[0055] S6022: Generate an initial group that satisfies formula (2) and formula (4);
[0056] S6023: Perform corresponding operations on the population through selection, crossover, and mutation operators;
[0057] S6024: Check the stopping condition. If it is satisfied, go to step S6025; otherwise, remove the population that does not satisfy formula (2) and formula (4), and go to step S6023 to repeat the operation; the stopping condition is a specified objective function value threshold or genetic generation number;
[0058] S6025: Output the optimal solution.
[0059] The beneficial effects of the present invention are:
[0060] 1. The drone material distribution planning method of the present invention takes into account the balance of tasks in the material distribution process, can achieve material distribution within the constraint time, and the total distribution time is minimized with high distribution efficiency.
[0061] 2. The method used in the present invention to solve the reserve warehouse quantity model can greatly reduce the complexity of the model and improve the solution speed of the model.
[0062] 3. The drone material distribution planning model established in the present invention is still applicable when the material distribution is carried out in a traditional way. It only needs to calculate the distance between any two warehouses in the model, and the operation is simple and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 This is a schematic diagram of the location of a reserve warehouse planned using the drone material distribution planning method of the present invention in a specific implementation manner of the present invention. DETAILED DESCRIPTION
[0064] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0065] A method for planning the distribution of materials by unmanned aerial vehicles comprises the following steps:
[0066] S1: Determine the number, location and distribution range of warehouses;
[0067] Specifically, the coordinates and related data information of all warehouses in a city are given in Table 1. Assuming that the delivery materials are required to reach the required warehouse within 3 minutes (the speed of the drone is 60km / h), the number, location and delivery range of the warehouses are first confirmed.
[0068] Table 1 Information of warehouses in a certain city
[0069]
[0070] Note: The ratio between the distance (mm) in Table 1 and the actual distance is 1:100000, that is, 1 mm corresponds to 0.1 km.
[0071] Assume that the workload of the reserve warehouse is measured by the number of deliveries or the total delivery time (total distance); the distance between warehouses is in km, the time is in min, and the speed is in km / min; the delivery speed of the drone is 60km / h (i.e. 1km / min); each warehouse has the same daily demand for scarce materials.
[0072] Further, S2: calculating the distance between any two warehouses based on the coordinate data of the warehouses;
[0073] Specifically, the distance between two warehouses is calculated as follows:
[0074]
[0075] Where, d ij is the distance between warehouse i and warehouse j, (x i ,y i ) is the coordinate of warehouse i, (xj ,y j ) are the coordinates of warehouse j.
[0076] Further, S3: Taking the minimum number of reserve warehouses as the goal and the delivery time as the constraint, a reserve warehouse quantity model is established;
[0077] Specifically, S301: Let warehouse i be the reserve warehouse, and warehouse i delivers materials to warehouse j, then
[0078] a ij ≤id i (i, j = 1, 2, ..., m) (2)
[0079] In the formula, id i It is the quantification of whether warehouse i is a reserve warehouse. When warehouse i is a reserve warehouse, it is the id i The value is 1, otherwise it is 0; a ij is the quantity of materials delivered from warehouse i to warehouse j, when warehouse i is a reserve warehouse and delivers materials to warehouse j ij The value is 1, otherwise it is 0; m is the total number of warehouses, and the value of m in this embodiment is 92;
[0080] Each warehouse needs one and only one reserve warehouse to distribute materials.
[0081]
[0082] S302: Taking the delivery time as a rigid constraint,
[0083]
[0084] Where n is the delivery time, and in this embodiment, the value of n is 3; Formula (4) can be converted into
[0085] a ij d ij ≤n(i,j=1,2,…,m) (5)
[0086] S303: With the minimum number of reserve warehouses as the goal and the delivery time as the constraint, a reserve warehouse quantity model is established, and we can get
[0087]
[0088] The constraints are
[0089]
[0090] Further, S4: solving the reserve warehouse quantity model in step S3 to obtain the minimum number of reserve warehouses;
[0091] Specifically, S401: Common solutions for 0-1 integer programming include exhaustive method and implicit enumeration method. When there are too many variables, the complexity of these two methods is too high. However, actual problems sometimes do not require optimal solutions, and suboptimal solutions are also a good choice. Therefore, we first analyze the constraints of the reserve warehouse quantity model, and we can get
[0092] Conclusion 1: According to constraint (5), d ij >n, a ij =0(i,j=1,2,…,m);
[0093] Conclusion 2: According to constraints (2) and (3), if id i =0, then a ij =0(j=1, 2, ..., m);
[0094] If id i =1, there are two cases:
[0095] Case A: Then a ij =0(j≠j0); where, Indicates existence, that is, existence
[0096] Case b: The remaining variables are to be determined;
[0097] S402: Determine whether the coefficients in the constraint conditions satisfy conclusion 1. If so, determine the value of the variable and go to step S404. Otherwise, go to step S403.
[0098] S403: Determine whether the coefficients in the constraint conditions satisfy conclusion 2. If so, determine the value of the variable. If not, divide into cases a and b. In case a, go to step S404, and in case b, go to step S405.
[0099] S404: repeating steps S402 and S403 until the value of the variable cannot be determined;
[0100] S405: Use implicit enumeration to solve the values of all variables and obtain the minimum number of reserve warehouses hnum.
[0101] This method can greatly reduce the complexity of the model and improve the speed of model solution.
[0102] Further, S5: establish a UAV material delivery planning model with the goal of minimizing the maximum total delivery time of each reserve warehouse;
[0103] S501: Considering that scarce materials have high storage requirements and are expensive, keeping the number of reserve warehouses unchanged, still hnum, the total distribution time of the reserve warehouse is expressed as
[0104]
[0105] S502: Convert equation (7) into
[0106] min t (8)
[0107] In the formula, t represents the total delivery time of the reserve warehouse;
[0108] S503: According to step S502, a drone material distribution planning model can be established with the goal of minimizing the total distribution time of the reserve warehouse.
[0109]
[0110] Further, S6: solving the drone material distribution planning model established in step S5 to obtain the final drone material distribution plan.
[0111] Specifically, S601: Considering that the actual problem sometimes does not require the optimal solution, the suboptimal solution is also a good choice. For this reason, the drone material distribution planning model established in step S5 is revised to obtain
[0112]
[0113]
[0114] Take equality as constraint and inequality as judgment condition;
[0115] S602: Use genetic algorithm to solve the revised UAV material distribution planning model. More specifically, S6021: Input data, set population size, genetic generation, and crossover rate;
[0116] S6022: Generate an initial group that satisfies formula (2) and formula (4);
[0117] S6023: Perform corresponding operations on the population through selection, crossover, and mutation operators;
[0118] S6024: Check the stopping condition. If it is satisfied, go to step S6025; otherwise, remove the population that does not satisfy formula (2) and formula (4), and go to step S6023 to repeat the operation; the stopping condition is a specified objective function value threshold or genetic generation number;
[0119] S6025: Output the optimal solution.
[0120] The method of the present invention is used to establish a reserve warehouse quantity model and a drone material distribution planning model for the different warehouses in Table 1, and the corresponding solutions are performed to obtain the reserve warehouses and distribution plans that consider the balance of the total distribution time (total distance). The results are shown in Table 2 below.
[0121] Table 2 Considering the balance of total delivery time (total distance) for each reserve warehouse and distribution plan
[0122]
[0123] The storage warehouse is graphically represented by MATLAB software as shown in the attached figure. Figure 1 As shown in the figure, the reserve warehouse locations are evenly distributed. The distribution results in Table 2 are calculated by MATLAB to meet the model constraints. The maximum number of distributions for the reserve warehouse is 23. The maximum distribution time is 39.47748 minutes.
[0124] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for planning the distribution of materials by unmanned aerial vehicles, characterized in that: The following steps are included: S1: Determine the number, location and distribution range of warehouses; S2: Calculate the distance between any two warehouses based on the warehouse coordinate data; S3: Taking the minimum number of reserve warehouses as the goal and the delivery time as the constraint, a reserve warehouse quantity model is established; S4: Solve the reserve warehouse quantity model in step S3 to obtain the minimum number of reserve warehouses; S5: Establish a drone material delivery planning model with the goal of minimizing the maximum total delivery time of each reserve warehouse; S6: Solve the drone material distribution planning model established in step S5 to obtain the final drone material distribution plan; The distance between two warehouses in step S2 is calculated as follows: Where, d ij is the distance between warehouse i and warehouse j, (x i ,y i ) is the coordinate of warehouse i, (x j ,y j ) is the coordinate of warehouse j; The specific operation of establishing the reserve warehouse quantity model in step S3 includes the following steps: S301: Let warehouse i be the reserve warehouse, and warehouse i delivers materials to warehouse j, then a ij ≤id i (i,j=1,2,…,m) (2) In the formula, id i It is the quantification of whether warehouse i is a reserve warehouse. When warehouse i is a reserve warehouse, it is the id i The value is 1, otherwise it is 0; a ij is the quantity of materials delivered from warehouse i to warehouse j, when warehouse i is a reserve warehouse and delivers materials to warehouse j ij The value is 1, otherwise it is 0; m is the total number of warehouses; Each warehouse needs one and only one reserve warehouse to distribute materials. S302: Taking the delivery time as a rigid constraint, Where n is the delivery time; Formula (4) can be transformed into a ij d ij ≤n(i,j=1,2,…,m) (5) S303: With the minimum number of reserve warehouses as the goal and the delivery time as the constraint, a reserve warehouse quantity model is established, and we can get The constraints are The specific operation of solving the reserve warehouse quantity model in step S4 includes the following steps: S401: Analyze the constraints of the reserve warehouse quantity model, and we can get Conclusion 1: According to constraint (5), d ij >n, a ij =0(i,j=1,2,…,m); Conclusion 2: According to constraints (2) and (3), if id i =0, then a ij =0(j=1, 2, ..., m); If id i =1, there are two cases: Case A: Then a ij =0(j≠j0); where, Indicates existence, that is, existence Case b: The remaining variables are to be determined; S402: Determine whether the coefficients in the constraint conditions satisfy conclusion 1. If so, determine the value of the variable and go to step S404. Otherwise, go to step S403. S403: Determine whether the coefficients in the constraint conditions satisfy conclusion 2. If so, determine the value of the variable. If not, divide into cases a and b. In case a, go to step S404, and in case b, go to step S405. S404: repeating steps S402 and S403 until the value of the variable cannot be determined; S405: using implicit enumeration method to solve the values of all variables and obtain the minimum number of reserve warehouses hnum; The specific operation of establishing the drone material distribution planning model in step S5 includes the following steps: S501: Considering that scarce materials have high storage requirements and are expensive, keeping the number of reserve warehouses unchanged, still hnum, the total distribution time of the reserve warehouse is expressed as S502: Convert equation (7) into min t (8) In the formula, t represents the total delivery time of the reserve warehouse; S503: According to step S502, a drone material distribution planning model can be established with the goal of minimizing the total distribution time of the reserve warehouse. min t 2. The method for planning the distribution of materials by unmanned aerial vehicles according to claim 1, characterized in that: The specific operation of solving the drone material distribution planning model in step S6 includes the following steps: S601: Revise the drone material distribution planning model established in step S5 to obtain Take equality as constraint and inequality as judgment condition; S602: Using genetic algorithm to solve the revised UAV material distribution planning model.
3. The method for planning the distribution of materials by unmanned aerial vehicles according to claim 2, characterized in that: The specific operation of step S602 includes the following steps: S6021: Input data, set population size, genetic generation, and crossover rate; S6022: Generate an initial group that satisfies formula (2) and formula (4); S6023: Perform corresponding operations on the population through selection, crossover, and mutation operators; S6024: Check the stopping condition. If it is satisfied, go to step S6025; otherwise, remove the population that does not satisfy formula (2) and formula (4), and go to step S6023 to repeat the operation; the stopping condition is a specified objective function value threshold or genetic generation number; S6025: Output the optimal solution.
Citation Information
Patent Citations
Logistics transportation decision-making support system and method, and transportation management system
CN101620694A
Freshwater aquaculture water quality prediction system based on meteorological data
CN106022501A
Unmanned aerial vehicle distribution system oriented to community, and distribution method
CN110641700A
Multi-unmanned aerial vehicle cooperative flight path planning method
CN112733251A
Method and system for obtaining indication of carbon emissions based on transport route and transport mode predictions
CN114202089A
