Method and device for verifying optimization of attitude control parameters of a launch vehicle based on semi-physical simulation

CN122984338APending Publication Date: 2026-10-27BEIJING GALAXY POWER EQUIP TECH CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610709151.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-21
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

由于运载火箭的控制系统中可调整的姿态控制参数较多、约束条件多,设计过程较为繁琐,设计师需要长时间的反复调试设计才能获取符合系统裕度指标的设计结果

Benefits of technology

[0016]本申请提供的基于半实物仿真的运载火箭姿态控制参数优化验证方法和装置,建立包含刚体、晃动和弹性耦合特性的闭环控制系统模型,然后利用粒子群寻优算法自动搜索最优控制参数,并依次通过纯软件的数学仿真和引入真实硬件的半实物仿真进行逐级验证;实现了在运载火箭进行实际飞行前对其进行可靠和全面的地面验证;通过半实物仿真可以充分考核理论上最优的控制参数在面对真实硬件非线性、环境不确定性和模型误差时的有效性与鲁棒性,实现了智能地自动化地设计运载火箭的姿态控制参数,提高了运载火箭姿态控制系统设计的效率和性能,提高了运载火箭控制系统的稳定性和鲁棒性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122984338A_ABST
    Figure CN122984338A_ABST
Patent Text Reader

Abstract

The application provides a launch vehicle attitude control parameter optimization verification method and device based on semi-physical simulation, and relates to the technical field of launch vehicle control, and comprises the following steps: establishing a closed-loop attitude control system of a launch vehicle; performing particle swarm optimization on a control parameter to be optimized to determine an optimal control parameter; applying the optimal control parameter to a mathematical simulation test of an attitude controller in a loop to obtain a mathematical simulation verification result of the optimal control parameter; and applying the optimal control parameter to a semi-physical simulation test of key hardware in a loop of the launch vehicle to obtain a semi-physical simulation verification result of the optimal control parameter. The method and device provided by the application can fully evaluate the effectiveness and robustness of the theoretically optimal control parameter when facing real hardware nonlinearity, environmental uncertainty and model errors through semi-physical simulation, improve the efficiency and performance of the design of the launch vehicle attitude control system, and improve the stability and robustness of the launch vehicle control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of launch vehicle control technology, and in particular to a method and apparatus for optimizing and verifying launch vehicle attitude control parameters based on hardware-in-the-loop simulation. Background Technology

[0002] Reusable launch vehicles are a crucial means for humanity to achieve large-scale, low-cost space transportation systems, including round-trip flights between Earth and space. However, the design process for launch vehicle control systems is complex due to the numerous adjustable attitude control parameters and constraints. Designers require extensive and iterative adjustments to achieve designs that meet system margin requirements. This is especially true when redesigning rocket configurations or adding functionalities, requiring continuous adjustments to the attitude control parameters as the rocket's dynamics model changes. Designing high-dimensional control parameters not only consumes significant time and effort but also cannot fully guarantee the effectiveness of parameters designed based on experience, directly limiting the design efficiency of launch vehicle attitude control systems.

[0003] Related technologies use mathematical simulation to verify the effectiveness of attitude control parameters. However, pure mathematical simulation is based on ideal models and cannot fully reproduce the complex situations in the real world. The technical challenges include the non-ideal characteristics of hardware, the differences between the ground and the environment, and the limitations of the model.

[0004] Therefore, how to provide a reliable and comprehensive ground verification scheme before the launch vehicle is put into actual flight, so as to fully test the effectiveness and robustness of the theoretically optimal control parameters in the face of real hardware nonlinearity, environmental uncertainty and model error, has become a technical problem that the industry urgently needs to solve. Summary of the Invention

[0005] This application provides a method and apparatus for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation. It is used to solve the technical problem of how to fully evaluate the effectiveness and robustness of theoretically optimal control parameters in the face of real hardware nonlinearity, environmental uncertainty and model error before the launch vehicle is put into actual flight.

[0006] This application provides a method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation, including: A closed-loop attitude control system for a launch vehicle is established; the closed-loop attitude control system includes a coupled dynamic model based on rigid body dynamics equations, swaying dynamics equations and elastic dynamics equations, and an attitude controller with control parameters to be optimized. Particle swarm optimization is performed on the control parameters to be optimized to determine the optimal control parameters; The optimal control parameters are applied to the mathematical simulation experiment of the attitude controller in the loop to obtain the mathematical simulation verification results of the optimal control parameters; If the mathematical simulation verification results are satisfactory, the optimal control parameters are applied to the hardware-in-the-loop semi-physical simulation test of the launch vehicle to obtain the semi-physical simulation verification results of the optimal control parameters.

[0007] In some embodiments, applying the optimal control parameters to the hardware-in-the-loop semi-physical simulation test of the launch vehicle includes: A hardware-in-the-loop (HIL) semi-physical simulation system is constructed, comprising a flight controller, a servo mechanism, a three-axis flight simulation turntable, and a simulation computer. The servo mechanism drives the engine nozzle of the launch vehicle to oscillate. The three-axis flight simulation turntable simulates the flight attitude of the launch vehicle based on the output of the simulation computer. The optimal control parameters are loaded into the flight controller, and the coupled dynamics model is loaded into the simulation computer; In the hardware-in-the-loop simulation test, the flight controller generates control commands based on the optimal control parameters to drive the servo mechanism to move; the response of the servo mechanism to move is fed back to the coupled dynamics model of the simulation computer.

[0008] In some embodiments, the hardware-in-the-loop simulation system further includes a load simulator; the load simulator is used to apply an external load simulation signal to the servo mechanism.

[0009] In some embodiments, the flight controller is used to compare the theoretical flight attitude values ​​sent by the simulation computer with the simulated flight attitude values ​​sent by the three-axis flight simulation turntable.

[0010] In some embodiments, the method further includes: The coupled dynamics model is configured with parameter deviations to simulate the inconsistencies between the sky and the ground, and the hardware-in-the-loop simulation is run under the boundary conditions determined by the parameter deviations.

[0011] In some embodiments, the step of performing particle swarm optimization on the control parameters to be optimized to determine the optimal control parameters includes: A particle swarm is established based on the control parameters to be optimized, and the optimization is iteratively performed in the solution space of the control parameters to be optimized with the goal of minimizing the multi-objective optimization function. In each iteration, the inertia weight of each particle is dynamically adjusted based on the particle similarity between each particle and the current best particle, and the inertia weight is constrained based on the individual learning factor of each particle and the group learning factor of the particle swarm. The multi-objective optimization function is determined based on the stability margin of the closed-loop attitude control system. The optimal control parameters are determined based on the global optimal position after the iterative optimization is completed.

[0012] In some embodiments, the stability margin includes low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elastic margin; The multi-objective optimization function is determined based on the following steps: The current value of each stability margin is mapped to the corresponding reward value of each stability margin through a preset reward function; the preset reward function is used to determine the reward value corresponding to each stability margin based on the closeness between the current value of each stability margin and the target value of each stability margin; the reward value and the closeness are positively correlated. The reward values ​​corresponding to each stability margin are weighted and summed based on the calculation weights corresponding to each stability margin. The multi-objective optimization function is obtained by inverting the weighted summation result.

[0013] This application provides a device for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation, comprising: The system construction module is used to establish a closed-loop attitude control system for the launch vehicle; the closed-loop attitude control system includes a coupled dynamic model based on rigid body dynamics equations, swaying dynamics equations and elastic dynamics equations, and an attitude controller with control parameters to be optimized. The parameter optimization module is used to perform particle swarm optimization on the control parameters to be optimized, and determine the optimal control parameters. The mathematical simulation module is used to apply the optimal control parameters to the attitude controller in-loop mathematical simulation test to obtain the mathematical simulation verification results of the optimal control parameters; The hardware-in-the-loop simulation module is used to apply the optimal control parameters to the hardware-in-the-loop simulation test of the launch vehicle's key hardware, provided that the mathematical simulation verification results are satisfactory, and to obtain the hardware-in-the-loop verification results of the optimal control parameters.

[0014] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the aforementioned method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation.

[0015] This application provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the aforementioned method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation.

