Unmanned aerial vehicle speed control optimization method based on improved seasonal optimization algorithm

By improving seasonal optimization algorithm to optimize the parameters of the PID controller of the UAV speed, the problems of slow response speed and low adjustment accuracy in traditional methods are solved, and the flight stability and adjustment speed of the UAV in complex environments are improved, and the flight stability and adjustment speed of the UAV in complex environments are avoided. The fall of local optimal solution.

CN119002513APending Publication Date: 2024-11-22OUYE LIANJIN RENEWABLE RESOURCES CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411106739.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Traditional drone speed control methods are slow to respond and have low adjustment accuracy, making them difficult to adapt to complex environments, and the control effect of PID controllers in nonlinear or time-varying systems is limited, and the convergence speed of seasonal optimization algorithms is slow and easy to fall into local optimal. untie.

Method used

Improved seasonal optimization algorithm (ASO) improves forest renewal rate by utilizing the average intensity and sinusoidal strategy of the current tree population, and combines the Cauchy mutation strategy to optimize the proportional coefficient Kp, integral coefficient Ki, and differential coefficient Kd parameters of the UAV speed PID controller. , improve flight control stability and response speed.

Benefits of technology

It realizes the improvement of the flight stability and response speed of the drone in complex environments, avoids local optimal solutions, and improves the setting speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002513A_ABST
    Figure CN119002513A_ABST
Patent Text Reader

Abstract

The invention discloses an unmanned aerial vehicle speed control optimization method based on an improved seasonal optimization algorithm, and belongs to the technical field of unmanned aerial vehicle speed PID control, and the method specifically comprises the steps: S1, constructing an unmanned aerial vehicle speed control system model which comprises a speed error input module, a speed PID controller module, an improved seasonal optimization algorithm module, and an unmanned aerial vehicle four-axis motor electric adjustment module; s2, improving a standard seasonal optimization algorithm; s3, inputting the difference value between the unmanned aerial vehicle speed target value and the speed real-time value into an unmanned aerial vehicle speed PID controller model, and setting Kp, Ki and Kd parameters of a speed PID controller by using an improved seasonal optimization algorithm to obtain optimal unmanned aerial vehicle speed PID control parameters; and S4, inputting the optimal unmanned aerial vehicle speed PID control parameter into an unmanned aerial vehicle speed control system, realizing unmanned aerial vehicle speed adaptive adjustment control, and ensuring the flight stability of the unmanned aerial vehicle in a complex environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of unmanned aerial vehicle speed PID control, and in particular relates to a unmanned aerial vehicle speed control optimization method based on an improved seasonal optimization algorithm. Background Art

[0002] The speed control of drones is mainly achieved by adjusting the speed of the motor to change the attitude and speed of the aircraft. Only when the speeds of the four axes of the drone are the same can the drone fly stably in a straight line. If there is a slight difference between the speed of one axis and the speeds of the other axes, the flight stability of the drone will be affected. However, traditional drone speed control methods often have some problems, such as slow response speed, low adjustment accuracy, and difficulty in adapting to complex environments. Therefore, a more efficient, accurate and adaptable optimization method is needed to improve the speed control performance of drones.

[0003] The PID (proportional Kp-integral Ki-differential Kd) controller in UAV speed control is an important control strategy used to accurately adjust the motion state of the UAV, including speed, position, and attitude. The PID controller compares the difference between the current state of the UAV and the target state, and generates a control signal based on this difference to adjust the flight speed of the UAV. Although the PID controller has a wide range of applications and good effects, it may have limitations in certain specific situations. For example, for highly nonlinear or time-varying systems, the performance of the PID controller may be affected. Therefore, in practical applications, it is necessary to select and optimize the appropriate control strategy based on the characteristics of the UAV and the mission requirements.

[0004] Seasonal optimization (SO) is an emerging optimization algorithm, which is inspired by the impact of seasonal changes on organisms and natural systems in nature. In the seasonal optimization algorithm, each season has different parameter settings, such as temperature, rainfall, and light intensity, which affect the behavior of individuals. The algorithm iterates and optimizes the potential solutions in the solution space through four main operations: update, competition, seeding, and removal, and finally selects the optimal solution. The convergence speed of the seasonal optimization algorithm is slow. Especially when the problem scale is large or the search space is complex, the algorithm needs more iterations to find a satisfactory solution. At the same time, the seasonal optimization algorithm will fall into the local optimal solution during the search process, especially when there are multiple local optimal regions in the solution space of the problem. Summary of the invention

