Parameter optimization method of improved cascade PID (Proportion Integration Differentiation) controller

By improving the Pied Kingfisher optimization algorithm and introducing perturbation and adaptive t-distribution strategies, the local optimal problem of the Pied Kingfisher optimization algorithm in the development and exploration stages is solved, the system stability and robustness are improved, and the string is optimized. Level PID controller parameters.

CN118759831AInactive Publication Date: 2024-10-11UNIV OF JINAN

Patent Information

Application Number
CN202411238797.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The Pied Kingfisher optimization algorithm easily loses the optimal solution during the development and exploration stages, resulting in system process delays and uncertainties, and lacks robustness and stability to external disturbances.

Method used

The Pied Kingfisher optimization algorithm is improved by introducing disturbance and random changes in the development stage, using linear interpolation method to dynamically adjust the defeat factor BF, and introducing an adaptive t-distribution adjustment strategy in the exploration stage to improve the flexibility and stability of the algorithm.

Benefits of technology

It effectively avoids the local optimal solution, improves the stability of the system and the robustness to external disturbances, reduces the oscillation and delay of the control response, and improves the effect of cascade PID controller parameter optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118759831A_ABST
    Figure CN118759831A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of PID (Proportion Integration Differentiation) control optimization, and particularly relates to a parameter optimization method of an improved cascade PID controller, which comprises the following steps of: 1, designing a system model of the improved cascade PID controller; step 2, improving an emerald optimization algorithm, wherein the improved emerald optimization algorithm comprises: D1, improving hunting ability # imgabs0 # of emerald in a development stage, D2, dynamically adjusting a defeat factor BF by using a linear interpolation method, D3, and introducing an adaptive t distribution adjustment strategy in a population individual position updating mode in an exploration stage of the emerald optimization algorithm; step 3, setting and optimizing the parameters of the cascade PID controller by using an improved emerald optimization algorithm, and iterating to obtain the optimized optimal parameter value of the PID controller; and 4, performing simulation on the cascade PID control system by adopting MATLAB (Matrix Laboratory).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of PID control optimization, and in particular relates to a parameter optimization method of an improved cascade PID controller. Background Art

[0002] At present, PID controllers are widely used in various industrial process control scenarios, including temperature control, pressure control, flow control, and position control. Whether it is simple single-variable control or complex multi-variable control, PID control systems can be flexibly applied and are a very important and effective control technology. The parameters (proportional, integral, and differential) of PID controllers are relatively easy to adjust. PID parameters can usually be optimized through experiments and experience to meet the performance requirements of the system. This flexibility makes PID control systems easier to adjust and optimize in practical applications.

[0003] Cascade PID control is a control system structure in which there are two or more PID controllers, and the output of one PID controller is used as the input of another PID controller. This structure is usually used to solve the control problems of complex systems, especially when the system has multiple interrelated control targets. In cascade PID control, there is usually a main PID controller and one or more secondary PID controllers. The main PID controller is responsible for controlling the main output of the control system, while the secondary PID controller is responsible for controlling the input of the main PID controller to improve the system's response speed, stability or reduce residual errors.

[0004] The Pied Kingfisher Optimizer (PKO) is a new type of heuristic optimization algorithm, which is inspired by the unique hunting behavior and symbiotic relationship of the Pied Kingfisher in nature. The Pied Kingfisher is a small but agile bird that exhibits effective optimization strategies in its foraging process, such as food-finding skills, teamwork, and resource sharing. The Pied Kingfisher Optimizer is built around three different stages: perching and hovering, diving for prey, and cultivating symbiotic relationships. These behavioral aspects are transformed into mathematical models that can effectively solve various optimization challenges in various search spaces. The algorithm is compared with six well-known optimization techniques: Harris Hawk Optimizer (HHO), Whale Optimizer (WOA), Sin-Cosine Optimizer (SCA), Gray Wolf Optimizer (GWO), Gravitational Search Algorithm (GSA), and Moth Flame Optimizer (MFO). The overall results highlight the special ability of the Pied Kingfisher Optimizer to handle complex optimization problems. The Pied Kingfisher Optimizer shows superior exploration and development capabilities, but the algorithm is prone to lose the optimal solution during the exploration and development stages, thus falling into local optimality. Summary of the invention