[0016] This application provides a method and apparatus for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation. It establishes a closed-loop control system model incorporating rigid body, sway, and elastic coupling characteristics. Then, it uses a particle swarm optimization algorithm to automatically search for the optimal control parameters, and verifies them step-by-step through pure software mathematical simulation and hardware-in-the-loop simulation incorporating real hardware. This enables reliable and comprehensive ground verification of the launch vehicle before its actual flight. Hardware-in-the-loop simulation can fully assess the effectiveness and robustness of theoretically optimal control parameters in the face of real hardware nonlinearity, environmental uncertainty, and model errors. It achieves intelligent and automated design of the launch vehicle's attitude control parameters, improving the efficiency and performance of the launch vehicle's attitude control system design, and enhancing the stability and robustness of the launch vehicle's control system. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is one of the flowcharts illustrating the method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation provided in this application.

[0020] Figure 2 This is a schematic diagram of the closed-loop attitude control system for the launch vehicle provided in this application.

[0021] Figure 3 This is a schematic diagram of the hardware-in-the-loop simulation system provided in this application.

[0022] Figure 4 This is a flowchart of the hardware-in-the-loop simulation test of the launch vehicle provided in this application.

[0023] Figure 5 This is the second flowchart of the method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation provided in this application.

[0024] Figure 6 This is a schematic diagram of the structure of the launch vehicle attitude control parameter optimization and verification device based on hardware-in-the-loop simulation provided in this application.

[0025] Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first," "second," etc., used in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps, units, or modules is not necessarily limited to those explicitly listed, but may include other steps, units, or modules not explicitly listed or inherent to such processes, methods, products, or devices.

[0028] When verifying the effectiveness of launch vehicle attitude control parameters, related technologies face the following challenges: (1) Pure mathematical simulation models are idealized. Real physical devices (such as servo mechanisms and actuators) have nonlinear characteristics (such as hysteresis, friction, and delay) and noise, which are difficult for mathematical models to describe completely accurately; (2) Ground testing environments cannot completely replicate the real flight environment of rockets in space (such as aerodynamic changes, temperature, and vibration). Therefore, the dynamic model parameters of rockets themselves have uncertainties; (3) The control system design must have strong robustness. Even if there is a certain deviation between the actual situation and the theoretical model, the control system must be able to ensure the stability of the rocket's attitude.

[0029] To solve the above problems, Figure 1 This is one of the flowcharts illustrating the method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation provided in this application. Figure 1As shown, the method includes steps 110, 120, 130 and 140, and is applicable to the attitude control parameter design and optimization scenarios of medium and large reusable liquid launch vehicles.

[0030] Step 110: Establish a closed-loop attitude control system for the launch vehicle; the closed-loop attitude control system includes a coupled dynamic model based on rigid body dynamics equations, swaying dynamics equations and elastic dynamics equations, as well as an attitude controller with control parameters to be optimized.

[0031] Specifically, the execution entity of the launch vehicle attitude control parameter optimization and verification method based on hardware-in-the-loop simulation provided in this application is a launch vehicle attitude control parameter optimization and verification device or system. This device can be implemented in software, such as a launch vehicle attitude control parameter optimization and verification program running in a computer system; or it can be implemented in hardware, such as a computer or server that executes the launch vehicle attitude control parameter optimization and verification method based on hardware-in-the-loop simulation.

[0032] Figure 2 This is a schematic diagram of the closed-loop attitude control system for the launch vehicle provided in this application, as shown below. Figure 2 As shown, the closed-loop attitude control system logically includes a coupled dynamics model as the controlled object and an attitude controller as the control core.

[0033] Coupled dynamics models are used to describe the attitude and motion behavior of launch vehicles during flight with high fidelity. Since medium and large liquid-fueled launch vehicles exhibit multiple characteristics during flight, including rigid body motion, liquid fuel sloshing, and elastic vibration of the rocket structure, and these characteristics are coupled and mutually influential, establishing an accurate coupled dynamics model is fundamental to parameter optimization design. The coupled dynamics model provided in this application includes rigid body dynamics equations, sloshing dynamics equations, and elastic dynamics equations.

[0034] Rigid body dynamics equations describe the six-degree-of-freedom motion (including attitude motion and center-of-mass motion) of a launch vehicle as a rigid body. These equations can be established based on the principles of variable mass dynamics. Sloshing dynamics equations describe the sloshing of the liquid propellant within the rocket body during flight due to factors such as changes in acceleration. These equations can be established using an equivalent simple pendulum model and a mass spring-damper model. Elastic dynamics equations describe the elastic deformation and vibration of the rocket body under the influence of aerodynamic forces and thrust.

[0035] By coupling the above three types of dynamic equations, a high-fidelity dynamic model is formed that can comprehensively reflect the "rigid-sway-elasticity" coupling characteristics of a rocket. Taking a certain type of launch vehicle as an example, considering rigid body, sway, elasticity, and their coupling and interference effects, the following equations can be obtained to describe the coupled dynamic model.

[0036] .

[0037] .

[0038] .

[0039] .

[0040] .

[0041] In the formula, For the angle of attack; The trajectory inclination angle; The pitch angle; For wind attack angle; , and All are coefficients of the elastic equation; and Indicates the order; Indicates the crosslinking coefficient of elastic swaying; Indicates generalized interference force; , and All are coefficients of the swaying equation; The center of mass of the arrow; The equivalent mass centroid of the sloshing liquid portion; These are the coefficients of the rigid body equation; These are, respectively, the aerodynamic damping coefficient, the aerodynamic torque coefficient, and the engine control torque coefficient; These are the force and moment coefficients in the elastic equation; These are the coefficients of the swaying equation; Equivalent disturbance force and torque; For the first Rank elastic generalized coordinates, For the first The frequency of the elastic center vibration, For the first First-order elastic damping ratio; For the first The sloshing displacement of the liquid in each tank The frequency of the shaking. The damping ratio is the sway resistance.

[0042] The attitude controller is the core decision-making component in a closed-loop control system. Its function is to calculate control commands (such as the deflection angle command of the engine nozzle) based on the deviation between the rocket's current attitude and the desired attitude, so as to drive the actuators (such as servo mechanisms) to adjust the direction of the rocket's thrust, thereby eliminating attitude deviation.

[0043] The parameters in the attitude controller can be used as parameters to be optimized. The values ​​of these parameters directly determine the performance of the control system. For example, the attitude controller can be a combination of a proportional-derivative (PD) controller and a correction network. The parameters to be optimized can be selected from the controller's gain coefficient, time constant, coefficients of integral and derivative terms, zero-pole parameters in the correction network, elements in the state feedback matrix, etc.

[0044] Step 120: Perform particle swarm optimization on the control parameters to be optimized to determine the optimal control parameters.

[0045] Specifically, the Particle Swarm Optimization (PSO) algorithm can be used for parameter optimization.

[0046] Each particle represents a specific numerical combination of a set of control parameters to be optimized. For example, if there are N parameters to be optimized, the position of each particle is an N-dimensional vector, and each component of the vector corresponds to a parameter value. The group of all particles is called the particle swarm. The possible range of values ​​for all control parameters to be optimized constitutes the search space of the algorithm, also known as the solution space.

[0047] Each particle has its own position and velocity. In each iteration, the particle updates its velocity and position based on its historical best position and the global best position of the entire particle swarm, thus searching the solution space. Particle swarm optimization (PSO) has advantages such as fast convergence, ease of implementation, and no need for gradient-based optimization, making it suitable for optimizing various complex objective functions.

[0048] The iterative optimization process continues until a preset termination condition is met, such as reaching the maximum number of iterations (which can be set according to actual conditions), or the fitness value of the global optimum has not significantly improved for several consecutive generations. After the iteration ends, the algorithm outputs the globally optimal position found during the entire search process.

[0049] The global optimal position itself is a vector, and the values ​​of its components constitute the optimal control parameters sought in this application. This set of parameters represents the solution that enables the multi-objective optimization function to reach its optimum (i.e., the best overall performance of various stability margin indices) under the constructed closed-loop attitude control system model.

[0050] Step 130: Apply the optimal control parameters to the mathematical simulation experiment of the attitude controller in the loop, and obtain the mathematical simulation verification results of the optimal control parameters.

[0051] Specifically, the optimal control parameters obtained through particle swarm optimization are theoretical solutions derived under an ideal mathematical model. To ensure that these parameters remain valid and reliable in the real physical world, their validity needs to be verified.

[0052] This application employs a combination of mathematical simulation experiments and hardware-in-the-loop simulation experiments to verify the effectiveness of the optimal control parameters.

[0053] Ground simulation testing is the primary means of designing and analyzing rocket attitude stabilization control systems, and is a necessary method for preliminary and comprehensive evaluation of the rationality of attitude stabilization control schemes and their control parameter designs before flight testing. The ground simulation tests in this application embodiment are divided into two parts: mathematical simulation tests and hardware-in-the-loop (HIL) simulation tests.