[0005] The purpose of the present invention is to provide a method for solving the problem of easy loss of optimal solution for seasonal optimization algorithm, improve the seasonal optimization algorithm to solve the problem that the seasonal optimization algorithm is easy to fall into the limitation of suboptimal solution, improve the convergence speed, and at the same time, in view of the defect that the traditional PID controller has limited control effect on nonlinear and complex systems, use the improved seasonal optimization algorithm (ASO) to optimize the traditional PID controller for UAV speed control, so as to improve the flight stability of UAV in complex environments.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] An optimization method for UAV speed control based on an improved seasonal optimization algorithm is proposed. The improved seasonal optimization algorithm is used to optimize the three parameters of the UAV speed PID controller, namely the proportional coefficient Kp, integral coefficient Ki, and differential coefficient Kd, to improve the flight control stability of the UAV in complex environments. The specific steps are as follows.

[0008] S1. Construct a UAV speed control system model, including a control unit and an execution unit.

[0009] S2. Improve the standard seasonal optimization algorithm. The specific steps are as follows:

[0010] S21, using the average strength S of the current tree population q The forest renewal rate p of the seasonal optimization algorithm and the sine strategy r Improved, improved forest regeneration rate

[0011] S22. Utilizing improved forest regeneration rates Improved mathematical model of exploration strategy for seasonal optimization algorithm;

[0012] S23, after the position of the seasonal optimization algorithm is updated, the optimal tree position F is adjusted using Cauchy mutation best Perform disturbances to further update tree positions.

[0013] S3. Input the difference between the target speed value and the real-time speed value of the UAV into the UAV speed PID controller model, and use the improved seasonal optimization algorithm to adjust the Kp, Ki, and Kd parameters of the speed PID controller to obtain the optimal UAV speed PID control parameters.

[0014] S4. Input the optimal UAV speed PID control parameters into the UAV speed control system to achieve UAV speed adaptive adjustment control.

[0015] Furthermore, in step S1, the control unit of the UAV speed control system model includes a speed error input module, a speed PID controller module, and an improved seasonal optimization algorithm module; and the execution unit includes a UAV four-axis motor electric adjustment module.

[0016] Furthermore, the speed error input module is used to calculate the difference e(t) between the target speed value and the real-time speed value of the UAV. The speed PID controller module parameters are adjusted by the improved seasonal optimization algorithm module assisted by the difference e(t). The optimal speed PID controller parameters are input into the UAV speed PID controller module. The UAV speed control value u(t) is calculated using the optimal PID controller parameters. u(t) is input into the UAV four-axis motor electronic adjustment module. The electronic adjustment drives the motor of the four-axis of the UAV so that the motor speed reaches the target value quickly and stably.

[0017] Furthermore, the difference e(t) and overshoot factor are used to design an improved seasonal optimization algorithm to adjust the objective function J of the speed PID control parameters. The mathematical model of the objective function is:

[0018]

[0019] In formula (1), t is the current time, T is the upper limit time of integration, V max The maximum value of the speed response that exceeds the set speed, V is the set target speed, The overshoot factor measures the degree to which the speed response exceeds the set value, which helps to avoid excessive overshoot.

[0020] Furthermore, the standard seasonal optimization algorithm simulates the process of generating new seedlings to establish a mathematical model for updating the algorithm position, namely the exploration strategy, which is the key to the entire seasonal optimization algorithm strategy. Each tree in the forest represents a set solution of Kp, Ki, and Kd parameters of a UAV speed PID controller. The seasonal optimization algorithm's optimization goal is to find the tree with the largest strength S in the forest. The seasonal optimization algorithm updates the trees in the forest using four models, including exploration strategy, competition strategy, seeding strategy, and resistance strategy. Finally, the strongest tree is selected as the optimal solution of the Kp, Ki, and Kd parameter set of the UAV speed PID controller.