[0005] In view of the shortcomings of the existing algorithms, the present invention improves the development and exploration stages of the Pied Kingfisher optimization algorithm, thereby solving the problems of localization of the search process of the Pied Kingfisher optimization algorithm, easy loss of the optimal solution, and falling into the local optimum, reducing the process delay and uncertainty of the system, and improving the system's robustness to external disturbances and the stability of the system.

[0006] The present invention adopts the following technical solutions: A parameter optimization method for an improved cascade PID controller, the specific steps are as follows.

[0007] Step 1: Design the system model of the improved cascade PID controller.

[0008] Step 2: Improve the optimization algorithm of the spotted kingfisher. The improved optimization algorithm of the spotted kingfisher includes: D1: Improve the hunting ability of the spotted kingfisher in the development stage ,D2. Use linear interpolation method to dynamically adjust the defeat factor BF. ,D3. Introduce adaptive t-distribution adjustment strategy in the population individual position update method in the exploration phase of the Pied Kingfisher optimization algorithm.

[0009] Step 3: Use the improved Kingfisher optimization algorithm to optimize the cascade PID controller parameter setting, and iterate to obtain the optimal PID controller parameter value.

[0010] Step 4: Use MATLAB to simulate the cascade PID control system.

[0011] Further, in the step 1, if Figure 2 As shown, the system model of the improved cascade PID controller includes a feedback module, an error calculation module, an external PID controller module, an internal PID controller module, an improved spotted kingfisher optimization algorithm module, and a controlled object module. The feedback module calculates the error between the expected target value and the actual output value, and is the input of the internal PID controller and the external PID controller. The error calculation module generates a control output based on the error signal, including three parts: proportional (P), integral (I), and differential (D). The external PID controller module is responsible for controlling the main process variables, achieving the final control target of the system, and indirectly controlling the intermediate process variables. The internal PID controller module is responsible for controlling the intermediate process variables, quickly responding to disturbances and changes in the system, and providing a stable environment for the external PID controller. The improved spotted kingfisher optimization algorithm module is an improved standard spotted kingfisher optimization algorithm. The optimal solution obtained after multiple iterations of the algorithm is used as the parameter of the PID controller. The controlled object module receives the control signal output by the internal PID controller and feeds back the parameters in the process accordingly to achieve the control target.

[0012] Furthermore, in step 1, the mathematical model of the improved cascade PID is: (1); (2); In formula (1), , , are the proportional, integral and differential coefficients of the external PID controller, is the error signal of the external process, is the expected target value of the external process, is the actual output value of the external process; (3); (4); In formula (3), , , are the proportional, integral and differential coefficients of the internal PID controller, is the error signal of the internal process, is the expected target value of the internal process, is the actual output value of the internal process.

[0013] Furthermore, the output of the external PID controller is the input of the internal PID controller, and the output of the internal PID controller It is the control input acting on the external process. This cascade structure allows the internal PID controller to adjust the output of the external PID controller to improve the performance of the system.

[0014] Furthermore, in step 2, the hunting ability of the Pied Kingfisher is improved during the development stage. , introducing disturbances and random changes, when the Pied Kingfisher preys on prey, the energy of the prey will gradually decrease during the escape process, and the prey escape energy dynamically selects development behavior or exploration behavior for hunting, which helps the algorithm jump out of the local optimum and continue to search for a better solution. The improved mathematical model formula is: (5); In formula (5), is the initial escape energy of the prey, which is a random number between (-1,1), t is the current iteration number, is the maximum number of iterations, when >=1, it enters the exploration phase. <1 enters the development phase.

[0015] Furthermore, in the step 2, the linear interpolation method is used to dynamically adjust the defeat factor BF. In the standard Pied Kingfisher optimization algorithm, BF is set to a fixed value of 8, which simplifies the parameter setting, lacks adaptability, cannot balance exploration and development, is difficult to deal with different types of problems, and has unstable performance. The improved Pied Kingfisher optimization algorithm uses a linear interpolation method to dynamically adjust BF, so that it can adapt to different needs during the entire optimization process, improve the overall performance of the algorithm, and then improve the flexibility of the algorithm. The improved defeat factor BF mathematical model formula is: (6); In formula (6), The minimum value of BF is 2. The maximum value of BF is 16, t is the current iteration number, is the maximum number of iterations.