[0054] In the mathematical simulation test section, after automatically obtaining a set of optimal control parameters using the particle swarm optimization algorithm, a stability margin analysis of the rocket attitude control system is first performed based on these optimal control parameters. After meeting the engineering requirements, a controller-in-the-loop (CIL) mathematical simulation test is then conducted. The CIL mathematical simulation test refers to a simulation test that fully includes the coupled dynamics model (the controlled object) and the attitude controller (with configured optimal control parameters). In this simulation test, the simulation program is run to comprehensively obtain the rocket's flight motion state in the time domain to evaluate the flight test results and obtain mathematical simulation verification results. If the mathematical simulation verification results are satisfactory, a hardware-in-the-loop (HIL) simulation test is then conducted to further verify the effectiveness of the parameters.

[0055] Step 140: If the mathematical simulation verification results are satisfactory, apply the optimal control parameters to the hardware-in-the-loop semi-physical simulation test of the launch vehicle's key hardware to obtain the semi-physical simulation verification results of the optimal control parameters.

[0056] Specifically, the hardware-in-the-loop (HIL) simulation of a launch vehicle involves replacing some software models of the closed-loop attitude control system with real physical hardware, thus creating a hardware-in-the-loop simulation. Key hardware refers to components with complex nonlinear and time-delay characteristics that are difficult to model accurately, such as the servo mechanism driving the engine nozzle deflection and the engine nozzle itself. By deploying the optimal control parameters in the HIL simulation environment, the performance of these parameters in the face of the non-ideal characteristics of real hardware can be assessed, thereby providing a more comprehensive evaluation of their effectiveness and robustness.

[0057] Only when the optimal control parameters exhibit satisfactory performance in both mathematical simulation and hardware-in-the-loop simulation experiments are they finally confirmed as effective control parameters. If the verification fails, the weights or constraints in the multi-objective optimization function can be readjusted, or the optimization can be performed again, forming an iterative optimization closed-loop process.

[0058] The hardware-in-the-loop simulation-based method for optimizing and verifying launch vehicle attitude control parameters provided in this application establishes a closed-loop control system model that includes rigid body, sway, and elastic coupling characteristics. Then, a particle swarm optimization algorithm is used to automatically search for the optimal control parameters, which are then verified step-by-step through pure software mathematical simulation and hardware-in-the-loop simulation incorporating real hardware. This enables reliable and comprehensive ground verification of the launch vehicle before its actual flight. Hardware-in-the-loop simulation can fully assess the effectiveness and robustness of theoretically optimal control parameters in the face of real hardware nonlinearity, environmental uncertainty, and model errors. This achieves intelligent and automated design of launch vehicle attitude control parameters, improving the efficiency and performance of launch vehicle attitude control system design, and enhancing the stability and robustness of the launch vehicle control system.

[0059] It should be noted that each implementation method of this application can be freely combined, rearranged, or executed individually, and does not need to rely on or depend on a fixed execution order.

[0060] In some embodiments, applying optimal control parameters to hardware-in-the-loop semi-physical simulation tests of key launch vehicle hardware includes: Construct a hardware-in-the-loop (HIL) semi-physical simulation system; the key hardware includes a flight controller, servo mechanism, three-axis flight simulation turntable, and simulation computer; the servo mechanism is used to drive the engine nozzle of the launch vehicle to swing; the three-axis flight simulation turntable simulates the flight attitude of the launch vehicle based on the output of the simulation computer. The optimal control parameters are loaded into the flight controller, and the coupled dynamics model is loaded into the simulation computer. In the hardware-in-the-loop simulation test, the flight controller generates control commands based on the optimal control parameters to drive the servo mechanism to move; the response of the servo mechanism is fed back to the coupled dynamics model of the simulation computer.

[0061] Specifically, Figure 3 This is a schematic diagram of the hardware-in-the-loop simulation system provided in this application, as shown below. Figure 3 As shown, the hardware-in-the-loop simulation system 300 includes a flight controller 310, a servo mechanism 320, a three-axis flight simulation turntable 330, and a simulation computer 340.

[0062] The flight controller is a physical hardware device with attitude control algorithms programmed into it. In hardware-in-the-loop simulations, it receives attitude information from the simulation environment and calculates control commands based on the built-in control parameters.

[0063] The servo mechanism is the attitude control actuator of a launch vehicle. It typically includes physical hardware such as a servo controller and actuators. Its function is to receive control commands from the flight controller and drive the launch vehicle's engine nozzle to swing at a corresponding angle, thereby generating control torque to change the rocket's attitude. The servo mechanism is one of the main sources of nonlinearity and time delay in the system; therefore, it is crucial to introduce it as real hardware into the simulation loop.

[0064] A three-axis flight simulation turntable is used to physically reproduce the attitude motion of a launch vehicle. It is typically equipped with real sensors (such as inertial measurement units, i.e., inertial navigation systems) that provide attitude feedback to the flight controller. Based on the rocket's flight attitude calculated in real time by the simulation computer, it drives its platform to rotate accordingly, so that the sensors mounted on it can experience angular motion consistent with that in actual flight.

[0065] The simulation computer is a high-performance computer responsible for running a high-precision coupled dynamics model of the launch vehicle in real time. It receives motion response signals from the real servo mechanisms and uses these as inputs to calculate the rocket's flight attitude in the next simulation step, then sends the calculation results to a three-axis flight simulation turntable.

[0066] The optimal control parameters obtained through the particle swarm optimization algorithm are deployed into the memory of the actual flight controller hardware through compilation and download. Simultaneously, the coupled dynamics model program, which describes the rocket's "rigid-sway-launch" coupling characteristics, is loaded into the simulation computer.

[0067] In a specific embodiment, the steps of the hardware-in-the-loop simulation experiment are as follows: (1) The flight controller obtains the current flight attitude simulation value from the sensor installed on the three-axis flight simulation turntable.

[0068] (2) The flight controller compares the attitude simulation value with the internal preset program command angle to obtain the attitude deviation.

[0069] (3) The flight controller calculates the attitude deviation based on the internally loaded optimal control parameters and generates control commands for the servo mechanism (e.g., the target swing angle command of the engine nozzle).

[0070] (4) After receiving the control command, the actual servo mechanism starts to move and drives the engine nozzle to swing.

[0071] (5) The actual response of the servo mechanism (e.g., the actual swing angle of the engine nozzle measured by the sensor) is collected and fed back to the simulation computer in real time.

[0072] (6) The coupled dynamic model in the simulation computer takes the response of the servo mechanism with the non-ideal characteristics of real hardware as the mechanical input, performs dynamic calculation, and obtains the theoretical value of the flight attitude of the launch vehicle at the next moment.

[0073] (7) The simulation computer sends the newly calculated theoretical values ​​of the flight attitude to the three-axis flight simulation turntable, driving it to rotate to the new attitude.

[0074] (8) The rotation of the turntable causes the sensors mounted on it to output new attitude measurement values ​​to the flight controller, thus forming a complete real-time closed loop.

[0075] This closed-loop process will continue until the preset simulation task is completed. By recording and analyzing the response data of the flight controller, servo mechanism, and the entire system during the experiment, the hardware-in-the-loop simulation verification results of the optimal control parameters can be obtained.

[0076] The hardware-in-the-loop simulation-based method for optimizing and verifying the attitude control parameters of a launch vehicle provided in this application replaces the attitude controller and actuator models in pure software simulation with real flight controller and servo mechanism hardware, and conducts testing in a closed loop containing the physical motion of real sensors. This method can effectively assess the performance and stability of the optimal control parameters when faced with the inherent complex nonlinear characteristics of real hardware, such as time delay, dead zone, saturation, and hysteresis, thereby greatly improving the confidence of the verification results, bridging the gap between pure mathematical simulation and the real physical world, and providing a key guarantee for ensuring the reliability of the control system in actual flight.

[0077] In some embodiments, the hardware-in-the-loop simulation system further includes a load simulator; the load simulator is used to apply external load simulation signals to the servo mechanism.

[0078] Specifically, a load simulator is a specialized device used to simulate the external torques acting on the engine nozzle of a launch vehicle during actual flight. During rocket flight, the oscillation of the engine nozzle does not occur in a resistance-free vacuum; it is subjected to various complex external load torques, including aerodynamic torque, inertial torque, and connection torque.