[0021] Furthermore, in the standard seasonal optimization algorithm, the forest renewal rate px in the update strategy stage is a parameter that decreases linearly with the increase of the number of iterations y, while the seasonal optimization algorithm is a complex linear problem for the Kp, Ki, and Kd parameters of the UAV speed PID controller. r The lack of self-adaptation makes the standard seasonal optimization algorithm have poor balance performance in the search sensitivity in the early iteration and the convergence accuracy in the later iteration, resulting in slow tuning speed and low optimization accuracy during the tuning process. q The forest renewal rate p of the seasonal optimization algorithm and the sine strategy r Improved, improved forest regeneration rate The mathematical model formula is:

[0022]

[0023] In formula (2), p max is the maximum value of forest renewal rate, y is the current iteration number of seasonal optimization algorithm, Y is the maximum iteration number of seasonal optimization algorithm, S min is the global minimum tree strength of the seasonal optimization algorithm, is the maximum tree strength of the current iteration of the seasonal optimization algorithm, and the tree strength S of the seasonal optimization algorithm y The mathematical model formula is:

[0024]

[0025] In the formula, J d It is the average value of the objective function of the tree population position in the current iteration.

[0026] Further, using improved forest regeneration rates Improved exploration strategy mathematical model of seasonal optimization algorithm, the improved exploration strategy mathematical model is improved by improving forest renewal rate The sinusoidal strategy and the change of tree strength value in the iteration process ensure the adaptability of the optimization process. In the early stage of iteration, Maintaining a large value for a long time increases the freedom of the exploration strategy to search in the current solution space. In the later stages of iteration, Maintain a small value for a long time, reduce the search freedom, improve the ability of local convergence, and improve the optimization accuracy of the exploration strategy; improve the mathematical model of the exploration strategy of the seasonal optimization algorithm according to formula (3);

[0027]

[0028] In formula (3), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, A y is the number of seeds at the yth iteration.

[0029] Furthermore, after the exploration strategy, competition strategy, and seeding strategy of the standard seasonal optimization algorithm, the optimal tree position F of the current standard seasonal optimization algorithm is best The Cauchy distribution random number is added to realize the variation disturbance, which increases the diversity of the standard seasonal optimization algorithm, thereby improving the ability of the seasonal optimization algorithm to jump out of the local optimal solution. The Cauchy variation strategy of the present invention is designed according to formula (4);

[0030] F y+1 =F best +Cauchy(F0-F best,γ) (4);

[0031] In formula (4), F0 is the location parameter of the Cauchy distribution, and γ is the scale parameter of the Cauchy distribution, which determines the range and intensity of the disturbance.

[0032] Furthermore, in step S3, the Kp, Ki, and Kd parameters of the speed PID controller are adjusted using an improved seasonal optimization algorithm, and the specific steps are as follows:

[0033] S31, setting the Kp, Ki, and Kd parameters of the UAV speed PID controller into N sets of space vector solution sets, each set of space vectors including one Kp, Ki, and Kd parameter each;

[0034] S32, randomly initialize the initial position of the tree population, establish a real number mapping between the initial position of the tree population and the spatial vector solution set in step S31, and the position of each individual tree corresponds to a set of spatial vectors;

[0035] S33, initializing the parameters of the improved seasonal optimization algorithm, including: the maximum size N of the tree population, that is, the number of spatial vector solution sets, the maximum number of iterations Y of the improved seasonal optimization algorithm, the problem dimension D, and the upper bound ub and lower bound lb of the optimization parameters Kp, Ki, and Kd;

[0036] S34, establishing mathematical models of exploration strategy, competition strategy, seeding strategy and resistance strategy, and updating the Kp, Ki, Kd parameter solution set of the UAV speed PID controller;

[0037] S35, using the objective function J to calculate the fitness value of the individual tree positions, and retaining the individual tree positions corresponding to the minimum fitness value of the current iteration;

[0038] S36, using formula (3) to perform Cauchy mutation update according to the current tree population position;

[0039] S37. Determine whether the current number of iterations y is equal to the maximum number of iterations Y. If so, resolve the individual tree positions corresponding to the global minimum fitness value into the N groups of spatial vector solution sets in S31 to obtain the Kp, Ki, and Kd parameters of the UAV speed PID controller; otherwise, return to execute S34.