[0016] Furthermore, in step 2, an adaptive t-distribution adjustment strategy is introduced in the exploration phase. The dynamic strategy value T in the individual position update of the standard kingfisher optimization algorithm in the exploration phase is too dependent on the angle. Selection will lead to unstable results, where the expression of T is shown in formula (7), the cosine function This will cause individual position updates to be biased in certain directions. If the selection of is unreasonable or the update method is too dependent on the cosine function, the search process will be localized and fall into the local optimal solution and cannot jump out. The formula on which the standard kingfisher optimization algorithm position update depends is shown in formula (8). After introducing the adaptive t distribution adjustment strategy, the scale parameter of the t distribution is adjusted according to the position change of the individual, so that when the fitness is low or the search space is relatively local, the amplitude of the disturbance is increased to jump out of the local optimal solution. When the fitness is high or the search space is relatively global, the amplitude of the disturbance is reduced to maintain the stability of the search. The formula is shown in formula (9): (7); (8); (9); In formula (7), is the maximum number of iterations, BF is the beat factor, t is the current number of iterations, for The random value of represents the solution for the next iteration, Indicates the current iteration position. for , T is the dynamic strategy value as shown in formula (7), in formula (9), is the position of the optimal solution in the jth dimension after the adaptive t distribution is adjusted, The optimal solution before the adaptive t distribution adjustment is the position of the j-th dimension, is an adaptive t-distribution adjustment function with the number of population iterations as a parameter.

[0017] Furthermore, in the step three, the improved kingfisher optimization algorithm is used to optimize the parameters of the cascade PID controller, and the parameters of the optimal cascade PID controller are iteratively optimized. The cascade PID controller simulator is combined with the improved kingfisher optimization algorithm, and the optimization algorithm is used to optimize the PID parameters. In each iteration, the position of the individual is updated according to the value of the objective function until the maximum number of iterations is reached. The specific steps are: S1. Initialize the population of spotted kingfishers, generate a random position for each individual, which is located within the boundary of the search space, set the population size N, the maximum number of iterations Max_iteration, the spatial dimension Dim, the search upper bound UP, the search lower bound LB, the optimal position fval and the optimal cost bestX of the global optimal solution, and the initial position of the spotted kingfisher is the initial solution of the PID controller parameters in the algorithm optimization process; S2. The purpose of PID parameter tuning is to select the parameter values ​​of the PID controller, and then judge whether the PID parameters are optimal through performance indicators. The Pied Kingfisher algorithm is very sensitive to time, while ITAE takes the time factor into consideration, and the system response speed and steady-state performance have good results. Therefore, the performance indicator evaluation formula ITAE is selected as the fitness function, and the formula is as follows: (10); In formula (10), is the difference between the expected target value and the actual output value of the controlled object at the iteration time t; S3, simulating the three stages of the pied kingfisher's perching and hovering, diving for prey, and cultivating symbiosis, updating the position of the individual pied kingfisher, and the position update of the pied kingfisher population is the parameter update of the PID controller; S4, start the iterative optimization process, execute Iterates, and in each cycle the current fitness value is compared with the historical optimal fitness value to determine whether to update the optimal fitness value. At the same time, the optimal solution of the group is updated according to the adaptive value of each individual. S5. Determine whether the number of iterations t has reached the maximum number of iterations If it is reached, stop outputting the optimal solution; if it is not reached, continue to execute steps S3 and S4; S6. Assign the optimal solution to the cascade internal PID controller , , and external PID controller , , Among the 6 parameters, the parameter optimization of the cascade PID controller is completed.

[0018] Furthermore, in S1, the initial population position of the Pied Kingfisher population is initialized randomly, and the mathematical model of the randomly initialized population position is: (11); In formula (11), is the initial position of the j-th dimension of the ith individual of the Pied Kingfisher algorithm, LB is the search lower bound of the Pied Kingfisher algorithm, UB is the search upper bound of the Pied Kingfisher algorithm, and rand is a random number between 0 and 1.

[0019] Furthermore, in S3, the simulated perching and hovering phase of the pied kingfisher is to simulate the pied kingfisher's alternating attacks between the perching position and the hovering position, the diving prey phase is to simulate the process of the pied kingfisher observing prey from the perching position to diving for hunting, and the cultivating symbiosis phase is to simulate the availability of prey, the hunting skills of the pied kingfisher and the factors that other predators affect the successful hunting of the pied kingfisher.

