Unmanned aerial vehicle path planning method, device, equipment and medium based on cooperative game
By combining the spherical vector particle swarm and differential evolution algorithm in UAV path planning, and using the cooperative game method of Nash negotiation theory, the local optimal and premature convergence problems are solved, and the accuracy and efficiency of path planning are improved.
Patent Information
- Application Number
- CN202410865424.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Existing UAV path planning algorithms are prone to falling into local optimal solutions, leading to premature convergence, and insufficient search capabilities and diversity, making it difficult to effectively improve the accuracy and efficiency of path planning.
A method based on cooperative games is adopted, through the combination of spherical vector particle swarm and differential evolution algorithm, and Nash negotiation theory is used for path planning to prevent population stagnation and local optimality, maintain the balance of exploration and development capabilities, and obtain the optimal solution.
It effectively avoids premature convergence problems caused by local optimality, improves the search capability and diversity of the algorithm, and improves the accuracy and efficiency of UAV path planning.
Smart Images

Figure CN118394111B
Abstract
Description
Technical Field
[0001] The present application relates to the field of drone control technology, and in particular to a drone path planning method, device, equipment and medium based on cooperative game. Background Art
[0002] UAV path planning refers to planning the flight path of a UAV from its starting point to its target point while satisfying constraints such as safe flight, path distance, and fuel consumption. It is crucial for the safe flight of a UAV. Usually, the "optimal" in the optimal path refers to maximizing the distance between the starting point and the end point of the UAV, thereby shortening the flight time and reducing consumption. In addition, when planning the path, it is also necessary to comprehensively consider the ability to guide the UAV to safely avoid threats in the environment (such as obstacles), while satisfying feasibility constraints such as flight time, flight altitude, fuel consumption, turning rate, and climb angle. In the field of UAV navigation, guidance, and control technology, methods including graph search, random sampling, and heuristic optimization have been proposed to solve the problem of global path planning for UAVs.
[0003] At present, the particle swarm optimization method is mostly used to search for the optimal path for the path planning of UAVs. It can converge to the global optimal solution with a high probability, has a faster calculation speed and better global search ability, but for functions with multiple local extreme points, it is easy to fall into the local optimum, resulting in premature convergence; there are also hybrid optimization algorithms formed by combining the advantages of other algorithms for path planning, but most of the proposed hybrid algorithms are based on the population evolution of one algorithm, and then apply another algorithm or a single operator, without considering improving the algorithm search ability and diversity; therefore, the algorithms used in the above methods have not better improved the accuracy and efficiency of UAV path planning. Therefore, how to carry out the path planning of UAVs has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a UAV path planning method, device, equipment and medium based on cooperative game, which can formulate an objective function through relevant constraints during the flight of the UAV, transform path planning into an optimization problem, and propose a cooperative game method based on Nash negotiation theory for optimization. Ball vector particle swarm and differential evolution are used as two participants for cooperative game. By preventing population stagnation and avoiding local optimality, the balance between exploration and development capabilities is maintained to obtain the optimal solution. This not only avoids the premature convergence problem caused by local optimality, but also improves the algorithm search capability and diversity, thereby improving the accuracy and efficiency of UAV path planning.
[0005] This application mainly includes the following aspects:
[0006] In a first aspect, an embodiment of the present application provides a UAV path planning method based on cooperative game, and the UAV path planning method includes:
[0007] Obtaining the flight path of the UAV, and constructing the objective function of the UAV flight path using the constraints of the flight path; wherein the constraints include: path length constraints, height constraints, safety constraints, and smoothness constraints;
[0008] Acquire a spherical vector particle swarm population and a differential evolution population, take the spherical vector particle swarm population as a first participant, obtain a global optimal solution of the first participant based on a spherical vector particle swarm algorithm and the objective function, and at the same time, take the differential evolution population as a second participant, obtain a target optimal solution of the second participant based on the differential evolution algorithm and the objective function;
[0009] Based on the global optimal solution of the first participant and the target optimal solution of the second participant, Nash negotiation theory is used to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path in the flight path of the drone.
[0010] Furthermore, the step of constructing the objective function of the UAV flight path by using the constraints of the flight path includes:
[0011] For each constraint condition of the flight path, obtain the required parameters of the constraint condition and the preset weight coefficient;
[0012] Based on the parameters required by the constraint condition, determine the cost function corresponding to the constraint condition;
[0013] The cost function corresponding to each constraint condition is added to the product of the corresponding preset weight coefficient to obtain the objective function of the UAV flight path.
[0014] Furthermore, the step of obtaining the global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function includes:
[0015] Based on the spherical vector particle swarm algorithm, obtaining the number of iterations and the guiding particles of the spherical vector particle swarm population;
[0016] Determine the speed of each particle in the spherical vector particle population in the current iteration based on the number of iterations and the guide particle;
[0017] Determine the position of each particle in the spherical vector particle swarm population in the current iteration according to the speed of each particle in the spherical vector particle swarm population in the current iteration;
[0018] The position of each particle in the spherical vector particle swarm population in the current iteration is mapped to a rectangular coordinate system through a mapping formula to obtain a target position of each particle in the spherical vector particle swarm population in the current iteration;
[0019] Substituting the target position of each particle in the spherical vector particle swarm population in the current iteration into the objective function, and determining the fitness value of each particle in the spherical vector particle swarm population in the current iteration;
[0020] Determine a local optimal solution for each particle in the spherical vector particle swarm population in the current iteration based on the fitness value of each particle in the spherical vector particle swarm population in the current iteration;
[0021] Based on the local optimal solution of each particle in the spherical vector particle swarm population in the current iteration, a global optimal solution of the first participant in the current iteration is obtained.
[0022] Furthermore, the step of obtaining the optimal solution of the target of the second participant based on the differential evolution algorithm and the objective function includes:
[0023] Based on the differential evolution algorithm, obtaining the number of iterations and the target individual in the differential evolution population;
[0024] Based on the number of iterations and the target individual, determining a variant individual of each individual in the differential evolution population in the current iteration;
[0025] Performing a crossover operation on each individual in the differential evolution population in the current iteration and the corresponding variant individual according to a preset rule to obtain a test individual for each individual in the differential evolution population in the current iteration;
[0026] Substituting each individual in the differential evolution population in the current iteration and the corresponding test individual into the objective function to obtain the fitness value of each individual in the differential evolution population in the current iteration;
[0027] The fitness value of each individual in the differential evolution population in the current iteration is used as a judgment basis, and the target optimal solution of the second participant in the current iteration is determined from each individual and the corresponding test individuals through a greedy selection strategy.
[0028] Furthermore, the step of performing a cooperative game between the first participant and the second participant using Nash negotiation theory based on the global optimal solution of the first participant and the target optimal solution of the second participant to obtain the optimal flight path in the flight path of the drone includes:
[0029] Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the global optimal solution of the first participant obtained in the current iteration is stored in the elite set of the first participant, and at the same time, the target optimal solution of the second participant obtained in the current iteration is stored in the elite set of the second participant;
[0030] Increasing the number of iterations by one, updating the number of iterations, and determining whether the updated number of iterations is greater than a preset number of iterations;
[0031] If not, continue iterating;
[0032] If so, then perform a Cartesian product of the first participant's elite set and the second participant's elite set to obtain a feasible set;
[0033] The divergence point between the first participant and the second participant is obtained, and based on the divergence point, a cooperative game is performed on the feasible set using Nash negotiation theory to obtain an optimal flight path in the flight path of the UAV.
[0034] Further, the iteration is continued through the following steps:
[0035] Based on the updated number of iterations and the global optimal solution of the first participant obtained in the previous iteration, the speed of each particle in the spherical vector particle swarm population in the current iteration is updated, and based on the updated speed of each particle in the spherical vector particle swarm population in the current iteration, the elite set of the first participant is continued to be updated;
[0036] At the same time, based on the updated number of iterations and the optimal solution of the target of the second participant obtained in the previous iteration, the mutant individuals of each individual in the differential evolution population in the current iteration are updated, and based on the updated mutant individuals of each individual in the differential evolution population in the current iteration, the elite set of the second participant continues to be updated.
[0037] Furthermore, the step of performing cooperative game on the feasible set using Nash negotiation theory based on the divergence point to obtain the optimal flight path in the flight path of the drone includes:
[0038] Based on the divergence point, a cooperative game is performed on each solution in the feasible set using Nash negotiation theory to obtain a target solution in the feasible set;
[0039] Determine whether the target solution satisfies a preset condition; wherein the preset condition is that a first solution in the target solution is better than a first parameter in the bifurcation point, and a second solution in the target solution is better than a second parameter in the bifurcation point;
[0040] If satisfied, then the solution that minimizes the objective function among the first solution and the second solution of the target solution is determined as the optimal flight path in the UAV flight path.
[0041] In a second aspect, the embodiment of the present application further provides a UAV path planning device based on cooperative game, the UAV path planning device comprising:
[0042] A construction module is used to obtain the flight path of the UAV, and construct the objective function of the flight path of the UAV using the constraints of the flight path; wherein the constraints include: path length constraints, height constraints, safety constraints, and smoothness constraints;
[0043] A processing module, used to obtain a spherical vector particle swarm population and a differential evolution population, take the spherical vector particle swarm population as a first participant, obtain a global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function, and at the same time, take the differential evolution population as a second participant, obtain a target optimal solution of the second participant based on the differential evolution algorithm and the objective function;
[0044] The game module is used to use Nash negotiation theory to conduct a cooperative game between the first participant and the second participant based on the global optimal solution of the first participant and the target optimal solution of the second participant, so as to obtain the optimal flight path in the flight path of the UAV.
[0045] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned cooperative game-based drone path planning method are performed.
[0046] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned cooperative game-based drone path planning method are executed.
[0047] The embodiments of the present application provide a method, device, equipment and medium for unmanned aerial vehicle path planning based on cooperative game. The unmanned aerial vehicle path planning method includes: obtaining the flight path of the unmanned aerial vehicle, and using the constraints of the flight path to construct the objective function of the unmanned aerial vehicle flight path; wherein the constraints include: path length constraints, height constraints, safety constraints and smoothness constraints; obtaining a spherical vector particle swarm population and a differential evolution population, taking the spherical vector particle swarm population as the first participant, and obtaining the global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function, and at the same time, taking the differential evolution population as the second participant, and obtaining the target optimal solution of the second participant based on the differential evolution algorithm and the objective function; based on the global optimal solution of the first participant and the target optimal solution of the second participant, using Nash negotiation theory to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path in the flight path of the unmanned aerial vehicle.
[0048] In this way, the technical solution provided by this application can formulate an objective function through relevant constraints during the flight of the UAV, transform path planning into an optimization problem, and propose a cooperative game method based on Nash negotiation theory to find the best solution. The ball vector particle swarm and differential evolution are used as two participants to conduct cooperative games. The balance between exploration and development capabilities is maintained by preventing population stagnation and avoiding local optimality, thereby obtaining the optimal solution. This not only avoids the premature convergence problem caused by local optimality, but also improves the algorithm search capability and diversity, thereby improving the accuracy and efficiency of UAV path planning.
[0049] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 A flowchart of a UAV path planning method based on cooperative game provided in an embodiment of the present application is shown;
[0052] Figure 2 A flowchart of another UAV path planning method based on cooperative game provided in an embodiment of the present application is shown;
[0053] Figure 3A schematic diagram of a UAV path planning process based on cooperative game provided in an embodiment of the present application is shown;
[0054] Figure 4 A schematic diagram of the structure of a UAV path planning device based on cooperative game provided in an embodiment of the present application is shown;
[0055] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0056] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0057] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0058] In order to enable those skilled in the art to use the contents of this application, the following implementation method is given in combination with the specific application scenario "UAV path planning based on cooperative game". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.
[0059] The following methods, devices, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario that requires drone path planning based on cooperative game. The embodiments of the present application are not limited to specific application scenarios. Any solution using the drone path planning method, device, electronic device and storage medium based on cooperative game provided by the embodiments of the present application is within the scope of protection of this application.
[0060] It is worth noting that the existing technology allows path planning for many pairs of drones to bypass the restrictions of the grid model, and determines the connection method between nodes by directly checking whether the connection is unobstructed, thereby generating a smoother path, but it needs to perform a large number of checks in a complex environment, and the computational load is large; the existing technology also searches for the shortest path from the starting point to the end point based on random sampling methods. Although these sampling-based methods perform well in generating effective paths, they do not involve constraints related to drone flight, which may cause differences between the actual flight path and the planned path; the existing technology also uses particle swarm optimization methods to search for the optimal path, which can converge to the global optimal solution with a higher probability, has a faster calculation speed and better global search ability, but for functions with multiple local extreme points, it is easy to fall into the local optimum, resulting in premature convergence; the existing technology also has hybrid optimization algorithms formed by combining the advantages of other algorithms. Most of the proposed hybrid algorithms are based on the population evolution of one algorithm, and then apply another algorithm or a single operator, but do not consider improving the algorithm search ability and diversity.
[0061] Based on this, the present application proposes a UAV path planning method, device, equipment and medium based on cooperative game. The UAV path planning method includes: obtaining the flight path of the UAV, and using the constraints of the flight path to construct the objective function of the UAV flight path; wherein the constraints include: path length constraints, height constraints, safety constraints and smoothness constraints; obtaining a spherical vector particle swarm population and a differential evolution population, taking the spherical vector particle swarm population as the first participant, and based on the spherical vector particle swarm algorithm and the objective function, obtaining the global optimal solution of the first participant, and at the same time, taking the differential evolution population as the second participant, and based on the differential evolution algorithm and the objective function, obtaining the target optimal solution of the second participant; based on the global optimal solution of the first participant and the target optimal solution of the second participant, using Nash negotiation theory to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path in the UAV flight path.
[0062] In this way, the technical solution provided by this application can formulate an objective function through relevant constraints during the flight of the UAV, transform path planning into an optimization problem, and propose a cooperative game method based on Nash negotiation theory to find the best solution. The ball vector particle swarm and differential evolution are used as two participants to conduct cooperative games. The balance between exploration and development capabilities is maintained by preventing population stagnation and avoiding local optimality, thereby obtaining the optimal solution. This not only avoids the premature convergence problem caused by local optimality, but also improves the algorithm search capability and diversity, thereby improving the accuracy and efficiency of UAV path planning.
[0063] To facilitate understanding of the embodiments of the present application, a cooperative game-based drone path planning method disclosed in the embodiments of the present application is first introduced in detail.
[0064] See also Figure 1 , Figure 1 A flowchart of a UAV path planning method based on cooperative game provided in an embodiment of the present application is shown in FIG. Figure 1 As shown in , the UAV path planning method includes:
[0065] S101, obtaining a flight path of the UAV, and constructing an objective function of the UAV flight path using constraints of the flight path;
[0066] In this step, in order to ensure that the drone can perform operations such as inspections safely and efficiently, the planned optimal path needs to meet multiple constraints such as path length, safety feasibility, and smoothness. Therefore, constraints are set to meet the requirements of the objective function. The constraints include: path length constraints, height constraints, safety constraints, and smoothness constraints. Using constraints, formulate an objective function and quantify path planning; the objective function is the core concept of the optimization method, usually expressed as a function to represent the target to be optimized. In the optimization problem, it defines the quantity to be maximized or minimized. The optimal solution refers to the solution that uses the objective function to achieve the maximum or minimum value among all feasible solutions. In drone path planning, optimizing the objective function to obtain the optimal solution with the minimum value is the optimal path planned by the drone during flight; the objective function aims to balance multiple constraints, such as the shortest path length, safe distance maintenance, obstacle avoidance, and other indicators that consider specific mission requirements.
[0067] It should be noted that Figure 2 A flowchart of another UAV path planning method based on cooperative game provided in an embodiment of the present application is shown in FIG. Figure 2 As shown in , the steps of constructing the objective function of the UAV flight path using the constraints of the flight path include:
[0068] S201, for each constraint condition of the flight path, obtaining the parameters required for the constraint condition and a preset weight coefficient;
[0069] S202, determining a cost function corresponding to the constraint condition based on the parameters required by the constraint condition;
[0070] S203: Add the product of the cost function corresponding to each constraint condition and the corresponding preset weight coefficient to obtain the objective function of the UAV flight path.
[0071] The above steps S201 to S203 are steps of constructing the objective function through constraint conditions. Before this, the constraint conditions need to be set, as follows:
[0072] 1. When the constraint is a path length constraint: The flight path of the drone It consists of a list of n waypoints, each of which is represented by . Two waypoints and The Euclidean distance between , add the Euclidean distances between all path points to obtain the path length constraint, that is, the cost function :
[0073]
[0074] 2. When the constraint is a safety constraint: In addition to the path length, the planned path must avoid obstacles in the map to ensure that the drone can patrol safely. Treat each occupied grid in the map as an obstacle and traverse the entire 3D grid map model to determine the ( ) Whether there are obstacles in the adjacent grids, thus generating a certain constraint cost, and obtaining the safety constraint condition, that is, the cost function :
[0075]
[0076] in, is the safety risk factor, for example, the value can be 5. For the path point around ( ) The number of cells occupied in adjacent grids, is the number of adjacent grids, for example, the value can be 3.
[0077] 3. When the constraint condition is a height constraint condition: During the flight, the flight height limit range of the drone is given, that is, the minimum height and the maximum height. The appropriate flight height helps to effectively identify existing problems and hidden dangers during the drone inspection process and ensure that all inspection areas are covered. Let the minimum and maximum height limits be and , waypoint The height constraint cost is as follows:
[0078]
[0079] in, for The Z-axis vertical coordinate of the point represents the flight height relative to the ground. For example, and Take the values 0 and 200 respectively, and set the height constraint cost for all path points Sum and get the height constraint, that is, the cost function :
[0080]
[0081] 4. When the constraint condition is a smoothness constraint condition: In the UAV path planning, the smoothness constraint ensures that the generated path is not only safe and efficient, but also continuous and executable, so as to avoid drastic changes and unnecessary energy consumption during the UAV inspection operation, and ensure that the UAV can turn and climb smoothly during the flight. Projected on the horizontal plane Two consecutive path segments on and The angle between is the unit vector in the Z-axis direction, the climbing angle For path segment Instead of projecting it on a horizontal plane The angle between the projection vector and , Steering angle and climb angle The calculation method is as follows:
[0082]
[0083]
[0084]
[0085] In summary, the smoothness constraint, that is, the cost function :
[0086]
[0087] in, is the turning angle weight coefficient, for example, the value can be 2, is the climb angle weight coefficient, for example, the value can be 1.
[0088] In the above steps S201 to S203, an objective function is formulated to quantify the path planning. Based on the above-mentioned path-related constraints, the constructed objective function is as follows:
[0089]
[0090] in, is the weight coefficient, for example, it can take the value , To include nA flight path with a list of waypoints, are the cost functions related to path length, safety and feasibility, height, and smoothness constraints respectively.
[0091] S102, obtaining a spherical vector particle swarm population and a differential evolution population, taking the spherical vector particle swarm population as a first participant, and obtaining a global optimal solution of the first participant based on a spherical vector particle swarm algorithm and the objective function, and taking the differential evolution population as a second participant, and obtaining a target optimal solution of the second participant based on the differential evolution algorithm and the objective function;
[0092] In this step, the optimization of the ball vector particle swarm algorithm can avoid population stagnation. The particle swarm, the update equation is as follows:
[0093]
[0094] in, represents the number of iterations, and They are The position and velocity of the particle dimension, is the inertia weight, which represents the trade-off between global search and local search, and They are individual and social learning factors, which determine the tendency of particles to move toward the local optimal and global optimal positions. and is a random number between [0,1].
[0095] Here, for the UAV path planning problem in three-dimensional space, the UAV's maneuverability characteristics are used to improve the particle swarm algorithm through the relationship between the size of the modulus, the elevation angle and the azimuth angle components and the speed, climb angle and turning angle of the UAV, and obtain the spherical vector particle swarm optimization algorithm. This algorithm encodes each path as a set of vectors, each of which is used to describe the movement of the UAV from one path point to another. In the spherical vector coordinate system, the size is expressed as , Elevation and azimuth The three components represent, is the path length. Flight path By having The 3N-dimensional hypersphere vector representation of the vector is as follows:
[0096] ;
[0097] By describing the position of the particle as , the velocity associated with the particle is incremented by the vector To describe, the formula is as follows:
[0098]
[0099] It should be noted that the steps of obtaining the global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function include:
[0100] 1) Based on the ball vector particle swarm algorithm, obtain the number of iterations and the guiding particles of the ball vector particle swarm population;
[0101] In this step, the spherical vector particle swarm population and parameters need to be initialized for the first time. Input parameters , , I , k , , as well as , after initialization, , traverse each particle in the spherical vector particle swarm population and randomly create a path ,Will Set as Particle The initial position of the particle The fitness value of ), get the optimal solution, and set the optimal solution to the local optimal position , thus obtaining the global optimal position , that is, guide particles .
[0102] 2) Based on the number of iterations and the guide particle, determine the speed of each particle in the ball vector particle swarm population in the current iteration;
[0103] In this step, each path is regarded as a particle without volume in the 3N-dimensional search space, flying at a certain speed in the search space and dynamically adjusting the flight speed and position according to its own experience and group experience. The particles are represented as , and its local optimal position is recorded as The global optimal position is represented by the symbol g, that is, For the kth generation, the particle speed and position update formulas are as follows:
[0104]
[0105] in, is the number of particles in the spherical vector particle swarm population, , For each particle dimension, .
[0106] 3) According to the speed of each particle in the spherical vector particle swarm population in the current iteration, determine the position of each particle in the spherical vector particle swarm population in the current iteration;
[0107] In this step, the velocity of each particle , get the position of each particle, the formula is as follows:
[0108]
[0109]
[0110] 4) Map the position of each particle in the spherical vector particle swarm population in the current iteration to the rectangular coordinate system through a mapping formula to obtain the target position of each particle in the spherical vector particle swarm population in the current iteration;
[0111] In this step, in order to determine and , the flight path in the spherical vector coordinate system Mapping to the rectangular coordinate system for evaluating the path of the objective function . In the spherical vector coordinate system To the rectangular coordinate system Mapping , the mapping formula is as follows:
[0112]
[0113] 5) Substituting the target position of each particle in the ball vector particle swarm population in the current iteration into the objective function, and determining the fitness value of each particle in the ball vector particle swarm population in the current iteration;
[0114] 6) Based on the fitness value of each particle in the spherical vector particle swarm population in the current iteration, determine the local optimal solution of each particle in the spherical vector particle swarm population in the current iteration;
[0115] In the above steps 5) to 6), the local optimal position of the kth generation It can be obtained by the following formula:
[0116]
[0117] in, is the objective function, which is used to calculate the fitness value and determine the local optimal solution of each particle through the fitness value .
[0118] 7) Based on the local optimal solution of each particle in the spherical vector particle swarm population in the current iteration, the global optimal solution of the first participant in the current iteration is obtained.
[0119] In this step, the global optimal position of the kth generation It can be obtained by the following formula:
[0120]
[0121] It should be noted that the step of obtaining the optimal solution of the target of the second participant based on the differential evolution algorithm and the objective function includes:
[0122] 1], based on the differential evolution algorithm, obtaining the number of iterations and the target individual in the differential evolution population;
[0123] In this step, the differential evolution population and parameters need to be initialized for the first time. Input parameters , , Y, CR as well as I , number of iterations , randomly initialize a population in the search space , each individual in the differential evolution population is a potential solution , traverse each individual in the differential evolution population and randomly select three different target individuals , and .
[0124] 2], based on the number of iterations and the target individual, determining the variant individual of each individual in the differential evolution population in the current iteration;
[0125] In this step, for the Individual , in the population Randomly select three different target individuals , and , and generate a mutant individual :
[0126]
[0127] in, , , is the interval [1, ] is different from Random integers, and they are not equal to each other. is the scaling factor.
[0128] 3], performing a crossover operation on each individual in the differential evolution population in the current iteration and the corresponding variant individual according to a preset rule, to obtain a test individual for each individual in the differential evolution population in the current iteration;
[0129] In this step, in order to increase the diversity of the population, the mutant individuals With individuals Perform crossover operations according to certain rules to generate experimental individuals , the crossover operation can be expressed as:
[0130]
[0131] in, is the crossover probability, is a random integer between [1, N], For the The random number between [0, 1] corresponding to the dimension component.
[0132] 4] Substituting each individual in the differential evolution population in the current iteration and the corresponding test individual into the objective function to obtain the fitness value of each individual in the differential evolution population in the current iteration;
[0133] 5], using the fitness value of each individual in the differential evolution population in the current iteration as a judgment basis, and determining the optimal solution for the target of the second participant in the current iteration from each individual and the corresponding test individuals through a greedy selection strategy.
[0134] In the above steps 4] to 5], the test individuals are selected by greedy selection strategy. and individuals The best individual is selected to enter the next generation, and the fitness function is used as the basis for judgment, that is:
[0135]
[0136] Here, all the optimal individuals are compared, and the individual with the best fitness (that is, the solution that minimizes the objective function) is selected from the optimal individuals as the target optimal solution for the second participant.
[0137] S103. Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the Nash negotiation theory is used to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path in the flight path of the UAV.
[0138] In this step, the cooperative game model is constructed through the Nash negotiation theory. The five basic principles of Nash negotiation theory are: ① Pareto optimality: In the optimal solution of the negotiation, no party can improve its situation without harming the other party, that is, the solution is optimal, and any change will harm the interests of at least one party. ② Individual rationality: The result of allocating any participant in the Nash negotiation solution should not be less than the result it can achieve in a disagreement. ③ Linear transformation invariance: If the size of the feasible allocation set changes, the game solution will undergo the same transformation. ④ Independence of irrelevant choices: If the original feasible negotiation results are not selected, removing these "irrelevant" negotiation options will not affect the negotiation results. ⑤ Symmetry: If the negotiation positions of the two participants are exactly the same, then the benefits they obtain are also the same. This principle emphasizes fairness and equality. Through the above principles, Nash negotiation theory provides a powerful framework for understanding and guiding the decision-making process in actual negotiations to reach a fair and effective solution acceptable to all participants. The Nash negotiation problem consists of a pair of Composition, of which is a feasible allocation set, is the point of disagreement between two participants when the negotiation fails. Always contains the divergence point. , which satisfies the relevant principles ① to ⑤ and contains a Nash negotiation solution for two participants for:
[0139]
[0140] It should be noted that, based on the global optimal solution of the first participant and the target optimal solution of the second participant, the Nash negotiation theory is used to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path in the UAV flight path, including:
[0141] S1031. Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the global optimal solution of the first participant obtained in the current iteration is stored in the elite set of the first participant, and the target optimal solution of the second participant obtained in the current iteration is stored in the elite set of the second participant;
[0142] S1032, adding one to the number of iterations, updating the number of iterations, and determining whether the updated number of iterations is greater than a preset number of iterations;
[0143] S1033. If not, continue to iterate;
[0144] It should be noted that the iteration is continued through the following steps:
[0145] (1) Based on the updated number of iterations and the global optimal solution of the first participant obtained in the previous iteration, the speed of each particle in the spherical vector particle swarm population in the current iteration is updated, and based on the updated speed of each particle in the spherical vector particle swarm population in the current iteration, the elite set of the first participant is continued to be updated;
[0146] In this step, the updated number of iterations ( k +1) and the global optimal solution of the first participant obtained in the previous iteration , enter the above step 2) and start to continue updating the speed of each particle in the ball vector particle swarm population in the current iteration, so as to update the elite set of the first participant.
[0147] (2) At the same time, based on the updated number of iterations and the optimal solution of the target of the second participant obtained in the previous iteration, the mutant individuals of each individual in the differential evolution population in the current iteration are updated, and based on the updated mutant individuals of each individual in the differential evolution population in the current iteration, the elite set of the second participant is continued to be updated.
[0148] In this step, the updated number of iterations ( k +1) and the optimal solution of the second participant’s goal obtained in the previous iteration , enter the above step 2] and start to continue updating the mutant individuals of each individual in the differential evolution population in the current iteration, so as to update the elite set of the second participant.
[0149] S1034: If yes, perform a Cartesian product of the elite set of the first participant and the elite set of the second participant to obtain a feasible set;
[0150] In the above steps S1031 to S1034, in each round of the game, the two participants each iterate I (preset number of iterations) times, and the global optimal solution obtained by the first participant through the ball vector particle swarm algorithm is stored as the elite solution in the elite set , the optimal solution of the target obtained by the second participant through the differential evolution algorithm is stored as the elite solution in the elite set , that is, the elite set of each iteration and Stored in I There is an elite solution, as shown below:
[0151]
[0152] in, is the spherical vector particle swarm population, is a differential evolution population. Based on the constructed elite set and , the feasible set is obtained by Cartesian product :
[0153]
[0154] S1035. Obtain the divergence point between the first participant and the second participant, and conduct a cooperative game on the feasible set using Nash negotiation theory based on the divergence point to obtain the optimal flight path among the flight paths of the UAV.
[0155] In this step, when the spherical vector particle swarm population is initialized, the global optimal solution obtained after initialization is compared with the target optimal solution obtained after the differential evolution population is initialized, and the solution that minimizes the objective function is taken as the first divergence point. .
[0156] It should be noted that the steps of obtaining the optimal flight path of the UAV flight path by using Nash negotiation theory to conduct cooperative game based on the feasible set of divergence points include:
[0157] ① Based on the divergence point, a cooperative game is conducted for each solution in the feasible set using Nash negotiation theory to obtain a target solution in the feasible set;
[0158] ②, determining whether the target solution satisfies a preset condition; wherein the preset condition is that the first solution in the target solution is better than the first parameter in the bifurcation point, and the second solution in the target solution is better than the second parameter in the bifurcation point;
[0159] ③. If satisfied, then the solution that minimizes the objective function among the first solution and the second solution of the target solution is determined as the optimal flight path in the UAV flight path.
[0160] In the above steps ① to ③, after I In the iteration, the ball vector particle swarm algorithm and differential evolution algorithm enter the game environment, conduct cooperative games based on Nash negotiation theory, traverse each solution in the feasible set, and select the only solution. As the optimal solution (target solution) of the cooperative game, it is shown as follows:
[0161]
[0162] in, The point of disagreement between two parties when the negotiation fails. and .
[0163] Specifically, after obtaining the target solution After that, if satisfied Better than ,and Better than The default condition is that the better than here means the solution that minimizes the objective function. and The solution that minimizes the objective function is determined as the optimal flight path in the UAV flight path. Here, the objective function can only consider the path length constraint and the smoothness constraint. If the above preset conditions are not met, the number of iterations is k Clear to zero and Used as basis vectors in the differential evolution mutation operator in the next iteration , which guides the mutation operator of the differential evolution algorithm to change, that is, ,Will Acts as a guide particle in the ball vector particle swarm algorithm ,Right now , and at the same time, the target solution is used as the divergence point of the next iteration, that is, , proceed to the next iteration.
[0164] Here, according to the conditions of Nash negotiation theory, after obtaining the target solution After that, if Better than ,and Better than , then choose the divergence point As the target solution ,Right now , Due to the Pareto optimality property, is the optimal solution for both parties. After the negotiation, the optimal solution is also the target solution. In Used as basis vectors in the differential evolution mutation operator in the next iteration , guiding the mutation operator of the differential evolution algorithm to change, In Acts as a guide particle in the ball vector particle swarm algorithm , in the next iteration, the particle velocity vector is updated to change the particle's direction of motion, as shown in the following formula:
[0165]
[0166]
[0167] In addition, the goal of this round of Nash negotiations is to Seen as a sticking point in the next round of Nash negotiations , as shown below:
[0168]
[0169] It can be seen that Nash negotiation theory helps to balance the exploration and development capabilities of the algorithm, from the feasible set By choosing from the above, we can conduct a thorough search of the problem space and ultimately find the optimal solution.
[0170] As an example, see Figure 3 , Figure 3 A schematic diagram of a UAV path planning process based on cooperative game provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the parameters and population of the ball vector particle swarm of participant 1 are initialized, the initial population is evaluated, and the optimal solution is selected as the local optimal solution to obtain the global optimal position; similarly, the parameters and population of the differential evolution of participant 2 are initialized, the initial population is evaluated, and the optimal solution is selected. The optimal solution here refers to the solution that minimizes the objective function. The optimal solutions of the two participants are compared, and the optimal solution of the two is selected as the first divergence point. , Participant 1: Update the speed and position of each particle through the global optimal position, transform the position of each particle into the target position in the rectangular coordinate system through Cartesian space mapping, calculate the fitness function of each particle according to the target position of each particle, and update the local optimal solution of each particle through the fitness function of each particle , thus obtaining the global optimal solution , the global optimal solution Save to Elite Set , add one to the number of iterations, and determine whether the updated number of iterations is less than or equal to the preset number of iterations. If so, continue to iterate. If not, conduct a cooperative game based on the Nash negotiation theory. Similarly, participant 2: by updating each individual in the differential evolution population after the optimal solution In the process, select the target individual to perform mutation operation and generate mutant individuals , perform crossover operation to generate experimental individuals , in the experimental individual and individuals In the process, the optimal individual is obtained by evaluating the individual, and the optimal solution is obtained from the optimal individual as the target optimal solution of the second participant, so as to update the next generation of differential evolution population and store the target optimal solution in the elite set. In , add one to the number of iterations to determine whether the number of iterations is less than or equal to the preset number of iterations. If so, continue to iterate. If not, perform a Cartesian product of the elite sets of the two participants, that is, , and obtain the feasible set , based on Nash negotiation theory theorem, we get As the target solution obtained by the game between the two participants, determine whether the target solution meets the preset conditions. If not, the number of iterations is kClear to zero, and update the guide particle to the second solution in the target solution, that is, , and at the same time, update the basis vector to the first solution in the target solution, that is, ; If so, the optimal solution in the target solution (i.e. The solution that minimizes the objective function is determined as the optimal path for the UAV. .
[0171] In summary, this embodiment constructs the objective function by proposing constraints such as path length, safety and feasibility, height, and smoothness, and transforms the optimal path planning problem into the optimal solution problem of solving the minimum value of the objective function. At the same time, the problem of iterative stagnation and local optimality in the process of solving the optimal value is considered, and the optimization method of ball vector particle swarm and differential evolution is constructed to avoid local optimality to maintain the balance between exploration and development capabilities, so as to obtain the optimal solution in the state space. Finally, a cooperative game model is constructed based on Nash negotiation theory. Considering that the particle swarm method is easy to converge quickly in the early stage, the iterative diversity is reduced, and the computational efficiency of the differential evolution method is seriously dependent on the experimental individual generation strategy and parameter setting, a ball vector particle swarm-differential evolution cooperative game method is proposed, which aims to improve the algorithm search ability, thereby obtaining the optimal solution in the search space and planning the global optimal path of the drone.
[0172] An embodiment of the present application provides a UAV path planning method based on cooperative game, and the UAV path planning method includes: obtaining a flight path of the UAV, and using the constraints of the flight path to construct an objective function of the UAV flight path; wherein the constraints include: path length constraints, height constraints, safety constraints, and smoothness constraints; obtaining a spherical vector particle swarm population and a differential evolution population, taking the spherical vector particle swarm population as the first participant, and obtaining the global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function, and at the same time, taking the differential evolution population as the second participant, and obtaining the target optimal solution of the second participant based on the differential evolution algorithm and the objective function; based on the global optimal solution of the first participant and the target optimal solution of the second participant, using Nash negotiation theory to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path in the UAV flight path.
[0173] In this way, the technical solution provided by this application can formulate an objective function through relevant constraints during the flight of the UAV, transform path planning into an optimization problem, and propose a cooperative game method based on Nash negotiation theory to find the best solution. The ball vector particle swarm and differential evolution are used as two participants to conduct cooperative games. The balance between exploration and development capabilities is maintained by preventing population stagnation and avoiding local optimality, thereby obtaining the optimal solution. This not only avoids the premature convergence problem caused by local optimality, but also improves the algorithm search capability and diversity, thereby improving the accuracy and efficiency of UAV path planning.
[0174] Based on the same inventive concept, the embodiment of the present application also provides a UAV path planning device based on cooperative game corresponding to the above-mentioned UAV path planning method based on cooperative game. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0175] See also Figure 4 , Figure 4 A schematic diagram of the structure of a UAV path planning device based on cooperative game provided in an embodiment of the present application is shown in FIG. Figure 4 As shown in , the drone path planning device 410 includes:
[0176] A construction module 411 is used to obtain the flight path of the UAV and construct the objective function of the flight path of the UAV using the constraints of the flight path; wherein the constraints include: path length constraints, height constraints, safety constraints and smoothness constraints;
[0177] The processing module 412 is used to obtain a spherical vector particle swarm population and a differential evolution population, take the spherical vector particle swarm population as a first participant, and obtain a global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function, and at the same time, take the differential evolution population as a second participant, and obtain a target optimal solution of the second participant based on the differential evolution algorithm and the objective function;
[0178] The game module 413 is used to use Nash negotiation theory to conduct a cooperative game between the first participant and the second participant based on the global optimal solution of the first participant and the target optimal solution of the second participant, so as to obtain the optimal flight path in the flight path of the drone.
[0179] Optionally, when the construction module 411 is used to construct the objective function of the flight path of the drone using the constraint conditions of the flight path, the construction module 411 is specifically used to:
[0180] For each constraint condition of the flight path, obtain the required parameters of the constraint condition and the preset weight coefficient;
[0181] Based on the parameters required by the constraint condition, determine the cost function corresponding to the constraint condition;
[0182] The cost function corresponding to each constraint condition is added to the product of the corresponding preset weight coefficient to obtain the objective function of the UAV flight path.
[0183] Optionally, when the processing module 412 obtains the global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function, the processing module 412 is specifically used to:
[0184] Based on the spherical vector particle swarm algorithm, obtaining the number of iterations and the guiding particles of the spherical vector particle swarm population;
[0185] Determine the speed of each particle in the spherical vector particle population in the current iteration based on the number of iterations and the guide particle;
[0186] Determine the position of each particle in the spherical vector particle swarm population in the current iteration according to the speed of each particle in the spherical vector particle swarm population in the current iteration;
[0187] The position of each particle in the spherical vector particle swarm population in the current iteration is mapped to a rectangular coordinate system through a mapping formula to obtain a target position of each particle in the spherical vector particle swarm population in the current iteration;
[0188] Substituting the target position of each particle in the spherical vector particle swarm population in the current iteration into the objective function, and determining the fitness value of each particle in the spherical vector particle swarm population in the current iteration;
[0189] Determine a local optimal solution for each particle in the spherical vector particle swarm population in the current iteration based on the fitness value of each particle in the spherical vector particle swarm population in the current iteration;
[0190] Based on the local optimal solution of each particle in the spherical vector particle swarm population in the current iteration, a global optimal solution of the first participant in the current iteration is obtained.
[0191] Optionally, when the processing module 412 is used to obtain the target optimal solution of the second participant based on the differential evolution algorithm and the objective function, the processing module 412 is specifically used to:
[0192] Based on the differential evolution algorithm, obtaining the number of iterations and the target individual in the differential evolution population;
[0193] Based on the number of iterations and the target individual, determining a variant individual of each individual in the differential evolution population in the current iteration;
[0194] Performing a crossover operation on each individual in the differential evolution population in the current iteration and the corresponding variant individual according to a preset rule to obtain a test individual for each individual in the differential evolution population in the current iteration;
[0195] Substituting each individual in the differential evolution population in the current iteration and the corresponding test individual into the objective function to obtain the fitness value of each individual in the differential evolution population in the current iteration;
[0196] The fitness value of each individual in the differential evolution population in the current iteration is used as a judgment basis, and the target optimal solution of the second participant in the current iteration is determined from each individual and the corresponding test individuals through a greedy selection strategy.
[0197] Optionally, when the game module 413 is used to conduct a cooperative game between the first participant and the second participant using Nash negotiation theory based on the global optimal solution of the first participant and the target optimal solution of the second participant to obtain the optimal flight path in the flight path of the drone, the game module 413 is specifically used to:
[0198] Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the global optimal solution of the first participant obtained in the current iteration is stored in the elite set of the first participant, and at the same time, the target optimal solution of the second participant obtained in the current iteration is stored in the elite set of the second participant;
[0199] Increasing the number of iterations by one, updating the number of iterations, and determining whether the updated number of iterations is greater than a preset number of iterations;
[0200] If not, continue iterating;
[0201] If so, then perform a Cartesian product of the first participant's elite set and the second participant's elite set to obtain a feasible set;
[0202] The divergence point between the first participant and the second participant is obtained, and based on the divergence point, a cooperative game is performed on the feasible set using Nash negotiation theory to obtain an optimal flight path in the flight path of the UAV.
[0203] Optionally, when the game module 413 is used to continue iteration, the game module 413 is specifically used to:
[0204] Based on the updated number of iterations and the global optimal solution of the first participant obtained in the previous iteration, the speed of each particle in the spherical vector particle swarm population in the current iteration is updated, and based on the updated speed of each particle in the spherical vector particle swarm population in the current iteration, the elite set of the first participant is continued to be updated;
[0205] At the same time, based on the updated number of iterations and the optimal solution of the target of the second participant obtained in the previous iteration, the mutant individuals of each individual in the differential evolution population in the current iteration are updated, and based on the updated mutant individuals of each individual in the differential evolution population in the current iteration, the elite set of the second participant continues to be updated.
[0206] Optionally, when the game module 413 is used to conduct a cooperative game on the feasible set based on the divergence point using Nash negotiation theory to obtain the optimal flight path in the flight path of the drone, the game module 413 is specifically used to:
[0207] Based on the divergence point, a cooperative game is performed on each solution in the feasible set using Nash negotiation theory to obtain a target solution in the feasible set;
[0208] Determine whether the target solution satisfies a preset condition; wherein the preset condition is that a first solution in the target solution is better than a first parameter in the bifurcation point, and a second solution in the target solution is better than a second parameter in the bifurcation point;
[0209] If satisfied, then the solution that minimizes the objective function among the first solution and the second solution of the target solution is determined as the optimal flight path in the UAV flight path.
[0210] An embodiment of the present application provides a UAV path planning device based on cooperative game, and the UAV path planning device includes: a construction module, which is used to obtain the flight path of the UAV, and use the constraints of the flight path to construct the objective function of the UAV flight path; wherein the constraints include: path length constraints, height constraints, safety constraints and smoothness constraints; a processing module, which is used to obtain a spherical vector particle swarm population and a differential evolution population, and use the spherical vector particle swarm population as the first participant, and based on the spherical vector particle swarm algorithm and the objective function, obtain the global optimal solution of the first participant, and at the same time, use the differential evolution population as the second participant, and based on the differential evolution algorithm and the objective function, obtain the target optimal solution of the second participant; a game module, which is used to use the Nash negotiation theory to conduct a cooperative game between the first participant and the second participant based on the global optimal solution of the first participant and the target optimal solution of the second participant, so as to obtain the optimal flight path in the UAV flight path.
[0211] In this way, the technical solution provided by this application can formulate an objective function through relevant constraints during the flight of the UAV, transform path planning into an optimization problem, and propose a cooperative game method based on Nash negotiation theory to find the best solution. The ball vector particle swarm and differential evolution are used as two participants to conduct cooperative games. The balance between exploration and development capabilities is maintained by preventing population stagnation and avoiding local optimality, thereby obtaining the optimal solution. This not only avoids the premature convergence problem caused by local optimality, but also improves the algorithm search capability and diversity, thereby improving the accuracy and efficiency of UAV path planning.
[0212] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .
[0213] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, the above-mentioned Figure 1 to Figure 2 The specific implementation methods of the steps of the cooperative game-based drone path planning method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0214] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 to Figure 2 The specific implementation methods of the steps of the cooperative game-based drone path planning method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0215] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0216] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0217] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0218] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0219] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0220] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned 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-mentioned embodiments within the technical scope disclosed in the present application, 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 application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A UAV path planning method based on cooperative game, characterized in that: The UAV path planning method comprises: Obtaining the flight path of the UAV, and constructing the objective function of the UAV flight path using the constraints of the flight path; wherein the constraints include: path length constraints, height constraints, safety constraints, and smoothness constraints; Acquire a spherical vector particle swarm population and a differential evolution population, take the spherical vector particle swarm population as a first participant, obtain a global optimal solution of the first participant based on a spherical vector particle swarm algorithm and the objective function, and at the same time, take the differential evolution population as a second participant, obtain a target optimal solution of the second participant based on the differential evolution algorithm and the objective function; Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the Nash negotiation theory is used to conduct a cooperative game between the first participant and the second participant to obtain the optimal flight path of the UAV; The step of performing a cooperative game between the first participant and the second participant using Nash negotiation theory based on the global optimal solution of the first participant and the target optimal solution of the second participant to obtain the optimal flight path in the flight path of the drone includes: Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the global optimal solution of the first participant obtained in the current iteration is stored in the elite set of the first participant, and at the same time, the target optimal solution of the second participant obtained in the current iteration is stored in the elite set of the second participant; Increasing the number of iterations by one, updating the number of iterations, and determining whether the updated number of iterations is greater than a preset number of iterations; If not, continue iterating; If so, then perform a Cartesian product of the first participant's elite set and the second participant's elite set to obtain a feasible set; The divergence point between the first participant and the second participant is obtained, and based on the divergence point, a cooperative game is performed on the feasible set using Nash negotiation theory to obtain an optimal flight path in the flight path of the UAV.
2. The UAV path planning method according to claim 1, characterized in that: The step of constructing the objective function of the UAV flight path by using the constraint conditions of the flight path includes: For each constraint condition of the flight path, obtain the required parameters of the constraint condition and the preset weight coefficient; Based on the parameters required by the constraint condition, determine the cost function corresponding to the constraint condition; The cost function corresponding to each constraint condition is summed with the product of the corresponding preset weight coefficient to obtain the objective function of the UAV flight path.
3. The UAV path planning method according to claim 1, characterized in that: The step of obtaining the global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function includes: Based on the spherical vector particle swarm algorithm, obtaining the number of iterations and the guiding particles of the spherical vector particle swarm population; Determine the speed of each particle in the spherical vector particle population in the current iteration based on the number of iterations and the guide particle; Determine the position of each particle in the spherical vector particle swarm population in the current iteration according to the speed of each particle in the spherical vector particle swarm population in the current iteration; The position of each particle in the spherical vector particle swarm population in the current iteration is mapped to a rectangular coordinate system through a mapping formula to obtain a target position of each particle in the spherical vector particle swarm population in the current iteration; Substituting the target position of each particle in the spherical vector particle swarm population in the current iteration into the objective function, and determining the fitness value of each particle in the spherical vector particle swarm population in the current iteration; Determine a local optimal solution for each particle in the spherical vector particle swarm population in the current iteration based on the fitness value of each particle in the spherical vector particle swarm population in the current iteration; Based on the local optimal solution of each particle in the spherical vector particle swarm population in the current iteration, a global optimal solution of the first participant in the current iteration is obtained.
4. The UAV path planning method according to claim 1, characterized in that: The step of obtaining the optimal solution of the target of the second participant based on the differential evolution algorithm and the objective function includes: Based on the differential evolution algorithm, obtaining the number of iterations and the target individual in the differential evolution population; Based on the number of iterations and the target individual, determining a variant individual of each individual in the differential evolution population in the current iteration; Performing a crossover operation on each individual in the differential evolution population in the current iteration and the corresponding variant individual according to a preset rule to obtain a test individual for each individual in the differential evolution population in the current iteration; Substituting each individual in the differential evolution population in the current iteration and the corresponding test individual into the objective function to obtain the fitness value of each individual in the differential evolution population in the current iteration; The fitness value of each individual in the differential evolution population in the current iteration is used as a judgment basis, and the target optimal solution of the second participant in the current iteration is determined from each individual and the corresponding test individuals through a greedy selection strategy.
5. The UAV path planning method according to claim 1, characterized in that: Continue iterating by following these steps: Based on the updated number of iterations and the global optimal solution of the first participant obtained in the previous iteration, the speed of each particle in the spherical vector particle swarm population in the current iteration is updated, and based on the updated speed of each particle in the spherical vector particle swarm population in the current iteration, the elite set of the first participant is continued to be updated; At the same time, based on the updated number of iterations and the optimal solution of the target of the second participant obtained in the previous iteration, the mutant individuals of each individual in the differential evolution population in the current iteration are updated, and based on the updated mutant individuals of each individual in the differential evolution population in the current iteration, the elite set of the second participant continues to be updated.
6. The UAV path planning method according to claim 1, characterized in that: The step of performing cooperative game on the feasible set using Nash negotiation theory based on the divergence point to obtain the optimal flight path in the flight path of the drone includes: Based on the divergence point, a cooperative game is performed on each solution in the feasible set using Nash negotiation theory to obtain a target solution in the feasible set; Determine whether the target solution satisfies a preset condition; wherein the preset condition is that a first solution in the target solution is better than a first parameter in the bifurcation point, and a second solution in the target solution is better than a second parameter in the bifurcation point; If satisfied, then the solution that minimizes the objective function among the first solution and the second solution of the target solution is determined as the optimal flight path in the UAV flight path.
7. A UAV path planning device based on cooperative game, characterized in that: The UAV path planning device comprises: A construction module is used to obtain the flight path of the UAV, and construct the objective function of the flight path of the UAV using the constraints of the flight path; wherein the constraints include: path length constraints, height constraints, safety constraints, and smoothness constraints; A processing module, used to obtain a spherical vector particle swarm population and a differential evolution population, take the spherical vector particle swarm population as a first participant, obtain a global optimal solution of the first participant based on the spherical vector particle swarm algorithm and the objective function, and at the same time, take the differential evolution population as a second participant, obtain a target optimal solution of the second participant based on the differential evolution algorithm and the objective function; a game module, configured to conduct a cooperative game between the first participant and the second participant using Nash negotiation theory based on the global optimal solution of the first participant and the target optimal solution of the second participant, so as to obtain an optimal flight path among the flight paths of the UAV; When the game module is used to conduct a cooperative game between the first participant and the second participant using Nash negotiation theory based on the global optimal solution of the first participant and the target optimal solution of the second participant to obtain the optimal flight path in the flight path of the drone, the game module is used to: Based on the global optimal solution of the first participant and the target optimal solution of the second participant, the global optimal solution of the first participant obtained in the current iteration is stored in the elite set of the first participant, and at the same time, the target optimal solution of the second participant obtained in the current iteration is stored in the elite set of the second participant; Increasing the number of iterations by one, updating the number of iterations, and determining whether the updated number of iterations is greater than a preset number of iterations; If not, continue iterating; If so, then perform a Cartesian product of the first participant's elite set and the second participant's elite set to obtain a feasible set; The divergence point between the first participant and the second participant is obtained, and based on the divergence point, a cooperative game is performed on the feasible set using Nash negotiation theory to obtain an optimal flight path in the flight path of the UAV.
8. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the cooperative game-based drone path planning method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cooperative game-based drone path planning method as described in any one of claims 1 to 6 are executed.
Citation Information
Patent Citations
Multi-target high spectral remote sensing image wave band selection method based on game theory
CN104751179A
Method and device for determining flight paths of multiple unmanned aerial vehicles, equipment and storage medium
CN117055615A