[0040] Furthermore, the method of establishing the mathematical model of exploration strategy, competition strategy, seeding strategy and resistance strategy is as follows:

[0041] Step 1, simulate the behavior of trees in spring, generate new tree seedlings, and establish a mathematical model of exploration strategy for the improved seasonal optimization algorithm according to formula (3);

[0042] Step 2, simulate the impact of summer on tree growth, trees compete for resources with each other, and establish a competition strategy mathematical model of the improved seasonal optimization algorithm according to formula (5);

[0043]

[0044] In formula (5), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, Λ i is the measure of the competition index of the ith tree, β is a random number drawn from a uniform distribution;

[0045] Step 3, simulate the sowing behavior of trees in autumn and mathematically model the sowing strategy according to formula (6);

[0046] A y =ψ(p s ×N) (6);

[0047] In formula (6), p s is a random number between 0 and 1, and the ψ function selects the tree with the largest strength S in the tree population N;

[0048] Step 4, simulate the winter effect of trees, remove the trees with the smallest strength S from the forest, and mathematically model the resistance strategy according to formula (7);

[0049]

[0050] In formula (7), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, and the η function is to remove the tree with the smallest strength S from the tree population N, p w is the resistance rate, and the mathematical model is:

[0051] p w =1-|r|; where r is a random number within the range of [-1, 0].

[0052] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0053] The present invention effectively improves the limitations of the standard seasonal optimization algorithm by utilizing the average strength of the current tree population and the sinusoidal strategy to improve the forest renewal rate of the seasonal optimization algorithm, and by utilizing the Cauchy mutation to perturb the optimal tree position after the position is updated; the three parameters of the proportional coefficient Kp, the integral coefficient Ki, and the differential coefficient Kd of the UAV speed PID controller are optimized using the improved seasonal optimization algorithm, and by applying the optimized UAV PID controller to the UAV speed control system, the adaptive adjustment control of the UAV speed is achieved, thereby improving the flight stability and response speed of the UAV. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 This is a step diagram of the UAV speed control optimization method based on the improved seasonal optimization algorithm.

[0055] Figure 2 Flowchart for tuning the Kp, Ki, and Kd parameters of the PID controller using the improved seasonal optimization algorithm.

[0056] Figure 3 Comparison curve of Kp, Ki, and Kd parameters of PID controller for the improved seasonal optimization algorithm and the standard seasonal optimization algorithm.

[0057] Figure 4 Comparison chart of fitness value curves between the improved seasonal optimization algorithm and the standard seasonal optimization algorithm.

[0058] Figure 5 This is a comparison chart of the effects of optimizing speed PID using the improved seasonal optimization algorithm and the standard seasonal optimization algorithm. DETAILED DESCRIPTION

[0059] 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.

[0060] See also Figure 1-Figure 5 , the present invention provides a technical solution:

[0061] A UAV speed control optimization method based on an improved seasonal optimization algorithm is proposed. The improved seasonal optimization algorithm is used to optimize the three parameters of the UAV speed PID controller: proportional coefficient Kp, integral coefficient Ki, and differential coefficient Kd. Figure 1 As shown, the specific steps are as follows.

[0062] S1. Construct a UAV speed control system model, including a control unit and an execution unit.

[0063] More specifically, the control unit includes a speed error input module, a speed PID controller module, and an improved seasonal optimization algorithm module; the execution unit includes a UAV four-axis motor electronic adjustment module.

[0064] S2. Improvement of standard seasonal optimization algorithm.

[0065] More specifically, in the standard seasonal optimization algorithm, the forest renewal rate p in the update strategy phase is r is a parameter that decreases linearly with the increase of the number of iterations y. The seasonal optimization algorithm is a complex linear problem for the Kp, Ki, and Kd parameters of the drone speed PID controller. The forest renewal rate p before improvement r The lack of adaptability makes the standard seasonal optimization algorithm have a poor balance between search sensitivity in the early iteration and convergence accuracy in the later iteration, resulting in slow tuning speed and low optimization accuracy during the tuning process.