[0020] Furthermore, in the step four, MATLAB is used to simulate the cascade PID control system, and simulation is performed within the controlled object. The external PID controller receives the error between the target expected value and the actual output value, and the internal PID controller receives the error between the output of the external PID controller and the actual output of the controlled object. The performance of the optimized parameter combination is evaluated, and the optimal PID parameter combination is searched based on the situation of meeting the optimization goal, thereby completing the parameter optimization of the cascade PID controller.

[0021] Furthermore, the controlled object should have appropriate dynamic characteristics so that it can be effectively controlled by the PID controller. The selected object should have significant lag time, time constant and gain characteristics. The transfer function formula of the controlled object is selected as: (12); In formula (12), G(s) is the transfer function and s is the function variable.

[0022] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: Improved hunting ability of Pied Kingfisher during development phase The linear interpolation method is used to dynamically adjust the defeat factor BF and the adaptive t-distribution adjustment strategy is introduced into the population individual position update method in the exploration phase of the Pied Kingfisher optimization algorithm to solve the problems that the standard Pied Kingfisher algorithm cannot balance exploration and development, has unstable performance, relies on the cosine function, and has a localized search process and is trapped in the local optimal solution and cannot jump out. The parameters of the cascade PID controller are optimized by improving the Pied Kingfisher algorithm, and the interaction and mutual feedback between the two PID controllers of the traditional cascade PID controller cause oscillation, instability and delayed control response problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 Flowchart for optimizing cascade PID parameters to improve the optimization algorithm of Pied Kingfisher.

[0024] Figure 2 System model of cascade PID controller for improving the optimization algorithm of Pied Kingfisher.

[0025] Figure 3 This is a comparison curve of the effects of optimizing PID between the improved Pied Kingfisher optimization algorithm and the standard Pied Kingfisher optimization algorithm.

[0026] Figure 4 This is a comparison curve of the optimal fitness values ​​of the improved Pied Kingfisher optimization algorithm and the standard Pied Kingfisher optimization algorithm. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0028] The present invention provides a technical solution: a parameter optimization method for an improved cascade PID controller, the specific steps are as follows: Figure 1 shown.

[0029] Step 1: Design the system model of the improved cascade PID controller.

[0030] Further, in the step 1, if Figure 2As shown, the system model of the improved cascade PID controller includes a feedback module, an error calculation module, an external PID controller module, an internal PID controller module, an improved spotted kingfisher optimization algorithm module, and a controlled object module. The feedback module calculates the error between the expected target value and the actual output value, and is the input of the external PID controller. The error calculation module generates a control output based on the error signal, including three parts: proportional (P), integral (I), and differential (D). The external PID controller module is responsible for controlling the main process variables, achieving the final control goal of the system, and indirectly controlling the intermediate process variables. The internal PID controller module is responsible for controlling the intermediate process variables, quickly responding to disturbances and changes in the system, and providing a stable environment for the external PID controller. The improved spotted kingfisher optimization algorithm module is an improved standard spotted kingfisher optimization algorithm. The optimal solution obtained after multiple iterations of the algorithm is used as the parameter of the PID controller. The controlled object module receives the control signal output by the internal PID controller and feeds back the parameters in the process accordingly to achieve the control goal.

[0031] Furthermore, in step 1, the mathematical model of the improved cascade PID is: (1); (2); In formula (1), , , are the proportional, integral and differential coefficients of the external PID controller, is the error signal of the external process, is the expected target value of the external process, is the actual output value of the external process; (3); (4); In formula (3), , , are the proportional, integral and differential coefficients of the internal PID controller, is the error signal of the internal process, is the expected target value of the internal process, is the actual output value of the internal process.

[0032] Furthermore, the output of the external PID controller is the input of the internal PID controller, and the output of the internal PID controller It is the control input acting on the external process. This cascade structure allows the internal PID controller to adjust the output of the external PID controller to improve the performance of the system.

[0033] Step 2: Improve the optimization algorithm of the spotted kingfisher. The improved optimization algorithm of the spotted kingfisher includes: D1: Mainly improve the hunting ability of the spotted kingfisher in the development stage ,D2. Use linear interpolation method to dynamically adjust the defeat factor BF. ,D3. Introduce adaptive t-distribution adjustment strategy in the population individual position update method in the exploration phase of the Pied Kingfisher optimization algorithm.