[0079] These external load torques directly affect the dynamic response characteristics of the servo mechanism and are an indispensable part of servo mechanism performance evaluation. If the servo mechanism operates under no-load or constant load during ground testing, the test results will not accurately reflect its performance in flight.

[0080] This application embodiment introduces a load simulator. The load simulator is used to apply simulated external load signals to the servo mechanism. The load simulator is physically connected to the output end of the servo mechanism (i.e., the engine nozzle or its equivalent) through mechanical or hydraulic means, and applies a dynamically changing real physical torque to the servo mechanism according to real-time instructions from the simulation computer. The torque and direction of the applied torque are consistent with the simulated external load torque.

[0081] In one specific embodiment, the workload simulator works as follows: (1) The simulation computer calculates the theoretical value of the external load torque that the engine nozzle should be subjected to in real time based on the current simulated flight state in its internal coupled dynamics model or dedicated load model.

[0082] (2) The simulation computer sends the theoretical value of the load torque as an instruction to the controller of the load simulator through the communication interface.

[0083] (3) The load simulator applies the corresponding physical torque precisely to the output shaft of the servo mechanism according to the received instructions.

[0084] In this way, the working state of the servo mechanism in the hardware-in-the-loop simulation test is highly consistent with its stress state in actual flight.

[0085] Figure 4 This is a flowchart of the hardware-in-the-loop simulation test of the launch vehicle provided in this application, such as... Figure 4 As shown, a hardware-in-the-loop simulation system for a certain type of launch vehicle includes a servo mechanism, engine nozzle, load simulator, flight controller, simulation computer, and a three-axis flight simulation turntable (inertial navigation system turntable). The flight controller loads optimal control parameters to generate control commands (engine yaw commands), which are then executed by the servo mechanism. The servo mechanism drives the actual engine nozzle to yaw. The load simulator applies a physical torque to the output shaft of the servo mechanism. The actual response of the servo mechanism's actions is collected and fed back to the simulation computer in real time. The coupled dynamics model in the simulation computer uses the servo mechanism's response as mechanical input to perform dynamic calculations, obtaining the theoretical flight attitude value of the launch vehicle at the next moment. The simulation computer sends the newly calculated theoretical flight attitude value to the three-axis flight simulation turntable, driving it to rotate to the new attitude. The rotation of the three-axis flight simulation turntable causes the sensors mounted on it to output new attitude measurements to the flight controller.

[0086] The hardware-in-the-loop simulation-based method for optimizing and verifying the attitude control parameters of a launch vehicle provided in this application adds a load simulator to the hardware-in-the-loop simulation system, ensuring that the servo mechanism operates under a dynamically changing real load environment. This allows for a more comprehensive and accurate exposure and evaluation of the adaptability and robustness of the optimal control parameters in the face of the dynamic load characteristics of the actuator. As a result, the hardware-in-the-loop simulation verification results are closer to the actual flight conditions, significantly enhancing the effectiveness and reliability of the entire optimization and verification method.

[0087] In some embodiments, the flight controller is used to compare the theoretical flight attitude values ​​sent by the simulation computer with the simulated flight attitude values ​​sent by the three-axis flight simulation turntable.

[0088] Specifically, the flight controller can be configured to simultaneously receive and process two data signals regarding flight attitude: (1) One path is the theoretical flight attitude value sent by the simulation computer. This theoretical value is the actual attitude of the launch vehicle calculated by the coupled dynamics model inside the simulation computer under ideal conditions, without any sensor errors. This data is usually sent directly to the flight controller via the digital communication bus.

[0089] (2) The other path is the flight attitude simulation value sent by the three-axis flight simulation turntable. The attitude information is measured and output by the real attitude sensor (such as the inertial measurement unit) installed on the three-axis flight simulation turntable when the turntable moves. This information is the attitude value after being affected by the measurement error, noise, dynamic response delay and other factors of the real sensor itself.

[0090] The flight controller compares these two attitude signals. This comparison can be performed in real time within the flight controller, or the two data streams can be recorded simultaneously and analyzed offline after the test. The comparison can achieve one or more of the following objectives: (1) Evaluation of sensor performance: The theoretical value of flight attitude can be regarded as the real value, while the simulated value of flight attitude is the sensor's measurement value. The difference between the two intuitively reflects the measurement error and noise level of the real sensor under dynamic conditions.

[0091] (2) Evaluating turntable performance: The motion of a three-axis flight simulation turntable itself also has tracking errors. By comparison, the tracking accuracy of the turntable to the simulated computer commands can be indirectly evaluated.

[0092] (3) Diagnosing the source of the fault: When an abnormality occurs in the semi-physical simulation test, by analyzing the difference between the two signals, technicians can quickly locate whether the problem lies in the simulation model, the sensor, the turntable, or the control algorithm itself.

[0093] The hardware-in-the-loop simulation-based method for optimizing and verifying the attitude control parameters of a launch vehicle provided in this application allows technicians to clearly quantify and separate the errors introduced by various hardware components (especially sensors and turntables) in the system, thereby gaining a deeper understanding of the bottlenecks in system performance.

[0094] In some embodiments, the method further includes: The coupled dynamics model is configured with parameter deviations to simulate the inconsistencies between the sky and the ground, and a hardware-in-the-loop simulation is run under the boundary conditions determined by the parameter deviations.

[0095] Specifically, the inconsistency between ground and air refers to the unavoidable differences between the mathematical model established on the ground and the actual physical characteristics of the launch vehicle in the real flight environment. For example, there are differences between environmental parameters such as atmospheric density and wind field in real flight and standard atmospheric models.

[0096] To cover these uncertainties as much as possible during ground testing, this application does not always use the nominal coupled dynamics model when running hardware-in-the-loop simulation experiments. Instead, it sets parameter deviations for the model. Specifically, one or more key parameters of the coupled dynamics model running in the simulation computer can be superimposed with a positive or negative deviation based on their nominal values. The range of these parameter deviations is not arbitrarily set, but can be scientifically determined based on historical flight data, ground test results, simulation analysis reports, or engineering experience to form a deviation envelope.

[0097] More complex boundary conditions can be constructed by combining deviations of multiple parameters. After setting these boundary conditions, a hardware-in-the-loop simulation is run. This means that multiple trials are required, with each trial loading a different set of model parameters under the boundary conditions into the simulation computer. The optimal control parameters deployed in the flight controller remain constant throughout this process. The robustness of these optimal control parameters is ultimately evaluated by observing whether the control system remains stable and meets performance requirements under all these stringent boundary conditions.

[0098] The hardware-in-the-loop simulation-based method for optimizing and verifying the attitude control parameters of a launch vehicle provided in this application ensures that the designed control system not only performs well under ideal conditions, but also works reliably in real flight environments full of uncertainties, thereby greatly improving the success rate of missions and the overall reliability of the rocket.

[0099] In some embodiments, the attitude controller includes a proportional controller, a differential controller, and a higher-order correction network; the higher-order correction network is a higher-order filter composed of multiple second-order notch filters connected in series; the control parameters to be optimized include the proportional gain coefficient, the differential gain coefficient, and the parameters of each second-order notch filter in the higher-order correction network. The method also includes: Based on the importance of each parameter to the system performance, a preset number of parameters are selected as control parameters to be optimized from the parameters of each second-order notch filter in the high-order correction network.

[0100] Specifically, the attitude controller can adopt a structure based on proportional-derivative (PD) control combined with a frequency correction network. This structure can provide the system with the necessary attitude stiffness (provided by the proportional element) and damping (provided by the derivative element), while flexibly adjusting the system's response characteristics in different frequency bands through the correction network to adapt to the complex "stiff-sway-bounce" coupled dynamic characteristics of the launch vehicle.

[0101] Structurally, an attitude controller can include a proportional controller, a derivative controller, and a higher-order correction network.

[0102] The proportional controller responds to the attitude error itself, while the derivative controller responds to the rate of change of the attitude error (i.e., the attitude angular velocity error). Together, they achieve rapid and stable tracking of the rocket's attitude.

[0103] Proportional (PP) and derivative (D) controllers can be collectively referred to as PD controllers. PD controllers provide fundamental stability and rapid response. Proportional (P) control determines the speed of response to deviations, while derivative (D) control anticipates trends, increases damping, and reduces overshoot and oscillations. It is responsible for stabilizing the overall system and making rapid responses. The control input generated by the PD controller, as the network input of a higher-order correction network, contains elastic vibrations and fluid sloshing signals that are detrimental to the stability of the rocket body. These signals need to be filtered and corrected at several specific modal frequencies using a higher-order correction network.