[0066] More specifically, S21, using the average strength S of the current tree population q The forest renewal rate p of the seasonal optimization algorithm and the sine strategy r Improved, improved forest regeneration rate Improved forest regeneration rates The mathematical model formula is:

[0067]

[0068] In formula (2), p max is the maximum value of forest renewal rate, y is the current iteration number of seasonal optimization algorithm, Y is the maximum iteration number of seasonal optimization algorithm, S min is the global minimum tree strength of the seasonal optimization algorithm, is the maximum tree strength of the current iteration of the seasonal optimization algorithm, and the tree strength S of the seasonal optimization algorithm y The mathematical model formula is:

[0069]

[0070] In the formula, J d It is the average value of the objective function of the tree population position in the current iteration.

[0071] More specifically, the standard seasonal optimization algorithm (SO) simulates the process of generating new seedlings to establish a mathematical model for updating the algorithm position, namely the exploration strategy, which is the key to the entire seasonal optimization algorithm strategy. Each tree in the forest represents a set solution of Kp, Ki, and Kd parameters of the UAV speed PID controller. The seasonal optimization algorithm's optimization goal is to find the tree with the largest strength S in the forest. The seasonal optimization algorithm updates the trees in the forest using four models, including exploration strategy, competition strategy, seeding strategy, and resistance strategy. Finally, the strongest tree is selected as the optimal solution of the Kp, Ki, and Kd parameter set of the UAV speed PID controller.

[0072] More specifically, S22, utilizing improved forest regeneration rates Improve the mathematical model of exploration strategy of seasonal optimization algorithm; Improve the mathematical model of exploration strategy of seasonal optimization algorithm according to formula (3);

[0073]

[0074] In formula (3), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, A y is the number of seeds at the yth iteration.

[0075] More specifically, the improved mathematical model of exploration strategy improves forest renewal rate The sinusoidal strategy and the change of tree strength value in the iteration process ensure the adaptability of the optimization process. In the early stage of iteration, Maintaining a large value for a long time increases the freedom of the exploration strategy to search in the current solution space. In the later stages of iteration, Maintaining a small value for a long time reduces the search freedom, improves the ability of local convergence, and improves the optimization accuracy of the exploration strategy.

[0076] More specifically, S23, after the exploration strategy, competition strategy, and seeding strategy of the standard seasonal optimization algorithm, the optimal tree position F of the current standard seasonal optimization algorithm is best The Cauchy distribution random number is added to realize the variation disturbance, which increases the diversity of the standard seasonal optimization algorithm, thereby improving the ability of the seasonal optimization algorithm to jump out of the local optimal solution. The Cauchy variation strategy of the present invention is designed according to formula (4);

[0077] F y+1 =F best +Cauchy(F0-F best ,γ) (4);

[0078] In formula (4), F0 is the location parameter of the Cauchy distribution, and γ is the scale parameter of the Cauchy distribution, which determines the range and intensity of the disturbance.

[0079] S3. Input the difference between the target speed value and the real-time speed value of the UAV into the UAV speed PID controller model, and use the improved seasonal optimization algorithm to adjust the Kp, Ki, and Kd parameters of the speed PID controller to obtain the optimal UAV speed PID control parameters.

[0080] More specifically, the difference e(t) and the overshoot factor are used to design an improved seasonal optimization algorithm to adjust the objective function J of the speed PID control parameters. The mathematical model of the objective function is:

[0081]

[0082] In formula (1), t is the current time, T is the upper limit time of integration, V max The maximum value of the speed response that exceeds the set speed, V is the set target speed, The overshoot factor measures the degree to which the speed response exceeds the set value, which helps to avoid excessive overshoot.

[0083] More specifically, if Figure 2 As shown in the figure, the improved seasonal optimization algorithm is used to adjust the Kp, Ki, and Kd parameters of the UAV speed PID controller. The specific steps are as follows:

[0084] S31, setting the Kp, Ki, and Kd parameters of the UAV speed PID controller into N sets of space vector solution sets, each set of space vectors including one Kp, Ki, and Kd parameter each;

[0085] S32, randomly initialize the initial position of the tree population, establish a real number mapping between the initial position of the tree population and the spatial vector solution set in step S31, and the position of each individual tree corresponds to a set of spatial vectors;