[0034] Furthermore, in step 2, the hunting ability of the Pied Kingfisher is improved during the development stage. , introducing disturbances and random changes, when the Pied Kingfisher preys on prey, the energy of the prey will gradually decrease during the escape process, and the prey escape energy dynamically selects development behavior or exploration behavior for hunting, which helps the algorithm jump out of the local optimum and continue to search for a better solution. The improved mathematical model formula is: (5); In formula (5), is the initial escape energy of the prey, which is a random number between (-1,1), t is the current iteration number, is the maximum number of iterations, when >=1, it enters the exploration phase. <1 enters the development phase.

[0035] Furthermore, in the step 2, the linear interpolation method is used to dynamically adjust the defeat factor BF. In the standard Pied Kingfisher optimization algorithm, BF is set to a fixed value of 8, which simplifies the parameter setting, lacks adaptability, cannot balance exploration and development, is difficult to deal with different types of problems, and has unstable performance. The improved Pied Kingfisher optimization algorithm uses a linear interpolation method to dynamically adjust BF, so that it can adapt to different needs during the entire optimization process, improve the overall performance of the algorithm, and then improve the flexibility of the algorithm. The improved defeat factor BF mathematical model formula is: (6); In formula (6), The minimum value of BF is 2. is the maximum value of BF is 16, t is the current iteration number, is the maximum number of iterations.

[0036] Furthermore, in step 2, an adaptive t-distribution adjustment strategy is introduced in the exploration phase. The dynamic strategy value T in the individual position update of the standard kingfisher optimization algorithm in the exploration phase is too dependent on the angle. Selection will lead to unstable results, where the expression of T is shown in formula (7), the cosine function This will cause individual position updates to be biased in certain directions. If the selection of is unreasonable or the update method is too dependent on the cosine function, the search process will be localized and fall into the local optimal solution and cannot jump out. The formula on which the standard kingfisher optimization algorithm position update depends is shown in formula (8). After introducing the adaptive t distribution adjustment strategy, the scale parameter of the t distribution is adjusted according to the position change of the individual, so that when the fitness is low or the search space is relatively local, the amplitude of the disturbance is increased to jump out of the local optimal solution. When the fitness is high or the search space is relatively global, the amplitude of the disturbance is reduced to maintain the stability of the search. The formula is shown in formula (9): (7); (8); (9); In formula (7), is the maximum number of iterations, BF is the beat factor, t is the current number of iterations, for The random value of represents the solution for the next iteration, Indicates the current iteration position. for , T is the dynamic strategy value as shown in formula (7), in formula (9), is the position of the optimal solution in the jth dimension after the adaptive t distribution is adjusted, The optimal solution before the adaptive t distribution adjustment is the position of the j-th dimension, is an adaptive t-distribution adjustment function with the number of population iterations as a parameter.

[0037] Step 3: Use the improved Kingfisher optimization algorithm to optimize the cascade PID controller parameter setting, and iterate to obtain the optimal PID controller parameter value.

[0038] Furthermore, in the step three, the improved kingfisher optimization algorithm is used to optimize the parameters of the cascade PID controller, and the parameters of the optimal cascade PID controller are iteratively optimized. The cascade PID controller simulator is combined with the improved kingfisher optimization algorithm, and the optimization algorithm is used to optimize the PID parameters. In each iteration, the position of the individual is updated according to the value of the objective function until the maximum number of iterations is reached. The specific steps are: S1. Initialize the population of spotted kingfishers, generate a random position for each individual, which is located within the boundary of the search space, set the population size N, the maximum number of iterations Max_iteration, the spatial dimension Dim, the search upper bound UP, the search lower bound LB, the optimal position fval and the optimal cost bestX of the global optimal solution, and the initial position of the spotted kingfisher is the initial solution of the PID controller parameters in the algorithm optimization process; S2. The purpose of PID parameter tuning is to select the parameter values ​​of the PID controller, and then judge whether the PID parameters are optimal through performance indicators. The Pied Kingfisher algorithm is very sensitive to time, while ITAE takes the time factor into consideration, and the system response speed and steady-state performance have good results. Therefore, the performance indicator evaluation formula ITAE is selected as the fitness function, and the formula is as follows: (10); In formula (10), is the difference between the expected target value and the actual output value of the controlled object at the iteration time t; S3, simulating the three stages of the pied kingfisher's perching and hovering, diving for prey, and cultivating symbiosis, updating the position of the individual pied kingfisher, and the position update of the pied kingfisher population is the parameter update of the PID controller; S4, start the iterative optimization process, execute Iterates, and in each cycle the current fitness value is compared with the historical optimal fitness value to determine whether to update the optimal fitness value. At the same time, the optimal solution of the group is updated according to the adaptive value of each individual. S5. Determine whether the number of iterations t has reached the maximum number of iterations If it is reached, stop outputting the optimal solution; if it is not reached, continue to execute steps S3 and S4; S6. Assign the optimal solution to the cascade internal PID controller , , and external PID controller , , Among the 6 parameters, the parameter optimization of the cascade PID controller is completed.