[0104] The specific form of a higher-order compensation network can be any linear network used by those skilled in the art to adjust the open-loop frequency characteristics of a system. For example, a higher-order compensation network can be a complex network composed of multiple basic compensation units (such as lead, lag, and notch filters) connected in series. In a specific embodiment, the higher-order compensation network is a higher-order filter composed of multiple second-order notch filters connected in series. A second-order notch filter is a special type of band-stop filter with an extremely narrow stopband, which can accurately filter out or significantly attenuate a specific, persistent interference frequency. When the system has multiple specific, harmful mechanical resonant frequencies, each second-order notch filter is precisely tuned to one of the interference frequencies. Connecting them in series constitutes a higher-order compensation network that can simultaneously and accurately suppress elastic vibrations and fluid sloshing at specific frequencies without affecting the normal control performance of the system at other frequencies.

[0105] Accordingly, the control parameters to be optimized may include the proportional gain coefficient, the differential gain coefficient, and the parameters of each second-order notch filter in the higher-order correction network. The parameters of the second-order notch filter may include the notch frequency (defining the center frequency point at which the filter needs to be strongly attenuated), the quality factor (determining the width of the notch bandwidth, i.e., frequency selectivity), and the notch depth (representing the degree of signal attenuation at the notch frequency), etc.

[0106] In the aforementioned embodiments, the attitude controller structure employs a combination of a PD controller and a high-order correction network. The inputs are attitude angle deviation and angular rate. The attitude angle is measured by the inertial navigation system (INS), and the difference between the attitude angle and the programmed command angle yields the attitude angle deviation. The angular rate is obtained by measuring the rate gyroscope. The attitude angle deviation and angular rate are multiplied by the static gain (proportional gain) and dynamic gain (differential gain), respectively, and then passed through the high-order correction network. The sum of these components forms the sway angle command, which controls the servo mechanism's movement, thereby controlling the engine nozzle's oscillation and the launch vehicle's flight. The static gain, dynamic gain, and parameters in the high-order correction network within the rocket control loop constitute the adjustable attitude control parameters. In liquid-fueled launch vehicles, there are typically dozens of high-order correction parameters. Stability design involves designing appropriate dynamic and static gains and correction parameters to ensure system stability and meet the stability margin requirements of the rocket's closed-loop control system. During rocket flight, the static gain, dynamic gain, and correction parameters in the control loop may change due to aerodynamic and thermal environmental factors, rocket body structural vibration, sudden changes in engine thrust, etc. Therefore, the robustness of the optimized control parameters is reflected in the fact that the control system can better tolerate these external disturbances, enabling the rocket to better resist various extreme external effects.

[0107] The control parameters to be optimized include proportional gain, differential gain, and all parameters in the high-order calibration network. When the calibration network structure is complex, the number of parameters can be very large, for example, reaching dozens. This leads to a sharp increase in the dimensionality of the entire control parameter to be optimized. In a high-dimensional search space, the search efficiency of intelligent optimization algorithms such as particle swarm optimization will decrease significantly, making them more prone to getting trapped in local optima, and convergence to the global optimum requires enormous computational resources and time.

[0108] In high-order calibration networks, not all parameters have an equally important impact on system performance. Some parameters may only have a slight effect on certain minor performance indicators, while others may play a decisive role in the system's critical stability margins (such as sloshing margin and elasticity margin). The importance of each parameter's impact on system performance can be determined based on engineering experience, prior knowledge, or parameter sensitivity analysis results. The mesh parameters can then be ranked according to importance, and a predetermined number of parameters with higher importance can be selected as the control parameters to be optimized. The predetermined number can be flexibly set according to computational resources, optimization time requirements, and optimization accuracy requirements. For example, in a complex calibration network with 20 parameters, analysis may reveal that only 8 parameters truly have a significant impact on the critical margins. In this case, the predetermined number can be set to 8, thereby reducing the optimization dimension from 20 to 8 dimensions.

[0109] The hardware-in-the-loop simulation-based method for optimizing and verifying launch vehicle attitude control parameters provided in this application uses the proportional gain coefficient, differential gain coefficient, and parameters in the high-order correction network as all control parameters to be optimized. This allows the optimization method to not only ensure the stability of rigid body modes but also to selectively reduce the gain or compensate the phase for specific swaying and elastic modes. This solves the "rigid-swaying-elastic" coupling problem at a deeper level, resulting in a more robust attitude control system with better overall performance. It effectively identifies key parameters that play a decisive role in system performance, thereby significantly reducing the dimensionality of the parameter space to be optimized. This greatly improves the convergence speed and success rate of the subsequent particle swarm optimization algorithm, saving valuable computational resources and design time.

[0110] In some embodiments, particle swarm optimization is performed on the control parameters to be optimized to determine the optimal control parameters, including: A particle swarm is established based on the control parameters to be optimized. The goal is to minimize the multi-objective optimization function. Iterative optimization is performed in the solution space of the control parameters to be optimized. In each iteration, the inertia weight of each particle is dynamically adjusted based on the particle similarity between each particle and the current best particle. The inertia weight is constrained based on the individual learning factor of each particle and the group learning factor of the particle swarm. The multi-objective optimization function is determined based on the stability margin of the closed-loop attitude control system. The optimal control parameters are determined based on the global optimal position after the iterative optimization is completed.

[0111] Specifically, stability margin is a key frequency domain indicator in control theory used to measure the robustness of a system's stability. It represents how much variation in system parameters is allowed to occur while maintaining a stable state. Compared to focusing solely on time-domain responses (such as overshoot and settling time), evaluation methods based on frequency-domain stability margin can more profoundly reflect the system's ability to suppress model uncertainties and external disturbances, making it particularly suitable for launch vehicles with complex "rigid-sway-bounce" coupling characteristics. Multiple, even potentially conflicting, stability margin indicators can be integrated into a single evaluation value, thereby obtaining a multi-objective optimization function.

[0112] In particle swarm optimization (PSO) algorithms, the inertia weight controls the degree to which the speed of the previous iteration affects the current speed, directly impacting the algorithm's search capability. A larger inertia weight is beneficial for global search, while a smaller inertia weight is beneficial for fine-grained local search. In this embodiment, the inertia weight can be dynamically adjusted by calculating particle similarity. Particle similarity can be defined as the proximity between the current position of a particle (i.e., the parameter solution it represents) and the global optimal position of the entire particle swarm. This proximity can be measured in various ways, for example, as a function of the Euclidean distance between two parameter solution vectors in the solution space.

[0113] The specific mechanism for determining inertia weights based on particle similarity can be as follows: When a particle has a high similarity to the particle at the current optimal position (i.e., its position is very close to the global optimal position), it indicates that the particle may already be in a relatively good region. In this case, its inertia weight should be dynamically reduced to slow down its velocity change, thereby enabling a more refined local search within the promising region. Conversely, when a particle has a low similarity to the particle at the current optimal position (i.e., its position is far from the global optimal position), it indicates that the particle may be trapped in a local optimum or in a poor region. In this case, its inertia weight should be dynamically increased to enable it to jump out of the current region at a higher speed and conduct a wider global exploration to find a better solution. Through this dynamic adjustment strategy, the algorithm can maintain a strong global exploration capability in the early stages of optimization, quickly locating promising regions, while performing efficient local fine-grained searches in the later stages of optimization. This improves the convergence speed and optimization accuracy of the algorithm in high-dimensional parameter spaces, effectively avoiding the problem of classical particle swarm optimization algorithms easily getting trapped in local optima.

[0114] Furthermore, embodiments of this application also constrain the inertia weight based on the individual learning factors of each particle and the swarm learning factor of the particle group. The individual learning factor and the swarm learning factor are acceleration constants that control the movement of particles toward their individual optimal positions and the global optimal positions, respectively. By imposing constraints related to these two learning factors on the inertia weight, such as requiring the inertia weight to be greater than a certain threshold related to the learning factors, the convergence of the algorithm can be theoretically better guaranteed, and particle divergence can be avoided during the search process.

[0115] In some embodiments, the inertia weight of each particle is dynamically adjusted based on the particle similarity between each particle and the current best particle, including: Based on the particle similarity between each particle and the current best particle, a similarity influence factor is determined; the similarity influence factor and the inertia weight are inversely correlated. The iteration process influence factor is determined based on the ratio of the current iteration number to the maximum iteration number; the iteration process influence factor is inversely correlated with the inertia weight. The inertia weights of each particle are dynamically adjusted based on the similarity influence factor and the iteration process influence factor.