[0086] S33, initializing the parameters of the improved seasonal optimization algorithm, including: the maximum size N of the tree population, that is, the number of spatial vector solution sets, the maximum number of iterations Y of the improved seasonal optimization algorithm, the problem dimension D, and the upper bound ub and lower bound lb of the optimization parameters Kp, Ki, and Kd;

[0087] S34, establishing mathematical models of exploration strategy, competition strategy, seeding strategy and resistance strategy, and updating the Kp, Ki, Kd parameter solution set of the UAV speed PID controller;

[0088] S35, using the objective function J to calculate the fitness value of the individual tree positions, and retaining the individual tree positions corresponding to the minimum fitness value of the current iteration;

[0089] S36, using formula (3) to perform Cauchy mutation update according to the current tree population position;

[0090] S37. Determine whether the current number of iterations y is equal to the maximum number of iterations Y. If so, resolve the individual tree positions corresponding to the global minimum fitness value into the N groups of spatial vector solution sets in S31 to obtain the Kp, Ki, and Kd parameters of the UAV speed PID controller; otherwise, return to execute S34.

[0091] More specifically, mathematical models of exploration strategy, competition strategy, seeding strategy and resistance strategy are established by:

[0092] Step 1, simulate the behavior of trees in spring, generate new tree seedlings, and establish a mathematical model of exploration strategy for the improved seasonal optimization algorithm according to formula (3);

[0093] Step 2, simulate the impact of summer on tree growth, trees compete for resources with each other, and establish a competition strategy mathematical model of the improved seasonal optimization algorithm according to formula (5);

[0094]

[0095] In formula (5), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, Λ i is the measure of the competition index of the ith tree, β is a random number drawn from a uniform distribution;

[0096] Step 3, simulate the sowing behavior of trees in autumn and mathematically model the sowing strategy according to formula (6);

[0097] A y =ψ(p s ×N) (6);

[0098] In formula (6), p s is a random number between 0 and 1, and the ψ function selects the tree with the largest strength S in the tree population N;

[0099] Step 4, simulate the winter effect of trees, remove the trees with the smallest strength S from the forest, and mathematically model the resistance strategy according to formula (7);

[0100]

[0101] In formula (7), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, and the η function is to remove the tree with the smallest strength S from the tree population N, p w is the resistance rate, and the mathematical model is:

[0102] p w =1-|r|; where r is a random number within the range of [-1, 0].

[0103] S4. Input the optimal UAV speed PID control parameters into the UAV speed control system to achieve UAV speed adaptive adjustment control.

[0104] More specifically, if Figure 3 As shown, the speed error input module is used to calculate the difference e(t) between the target speed value and the real-time speed value of the UAV. The speed PID controller module parameters are adjusted by the improved seasonal optimization algorithm module assisted by the difference e(t). The optimal speed PID controller parameters are input into the UAV speed PID controller module. The UAV speed control value u(t) is calculated using the optimal PID controller parameters. u(t) is input into the UAV four-axis motor electronic adjustment module. The electronic adjustment drives the motor of the four-axis of the UAV, so that the motor speed reaches the target value quickly and stably.

[0105] More specifically, in order to make the purpose, technical solution and advantages of the present invention clearer, the standard seasonal optimization algorithm is compared with the improved seasonal optimization algorithm proposed in this patent. Through Matlab simulation experiments, the tree population size N = 100, the maximum number of iterations Y = 50, the problem dimension D = 3, the search upper bound ub = 100, the search lower bound lb = 0, the objective function is selected as the fitness function, and the seasonal optimization algorithm before and after the improvement is used for the UAV speed PID module. The speed PID control Kp, Ki, Kd parameter setting process changes are as follows: Figure 4 As shown, the optimal UAV speed PID control parameters Kp, Ki, and Kd are input into the UAV speed control system simulation model built in Siumlink, including: UAV speed PID model, objective function model, and controlled object model. The controlled object model is used as a transfer function, and the formula is: Finally, the drone speed PID control effect is output.