[0039] Furthermore, in S1, the initial population position of the Pied Kingfisher population is initialized randomly, and the mathematical model of the randomly initialized population position is: (11); In formula (11), is the initial position of the j-th dimension of the ith individual of the Pied Kingfisher algorithm, LB is the search lower bound of the Pied Kingfisher algorithm, UB is the search upper bound of the Pied Kingfisher algorithm, and rand is a random number between 0 and 1.

[0040] Furthermore, in S3, the simulated perching and hovering phase of the pied kingfisher is to simulate the pied kingfisher's alternating attacks between the perching position and the hovering position, the diving prey phase is to simulate the process of the pied kingfisher observing prey from the perching position to diving for hunting, and the cultivating symbiosis phase is to simulate the availability of prey, the hunting skills of the pied kingfisher and the factors that other predators affect the successful hunting of the pied kingfisher.

[0041] Step 4: Use MATLAB to simulate the cascade PID control system.

[0042] Furthermore, in the step four, MATLAB is used to simulate the cascade PID control system, and simulation is performed within the controlled object. The external PID controller receives the error between the target expected value and the actual output value, and the internal PID controller receives the error between the output of the external PID controller and the actual output of the controlled object. The performance of the optimized parameter combination is evaluated, and the optimal PID parameter combination is searched based on the situation of meeting the optimization goal, thereby completing the parameter optimization of the cascade PID controller.

[0043] Furthermore, the controlled object should have appropriate dynamic characteristics so that it can be effectively controlled by the PID controller. The selected object should have significant lag time, time constant and gain characteristics. The transfer function formula of the selected controlled object is: (12); In formula (12), G(s) is the transfer function and s is the function variable.

[0044] Figure 3 The comparison curve of the effect of optimizing cascade PID by the improved piebald kingfisher optimization algorithm IPKO and the standard piebald kingfisher optimization algorithm PKO is shown. According to the set target value 1, it can be shown that under the condition of achieving the same target value 1, the improved piebald kingfisher optimization algorithm takes less time, has a smaller oscillation amplitude, and has a lower overshoot than the standard piebald kingfisher optimization algorithm. It can be shown that in a complex environment, the cascade PID controller system based on the improved piebald kingfisher optimization algorithm has a better parameter optimization effect than the cascade PID controller system based on the standard piebald kingfisher optimization algorithm.

[0045] Figure 4The comparison curve of the optimal fitness values ​​of the improved Pied Kingfisher Optimization Algorithm (IPKO) and the standard Pied Kingfisher Optimization Algorithm (PKO) shows that from the beginning to the end of the iteration, the fitness value obtained by the improved Pied Kingfisher Optimization Algorithm is continuously smaller than the fitness value obtained by the standard Pied Kingfisher Optimization Algorithm. According to the principle that the smaller the fitness value, the better the algorithm performance, and the closer to zero, the better the individual solution and the better the algorithm performance, the improved Pied Kingfisher Optimization Algorithm can obtain a better fitness value within the same number of iterations, that is, the improved Pied Kingfisher Optimization Algorithm has a better optimization effect than the standard Pied Kingfisher Optimization Algorithm.

Claims