[0116] Specifically, unlike solid-propellant launch vehicles, liquid-propellant launch vehicle dynamic models are more complex, highlighting the inefficiency of related technologies. There is an urgent need for an intelligent and automated method that can effectively optimize design control parameters in high-dimensional, multi-constraint optimization problems to improve the stability and design efficiency of launch vehicle control systems.

[0117] Particle swarm optimization (PSO) is a swarm intelligence optimization algorithm that obtains optimal parameters by simulating the behavior of groups such as flocks of birds or schools of fish. In optimizing rocket attitude control system parameters, PSO can be used to automatically tune multidimensional parameters in the controller.

[0118] A particle swarm optimization algorithm can be established based on the control parameters to be optimized. The particle swarm optimization algorithm randomly distributes a group of particles in the solution space, where each particle represents a potential solution in the solution space of the control parameters to be optimized. Then, through continuous iteration, the particles update their positions and velocities based on their own historical best solutions and the best solutions in the swarm, and finally find the global optimum, which is the optimal control parameters.

[0119] The formulas for iteratively updating particle velocity and position are as follows: .

[0120] In the formula, and They represent the first time. The th iteration Individual particles Velocity and position in 3D space; , For the first Individual learning factor and group learning factor in each iteration; Inertial weight; and A random number between 0 and 1; For the first The th iteration The historical optimal solution of each particle; For the first The optimal solution in the population during the next iteration.

[0121] The fitness of each particle is calculated, and the control parameters are updated based on the ensemble historical best and the individual historical best, until the convergence condition is met or the maximum number of iterations is reached.

[0122] Because the randomness inherent in the particle swarm optimization algorithm and the initial parameters may lead to some uncertainty in the optimal solution, this application improves the particle swarm optimization algorithm in related technologies by comprehensively considering inertia weights and learning factors to improve its convergence speed and solution accuracy, thereby enhancing the optimization efficiency of the algorithm. In global search, particles need larger inertia weights, while in local search, smaller weights are required. However, fixed weight values ​​cannot effectively balance the contradictions between global and local searches, nor can they enable particles to converge quickly. Classical particle swarm optimization algorithms can solve basic parameter optimization problems, but they suffer from slow convergence speeds, susceptibility to local optima, and the curse of dimensionality when optimizing high-dimensional parameters. Since rocket control systems typically have many parameters to optimize, it is necessary to specifically improve the classical particle swarm optimization algorithm to enhance its applicability in optimizing multi-dimensional parameters of liquid launch vehicle controllers and its global search capability for control parameters.

[0123] Particle velocity updates are highly dependent on inertia weights. During the iteration process, there may be a true global optimum near the current optimal particle. In order to make the velocities of particles close to the current optimal particle smaller, their inertia weights should also be smaller. Therefore, particle similarity can be introduced to design the inertia weight of each particle. Based on the similarity distribution in the particle swarm, the global / local search strategy can be dynamically adjusted.

[0124] The formula for calculating particle similarity is as follows: .

[0125] In the formula: For particles and Particle similarity; For particles and Spatial distance, and These represent the maximum and minimum Euclidean distances between the two particles, respectively. Considering the limited range of controller parameters, these can be selected based on engineering experience. and The specific value to be taken.

[0126] Particle similarity in the above formula Characterizes the first of a set of control parameters to be optimized The particle and the current best particle The degree of proximity between them; spatial distance Characterizes the first of the control parameters to be optimized The particle and the current best particle The Euclidean distance between them, i.e. . For the first The position of each particle. The current optimal particle The location.

[0127] Inertia weight With particle similarity The increase of will gradually decrease, and the calculation formula is as follows: .

[0128] In the formula, This represents the current iteration number of the algorithm. This represents the maximum number of iterations. This represents the minimum value of the inertia weight. This represents the maximum value of the inertia weight. Used as an intermediate substitution variable.

[0129] Based on the formulas for calculating particle similarity and inertia weight, the improved dynamic inertia weight formula can be obtained, namely, the formula for the first dynamic inertia weight. The first particle The expression for the dynamic inertia weight of the dimension parameter is: 。

[0130] In the formula, That is, the improved version of the first The first particle Dynamic inertia weights of dimensional parameters.

[0131] In the above formula, This is a similarity influence factor, and it has an inverse correlation with the inertia weight. It is an influencing factor of the iteration process and is also inversely correlated with the inertia weight.

[0132] The similarity factor and inertia weight are inversely correlated. This means that the higher the similarity between a particle and the current best particle, the smaller its corresponding inertia weight should be; the lower the similarity, the larger the inertia weight should be. The technical principle behind this inverse correlation design is that particles with high similarity are considered to be in a "promising" and excellent region, and their inertia should be reduced to conduct a refined local search; while particles with low similarity may be in a "poor" region or trapped in a local optimum, and their inertia should be increased to encourage them to conduct a large-scale global exploration to escape the predicament.

[0133] The influencing factor of the iteration process is inversely correlated with the inertia weight. This means that as the number of iterations increases, the inertia weight should generally decrease. The technical principle behind this design is that in the early stages of optimization, a larger inertia weight is needed to encourage particles to perform extensive global searches to quickly discover the approximate region that may contain the optimal solution; while in the later stages of optimization, the entire particle swarm may have gathered near the optimal solution, at which point a smaller inertia weight is needed to facilitate fine-grained local searches by the particles, thereby improving the accuracy of the solution.

[0134] This application's embodiments dynamically correlate the inertial weights of the particle swarm optimization algorithm with particle similarity and iteration process, realizing intelligent and adaptive adjustment of the algorithm's search behavior. Compared with the classic particle swarm optimization algorithm, this method can more effectively search in the high-dimensional and complex solution space of launch vehicle control parameters. While ensuring global exploration capability to avoid premature convergence, it also enhances the local fine search capability near the optimal solution, thereby finding the optimal combination of control parameters that minimizes the multi-objective optimization function faster and more accurately.

[0135] In some embodiments, the inertia weight is constrained based on the individual learning factor of each particle and the swarm learning factor of the particle group, including: The inertia weight of each particle is constrained based on the average of the individual learning factor of each particle and the group learning factor of the particle swarm.

[0136] Specifically, in the particle swarm optimization algorithm, the velocity update of each particle is affected not only by its inertia weight, but also by its individual learning factor. and group learning factors The individual learning factor determines the extent to which a particle learns from its own historical best position, while the group learning factor determines the extent to which a particle learns from the global best position of the entire population.

[0137] To ensure that the particle's trajectory in the search space eventually converges to a stable point or region, rather than diverging infinitely or oscillating continuously, the algorithm's parameters need to satisfy certain mathematical relationships. This application proposes a method for constraining inertia weights, specifically by constraining the inertia weights based on the mean of the individual learning factor and the group learning factor.

[0138] In one specific embodiment, to ensure particle convergence, the learning factor , and The following constraints must be satisfied between them: .

[0139] This application, based on the dynamic adjustment of inertia weights, further introduces theoretical constraints based on learning factors, thereby providing a stronger guarantee for the convergence of the particle swarm optimization algorithm. This design enables the dynamic adjustment strategy to not only exhibit good optimization performance in practice, but also to be more robust in theory, ensuring that when optimizing the parameters of complex systems such as launch vehicles, the algorithm can stably and reliably find high-quality solutions without unexpected divergence or failure due to dynamic changes in parameters.

[0140] In some embodiments, stability margin includes low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elastic margin; The multi-objective optimization function is determined based on the following steps: The current value of each stability margin is mapped to the corresponding reward value of each stability margin through a preset reward function. The preset reward function is used to determine the reward value of each stability margin based on the degree of closeness between the current value of each stability margin and the target value of each stability margin. The reward value and the degree of closeness are positively correlated. The reward values ​​corresponding to each stability margin are weighted and summed based on the calculation weights corresponding to each stability margin. The multi-objective optimization function is obtained by inverting the weighted sum.

[0141] Specifically, low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elastic margin can be selected as stability margins to determine the multi-objective optimization function. The low-frequency amplitude margin characterizes the system's ability to track low-frequency commands and suppress low-frequency constant disturbances. The high-frequency amplitude margin characterizes the system's ability to suppress high-frequency disturbances such as sensor noise, as well as its robustness to high-frequency unmodeled dynamics. The rigid body phase margin measures the stability of the rigid body control loop, directly affecting the basic stability of rocket attitude control. The sloshing margin evaluates the control system's suppression effect on liquid sloshing modes, preventing "sloshing-control" coupling instability. The elastic margin evaluates the control system's suppression effect on rocket body structural vibrations, preventing "launch-control" coupling instability.