[0106] More specifically, the smaller the fitness value, the higher the accuracy of the speed PID control parameters and the better the speed PID control performance; at the same time, the faster the fitness value decreases, the faster the speed of adjusting the speed PID control parameters, the better the algorithm optimization speed and the better the performance; the fitness value changes of the standard seasonal optimization algorithm and the improved seasonal optimization algorithm for adjusting the speed PID control parameters of the UAV are as follows: Figure 4As shown in the figure, it can be found that the decline rate and the minimum value after stabilization of the fitness value of the UAV speed PID control parameters adjusted by the improved seasonal optimization algorithm are more superior than the fitness value of the UAV speed PID control parameters adjusted by the standard seasonal optimization algorithm. The decline rate is faster and the minimum value is smaller, indicating that the use of the improved seasonal optimization algorithm to adjust the UAV speed PID control parameters proposed in the present invention to achieve precise control of the UAV speed is more advanced and effective.

[0107] Figure 5 This is a comparison chart of the effects of optimizing the UAV four-axis speed PID control based on the improved seasonal optimization algorithm and the standard seasonal optimization algorithm. It can be seen from the figure that the UAV speed control based on the improved seasonal optimization algorithm has the best effect and the smallest overshoot; the second is the UAV speed control based on the standard seasonal optimization algorithm, and the overshoot is second only to the improved seasonal optimization algorithm.

[0108] It should be noted that, in the description of the invention, the directions or positional relationships indicated by the terms "up", "down", "left", "right", "front", "back", etc. are descriptions of the structure of the present invention based on the accompanying drawings, and are only for the convenience of describing the present invention, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.

[0109] The "first" and "second" in this technical solution are only used to distinguish the names of the same or similar structures, or corresponding structures with similar functions, and are not an arrangement of the importance of these structures, nor do they have a ranking, comparison of size, or other meanings.

[0110] In addition, unless otherwise clearly specified and limited, the terms "installation" and "connection" should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be a connection between the two structures. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood based on the overall idea of ​​the present invention and the specific context of the present solution.

Claims

1. A UAV speed control optimization method based on an improved seasonal optimization algorithm, which uses the improved seasonal optimization algorithm to optimize the three parameters of the UAV speed PID controller, namely, the proportional coefficient Kp, the integral coefficient Ki, and the differential coefficient Kd, to improve the flight control stability of the UAV in a complex environment, and is characterized by: The steps include: S1. Construct a UAV speed control system model, including a control unit and an execution unit; S2. Improve the standard seasonal optimization algorithm. The specific steps are as follows: S21, using the average strength S of the current tree population q The forest renewal rate p of the seasonal optimization algorithm and the sine strategy r Improved, improved forest regeneration rate S22. Utilizing improved forest regeneration rates Improved mathematical model of exploration strategy for seasonal optimization algorithm; S23, after the position of the seasonal optimization algorithm is updated, the optimal tree position F is adjusted using Cauchy mutation best Perform disturbances to further update tree positions; S3, input the difference e(t) between the target speed value and the real-time speed value of the UAV into the UAV speed PID controller model, and use the improved seasonal optimization algorithm to adjust the Kp, Ki, and Kd parameters of the speed PID controller to obtain the optimal UAV speed PID control parameters; S4. Input the optimal UAV speed PID control parameters into the UAV speed control system to achieve UAV speed adaptive adjustment control.

2. The method for optimizing the speed control of a UAV based on an improved seasonal optimization algorithm according to claim 1, characterized in that: In S1, the control unit of the UAV speed control system model includes a speed error input module, a speed PID controller module, and an improved seasonal optimization algorithm module; the execution unit includes a UAV four-axis motor electric adjustment module; The speed error input module is used to calculate the difference e(t) between the target speed value and the real-time speed value of the UAV. The speed PID controller module parameters are adjusted by the improved seasonal optimization algorithm module assisted by the difference e(t). The optimal speed PID controller parameters are input into the UAV speed PID controller module. The UAV speed control value u(t) is calculated using the optimal PID controller parameters. u(t) is input into the UAV four-axis motor electronic adjustment module. The electronic adjustment drives the motor of the four-axis of the UAV so that the motor speed reaches the target value quickly and stably.