1. A parameter optimization method for an improved cascade PID controller, characterized in that: The development and exploration phase of the Pied Kingfisher optimization algorithm was improved. The control parameters of the cascade PID controller were tuned and optimized using the improved Pied Kingfisher optimization algorithm. The specific steps are as follows: Step 1: Design a system model of an improved cascade PID controller; Step 2: Improve the optimization algorithm of the spotted kingfisher. The improved optimization algorithm of the spotted kingfisher includes: D1: Improve the hunting ability of the spotted kingfisher in the development stage ,D2, use the linear interpolation method to dynamically adjust the defeat factor BF, D3, introduce the adaptive t-distribution adjustment strategy in the population individual position update method in the exploration phase of the Pied Kingfisher optimization algorithm; Step 3: Optimize the parameters of the cascade PID controller by using the improved kingfisher optimization algorithm, and iterate to obtain the optimal parameter value of the PID controller after optimization; Step 4: Use MATLAB to simulate the cascade PID control system.

2. The parameter optimization method of an improved cascade PID controller according to claim 1, characterized in that: The step 1 designs a system model of an improved cascade PID controller, including a feedback module, an error calculation module, an external PID controller module, an internal PID controller module, an improved spotted kingfisher optimization algorithm module, and a controlled object module. The feedback module calculates the error between the expected target value and the actual output value, and is the input of the internal PID controller and the external PID controller. The error calculation module generates a control output according to the error signal, including three parts: proportional (P), integral (I), and differential (D). The external PID controller module is responsible for controlling the main process variables, achieving the final control target of the system, and indirectly controlling the intermediate process variables. The internal PID controller module is responsible for controlling the intermediate process variables, quickly responding to disturbances and changes of the system, and providing a stable environment for the external PID controller. The improved spotted kingfisher optimization algorithm module is an improved standard spotted kingfisher optimization algorithm. The optimal solution obtained after multiple iterations of the algorithm is used as the parameter of the PID controller. The controlled object module receives the control signal output by the internal PID controller and feeds back the parameters in the process accordingly to achieve the control target.

3. The parameter optimization method of an improved cascade PID controller according to claim 2 is characterized in that: The step 2 improves the optimization algorithm of the spotted kingfisher, which is divided into three parts of improvement: D1. Improve the hunting ability of Pied Kingfisher during the development stage , introducing disturbances and random changes, when the Pied Kingfisher preys on prey, the energy of the prey will gradually decrease during the escape process, and the prey escape energy dynamically selects development behavior or exploration behavior for hunting, which helps the algorithm jump out of the local optimum and continue to search for a better solution. The improved mathematical model formula is: (5); In formula (5), is the initial escape energy of the prey, which is a random number between (-1,1), t is the current iteration number, is the maximum number of iterations, when >=1, it enters the exploration phase. <1 enters the development stage; D2. Use linear interpolation method to dynamically adjust the defeat factor BF. In the standard Pied Kingfisher optimization algorithm, BF is set to a fixed value of 8, which simplifies the parameter setting, lacks adaptability, cannot balance exploration and development, is difficult to deal with different types of problems, and has unstable performance. The improved Pied Kingfisher optimization algorithm uses linear interpolation method to dynamically adjust BF, so that it can adapt to different needs in the entire optimization process, optimizes the adaptability and flexibility of the algorithm, and the improved defeat factor BF mathematical model formula is: (6); In formula (6), The minimum value of BF is 2. The maximum value of BF is 16, t is the current number of iterations, is the maximum number of iterations; D3. Further, in step 2, an adaptive t distribution adjustment strategy is introduced in the exploration phase. The dynamic strategy value T of the standard kingfisher optimization algorithm in the individual position update in the exploration phase is too dependent on the angle. Selection will lead to unstable results, where the expression of T is shown in formula (7), the cosine function This will cause individual position updates to be biased in certain directions. If the selection of is unreasonable or the update method is too dependent on the cosine function, the search process will be localized and fall into the local optimal solution and cannot jump out. The formula on which the standard kingfisher optimization algorithm position update depends is shown in formula (8). After introducing the adaptive t distribution adjustment strategy, the scale parameter of the t distribution is adjusted according to the position change of the individual, so that when the fitness is low or the search space is relatively local, the amplitude of the disturbance is increased to jump out of the local optimal solution. When the fitness is high or the search space is relatively global, the amplitude of the disturbance is reduced to maintain the stability of the search. The formula is shown in formula (9): (7); (8); (9); In formula (7), is the maximum number of iterations, BF is the beat factor, t is the current number of iterations, for The random value of represents the solution for the next iteration, Indicates the current iteration position. for , T is the dynamic strategy value as shown in formula (7), in formula (9), is the position of the optimal solution in the jth dimension after the adaptive t distribution is adjusted, The optimal solution before the adaptive t distribution adjustment is the position of the j-th dimension, is an adaptive t-distribution adjustment function with the number of population iterations as a parameter.