[0142] The attitude control parameter optimization design of medium and large liquid-propellant launch vehicles is a numerical optimization problem with multiple constraints. In the attitude control parameter optimization design of launch vehicles, a reasonable multi-objective optimization function design is crucial for the success of the optimization. It comprehensively considers performance indicators in both the time and frequency domains to ensure that the control system reaches its optimal state in terms of dynamic response and stability. The key to optimization is ensuring that the designed multi-objective optimization function... The value is minimized. The general form of the multi-objective optimization function is as follows: .

[0143] In the formula, For the first A stability margin to be optimized; For the first The calculation weights of the stability margin to be optimized; For the first The target value is the required value of the stability margin indicator to be optimized. For the design of the multi-objective optimization function; The cutoff frequency, This is the minimum constraint value for the cutoff frequency. This represents the maximum constraint value for the cutoff frequency.

[0144] Stability margin measures the stability of a control system under unknown deviations and is a core indicator in the design of launch vehicle attitude controllers. Large liquid-fueled launch vehicles have complex "rigid-sway-elastic" coupling characteristics, and their amplitude-frequency and phase-frequency curves vary in complexity with frequency, requiring the maintenance of stability margins at multiple frequencies. Calculating the stability margin requires first identifying the frequency positions where the margin is considered, and then calculating the corresponding margin value using the amplitude-frequency and phase-frequency characteristics. Considering that the stability requirement of the control system is that the stability margin meets the requirement rather than being excessively large, constraints are added to ensure the approximate range of the margin.

[0145] The key to intelligently optimizing rocket attitude control parameters using an improved particle swarm optimization algorithm lies in designing a reasonable and efficient multi-objective optimization function. In related technologies, the sum of the integrals of the state deviation and the absolute values ​​of the control variables is used as the multi-objective optimization function. However, due to the complex frequency components of large liquid-fueled launch vehicles, the designed correction network has a high order and a large number of parameters. Furthermore, a larger stability margin is not always better; simply adding and inverting the stability margin values ​​is insufficient to obtain a comprehensive multi-objective optimization function. Therefore, a pre-defined reward function can be designed when designing the multi-objective optimization function. This function maps each stability margin value to a reward value near the target value to avoid convergence problems when the target value is too high or too low during the optimization process.

[0146] The pre-defined reward function is used to transform margin values, which have clear physical meaning but differing evaluation criteria, into dimensionless reward values. This reward value intuitively reflects the quality of the current margin value.

[0147] The purpose of the preset reward function is to determine the reward value corresponding to each stability margin based on how close the current value of each stability margin is to its target value. The target value of the stability margin is preset according to engineering design specifications or flight mission requirements; it represents the ideal value or acceptable lower bound of the margin. The reward value is positively correlated with the degree of closeness. This means that the closer the current value of a stability margin is to its target value, or even slightly better, the higher the reward value obtained through the preset reward function mapping; conversely, the greater the difference between the current value and the target value (especially when it is worse than the target value), the lower the reward value, and it may even be negative.

[0148] In one specific embodiment, a preset reward function It can be designed as a piecewise function, whose input is the current value of a certain stability margin and whose output is the corresponding reward value.

[0149] By designing a similar preset reward function that meets the engineering requirements for each stability margin indicator (low-frequency amplitude margin, high-frequency amplitude margin, etc.), the current value of each stability margin can be mapped to the corresponding reward value.

[0150] In this embodiment, the multi-objective optimization function contains metrics such as gain margin and phase margin in the frequency domain, specifically for high and low frequency bands, as follows: .

[0151] In the formula: It is a multi-objective optimization function; These are low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elastic margin, respectively. These are the target values ​​(indicator requirements) for low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elasticity margin, respectively. These are the reward values ​​mapped from low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elasticity margin to the target value. These are the calculation weights for low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elastic margin, respectively. For rigid body frequencies; The cutoff frequency of the rigid body.

[0152] The hardware-in-the-loop simulation-based method for optimizing and verifying launch vehicle attitude control parameters provided in this application clearly and quantitatively transforms complex, multi-dimensional engineering design objectives (meeting various stability margin requirements) into a single-valued, computable multi-objective optimization function. This effectively avoids the one-sidedness of "the larger the margin, the better" in related technology optimizations. Combined with the setting of calculation weights, it allows for flexible adjustment of the importance of various performance indicators according to the specific requirements of different flight missions and different rocket configurations, thereby making the optimization results more in line with actual engineering needs.

[0153] In some embodiments, the method further includes: Select multiple key flight moments in the flight sequence of the launch vehicle; The optimal control parameters for the flight time between two adjacent critical flight times are determined by linear interpolation or by keeping them unchanged. Based on the optimal control parameters at each flight time, a set of control parameters covering the flight time sequence is generated.

[0154] Specifically, in order to intelligently optimize the design of the optimal parameters of the rocket attitude control system throughout the entire flight sequence, it is necessary to optimize the control system parameters one by one in different time segments based on the flight sequence given by the overall professional team.

[0155] Critical flight moments refer to the points in the entire flight sequence where the rocket's dynamic characteristics or external environment undergo significant changes. For example, critical flight moments may include flight event points, extreme points in the aerodynamic environment, points where system characteristics change significantly, and equally spaced sampling points.

[0156] Between two adjacent critical flight times, other flight times are included. The optimal control parameters for the two adjacent critical flight times can be linearly interpolated or kept unchanged to determine the optimal control parameters for the flight times between the critical flight times. Finally, the optimal control parameters for each flight time are compiled to generate a control parameter set covering the entire flight time series.

[0157] In the engineering practice of launch vehicles, flight timing is usually counted in seconds. Therefore, critical flight moments can be identified as critical characteristic seconds.

[0158] For example, let's take the first-stage flight control of a rocket as an example to illustrate the optimization design of attitude control parameters. From the moment the rocket launches to the moment of first- and second-stage separation, several key characteristic seconds can be selected for segmented optimization design. The optimal control parameters within each segment are optimized segment by segment. The optimal control parameters between two adjacent characteristic seconds can be determined according to the specific flight conditions; that is, they can be designed to be consistent with those at the key characteristic seconds or obtained through linear interpolation. The optimization design approach for control parameters in the second-stage flight segment is consistent with that of the first stage. In this way, the parameters of the rocket's first and second-stage attitude control system throughout the entire flight sequence can be intelligently and automatically optimized based on an improved particle swarm optimization algorithm. The optimal attitude control parameters of the entire rocket system intelligently designed through the above segmented optimization steps, after verifying their effectiveness through attitude control system simulation experiments and hardware-in-the-loop simulation experiments, can be quickly reused in the attitude control system of similar reusable liquid rockets to improve design and testing efficiency.

[0159] The method provided in this application determines the optimal control parameters for the flight time between two adjacent critical flight moments by linearly interpolating or keeping the optimal control parameters of two adjacent critical flight moments unchanged. This ensures the optimality of control performance at each critical flight moment and the smooth transition of control parameters throughout the flight process. As a result, the launch vehicle can always operate in a near-optimal state, which greatly improves its attitude control accuracy, stability and robustness in complex and time-varying environments.

[0160] Figure 5 This is the second flowchart of the method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation provided in this application. Figure 5 As shown in the embodiments of this application, the method provided is applicable to the intelligent optimization design of parameters for the high-dimensional attitude control system of medium and large liquid launch vehicles.

[0161] Taking a certain type of liquid-fueled launch vehicle as an example, the improved particle swarm optimization algorithm can automatically obtain the optimal attitude control parameters of the rocket's three attitude channels by selecting key feature seconds within the flight time sequence for intelligent optimization. The effectiveness of the optimal attitude control parameters designed by intelligent optimization is verified by adopting a cyclic iterative optimization scheme of six-degree-of-freedom mathematical simulation test in the controller-in-the-loop and semi-physical simulation test in the key hardware-in-the-loop.

[0162] The control parameter optimization process is as follows: by applying the three attitude channels to the designed multi-objective optimization function and the frequency domain constraints of the control system, a set of optimal control parameters at specific characteristic seconds can be obtained intelligently and automatically. Then, the optimal attitude control parameters for other characteristic seconds are designed sequentially. After integrating all characteristic seconds, all optimal parameters for the entire flight sequence are designed, thereby improving the stability and robustness of the rocket attitude control system and increasing the design efficiency of the designer in attitude control system and control parameters.

