Unmanned aerial vehicle task scheduling and path planning method oriented to importance random update
Through the UAV task scheduling and path planning method for random importance updates, combined with particle swarm and genetic algorithms, the problem of task point importance changes and cross-cycle effects is solved, and the efficiency and optimization of UAV monitoring and inspections are improved. process efficiency.
Patent Information
- Application Number
- CN202310349891.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
AI Technical Summary
Existing technologies fail to effectively consider real-time changes in the importance of mission points and cross-cycle effects, resulting in inefficient UAV mission scheduling.
UAV task scheduling and path planning methods oriented to stochastic importance update are adopted, using integer nonlinear programming and multi-cycle stochastic nonlinear 0-1 programming models, combined with particle swarm algorithm and genetic algorithm for optimization, taking into account the importance of task points. Random updates and cross-cycle effects.
It improves the efficiency of drone monitoring and inspection, reduces the number of iterations in the optimization process, and provides a model that is more consistent with actual scenarios and a better sub-optimal strategy.
Smart Images

Figure BDA0004161144400000023 
Figure BDA0004161144400000035 
Figure BDA0004161144400000036
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of unmanned aerial vehicles, and in particular is a method for unmanned aerial vehicle task scheduling and path planning oriented to random importance updates. Background Art
[0002] In actual urban management and production activities, it is often necessary to monitor and inspect specific task points. These monitoring and inspections can be regular and planned, or they can be adjusted in real time according to the update of task importance.
[0003] The traditional manual management model not only takes up a lot of human resources, is time-consuming and labor-intensive, but also often leads to blind spots and delays in supervision. The use of drones equipped with various intelligent devices can achieve goals such as flexible deployment, 360-degree monitoring without blind spots, remote control, and timely response.
[0004] At the same time, taking into account the random updates of task importance and the cross-cycle impact of task scheduling decisions and establishing a multi-cycle joint optimization model can further improve the efficiency of UAV monitoring and inspection. Summary of the invention
[0005] The purpose of the present invention is to provide a method for UAV task scheduling and path planning based on random importance update, so as to solve the following technical problems:
[0006] 1) In actual scenarios, the importance of task points will change in real time. For example, the importance of task points that have not been served for a long time will gradually increase. Existing technologies do not take this into account.
[0007] 2) The real-time change of the importance of task points usually contains randomness, which is not considered by existing technologies;
[0008] 3) Since the UAV task scheduling decision within a certain cycle will affect the change of the importance of the task point, it is necessary to consider the cross-cycle impact of the task scheduling decision, that is, to consider multi-cycle joint optimization. The existing technology lacks such research.
[0009] The purpose of the present invention can be achieved through the following technical solutions:
[0010] A method for unmanned aerial vehicle task scheduling and path planning based on random importance update, characterized in that it comprises the following steps:
[0011] Step (1): Task area diagram representation
[0012] The drone can fly in a straight line between the mission points and between the mission points and the starting / end point. According to the distribution of the mission points and the starting / end point, the mission points and the starting / end point are modeled as vertices, and the distances between the mission points and between the mission points and the starting / end point are modeled as edges, so as to obtain the graph representation of the original problem. It includes the following processes:
[0013] (1.1), Task vertex sequence number set:
[0014] A={1,2,...,i,...,n} (1),
[0015] In formula (1), A represents the set of serial numbers of n task points;
[0016] (1.2) The starting / ending number is recorded as 0;
[0017] (1.3) The edge set formed by the paths between vertices:
[0018]
[0019] In formula (2), V represents the edge set consisting of the paths between n+1 vertices. represents the edge between the i1th vertex and the i2th vertex;
[0020] (1.4) Calculate the weight of the edges between vertices:
[0021]
[0022] In formula (3), represents the weight between the i1th vertex and the i2th vertex, and Represent the two-dimensional coordinates of the i1th vertex and the i2th vertex respectively;
[0023] (1.5) The time-consuming weight of the task vertex:
[0024] T={t i |1≤i≤n}. (4),
[0025] In formula (4), t i represents the time consumption of the i-th task point.
[0026] (1.6) Importance weight of task vertex in each cycle:
[0027]
[0028] In formula (5), is a random variable representing the importance of the i-th task point in the j-th cycle.
[0029] Step (2), a method for solving the optimal flight path of a UAV, characterized in that: the optimal flight path of the UAV in a certain period is determined when the importance of random tasks in the period is realized and the service task set of the UAV is given. The optimal flight path is solved by taking the jth period as an example. The following process is included:
[0030] (2.1) Allocation of given task points:
[0031]
[0032] In formula (6), A variable indicating whether task point i is served by a drone in the jth cycle. It means that task point i is served by the drone in the jth cycle. , which means that task point i is not served by the UAV in the jth cycle;
[0033] (2.2) Define the service task set:
[0034]
[0035] In formula (7), Ω j represents the set of mission points served by the drone in the jth cycle;
[0036] (2.3) Define the flight sequence decision variables:
[0037] y j,k ∈Ω j U{0},0≤k≤|Ω j |+1 (8),
[0038] In formula (8), y j,k represents the i-th path point of the drone’s flight in the j-th cycle. For any set S, |S| represents the number of its elements;
[0039] (2.4) Constrain the starting point and end point:
[0040]
[0041] Formula (8) indicates that the starting point and end point of the UAV flight are the same;
[0042] (2.5) Constrain each task point to only serve once:
[0043]
[0044] (2.6) Set the objective function to minimize the flight time of the drone:
[0045]
[0046] In formula (11), v is the flight speed of the UAV;
[0047] (2.7), combined with equations (8) to (11), the flight time minimization model of the drone in a certain period is written as follows when the importance of random tasks in the period is realized and the service task set of the drone is given:
[0048]
[0049] (2.8) The above path planning problem is an integer nonlinear programming problem, which belongs to the classic traveling salesman problem with fixed starting and ending points. The present invention uses a particle swarm algorithm to solve it. The framework of the algorithm is as follows: 1) Set the particle swarm size to N and the maximum number of iterations to I max ; 2) Use the hybrid sequence to initialize the N solutions of formula (12); 3) Find the optimal position of a single particle and the optimal position of a particle group in the N solutions; 4) For e = 1, ..., I max Do 5) to 8); 5) convert the particle position into discrete values according to a certain conversion function; 6) calculate the flight time t corresponding to the discrete values of N solutions according to formula (12) j ,by as their fitness; 7) Use the hyperbolic tangent function to decay the inertia weight ω, and update the coordinates and speed of each particle in each direction; 8) According to the new position of each particle and the conversion function, update its fitness, as well as the best position of a single particle and the best position of the particle group; 9) Iterate in this way until the maximum number of iterations is reached, and output the discrete value of the best position of the particle group at this time as the optimal solution to the original problem. represents the optimal flight path and minimum flight time of the UAV in the jth cycle obtained according to the above algorithm;
[0050] (2.9) Calculate the cumulative importance of the UAV's completed tasks in the jth cycle:
[0051]
[0052] In formula (13), It indicates the upper limit of the single flight endurance of the UAV, and M is a sufficiently large positive number.
[0053] Step (3), a multi-period task scheduling solution method, characterized in that: determining the UAV task allocation when the random task importance is not realized and the service task set of the UAV flight is not determined. It includes the following process:
[0054] (3.1) Constrain the values of task scheduling decision variables:
[0055]
[0056] (3.2) Calculate the service task set for each cycle:
[0057]
[0058] (3.3) Define the random update equation of the importance of each task point:
[0059]
[0060] Formula (16) represents the random update method of the importance of each task point starting from cycle 2, where is a random variable that realizes a certain value at the beginning of period j+1, f i (·) A random update function for the importance of each task point, which depends on the specific problem scenario;
[0061] (3.4) Set the objective function as the discounted average maximum of the cumulative expected value of the importance of completing tasks over an infinite period:
[0062]
[0063] In formula (13), β represents the discount rate, E Φ It represents the expectation operation on the random variables in the set Φ;
[0064] (3.5) and combining equations (14) to (17), we get the discounted average maximization model of the cumulative expected value of the importance of completing tasks of the UAV in an infinite period, which can be written as follows:
[0065]
[0066] (3.6) The above problem belongs to an infinite-cycle random 0-1 nonlinear programming model. The solution to its optimal decision is very complicated. Currently, there is no low-complexity optimization solution algorithm. The present invention combines genetic algorithm and single-step improvement method based on Markov decision process to solve it. The algorithm can obtain a suboptimal strategy with sufficiently good performance under the condition of sufficiently shortening the calculation time. The framework of the algorithm is as follows: 1) Define a certain benchmark task scheduling strategy π; 2) Starting from cycle 2, π is used for task scheduling in each cycle. It is assumed that the cumulative importance of completed tasks in each cycle is recorded as B j (π,Q j); 3) At this time, the discounted average of the cumulative expected value of the importance of completing the task of the drone in an infinite period is only a function of the task scheduling decision variables of period 1; 4) Randomly generate L feasible solutions as the initial population; 5) Use the exponential sorting selection method to select individuals in the current population for replication; 6) Randomly pair the individuals generated by the selection-copy operation; 7) For each individual generated by the crossover operation, perform a mutation operation with a certain mutation probability; 8) Iterate in this way until the termination condition is met, and the value of the task scheduling decision variable of period 1 can be obtained; 9) When the time reaches period j, the above method can be used to obtain the value of the task scheduling decision variable of period j. The obtained task scheduling decision Substitute the given task assignment into (2.1) of step (2) to obtain the optimal flight path under this task assignment.
[0067] The present invention proposes a method for UAV task scheduling and path planning with random importance updates. This method aims at the scenario where a UAV with a single flight duration constraint and the importance of each task will be randomly updated provides delivery services to multiple task points. The method uses integer nonlinear programming and multi-cycle random nonlinear 0-1 programming to model the above problem.
[0068] The present invention also proposes a task scheduling and path planning optimization algorithm for the above-mentioned integer nonlinear programming and multi-period random nonlinear 0-1 programming models, which combines a particle swarm algorithm, a genetic algorithm and a single-step improvement method based on a Markov decision process.
[0069] The beneficial effects of the present invention are as follows: 1) the real-time update of the importance of tasks is taken into account, so the modeling is more in line with certain real-life scenarios; 2) the cross-cycle impact of task scheduling decisions is taken into account, and the established multi-cycle model gives a global optimization for a long period of time; 3) a combination of genetic algorithm and single-step improvement method based on Markov decision process is proposed to solve the multi-cycle model. The algorithm can obtain a suboptimal strategy with sufficiently good performance under the condition of sufficiently shortening the calculation time; 4) the calculation is performed based on the actual status classification of the service task set, which speeds up the optimization process of task scheduling and path regulation of drones under the constraints of flight time, and reduces the number of iterations in the optimization process. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0071] Figure 1 It is a scene schematic diagram of the present invention;
[0072] Figure 2 It is a schematic diagram of the implementation process of the technical solution of the present invention;
[0073] Figure 3 is a schematic diagram of a task scenario in an embodiment of the present invention;
[0074] Figure 4 is a schematic diagram of an optimal flight path of a UAV in cycle 3 under a given service task set in an embodiment of the present invention;
[0075] Figure 5 This is a schematic diagram of the UAV task scheduling in cycle 1 where the service task set of an embodiment of the present invention is not determined. DETAILED DESCRIPTION
[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0077] See also Figure 1-5 As shown, the flight speed of the drone selected in this embodiment is 120m / min.
[0078] The implementation scenario of the present invention is as follows Figure 1 The implementation process of the technical solution of the present invention is as shown in FIG. Figure 2 shown.
[0079] Step 1: Task Area Map Representation
[0080] The drone can fly in a straight line between the mission points and between the mission points and the starting / end point. According to the distribution of the mission points and the starting / end point, the mission points and the starting / end point are modeled as vertices, and the distances between the mission points and between the mission points and the starting / end point are modeled as edges, so as to obtain the graph representation of the original problem. It includes the following processes:
[0081] 1. Task vertex sequence number set:
[0082] A={1,2,...,i,...,n} (19),
[0083] In formula (19), A represents the set of n task point serial numbers. In this example, n = 10, and A is composed of Figure 3 As shown in the 10 circles in the figure, the task points are marked with their serial numbers.
[0084] 2. The start / end point number is recorded as 0. In this example, the start / end point is Figure 3As shown in the square in;
[0085] 3. The edge set formed by the paths between vertices:
[0086]
[0087] In formula (20), V represents the edge set consisting of the paths between n+1 vertices. represents the edge between the i1th vertex and the i2th vertex. In this case, V is Figure 3 All pairs of straight lines between the circles and squares are connected. Due to too many lines, they are omitted in the figure;
[0088] 4. Calculate the weight of the edges between vertices:
[0089]
[0090] In formula (21), represents the weight between the i1th vertex and the i2th vertex, and Represent the two-dimensional coordinates of the i1th vertex and the i2th vertex respectively. In this example, the weight of the edge between the task points is Figure 3 The straight-line distance between the circle and the square;
[0091] 5. Time-consuming weight of task vertex:
[0092] T={t i |1≤i≤n}. (22),
[0093] In formula (22), t i represents the time taken for the i-th task point. In this example, the time taken for each task point is Figure 3 The value above each circle in ;
[0094] 6. Importance weight of task vertices in each cycle:
[0095]
[0096] In formula (23), is a random variable representing the importance of the i-th task point in the j-th cycle. In this example, the importance weight of each task point is a random variable, and its specific form will be given in step three.
[0097] Step 2: A method for solving the optimal flight path of a UAV, characterized in that: the optimal flight path of the UAV in a certain period is determined when the importance of random tasks in the period is realized and the service task set of the UAV is given. The following takes the jth period as an example to solve the optimal flight path. In this example, the optimal flight path in period 3 is solved as an example. It includes the following process:
[0098] 1. Allocation of given task points:
[0099]
[0100] In formula (24), A variable indicating whether task point i is served by a drone in the jth cycle. It means that task point i is served by the drone in the jth cycle. , which means that task point i is not served by the drone in the jth cycle. In this example, The rest are all 0;
[0101] 2. Define the service task set:
[0102]
[0103] In formula (25), Ω j represents the set of mission points served by the drone in the jth cycle. In this example, Ω 3 ={2,3,4,5};
[0104] 3. Define the flight sequence decision variables:
[0105] y j,k ∈Ω j U{0},0≤k≤|Ω j |+1 (26),
[0106] In formula (26), y j,k represents the i-th path point of the drone in the j-th cycle. For any set S, |S| represents the number of its elements. In this example, |Ω 3 |=4;
[0107] 4. Constrain the starting point and end point:
[0108]
[0109] Formula (27) indicates that the starting point and end point of the UAV flight are the same;
[0110] 5. Constrain each task point to only serve once:
[0111]
[0112] 6. Set the objective function to minimize the flight time of the drone:
[0113]
[0114] In formula (29), v is the flight speed of the drone. In this example, v = 120;
[0115] 7. Combining equations (26) to (29), the flight time minimization model of the drone in a certain period is written as follows when the importance of random tasks in the period is realized and the service task set of the drone is given:
[0116]
[0117] 8. The above path planning problem is an integer nonlinear programming, which belongs to the classic traveling salesman problem with fixed starting point and end point. The present invention uses particle swarm algorithm to solve it. The framework of the algorithm is as follows: 1) Set the particle swarm size to N and the maximum number of iterations to I max ; 2) Use the hybrid sequence to initialize the N solutions of formula (30); 3) Find the optimal position of a single particle and the optimal position of a particle group in the N solutions; 4) For e = 1, ..., I max Do 5) to 8); 5) convert the particle position into discrete values according to a certain conversion function; 6) calculate the flight time t corresponding to the discrete values of N solutions according to formula (30) j ,by as their fitness; 7) Use the hyperbolic tangent function to decay the inertia weight ω, and update the coordinates and speed of each particle in each direction; 8) According to the new position of each particle and the conversion function, update its fitness, as well as the best position of a single particle and the best position of the particle group; 9) Iterate in this way until the maximum number of iterations is reached, and output the discrete value of the best position of the particle group at this time as the optimal solution to the original problem. It represents the optimal flight path and minimum flight time of the UAV in the jth cycle obtained according to the above algorithm.
[0118] As a possible implementation method, 1) using the logistic mapping x n+1 =μx n (1-x n ) generates a hybrid sequence, where the initial value of the hybrid variable is 0.3 and the bifurcation coefficient is μ = 4; 2) the nearest integer function is used as the conversion function, that is, where p l (e) represents the position of the lth particle at time e, represents the discrete value of the position of the lth particle at time e, mod represents the congruence operation, represents rounding down; 3) The inertia weight function is In this example, we can obtain Figure 4 The optimal flight path of the UAV in cycle 3 is shown, where the arrows indicate the flight sequence of the UAV.
[0119] 9. Calculate the cumulative importance of the drone's completed tasks in the jth cycle:
[0120]
[0121] In formula (31), Indicates the upper limit of the single flight endurance of the drone, and M is a sufficiently large positive number. In this example, M=100, B 3 (Ω 3 ,Q 3 )=12.
[0122] Step 3: A multi-period task scheduling solution method, characterized in that: determining the UAV task allocation when the importance of random tasks is not realized and the service task set of the UAV flight is not determined. It includes the following processes:
[0123] 1. Constrain the values of task scheduling decision variables:
[0124]
[0125] 2. Calculate the service task set for each cycle:
[0126]
[0127] 3. Define the random update equation of the importance of each task point:
[0128]
[0129] Formula (34) represents the random update method of the importance of each task point starting from cycle 2, where is a random variable that realizes a certain value at the beginning of period j+1, f i (·) is a random update function for the importance of each task point, which depends on the specific problem scenario. In this example, Figure 5 As shown, the initial value of the importance of each task point, that is, the importance of each task point at the beginning of cycle 1 is Figure 5 The value under each circle in , that is: The importance update equation of task point i is: in, D i The parameter is λ i Poisson distribution, where λ1=λ2=λ3=λ5=λ6=λ7=λ8=λ 10 =1, λ4=1.5, λ9=5;
[0130] 4. Set the objective function as the discounted average maximum of the cumulative expected value of the importance of completing tasks over an infinite period:
[0131]
[0132] In formula (35), β represents the discount rate, E Φ It represents the expected operation on the random variables in the set Φ. In this example, β = 0.8;
[0133] 5. Combining equations (32) to (35), we can obtain the discounted average maximization model of the cumulative expected value of the importance of completing tasks for an infinite period of time, which can be expressed as follows:
[0134]
[0135] 6. The above problem belongs to an infinite-cycle random 0-1 nonlinear programming model. The solution to its optimal decision is very complicated. Currently, there is no low-complexity optimization solution algorithm. The present invention combines genetic algorithm and single-step improvement method based on Markov decision process to solve it. The algorithm can obtain a suboptimal strategy with sufficiently good performance under the condition of sufficiently shortening the calculation time. The framework of the algorithm is as follows: 1) Define a certain benchmark task scheduling strategy π; 2) Starting from cycle 2, π is used for task scheduling in each cycle. It is assumed that the cumulative importance of completed tasks in each cycle is recorded as B j (π,Q j ); 3) At this time, the discounted average of the cumulative expected value of the importance of completing the task of the drone in an infinite period is only a function of the task scheduling decision variables of period 1; 4) Randomly generate L feasible solutions as the initial population; 5) Use the exponential sorting selection method to select individuals in the current population for replication; 6) Randomly pair the individuals generated by the selection-copy operation; 7) For each individual generated by the crossover operation, perform a mutation operation with a certain mutation probability; 8) Iterate in this way until the termination condition is met, and the value of the task scheduling decision variable of period 1 can be obtained; 9) When the time reaches period j, the above method can be used to obtain the value of the task scheduling decision variable of period j. The obtained task scheduling decision Substitute the given task assignment into step 1 of step 2 to obtain the optimal flight path under this task assignment.
[0136] As a possible implementation method, 1) define the benchmark task scheduling strategy π as: the task scheduling strategy that maximizes the cumulative importance of completed tasks in this cycle; 2) starting from cycle 2, π is used for task scheduling in each cycle. Assume that the cumulative importance of completed tasks in each cycle is recorded as B j (π,Q j),j=2,3,...; 3) At this time, the discounted average of the cumulative expected value of the importance of completing the task of the drone in an infinite period is only a function of the task scheduling decision variables of period 1; 4) Randomly generate 100 feasible solutions as the initial population; 5) Use the exponential sorting selection method to select individuals in the current population for replication; 6) Randomly pair the individuals generated by the selection-copy operation; 7) For each individual generated by the crossover operation, perform a mutation operation with a mutation probability of 0.1; 8) Iterate in this way until the termination condition is met, and the value of the task scheduling decision variable of period 1 can be obtained; 9) When the time reaches period j, the above method can be used to obtain the value of the task scheduling decision variable of period j. In this example, the following can be obtained: Figure 5 The task allocation in cycle 1 and the optimal flight path under this task allocation are shown, where the arrows indicate the flight order of the UAVs. The discounted average cumulative expected value of the importance of completing the tasks for an infinite period of the UAV is 101.724.
[0137] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0138] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. Graph representation of the mission area. The drone can fly in a straight line between mission points and between mission points and the starting / end point. According to the distribution of mission points and the starting / end point, the mission points and the starting / end point are modeled as vertices, and the distances between mission points and between mission points and the starting / end point are modeled as edges, thus obtaining the graph representation of the original problem. The process includes: (1.1), Task vertex sequence number set: A={1,2,...,i,...,n} (1), In formula (1), A represents the set of serial numbers of n task points; (1.2) The starting / ending number is recorded as 0; (1.3) The edge set formed by the paths between vertices: In formula (2), V represents the edge set consisting of the paths between n+1 vertices. Indicates the i 1 The vertices and the i-th 2 The edges between vertices; (1.4) Calculate the weight of the edges between vertices: In formula (3), Indicates that the i 1 The vertices and the i-th 2 The weights between vertices, and Respectively represent the i 1 The vertices and the i-th 2 The two-dimensional coordinates of the vertices; (1.5) The time-consuming weight of the task vertex: T={t i |1≤i≤n}. (4), In formula (4), t i represents the time consumption of the i-th task point. (1.6) Importance weight of task vertex in each cycle: In formula (5), is a random variable representing the importance of the i-th task point in the j-th cycle.
2. A method for solving the optimal flight path of a UAV based on the mission area graph representation method described in claim 1, Features: The optimal flight path of the UAV in a certain period is determined when the importance of random tasks in the period is realized and the service task set of the UAV is given. The following takes the jth period as an example to solve the optimal flight path. The process includes: (2.1) Allocation of given task points: In formula (6), A variable indicating whether task point i is served by a drone in the jth cycle. It means that task point i is served by the drone in the jth cycle. , which means that task point i is not served by the UAV in the jth cycle; (2.2) Define the service task set: In formula (7), Ω j represents the set of mission points served by the drone in the jth cycle; (2.3) Define the flight sequence decision variables: In formula (8), y j,k represents the i-th path point of the drone’s flight in the j-th cycle. For any set S, |S| represents the number of its elements; (2.4) Constrain the starting point and end point: Formula (8) indicates that the starting point and end point of the UAV flight are the same; (2.5) Constrain each task point to only serve once: (2.6) Set the objective function to minimize the flight time of the drone: In formula (11), v is the flight speed of the UAV; (2.7), combined with equations (8) to (11), the flight time minimization model of the drone in a certain period is written as follows when the importance of random tasks in the period is realized and the service task set of the drone is given: (2.8) The above path planning problem is an integer nonlinear programming problem, which belongs to the classic traveling salesman problem with fixed starting and ending points. The present invention uses a particle swarm algorithm to solve it. The framework of the algorithm is as follows: 1) Set the particle swarm size to N and the maximum number of iterations to I max ; 2) Use the hybrid sequence to initialize the N solutions of formula (12); 3) Find the optimal position of a single particle and the optimal position of a particle group in the N solutions; 4) For e = 1, ..., I max Do 5) to 8); 5) convert the particle position into discrete values according to a certain conversion function; 6) calculate the flight time t corresponding to the discrete values of N solutions according to formula (12) j ,by as their fitness; 7) Use the hyperbolic tangent function to decay the inertia weight ω, and update the coordinates and speed of each particle in each direction; 8) According to the new position of each particle and the conversion function, update its fitness, as well as the best position of a single particle and the best position of the particle group; 9) Iterate in this way until the maximum number of iterations is reached, and output the discrete value of the best position of the particle group at this time as the optimal solution to the original problem. represents the optimal flight path and minimum flight time of the UAV in the jth cycle obtained according to the above algorithm; (2.9) Calculate the cumulative importance of the UAV's completed tasks in the jth cycle: In formula (13), It indicates the upper limit of the single flight endurance of the UAV, and M is a sufficiently large positive number.
3. A multi-period task scheduling solution method based on the UAV flight path solution method of claim 2, Features: Determine the UAV task allocation when random task importance is not realized and the service task set of the UAV flight is not determined. The process includes: (3.1) Constrain the values of task scheduling decision variables: (3.2) Calculate the service task set for each cycle: (3.3) Define the random update equation of the importance of each task point: Formula (16) represents the random update method of the importance of each task point starting from cycle 2, where is a random variable that realizes a certain value at the beginning of period j+1, f i (·) A random update function for the importance of each task point, which depends on the specific problem scenario; (3.4) Set the objective function as the discounted average maximum of the cumulative expected value of the importance of completing the task over an infinite period: In formula (13), β represents the discount rate, E Φ It represents the expectation operation on the random variables in the set Φ; (3.5), combined with equations (14) to (17), we get the discounted average maximization model of the cumulative expected value of the importance of completing tasks of the UAV in an infinite period, which can be written as follows: (3.6) The above problem belongs to an infinite-cycle random 0-1 nonlinear programming model. The solution to its optimal decision is very complicated. Currently, there is no low-complexity optimization solution algorithm. The present invention combines genetic algorithm and single-step improvement method based on Markov decision process to solve it. The algorithm can obtain a suboptimal strategy with sufficiently good performance under the condition of sufficiently shortening the calculation time. The framework of the algorithm is as follows: 1) Define a certain benchmark task scheduling strategy π; 2) Starting from cycle 2, π is used for task scheduling in each cycle. It is assumed that the cumulative importance of completed tasks in each cycle is recorded as B j (π,Q j ); 3) At this time, the discounted average of the cumulative expected value of the importance of completing the mission of the UAV in infinite cycles is only a function of the task scheduling decision variables of cycle 1; 4) Randomly generate L feasible solutions as the initial population; 5) Use the exponential sorting selection method to select individuals in the current population for replication; 6) Randomly pair the individuals generated by the selection-copy operation; 7) For each individual generated by the crossover operation, perform a mutation operation with a certain mutation probability; 8) Repeat this process until the termination condition is met, and the task scheduling decision variable value of cycle 1 can be obtained; 9) When the time reaches cycle j, the above method can be used to obtain the task scheduling decision variable value of cycle j. The given task allocation is brought into (2.1) of claim 2 to obtain the optimal flight path under this task allocation.
Citation Information
Cited By
Unmanned aerial vehicle deployment and transmission method, electronic equipment and readable storage medium
CN119483721A
Generation method and device of unmanned aerial vehicle path planning and adjustment scheme under hybrid demand, computer equipment and storage medium
CN121540155A