4. The parameter optimization method of an improved cascade PID controller according to claim 3 is characterized in that: The step 3 uses the improved Kingfisher optimization algorithm to optimize the parameters of the cascade PID controller, and iterates to obtain the parameters of the optimal cascade PID controller after optimization. The cascade PID controller simulator is combined with the improved Kingfisher optimization algorithm, and the optimization algorithm is used to optimize the PID parameters. In each iteration, the position of the individual is updated according to the value of the objective function until the maximum number of iterations is reached. The specific steps are: S1. Initialize the population of spotted kingfishers, generate a random position for each individual, which is located within the boundary of the search space, set the population size N, the maximum number of iterations Max_iteration, the spatial dimension Dim, the search upper bound UP, the search lower bound LB, the optimal position fval and the optimal cost bestX of the global optimal solution, and the initial position of the spotted kingfisher is the initial solution of the PID controller parameters in the algorithm optimization process; S2. PID parameter tuning. The parameter values ​​of the PID controller are selected through tuning, and then the performance indicators are used to determine whether the PID parameters are optimal. The Pied Kingfisher algorithm is very sensitive to time. The performance indicator evaluation formula ITAE is selected as the fitness function. The formula is as follows: (9); In formula (9), is the difference between the expected target value and the actual output value of the controlled object at the iteration time t; S3, simulating the three stages of the pied kingfisher's perching and hovering, diving for prey, and cultivating symbiosis, updating the position of the individual pied kingfisher, and the position update of the pied kingfisher population is the parameter update of the PID controller; S4, start the iterative optimization process, execute Iterates, and in each cycle the current fitness value is compared with the historical optimal fitness value to determine whether to update the optimal fitness value. At the same time, the optimal solution of the group is updated according to the adaptive value of each individual. S5. Determine whether the number of iterations t has reached the maximum number of iterations If it is reached, stop outputting the optimal solution; if it is not reached, continue to execute steps S3 and S4; S6. Assign the optimal solution to the cascade internal PID controller , , and external PID controller , , Among the 6 parameters, the parameter optimization of the cascade PID controller is completed.

5. The parameter optimization method of an improved cascade PID controller according to claim 4 is characterized in that: In S1, the initial population position of the Pied Kingfisher population is initialized randomly, and the mathematical model of the randomly initialized population position is: (10); In formula (10), is the initial position of the j-th dimension of the ith individual of the Pied Kingfisher algorithm, LB is the search lower bound of the Pied Kingfisher algorithm, UB is the search upper bound of the Pied Kingfisher algorithm, and rand is a random number between 0 and 1.

6. The parameter optimization method of an improved cascade PID controller according to claim 5, characterized in that: In the S3, the simulation of the perching and hovering phase of the pied kingfisher is to simulate the pied kingfisher's alternating attacks between the perching position and the hovering position, the diving prey phase is to simulate the process of the pied kingfisher observing prey from the perching position to diving for hunting, and the cultivation symbiosis phase is to simulate the availability of prey, the hunting skills of the pied kingfisher and the factors that other predators affect the successful hunting of the pied kingfisher.

Citation Information

Patent Citations

  • Quad-rotor unmanned aerial vehicle PID controller parameter optimization method

    CN112016162A

  • Parameter optimization method of adaptive PID (Proportion Integration Differentiation) controller

    CN117492359A

  • PID (Proportion Integration Differentiation) control method and system based on improved hunter and prey algorithm

    CN117539144A

  • Method for realizing engineering optimization based on green bird optimization algorithm

    CN118246330A

  • Dangerous chemical safety production risk prediction method

    CN118553340A

Cited By

  • Humidity control optimization method for dry-type ripening cabinet

    CN119310832A

  • Automatic bearing press-in force control method

    CN119717496A

  • Variable-pitch multi-rotor unmanned aerial vehicle and flight attitude control method thereof

    CN120255567A

  • Self-adaptive PID (proportion integration differentiation) control method of gas turbine for load shedding working condition

    CN120990753A

  • Surface acoustic wave duplexer design method and application system

    CN120995980A