3. The method for optimizing the speed control of a UAV based on an improved seasonal optimization algorithm according to claim 1, characterized in that: In S21, the improved forest renewal rate The mathematical model formula is: In formula (2), p max is the maximum value of forest renewal rate, y is the current iteration number of seasonal optimization algorithm, Y is the maximum iteration number of seasonal optimization algorithm, S min is the global minimum tree strength of the seasonal optimization algorithm, is the maximum tree strength of the current iteration of the seasonal optimization algorithm, and the tree strength S of the seasonal optimization algorithm y The mathematical model formula is: In the formula, J d It is the average value of the objective function of the tree population position in the current iteration.

4. The method for optimizing the speed control of a UAV based on an improved seasonal optimization algorithm according to claim 3 is characterized in that: In S22, the mathematical model of exploration strategy of the seasonal optimization algorithm is improved according to formula (3): In formula (3), is the position of the i-th tree individual in the j-dimensional space at the y-th iteration, is the position of the i-th tree individual in the j-dimensional space at the y+1-th iteration, A y is the number of seeds at the yth iteration.

5. The method for optimizing the speed control of a UAV based on an improved seasonal optimization algorithm according to claim 4 is characterized in that: In S23, after the exploration strategy, competition strategy, and seeding strategy of the standard seasonal optimization algorithm, the optimal tree position F of the current standard seasonal optimization algorithm is best The Cauchy distribution random number is added to realize the variation disturbance, which increases the diversity of the standard seasonal optimization algorithm, thereby improving the ability of the seasonal optimization algorithm to jump out of the local optimal solution. The Cauchy variation strategy of the present invention is designed according to formula (4): F y+1 =F best +Cauchy(F0-F best ,γ) (4); In formula (4), F0 is the location parameter of the Cauchy distribution, and γ is the scale parameter of the Cauchy distribution, which determines the range and intensity of the disturbance.

6. A method for optimizing the speed control of a UAV based on an improved seasonal optimization algorithm according to any one of claims 1 to 5, characterized in that: In S3, the improved seasonal optimization algorithm is used to adjust the Kp, Ki, and Kd parameters of the UAV speed PID controller. The specific steps are as follows: S31, setting the Kp, Ki, and Kd parameters of the UAV speed PID controller into N groups of space vector solution sets, each group of space vectors including one Kp, Ki, and Kd parameter each; S32, randomly initialize the initial position of the tree population, establish a real number mapping between the initial position of the tree population and the spatial vector solution set in step S31, and the position of each individual tree corresponds to a set of spatial vectors; S33, initializing the parameters of the improved seasonal optimization algorithm, including: the maximum size N of the tree population, that is, the number of spatial vector solution sets, the maximum number of iterations Y of the improved seasonal optimization algorithm, the problem dimension D, and the upper bound ub and lower bound lb of the optimization parameters Kp, Ki, and Kd; S34, establishing mathematical models of exploration strategy, competition strategy, seeding strategy and resistance strategy, and updating the Kp, Ki, Kd parameter solution set of the UAV speed PID controller; S35, using the objective function J to calculate the fitness value of the individual tree positions, and retaining the individual tree positions corresponding to the minimum fitness value of the current iteration; S36, using formula (3) to perform Cauchy mutation update according to the current tree population position; S37. Determine whether the current number of iterations y is equal to the maximum number of iterations Y. If so, resolve the individual tree positions corresponding to the global minimum fitness value into the N groups of spatial vector solution sets in S31 to obtain the Kp, Ki, and Kd parameters of the UAV speed PID controller; otherwise, return to execute S34.

7. The method for optimizing the speed control of a UAV based on an improved seasonal optimization algorithm according to claim 6, characterized in that: The difference e(t) between the target speed value and the real-time speed value of the UAV and the overshoot factor are used to design an improved seasonal optimization algorithm to adjust the objective function J of the UAV speed PID control parameters. The mathematical model of the objective function is: In formula (1), t is the current time, T is the upper limit time of integration, V max The maximum value of the speed response that exceeds the set speed, V is the set target speed, The overshoot factor measures the degree to which the speed response exceeds the set value, which helps to avoid excessive overshoot.

Citation Information

Cited By

  • Low-altitude aircraft air traffic management method and system

    CN119905019A