[0163] The attitude control system was configured with three analytical states: rated, upper limit deviation, and lower limit deviation. Based on these, several key feature points were selected within the flight timeline to further analyze the stability margins of rigid body, elastic, and fluid sloshing, taking into account factors such as the servo mechanism characteristic deviation envelope and elastic modal parameter deviations.

[0164] The apparatus provided in the embodiments of this application is described below. The apparatus described below can be referred to in correspondence with the method described above.

[0165] Figure 6 This is a schematic diagram of the structure of the launch vehicle attitude control parameter optimization and verification device based on hardware-in-the-loop simulation provided in this application, as shown below. Figure 6 As shown, the device includes: System building module 610 is used to establish a closed-loop attitude control system for the launch vehicle. The closed-loop attitude control system includes a coupled dynamic model based on rigid body dynamics equations, swaying dynamics equations and elastic dynamics equations, as well as an attitude controller with control parameters to be optimized. The parameter optimization module 620 is used to perform particle swarm optimization on the control parameters to be optimized and determine the optimal control parameters. The mathematical simulation module 630 is used to apply the optimal control parameters to the mathematical simulation experiment of the attitude controller in the loop, and obtain the mathematical simulation verification results of the optimal control parameters. The hardware-in-the-loop simulation module 640 is used to apply the optimal control parameters to the hardware-in-the-loop simulation test of the launch vehicle's key hardware, provided that the mathematical simulation verification results are satisfactory, in order to obtain the hardware-in-the-loop verification results of the optimal control parameters.

[0166] The hardware-in-the-loop simulation-based launch vehicle attitude control parameter optimization and verification device provided in this application establishes a closed-loop control system model that includes rigid body, sway, and elastic coupling characteristics. Then, it uses a particle swarm optimization algorithm to automatically search for optimal control parameters and performs step-by-step verification through pure software mathematical simulation and hardware-in-the-loop simulation incorporating real hardware. This enables reliable and comprehensive ground verification of the launch vehicle before its actual flight. Hardware-in-the-loop simulation can fully assess the effectiveness and robustness of theoretically optimal control parameters in the face of real hardware nonlinearity, environmental uncertainty, and model errors. It achieves intelligent and automated design of launch vehicle attitude control parameters, improving the efficiency and performance of launch vehicle attitude control system design, and enhancing the stability and robustness of the launch vehicle control system.

[0167] Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application, such as... Figure 7As shown, the electronic device may include: a processor 710, a communications interface 720, a memory 730, and a communications bus 740, wherein the processor, communications interface, and memory communicate with each other via the communications bus. The processor can invoke logical commands stored in the memory to execute the methods described in the above embodiments, for example: A closed-loop attitude control system for the launch vehicle is established. This system includes a coupled dynamic model based on rigid body dynamics, swaying dynamics, and elastic dynamics equations, as well as an attitude controller with parameters to be optimized. Particle swarm optimization is performed on the parameters to be optimized to determine the optimal control parameters. The optimal control parameters are then applied to a loop-based mathematical simulation experiment of the attitude controller to obtain mathematical simulation verification results. If the mathematical simulation verification results are satisfactory, the optimal control parameters are applied to a hardware-in-the-loop semi-physical simulation experiment of the launch vehicle's key hardware to obtain semi-physical simulation verification results.

[0168] Furthermore, the logical commands in the aforementioned memory can be implemented as software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several commands to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0169] The processor in the electronic device provided in this application embodiment can call logical instructions in the memory to implement the above method. Its specific implementation method is the same as the aforementioned method implementation method and can achieve the same beneficial effects, which will not be repeated here.

[0170] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the methods provided in the above embodiments.

[0171] The specific implementation method is the same as the aforementioned method implementation method and can achieve the same beneficial effects, so it will not be repeated here.

[0172] This application provides a computer program product, including a computer program that, when executed by a processor, implements the method described above.

[0173] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0174] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation, characterized in that, include: A closed-loop attitude control system for a launch vehicle is established; the closed-loop attitude control system includes a coupled dynamic model based on rigid body dynamics equations, swaying dynamics equations and elastic dynamics equations, and an attitude controller with control parameters to be optimized. Particle swarm optimization is performed on the control parameters to be optimized to determine the optimal control parameters; The optimal control parameters are applied to the mathematical simulation experiment of the attitude controller in the loop to obtain the mathematical simulation verification results of the optimal control parameters; If the mathematical simulation verification results are satisfactory, the optimal control parameters are applied to the hardware-in-the-loop semi-physical simulation test of the launch vehicle to obtain the semi-physical simulation verification results of the optimal control parameters.

2. The method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation according to claim 1, characterized in that, The application of the optimal control parameters to the hardware-in-the-loop semi-physical simulation test of the launch vehicle's key hardware includes: A hardware-in-the-loop (HIL) semi-physical simulation system is constructed, comprising a flight controller, a servo mechanism, a three-axis flight simulation turntable, and a simulation computer. The servo mechanism drives the engine nozzle of the launch vehicle to oscillate. The three-axis flight simulation turntable simulates the flight attitude of the launch vehicle based on the output of the simulation computer. The optimal control parameters are loaded into the flight controller, and the coupled dynamics model is loaded into the simulation computer; In the hardware-in-the-loop simulation test, the flight controller generates control commands based on the optimal control parameters to drive the servo mechanism to move; the response of the servo mechanism to move is fed back to the coupled dynamics model of the simulation computer.

3. The method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation according to claim 2, characterized in that, The hardware-in-the-loop simulation system also includes a load simulator; the load simulator is used to apply external load simulation signals to the servo mechanism.

4. The method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation according to claim 2, characterized in that, The flight controller is used to compare the theoretical flight attitude values ​​sent by the simulation computer with the simulated flight attitude values ​​sent by the three-axis flight simulation turntable.

5. The method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation according to claim 2, characterized in that, The method further includes: The coupled dynamics model is configured with parameter deviations to simulate the inconsistencies between the sky and the ground, and the hardware-in-the-loop simulation is run under the boundary conditions determined by the parameter deviations.

6. The method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation according to any one of claims 1 to 5, characterized in that, The step of performing particle swarm optimization on the control parameters to be optimized to determine the optimal control parameters includes: A particle swarm is established based on the control parameters to be optimized, and the optimization is iteratively performed in the solution space of the control parameters to be optimized with the goal of minimizing the multi-objective optimization function. In each iteration, the inertia weight of each particle is dynamically adjusted based on the particle similarity between each particle and the current best particle, and the inertia weight is constrained based on the individual learning factor of each particle and the group learning factor of the particle swarm. The multi-objective optimization function is determined based on the stability margin of the closed-loop attitude control system. The optimal control parameters are determined based on the global optimal position after the iterative optimization is completed.

7. The method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation according to claim 6, characterized in that, The stability margin includes low-frequency amplitude margin, high-frequency amplitude margin, rigid body phase margin, sloshing margin, and elastic margin; The multi-objective optimization function is determined based on the following steps: The current value of each stability margin is mapped to the corresponding reward value of each stability margin through a preset reward function; the preset reward function is used to determine the reward value corresponding to each stability margin based on the closeness between the current value of each stability margin and the target value of each stability margin; the reward value and the closeness are positively correlated. The reward values ​​corresponding to each stability margin are weighted and summed based on the calculation weights corresponding to each stability margin. The multi-objective optimization function is obtained by inverting the weighted summation result.

8. A device for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation, characterized in that, include: The system construction module is used to establish a closed-loop attitude control system for the launch vehicle; the closed-loop attitude control system includes a coupled dynamic model based on rigid body dynamics equations, swaying dynamics equations and elastic dynamics equations, and an attitude controller with control parameters to be optimized. The parameter optimization module is used to perform particle swarm optimization on the control parameters to be optimized, and determine the optimal control parameters. The mathematical simulation module is used to apply the optimal control parameters to the attitude controller in-loop mathematical simulation test to obtain the mathematical simulation verification results of the optimal control parameters; The hardware-in-the-loop simulation module is used to apply the optimal control parameters to the hardware-in-the-loop simulation test of the launch vehicle's key hardware, provided that the mathematical simulation verification results are satisfactory, and to obtain the hardware-in-the-loop verification results of the optimal control parameters.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for optimizing and verifying the attitude control parameters of a launch vehicle based on hardware-in-the-loop simulation as described in any one of claims 1 to 7.