A six-force equation balancing method and system for shipborne helicopters
The Sparrow search algorithm is used to conduct a global search, which solves the problem of being limited to local solutions in the helicopter dynamics model trim method, achieves global trim solution under complex working conditions, and improves the helicopter dynamics calculation performance.
Patent Information
- Application Number
- CN202410748555.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing helicopter dynamics model trim methods are limited by initial value settings, and the numerical solutions are only limited to the local range. It is impossible to search for numerical solutions in the global range. It is difficult to adapt to changes in complex working conditions, and traditional algorithms are prone to falling into local optimal solutions. , it is difficult to find the global balance result of the dynamic system.
The six-force equation trim method of the ship-based helicopter based on the Sparrow search algorithm is adopted. By setting the initial attitude and wind field information of the target helicopter, the six-force equation set is defined, and the Sparrow search algorithm is used to conduct a global search. Through iterative calculation, the target helicopter is obtained at the target position. The global optimal solution under the circumstances.
It improves trimming efficiency and accuracy, avoids trimming difficulties caused by initial value selection, realizes global trimming solution under complex working conditions, and improves helicopter dynamics calculation performance.
Smart Images

Figure CN118332933B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of ship and ocean engineering, and relates to a shipborne helicopter dynamics balancing method, and in particular to a shipborne helicopter six-force element equation balancing method and system. Background Art
[0002] Helicopter dynamics model balancing refers to the process of adjusting relevant parameters to keep the helicopter balanced under specific flight conditions when designing or analyzing the flight performance of a helicopter. This process is a very important part of the helicopter dynamics verification process and is directly related to the theoretical flight performance and safety of the helicopter dynamics system.
[0003] The helicopter trimming process is to solve the process of balancing the gravity, inertia, and aerodynamic forces on the helicopter in the target environment under specific control and attitude conditions, thereby maintaining the force balance of the fuselage. The fuselage force balance equation is a nonlinear system of equations, and the solution of the system of equations is usually carried out using numerical calculation methods. The parameters involved include control variables and attitude variables. At present, the traditional helicopter dynamics model trimming method uses the Newton-Raphson numerical method to solve it. Through repeated iterations, the iteration is stopped when a solution that meets the convergence accuracy is obtained. However, traditional methods are often limited to the setting of initial values, and their numerical solutions are only limited to a local range. It is impossible to search for numerical solutions in a global range that meets physical constraints. This requires certain prior data to assist in the trimming solution process, and it is difficult to adapt to changes in complex working conditions.
[0004] The Newton iteration method used in the traditional helicopter dynamics model balancing has high requirements for the initial value, and the final iterative result is often a local calculation result. For complex dynamic equations, its numerical solution has the disadvantages of high difficulty in solving and easy to fall into local optimality. The helicopter dynamics system usually has many solution intervals of similar accuracy under the target working conditions, and because the helicopter balancing results (control variables, attitude variables) are usually restricted by certain physical factors, how to solve the global balancing results of the dynamic system within a certain interval has become a technical difficulty in improving the solution efficiency and interpretability of the balancing method.
[0005] With the development of intelligent swarm algorithms, the existing helicopter dynamics balancing methods are no longer limited to the traditional Newton method and the high-order Newton method. The intelligent swarm algorithm can optimize the numerical solution process of the helicopter balance equation by relying on its high global search capability and fast convergence speed. In the past studies, the genetic algorithm was used more frequently, but the algorithm's adjustment of the search space size is not completely applicable to the helicopter control variables, and the convergence speed is slow due to the algorithm update law. Its internal genetic coding method is difficult to adjust for the changes in the six-force element equation balancing under different constraints. This puts higher requirements on the new method in terms of convergence speed, search space, and algorithm adaptability.
[0006] Through the above analysis, the problems and defects of the prior art are as follows:
[0007] (1) With the continuous development of helicopter dynamics, a large number of aerodynamic interference terms and more complex rotor oscillation and flapping effects are added to the high-confidence dynamic equations, which greatly increases the nonlinearity of the six-force element equations, and thus poses greater challenges to the balancing accuracy and solution efficiency of the six-force element equations. At present, the traditional helicopter dynamic model balancing method is limited to the setting of initial values, and the numerical solution is limited to a local range. It is impossible to search for numerical solutions in a global range that meets physical constraints, so that the balancing solution process requires certain prior data to assist, and it is difficult to adapt to changes in complex working conditions. In addition, scholars from various countries have also used optimization algorithms for solving non-convex problems to carry out related balancing work, but there are certain deficiencies in the algorithm performance and the setting of the fitness function, so that the accuracy and efficiency of the balancing results still have room for further improvement.
[0008] (2) The Newton iteration method used in the traditional helicopter dynamics model has high requirements for the initial value, and the final iteration result is often a local calculation result. For complex dynamic equations, its numerical solution has the disadvantages of high difficulty in solving and easy to fall into the local optimum. The subsequent hybrid genetic algorithm and GA-LM algorithm also lack global search capabilities, and their operator update rules easily cause the algorithm to fall into the dilemma of local optimum in the higher-dimensional solution process. Summary of the invention
[0009] In order to overcome the problems existing in the related art, the embodiments disclosed in the present invention provide a method and system for balancing the six-force element equations of a shipborne helicopter, and more particularly, a method and system for balancing the six-force element equations of a shipborne helicopter based on a sparrow search algorithm. The technical solution is as follows:
[0010] The present invention is achieved in that a six-force element equation balancing method for a shipborne helicopter comprises:
[0011] S1, setting the initial trim attitude of the target helicopter and the wind field environment information;
[0012] S2, define the six-force equations of the target helicopter and limit the trim solution;
[0013] S3, set the basic parameters and balancing interval of the SSA algorithm;
[0014] S4, setting of the internal operator update rule of the SSA algorithm;
[0015] S5, solution and statistics of the average optimal balancing results of the six-force element equation.
[0016] In step S1, the target helicopter trim initial attitude quantity and wind field environment information are set, including: setting the helicopter initial attitude quantity and environmental wind field information;
[0017] Among them, the initial attitude of the helicopter is the position and attitude state of the helicopter fuselage. The initial attitude sets 3 attitude angle parameters and 1 flight speed parameter, which are expressed as follows: initial roll angle , initial pitch angle 、Initial pitch angle , Flight speed ;
[0018] Environmental wind field information indicates the working environment set when the target helicopter performs trim calculations. The parameters include two wind field parameters: wind direction and wind speed, which are expressed as follows: wind direction angle , wind speed ; The above parameters are all scalars, and all angle units are All speed units are .
[0019] In step S2, the helicopter initial attitude and environmental wind field information are used as initial parameters, and based on the helicopter force balance condition, the helicopter six-force equation is established. The six forces correspond to the three fuselage forces and the three fuselage moments, and the force conditions are all expressed in the fuselage coordinate system; the three fuselage forces correspond to the backward force, lateral force and pulling force, respectively, which are expressed as follows: The backward force , lateral force ,pull ; The moments on the three fuselages correspond to the rolling moments , pitch moment , Reverse torque .
[0020] In step S2, the six-force equations of the target helicopter are defined, including:
[0021] The forces on the three rotors are expressed as follows: The backward force on the rotor , lateral force on the rotor , the pull on the rotor ;
[0022] The moments of the three rotors are expressed as follows: The rolling moment of the rotor , the pitch moment of the rotor , the anti-torque on the rotor ;
[0023] The force on a tail rotor is expressed as: The lateral force on the tail rotor ;
[0024] The moments of the three tail rotors are expressed as follows: The rolling moment of the tail rotor , the pitch moment on the tail rotor , the reaction torque on the tail rotor ;
[0025] The forces on the two horizontal tails are expressed as follows: The rearward force on the horizontal tail , the tension on the horizontal tail ;
[0026] The forces on the two vertical tails are expressed as follows: The rearward force on the vertical tail , lateral force on the vertical tail ;
[0027] The moments of the three vertical tails are expressed as follows: The rolling moment of the vertical tail , pitching moment on the vertical tail , the reaction torque on the vertical tail ;
[0028] The three fuselage forces are expressed as follows: The rearward force on the fuselage , lateral force on the fuselage , the tension on the fuselage ;
[0029] The moments acting on the three fuselages are expressed as follows: The rolling moment acting on the fuselage , the pitch moment of the fuselage 、Reaction torque on the fuselage ;
[0030] The components of gravity acting on the helicopter in each direction are expressed as follows: The component of gravity acting on the helicopter in the backward direction is The backward component of the gravity on the helicopter is The backward component of the gravity on the helicopter is ;
[0031] The six-force equation is constructed as follows:
[0032] .
[0033] In step S2, the six-force equations are divided into two categories: the first category is the helicopter control quantity, and the second category is the helicopter attitude quantity;
[0034] Control variables include: rotor collective pitch , tail rotor collective pitch , Rotor lateral cyclic pitch change , Rotor longitudinal cyclic pitch variation ;
[0035] The attitude value is the position and attitude of the helicopter fuselage, including: helicopter pitch angle , Roll Angle ; In the process of solving the balancing of the six-force equation, each force and moment is a function of the set balancing amount;
[0036] The six-force element equation is expressed as:
[0037] .
[0038] In step S3, the basic parameters of the SSA algorithm are set, including:
[0039] Based on the determined six-force element equation and the balancing solution, the sparrow search algorithm is used to balance the equation; the sparrow search algorithm simulates the foraging process of the sparrow population, and the sparrow is the iterative operator in the algorithm. In the problem of balancing the six-force element equation, the spatial dimension Solved by balancing The number is determined by setting In the dimensional search space, there are sparrows, the position of each sparrow represents a solution, then the sparrow population position set is expressed as: , sparrows are given three attributes, namely, discoverer, follower, and vigilant. The position of the discoverer is represented by , the position of the follower is expressed as , the position of the sentinel is expressed as ; The location information of the discoverer, follower, and sentinel belongs to the sparrow population location information set , the number of discoverers in the population is , the number of followers is , the number of alerters is ; The same individual can have the attributes of discoverer and vigilant successively, or follower and vigilant successively, but cannot have the attributes of discoverer and follower successively; each sparrow individual position In the six-force element equation balancing problem, the target solution is expressed as The individual positions are expressed as: ; Individual positions in a sparrow population The fitness value The size of the fitness is divided into The calculation formula is:
[0040] ;
[0041] No. The fitness of an individual is expressed as ,Will Substitute the six force element equations in turn and calculate the first The force of the six elements corresponding to each individual position , which are expressed as follows: The backward force calculated from the individual positions , lateral force , tension , rolling moment , pitch moment , Reverse torque , thus obtaining The location of an individual Fitness .
[0042] Furthermore, the SSA algorithm defines a new fitness function and improves the fitness calculation method of the SSA algorithm, so that the results calculated by the algorithm in the iterative process meet the requirements of the helicopter dynamics six-force element equation to achieve force balance; by incorporating the prior knowledge of helicopter dynamics, setting the search range of each balancing amount, and through the discrete search range, the SSA algorithm is specialized to solve the six-force element equation balancing problem, avoiding the balancing results that do not meet the actual control requirements;
[0043] According to the inherent properties of the target helicopter, the search range of each trim value is set, and the rotor collective pitch The search range is expressed as , tail rotor collective pitch The search range is expressed as , Rotor lateral cyclic pitch change The search range is expressed as , Rotor longitudinal cyclic pitch variation The search range is expressed as , Helicopter pitch angle The search range is expressed as , Roll Angle The search range is expressed as ;in, is the search lower limit of each balancing amount, is the search upper limit of each balancing amount; the sparrow search algorithm initializes the population position according to the search range, and then assigns attributes to each individual, so as to update the position according to the rules;
[0044] Sparrow search algorithm total iteration rounds, then All sparrow populations in rounds are expressed as: , express The set of all sparrow populations in rounds, Respectively Rounds The sparrow population obtained by the iteration; The set of individual positions in the wheel population is expressed as , Indicates The set of positions of each sparrow in a sparrow population, Respectively represent The sparrow population The location of each sparrow; The fitness corresponding to each individual position in the population of the wheel is expressed as , Indicates The set of fitness values corresponding to the positions of each sparrow in a sparrow population, Respectively represent The sparrow population The fitness corresponding to the position of each sparrow; The first The position of each individual contains elements represented by , Indicates In the sparrow population The location information of each sparrow. It represents the balancing result of the sparrow individual to the six-force equation, Indicates the rotor collective pitch trim result, Indicates the tail rotor trim result. Indicates the rotor lateral cyclic pitch trim result. Indicates the result of the rotor longitudinal cyclic pitch trim. Indicates the helicopter pitch angle trim result. Indicates the helicopter roll angle trim result; Indicates In the population of the round iteration The individual The location of the dimension, .
[0045] In step S4, the internal operator update rule of the SSA algorithm is set, including:
[0046] The position update formula of the individual determined as the discoverer in each round is:
[0047] ;
[0048] in, The set of positions of each individual in the population of wheels is the current iteration number; Indicated in At the iteration, The individual in The location of the dimension, ; Indicated in At the iteration, The individual in The location of the dimension, ; A constant representing the number of iterations. yes A random number in the range, is the alarm value, , represents the safety threshold, ; is a random number and follows a normal distribution. yes The matrix of Each element in is 1; when When the individual alarm value is less than the safety threshold, it means that there are no predators around and it is safe, and the discoverer can search for food extensively; if , it means that the alert sparrows have discovered the predator, and all sparrows immediately take action to fly to other safe areas; except for the discoverer, the remaining sparrows are followers, and the position update of the followers is as follows:
[0049] ;
[0050] The minimum fitness among the fitness corresponding to all discoverers in this round is defined as , the corresponding individual position is expressed as , representing the discoverer in The best position obtained in the round; the maximum fitness among the fitness corresponding to all individuals in this round is defined as , the corresponding individual position is expressed as , indicating that The worst position achieved in the round; yes A matrix where each element is randomly assigned to 1 or -1. , Representation The transpose of Represents the calculated position update parameter; when When , the follower with poor fitness value updates its position;
[0051] When individuals in the population sense danger, the sparrow's early warning mechanism is triggered; in the simulation, 20% of the individuals in the total population are responsible for danger warning, and these individuals are given the alert attribute on top of their original attributes;
[0052] ;
[0053] The minimum fitness among the fitness corresponding to all individuals in this round is defined as ,in Represents the best position of all individuals in the population in all rounds so far; is the step size parameter of the individual movement, which is a random number that conforms to the normal distribution with a variance of 1 and a mean of 0. The random number is randomly generated by the algorithm according to the specified distribution during each round of iteration; yes Round The fitness function value of each individual; is a constant; express The worst fitness among all fitness results in the round, express The worst position of all individuals in the round population; When , it means that the sparrow is at the edge of the group and needs to fly to the best position of the group; when When , it means that the individuals in the middle of the population are aware of the danger and need to move closer to other individuals; is the step length control coefficient, indicating the direction of individual movement, The value of is a random number between -1 and 1, randomly selected during each iteration.
[0054] In step S5, the average optimal balancing result of the six-force equation is solved and counted, including:
[0055] Searching inside the Sparrow algorithm Rounds of iterations to determine the minimum fitness , and the individual position corresponding to the fitness , the position information of each dimension corresponding to the individual position is ,express The optimal balancing result of the six-force element equation in the rounds is represented by the rotor total pitch of the six-force element equation under the target working condition. The best balancing result in rounds , tail rotor collective pitch The best balancing result in rounds , Rotor lateral cyclic pitch change The best balancing result in rounds , Rotor longitudinal cyclic pitch variation The best balancing result in rounds , Helicopter pitch angle The best balancing result in rounds 、Helicopter roll angle The best balancing result in rounds ;
[0056] Repeat the balancing process times, and The average value of the position information of each dimension corresponding to the best position obtained by the secondary balancing result is calculated to obtain , which are respectively expressed as the average optimal trim results of the rotor collective pitch under the target working conditions of the six-force equation , tail rotor collective pitch average optimal trim result , the average optimal trim result of rotor lateral periodic pitch change , the average optimal trim result of the rotor longitudinal periodic pitch change , helicopter pitch angle average optimal trim result , helicopter roll angle average optimal trim result .
[0057] Another object of the present invention is to provide a shipborne helicopter six-force element equation balancing system, which is used to control the shipborne helicopter six-force element equation balancing method, and the system comprises:
[0058] Parameter setting module, used to set the target helicopter's initial trim attitude and wind field environment information;
[0059] The equation group building module is used to define the six-force equation group of the target helicopter and limit the trim solution;
[0060] SSA algorithm setting module, used to set the basic parameters and balancing interval of the SSA algorithm;
[0061] Update rule setting module, used to set the update rule of the internal operator of SSA algorithm;
[0062] The equation balancing module is used to solve and count the average optimal balancing results of the six-force element equation.
[0063] In combination with all the above technical solutions, the beneficial effects of the present invention are as follows:
[0064] First, in view of the problem that the efficiency and solution search ability of the current six-force element equation balancing problem need to be improved, the global search ability, stronger adaptability and robustness, as well as flexibility and adjustability of the SSA optimization algorithm are used to effectively improve the balancing efficiency under different constraints, and provide strong support for the improvement of helicopter dynamics calculation performance. The shipborne helicopter balancing method based on the sparrow search algorithm of the present invention uses a heuristic optimization method to solve the helicopter balancing problem. The present invention optimizes the numerical solution method of the high-order nonlinear equation group existing in the helicopter dynamics balancing problem, and uses the sparrow search algorithm (SSA algorithm) to numerically solve the target dynamics equation. The present invention uses the sparrow search algorithm to construct the helicopter six-force element balance equation, stipulates four control quantities and two attitude quantities as balancing quantities, and sets the six balancing quantities as the operator search target of the sparrow search algorithm. The swarm intelligent optimization algorithm is used to optimize the balancing quantity combination in the target solution interval, and the numerical solution with the highest accuracy under the target working condition is obtained through iteration, thereby realizing the process of obtaining the global optimal solution in the target interval. This method can effectively improve the trim efficiency of the target helicopter under complex working conditions and avoid the trim difficulties caused by the selection of initial values.
[0065] Second, the key point of the present invention is the intelligent solution method of the high-order nonlinear equations in the helicopter dynamics balance solution problem. The algorithm includes the following key points:
[0066] (1) The sparrow optimization algorithm belongs to the swarm intelligence optimization algorithm. This type of algorithm has a strong global search capability and can find the global optimal solution or a better solution in the search space. The helicopter dynamics model balancing problem may have multiple local optimal solutions in the target solution space. The traditional Newton iteration method may fall into the local optimal solution and cannot jump out. The swarm intelligence optimization algorithm can better deal with this situation.
[0067] (2) Compared with the traditional Newton iteration method, the sparrow optimization algorithm has stronger robustness and is relatively insensitive to the initial value setting and parameter selection of the problem. In the helicopter dynamics model balancing problem, due to the complexity of the model and the uncertainty of the parameters, the robustness of the algorithm is particularly important.
[0068] (3) The sparrow optimization algorithm is more suitable for parallelization and distributed computing, and has certain advantages in solving problems with higher dimensions. The helicopter dynamics model balancing problem involves a large number of constraints and variables, and the use of distributed computing can accelerate the solution process. In addition, swarm intelligence optimization algorithms usually have a certain degree of adaptability and can dynamically adjust the behavior of the algorithm based on the information in the search process. This feature enables the algorithm to better adapt to different types of problems and different solution environments.
[0069] Third, after specifying the initial attitude of the target helicopter and the wind field environment information, the present invention defines the helicopter six-force element equations and defines the six-force element equation balancing solution, and then sets the search dimension and search range of the sparrow search algorithm search operator, so as to iteratively calculate the balancing result of the target helicopter under the target working condition using the sparrow search algorithm. Compared with the traditional Newton iteration method, the present invention avoids the disadvantage that the convergence efficiency is highly dependent on the selection of the initial point and the local characteristics of the problem. The present invention utilizes the global search capability of the swarm intelligence optimization algorithm and the controllable search range of the solution space to effectively avoid special situations such as improper initial point selection or the existence of singularities and boundary conditions in the helicopter dynamics balancing problem. In addition, the SSA algorithm does not require the continuity, differentiability or existence of second-order derivatives of the high-order nonlinear equations in the helicopter dynamics balancing solution problem, so it has good robustness and global convergence for non-smooth, non-convex, and multi-modal helicopter dynamics balancing problems.
[0070] Fourth, the present invention optimizes and extends the calculation method of the helicopter six-force element equation balancing problem, enriches the six-force element equation balancing method, and utilizes the adaptability of the SSA algorithm to dynamically adjust according to the feedback information in the optimization process and the characteristics of the search space, thereby improving the performance and convergence speed of the algorithm. This adaptability enables the swarm intelligence optimization algorithm to better cope with complex flight dynamics and diversified constraints when solving the helicopter dynamics balancing problem, thereby more effectively finding the optimal balance state. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;
[0072] Figure 1 It is a flow chart of a six-force element equation balancing method for a shipborne helicopter provided by an embodiment of the present invention;
[0073] Figure 2 is a schematic diagram of a body coordinate system provided by Example 1 of the present invention;
[0074] Figure 3 is a schematic diagram of a body coordinate system provided by Embodiment 2 of the present invention;
[0075] Figure 4 1 is a schematic diagram of the rotor collective pitch balancing process using the SSA algorithm provided in Example 2 of the present invention;
[0076] Figure 5 It is a Newton method objective function iterative fitness change curve diagram with an initial value of 5 provided in an embodiment of the present invention;
[0077] Figure 6It is a curve diagram showing the variation of the Newton method objective function iteration result with an initial value of 5 provided in an embodiment of the present invention;
[0078] Figure 7 It is a Newton method objective function iterative fitness change curve diagram with an initial value of 10 provided in an embodiment of the present invention;
[0079] Figure 8 It is a curve diagram of the iteration result of the Newton method objective function with an initial value of 10 provided in an embodiment of the present invention;
[0080] Fig. 9 It is a Newton method objective function iterative fitness change curve diagram with an initial value of 50 provided in an embodiment of the present invention;
[0081] Fig.10 It is a curve diagram of the iteration result of the Newton method objective function with an initial value of 50 provided in an embodiment of the present invention;
[0082] Fig.11 It is a curve diagram of iterative fitness change of the objective function of the SSA optimization algorithm with an initial range of -5 to 5 provided by an embodiment of the present invention;
[0083] Fig.12 It is a curve diagram of the iteration result of the objective function of the SSA optimization algorithm with an initial range of -5 to 5 provided by an embodiment of the present invention;
[0084] Fig.13 It is a curve diagram of iterative fitness change of the objective function of the SSA optimization algorithm with an initial range of -10 to 10 provided by an embodiment of the present invention;
[0085] Fig.14 It is a curve diagram of the iteration result of the SSA optimization algorithm objective function with an initial range of -10 to 10 provided by an embodiment of the present invention;
[0086] Fig.15 It is a curve diagram of iterative fitness change of the objective function of the SSA optimization algorithm with an initial range of -50 to 50 provided by an embodiment of the present invention;
[0087] Fig.16 It is a curve diagram of the iteration result of the objective function of the SSA optimization algorithm with an initial range of -50 to 50 provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0088] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.
[0089] Terminology explanation:
[0090] (1) Helicopter six forces: This term refers to the force acting on the helicopter's center of gravity along the fuselage coordinate system. The forces in three directions and the corresponding moments.
[0091] (2) Six-force equations for helicopters: The six-force equations are a set of nonlinear equations for calculating the force conditions of a target helicopter. Numerical methods are usually used to calculate their general solutions.
[0092] (3) Helicopter balancing process: In the present invention, the helicopter balancing process specifically refers to the process of solving the six-force element equations for the target model and obtaining the numerical values of the unknowns required to achieve a balanced state in the target environment based on the unknowns of the equations under the condition that the six-force element equations of the target model are known.
[0093] (4) Helicopter control quantities and attitude quantities: In the present invention, control quantities refer to the control quantities that can be manipulated by the pilot, which include four in total, namely, the rotor collective pitch, the tail rotor collective pitch, the rotor lateral cyclic pitch change, and the rotor longitudinal cyclic pitch change; attitude quantities refer to the position state of the helicopter fuselage, which include two in total, namely, the helicopter pitch attitude and the roll attitude (with the head and tail of the fuselage as the front and rear directions, and the two sides as the left and right directions. The angle change in the front and rear direction is called pitch, and the angle change in the left and right direction is called roll).
[0094] The innovation of the six-force element equation balancing method and system for shipborne helicopters provided by the embodiments of the present invention is:
[0095] Taking advantage of the SSA optimization algorithm's strong global search capability, adaptability and robustness, excellent parallelism and distributed computing performance, and flexible and adjustable algorithm advantages, by incorporating the relevant characteristics of helicopter dynamics to solve the six-force element equation balancing problem, it helps to improve the balancing efficiency, ensure that the optimal solution is found within the target range, and to a certain extent adapt to different flight missions and constraints, thereby providing effective support for the flight safety and balancing performance improvement of shipborne helicopters.
[0096] Embodiment 1, as Figure 1 As shown, the six-force equation balancing method for a shipborne helicopter provided in an embodiment of the present invention specifically includes the following steps:
[0097] S1, setting the target helicopter's initial trim attitude and wind field environment information.
[0098] Set the initial attitude of the helicopter and the environmental wind field information according to the requirements. The attitude is the position of the helicopter fuselage. The initial attitude needs to set 3 attitude angle parameters and 1 flight speed parameter, which are expressed as follows: initial roll angle , initial pitch angle 、Initial pitch angle , Flight speed The environmental wind field information indicates the working environment set when the target helicopter performs trim calculations. Its parameters include two wind field parameters: wind direction and wind speed, which are expressed as follows: wind direction angle , wind speed ; The above parameters are all scalars, all angle units are °, all speed units are .
[0099] S2, define the six-force equations of the target helicopter and limit the balancing solution.
[0100] The helicopter's initial attitude and environmental wind field information are used as initial parameters. Based on the helicopter's force balance condition, the helicopter's six-force equation is established. The six forces correspond to the three fuselage forces and the three fuselage moments. The force conditions are all expressed in the fuselage coordinate system, such as Figure 2 shown.
[0101] The three fuselage forces correspond to the rearward force, lateral force, and pulling force, respectively, and are expressed as follows: , lateral force ,pull ; The moments on the three fuselages correspond to the rolling moments , pitch moment , Reverse torque .
[0102] The present invention focuses on the algorithm for solving the balancing process, so the construction method of the six-force element equation is not unique. The present invention takes the conventional construction method as an example, mainly reflecting the necessary elements of the balancing solution of the equation. The helicopter six-force element equation mainly considers the influence of the rotor, tail rotor, horizontal tail, vertical tail, fuselage, and gravity, and is represented by the following symbols in the equation:
[0103] The forces on the three rotors are expressed as follows: The backward force on the rotor , lateral force on the rotor , the pull on the rotor ;
[0104] The moments of the three rotors are expressed as follows: The rolling moment of the rotor , the pitch moment of the rotor , the anti-torque on the rotor ;
[0105] The force on a tail rotor is expressed as: The lateral force on the tail rotor ;
[0106] The moments of the three tail rotors are expressed as follows: The rolling moment of the tail rotor , the pitch moment on the tail rotor , the reaction torque on the tail rotor ;
[0107] The forces on the two horizontal tails are expressed as follows: The rearward force on the horizontal tail , the tension on the horizontal tail ;
[0108] The forces on the two vertical tails are expressed as follows: The rearward force on the vertical tail , lateral force on the vertical tail ;
[0109] The moments of the three vertical tails are expressed as follows: The rolling moment of the vertical tail , pitching moment on the vertical tail , the reaction torque on the vertical tail ;
[0110] The three fuselage forces are expressed as follows: The rearward force on the fuselage , lateral force on the fuselage , the tension on the fuselage ;
[0111] The moments acting on the three fuselages are expressed as follows: The rolling moment acting on the fuselage , the pitch moment of the fuselage 、Reaction torque on the fuselage ;
[0112] The components of gravity acting on the helicopter in each direction are expressed as follows: The component of gravity acting on the helicopter in the backward direction is The backward component of the gravity on the helicopter is The backward component of the gravity on the helicopter is ;
[0113] The six-force element equation is:
[0114] .
[0115] The six-force equation balancing quantities are divided into two categories. The first category is the helicopter control quantity, and the second category is the helicopter attitude quantity. There are four control quantities, namely, rotor collective pitch , tail rotor collective pitch , Rotor lateral cyclic pitch change , Rotor longitudinal cyclic pitch variation ; The attitude value is the position and attitude of the helicopter fuselage, including the helicopter pitch angle , Roll Angle The present invention focuses on the balancing solution process of the six-force element equation, so there is no special requirement for the specific force calculation formula of each force unit in the equation, but it is necessary to ensure that each force and moment is a function of the set balancing amount, that is:
[0116] .
[0117] S3, set the basic parameters and balancing interval of the SSA algorithm.
[0118] The SSA algorithm defines a new fitness function and improves the fitness calculation method of the SSA algorithm, so that the results calculated by the algorithm during the iteration process meet the requirements of the helicopter dynamics six-force element equation to achieve force balance; by incorporating prior knowledge of helicopter dynamics, setting the search range of each balancing amount, and through discrete search ranges, the SSA algorithm is specialized to solve the six-force element equation balancing problem, avoiding balancing results that do not meet actual control requirements;
[0119] Based on the determined six-force element equation and the balancing solution, the sparrow search algorithm (hereinafter referred to as the SSA algorithm) is used to balance the equation. This algorithm simulates the foraging process of a sparrow population. The sparrow is the iterative operator in the algorithm. In the problem of balancing the six-force element equation, the spatial dimension Solved by balancing The number is determined by setting In the dimensional search space, there are sparrows, the position of each sparrow represents a solution, then the sparrow population position set is expressed as: , sparrows are given three attributes, namely, discoverer, follower, and vigilant. The position of the discoverer is represented by , the position of the follower is expressed as , the position of the sentinel is expressed as ; The location information of the discoverer, follower, and sentinel belongs to the sparrow population location information set , the number of discoverers in the population is , the number of followers is , the number of alerters is ; The same individual can have the attributes of discoverer and vigilant successively, or follower and vigilant successively, but cannot have the attributes of discoverer and follower successively; each sparrow individual position In the six-force element equation balancing problem, the target solution is expressed as The individual positions are expressed as: ; Individual positions in a sparrow population The fitness value The size of the fitness is divided into The calculation formula is:
[0120] ;
[0121] No. The fitness of an individual is expressed as ,Will Substitute the six force element equations in turn and calculate the first The force of the six elements corresponding to each individual position , which are expressed as follows: The backward force calculated from the individual positions , lateral force ,pull , rolling moment , pitch moment , Reverse torque , thus obtaining The location of an individual Fitness .
[0122] According to the inherent properties of the target helicopter, the search range of each trim value is set, and the rotor collective pitch The search range is expressed as , tail rotor collective pitch The search range is expressed as , Rotor lateral cyclic pitch change The search range is expressed as , Rotor longitudinal cyclic pitch variation The search range is expressed as , Helicopter pitch angle The search range is expressed as , Roll Angle The search range is expressed as ;in, is the search lower limit of each balancing amount, is the search upper limit of each balancing amount; the sparrow search algorithm initializes the population position according to the search range, and then assigns attributes to each individual, so as to update the position according to the rules;
[0123] Sparrow search algorithm total iteration rounds, then All sparrow populations in rounds are expressed as: , express The set of all sparrow populations in rounds, Respectively Rounds The sparrow population obtained by the iteration; The set of individual positions in the wheel population is expressed as , Indicates The set of positions of each sparrow in a sparrow population, Respectively represent The sparrow population The location of each sparrow; The fitness corresponding to each individual position in the population of the wheel is expressed as , Indicates The set of fitness values corresponding to the positions of each sparrow in a sparrow population, Respectively represent The sparrow population The fitness corresponding to the position of each sparrow; The first The position of each individual contains elements represented by , Indicates In the sparrow population The location information of each sparrow. It represents the balancing result of the sparrow individual to the six-force equation, Indicates the rotor collective pitch trim result, Indicates the tail rotor trim result. Indicates the rotor lateral cyclic pitch trim result. Indicates the result of the rotor longitudinal cyclic pitch trim. Indicates the helicopter pitch angle trim result. Indicates the helicopter roll angle trim result; Indicates In the population of the round iteration The individual The location of the dimension, .
[0124] S4, setting of the internal operator update rule of the SSA algorithm.
[0125] The position update formula of the individual determined as the discoverer in each round is:
[0126] ;
[0127] in, The set of positions of each individual in the population of wheels is the current iteration number; Indicated in At the iteration, The individual in The location of the dimension, ; Indicated in At the iteration, The individual in The location of the dimension, ; A constant representing the number of iterations. yes A random number in the range, is the alarm value, , represents the safety threshold, ; is a random number and follows a normal distribution. yes The matrix of Each element in is 1; when When the individual alarm value is less than the safety threshold, it means that there are no predators around and it is safe, and the discoverer can search for food extensively; if , it means that the alert sparrows have discovered the predator, and all sparrows immediately take action to fly to other safe areas; except for the discoverer, the remaining sparrows are followers, and the position update of the followers is as follows:
[0128] ;
[0129] The minimum fitness among the fitness corresponding to all discoverers in this round is defined as , the corresponding individual position is expressed as , representing the discoverer in The best position obtained in the round; the maximum fitness among the fitness corresponding to all individuals in this round is defined as , the corresponding individual position is expressed as , indicating that The worst position achieved in the round; yes A matrix where each element is randomly assigned to 1 or -1. , express The transpose of Represents the calculated position update parameter; when When , the follower with poor fitness value updates its position;
[0130] When individuals in the population sense danger, that is, the sparrow's early warning mechanism is triggered, in the simulation, 20% of the individuals in the total population are responsible for danger warning, and these individuals will be given the attribute of sentinel in addition to their original attributes.
[0131] ;
[0132] The minimum fitness among the fitness corresponding to all individuals in this round is defined as ,in Represents the best position of all individuals in the population in all rounds so far; is the step size parameter of the individual movement, which is a random number that conforms to the normal distribution with a variance of 1 and a mean of 0. The random number is randomly generated by the algorithm according to the specified distribution during each round of iteration; yes Round The fitness function value of each individual; is a constant; express The worst fitness among all fitness results in the round, express The worst position of all individuals in the round population; When , it means that the sparrow is at the edge of the group and needs to fly to the best position of the group; when When , it means that the individuals in the middle of the population are aware of the danger and need to move closer to other individuals; is the step length control coefficient, indicating the direction of individual movement, The value of is a random number between -1 and 1, randomly selected during each iteration.
[0133] S5, solution and statistics of the average optimal balancing results of the six-force element equation.
[0134] Searching inside the Sparrow algorithm Rounds of iterations to determine the minimum fitness , and the individual position corresponding to the fitness , the position information of each dimension corresponding to the individual position is ,express The optimal balancing result of the six-force element equation in the rounds is represented by the rotor total pitch of the six-force element equation under the target working condition. The best balancing result in rounds , tail rotor collective pitch The best balancing result in rounds , Rotor lateral cyclic pitch change The best balancing result in rounds , Rotor longitudinal cyclic pitch variation The best balancing result in rounds , Helicopter pitch angle The best balancing result in rounds 、Helicopter roll angle The best balancing result in rounds ;
[0135] Repeat the balancing process times, and The average value of the position information of each dimension corresponding to the best position obtained by the secondary balancing result is calculated to obtain , which are respectively expressed as the average optimal trim results of the rotor collective pitch under the target working conditions of the six-force equation , tail rotor collective pitch average optimal trim result , the average optimal trim result of rotor lateral periodic pitch change , the average optimal trim result of the rotor longitudinal periodic pitch change , helicopter pitch angle average optimal trim result , helicopter roll angle average optimal trim result .
[0136] The six-force equation balancing system for shipborne helicopters provided in an embodiment of the present invention comprises:
[0137] Parameter setting module, used to set the target helicopter's initial trim attitude and wind field environment information;
[0138] Equation building module, used to define the six-force equations of the target helicopter and limit the trim solution;
[0139] SSA algorithm setting module, used to set the basic parameters and balancing interval of the SSA algorithm;
[0140] Update rule setting module, used to set the update rule of the internal operator of SSA algorithm;
[0141] The equation balancing module is used to solve and count the average optimal balancing results of the six-force element equation.
[0142] Embodiment 2, as a preference, the six-force element equation balancing method for a shipborne helicopter provided in the embodiment of the present invention specifically comprises the following steps:
[0143] S1, setting the target helicopter's initial trim attitude and wind field environment information.
[0144] Set the initial attitude of the helicopter and the environmental wind field information according to the requirements. The attitude is the position of the helicopter fuselage. The initial attitude needs to set 3 attitude angle parameters and 1 flight speed parameter, which are expressed as follows: initial roll angle , initial pitch angle 、Initial pitch angle , Flight speed The environmental wind field information indicates the working environment set when the target helicopter performs trim calculations. Its parameters include two wind field parameters: wind direction and wind speed, which are expressed as follows: wind direction angle , wind speed ; The above parameters are all scalars. The change of parameters determines the balancing condition of the six-force equation. In this example, the initial roll angle is , initial pitch angle 、Initial pitch angle , Flight speed , wind direction angle , wind speed .
[0145] S2, define the six-force equations of the target helicopter and limit the balancing solution.
[0146] The helicopter initial attitude and environmental wind field information are used as initial parameters. Based on the helicopter force balance condition, the helicopter six-force equation is established. The six forces correspond to the three fuselage forces and the three fuselage moments. The force conditions are expressed in the fuselage coordinate system, such as Figure 3 shown.
[0147] The three fuselage forces correspond to the rearward force, lateral force, and pulling force, respectively, and are expressed as follows: , lateral force ,pull ; The moments on the three fuselages correspond to the rolling moments , pitch moment , Reverse torque .
[0148] The present invention focuses on the algorithm for solving the balancing process, so the construction method of the six-force element equation is not unique. The present invention takes the conventional construction method as an example, mainly reflecting the necessary elements of the balancing solution of the equation. The helicopter six-force element equation mainly considers the influence of the rotor, tail rotor, horizontal tail, vertical tail, fuselage, and gravity, and is represented by the following symbols in the equation:
[0149] The forces on the three rotors are expressed as follows: The backward force on the rotor , lateral force on the rotor , the pull on the rotor ;
[0150] The moments of the three rotors are expressed as follows: The rolling moment of the rotor , the pitch moment of the rotor , the anti-torque on the rotor ;
[0151] The force on a tail rotor is expressed as: The lateral force on the tail rotor ;
[0152] The moments of the three tail rotors are expressed as follows: The rolling moment of the tail rotor , the pitch moment on the tail rotor , the reaction torque on the tail rotor ;
[0153] The forces on the two horizontal tails are expressed as follows: The rearward force on the horizontal tail , the tension on the horizontal tail ;
[0154] The forces on the two vertical tails are expressed as follows: The rearward force on the vertical tail , lateral force on the vertical tail ;
[0155] The moments of the three vertical tails are expressed as follows: The rolling moment of the vertical tail , pitching moment on the vertical tail , the reaction torque on the vertical tail ;
[0156] The three fuselage forces are expressed as follows: The rearward force on the fuselage , lateral force on the fuselage , the tension on the fuselage ;
[0157] The moments acting on the three fuselages are expressed as follows: The rolling moment acting on the fuselage , the pitch moment of the fuselage 、Reaction torque on the fuselage ;
[0158] The components of gravity acting on the helicopter in each direction are expressed as follows: The component of gravity acting on the helicopter in the backward direction is The backward component of the gravity on the helicopter is The backward component of the gravity on the helicopter is ;
[0159] The six-force element equation is:
[0160] .
[0161] The six-force equations are divided into two categories: the first category is the helicopter control quantity, and the second category is the helicopter attitude quantity; the control quantity includes the rotor collective pitch , tail rotor collective pitch , Rotor lateral cyclic pitch change , Rotor longitudinal cyclic pitch variation ; The attitude value is the position and attitude of the helicopter fuselage, including the helicopter pitch angle , Roll Angle ; In the process of solving the balancing of the six-force equation, each force and moment is a function of the set balancing amount;
[0162] The six-force element equation is expressed as:
[0163] .
[0164] S3, set the basic parameters and balancing interval of the SSA algorithm.
[0165] The SSA algorithm defines a new fitness function and improves the fitness calculation method of the SSA algorithm, so that the results calculated by the algorithm during the iteration process meet the requirements of the helicopter dynamics six-force element equation to achieve force balance; by incorporating prior knowledge of helicopter dynamics, setting the search range of each balancing amount, and through discrete search ranges, the SSA algorithm is specialized to solve the six-force element equation balancing problem, avoiding balancing results that do not meet actual control requirements;
[0166] Based on the determined six-force element equation and the balancing solution, the sparrow search algorithm (hereinafter referred to as the SSA algorithm) is used to balance the equation. This algorithm simulates the foraging process of a sparrow population. The sparrow is the iterative operator in the algorithm. In the problem of balancing the six-force element equation, the spatial dimension Solved by balancing The number is determined by setting In the dimensional search space, there are sparrow, set in the example ; The position of each sparrow represents a solution, then the sparrow population position set is expressed as: , sparrows are given three attributes, namely, discoverer, follower, and vigilant. The position of the discoverer is represented by , the position of the follower is expressed as , the position of the sentinel is expressed as ; The location information of the discoverer, follower, and sentinel belongs to the sparrow population location information set , the number of discoverers in the population is , the number of followers is , the number of alerters is ; The same individual can have the attributes of discoverer and vigilant successively, or follower and vigilant successively, but cannot have the attributes of discoverer and follower successively; each sparrow individual position In the six-force element equation balancing problem, the target solution is expressed as The individual positions are expressed as: ; Individual positions in a sparrow population The fitness value The size of the fitness is divided into The calculation formula is:
[0167] ;
[0168] No. The fitness of an individual is expressed as ,Will Substitute the six force element equations in turn and calculate the first The force of the six elements corresponding to each individual position , which are expressed as follows: The backward force calculated from the individual positions , lateral force ,pull , rolling moment , pitch moment , Reverse torque , thus obtaining The location of an individual Fitness .
[0169] According to the inherent properties of the target helicopter, the search range of each trim value is set, and the rotor collective pitch The search range is expressed as , tail rotor collective pitch The search range is expressed as , Rotor lateral cyclic pitch change The search range is expressed as , Rotor longitudinal cyclic pitch variation The search range is expressed as , Helicopter pitch angle The search range is expressed as , Roll Angle The search range is expressed as ;in, is the search lower limit of each balancing amount, is the search upper limit of each trim amount; the sparrow search algorithm initializes the population position according to the search range, and then assigns attributes to each individual, so as to update the position according to the rules; according to the dynamic characteristics of the target helicopter itself, the search range of each trim amount is set as shown in Table 1.
[0170] Table 1 Target balancing solution search range:
[0171]
[0172] The setting of the trim search range needs to be set according to the target control joystick stroke and the overall attitude limit of the fuselage. On this basis, the algorithm initializes the population position according to the search range, and then assigns attributes to each individual, so as to update the position according to the rules.
[0173] Sparrow search algorithm total iteration rounds, then All sparrow populations in rounds are expressed as: , express The set of all sparrow populations in rounds, Respectively Rounds The sparrow population obtained by the iteration; The set of individual positions in the wheel population is expressed as , Indicates The set of positions of each sparrow in a sparrow population, Respectively represent The sparrow population The location of each sparrow; The fitness corresponding to each individual position in the population of the wheel is expressed as , Indicates The set of fitness values corresponding to the positions of each sparrow in a sparrow population, Respectively represent The sparrow population The fitness corresponding to the position of each sparrow; The first The position of each individual contains elements represented by , Indicates In the sparrow population The location information of each sparrow. It represents the balancing result of the sparrow individual to the six-force equation, Indicates the rotor collective pitch trim result, Indicates the tail rotor trim result. Indicates the rotor lateral cyclic pitch trim result. Indicates the result of the rotor longitudinal cyclic pitch trim. Indicates the helicopter pitch angle trim result. Indicates the helicopter roll angle trim result; Indicates In the population of the round iteration The individual The location of the dimension, .
[0174] S4, setting of the internal operator update rule of the SSA algorithm.
[0175] The position update formula of the individual determined as the discoverer in each round is:
[0176] ;
[0177] in, The set of positions of each individual in the population of wheels is the current iteration number; Indicated in At the iteration, The individual in The location of the dimension, ; Indicated in At the iteration, The individual in The location of the dimension, ; A constant representing the number of iterations. yes A random number in the range, is the alarm value, , represents the safety threshold, ; is a random number and follows a normal distribution. yes The matrix of Each element in is 1; when When the individual alarm value is less than the safety threshold, it means that there are no predators around and it is safe, and the discoverer can search for food extensively; if , it means that the alert sparrows have discovered the predator, and all sparrows immediately take action to fly to other safe areas; except for the discoverer, the remaining sparrows are followers, and the position update of the followers is as follows:
[0178] ;
[0179] The minimum fitness among the fitness corresponding to all discoverers in this round is defined as , the corresponding individual position is expressed as , representing the discoverer in The best position obtained in the round; the maximum fitness among the fitness corresponding to all individuals in this round is defined as , the corresponding individual position is expressed as , indicating that The worst position achieved in the round; yes A matrix where each element is randomly assigned to 1 or -1. , express The transpose of Represents the calculated position update parameter; when When , the follower with poor fitness value updates its position;
[0180] When individuals in the population sense danger, the sparrow's early warning mechanism is triggered; in the simulation, 20% of the individuals in the total population are responsible for danger warning, and these individuals are given the alert attribute on top of their original attributes;
[0181] ;
[0182] The minimum fitness among the fitness corresponding to all individuals in this round is defined as ,in Represents the best position of all individuals in the population in all rounds so far; is the step size parameter of the individual movement, which is a random number that conforms to the normal distribution with a variance of 1 and a mean of 0. The random number is randomly generated by the algorithm according to the specified distribution during each round of iteration; yes Round The fitness function value of each individual; is a constant; express The worst fitness among all fitness results in the round, express The worst position of all individuals in the round population; When , it means that the sparrow is at the edge of the group and needs to fly to the best position of the group; when When , it means that the individuals in the middle of the population are aware of the danger and need to move closer to other individuals; is the step length control coefficient, indicating the direction of individual movement, The value of is a random number between -1 and 1, randomly selected during each iteration.
[0183] S5, solution and statistics of the average optimal balancing results of the six-force element equation.
[0184] Searching inside the Sparrow algorithm Rounds of iterations to determine the minimum fitness , and the individual position corresponding to the fitness , the position information of each dimension corresponding to the individual position is ,express The optimal balancing result of the six-force element equation in the rounds is represented by the rotor total pitch of the six-force element equation under the target working condition. The best balancing result in rounds , tail rotor collective pitch The best balancing result in rounds , Rotor lateral cyclic pitch change The best balancing result in rounds , Rotor longitudinal cyclic pitch variation The best balancing result in rounds , Helicopter pitch angle The best balancing result in rounds 、Helicopter roll angle The best balancing result in rounds ;
[0185] like Figure 4 As shown in the figure The rotor collective pitch trim results for the six-force equation within rounds, rounds , taking the rotor collective pitch as an example, the optimal trim result of the rotor collective pitch in this round is the value at which the curve in the figure finally maintains stability, then The remaining control variables are The best balancing result within each round is selected in the same way, and the value when the final optimal balancing amount fitting curve remains stable is taken.
[0186] Repeat the balancing process times, and The average value of the position information of each dimension corresponding to the best position obtained by the secondary balancing result is calculated to obtain , which are respectively expressed as the average optimal trim results of the rotor collective pitch under the target working conditions of the six-force equation , tail rotor collective pitch average optimal trim result , the average optimal trim result of rotor lateral periodic pitch change , the average optimal trim result of the rotor longitudinal periodic pitch change , helicopter pitch angle average optimal trim result , helicopter roll angle average optimal trim result .
[0187] According to the above steps, the target six-force element equations are balanced using the SSA algorithm. times, among which ,The balancing results of the target six-force element equation are shown in Table 2.
[0188] Table 2 Target six-force equation balancing result record table:
[0189]
[0190] Thus, the average optimal balancing result of the six-force element equations under the target working condition by balancing with the SSA algorithm can be obtained. This method has an advantage in efficiency compared to the traditional Newton iteration method, and the comparison results are shown in Tables 3 and 4. The target equation is a classic nonlinear equation system. The initial value setting of the Newton iteration method can only be set for a single point, so its initial value is set to 5, 10, and 50. The initial value of the SSA optimization algorithm is set to a range area, so its initial range is set to (-5, 5), (-10, 10), and (-50, 50). When the iteration result differs from the target optimal result by less than 0.00001, it is considered to meet the solution effect and the iteration ends. The algorithm's solution process and results for the target test function are shown in the figure. Figure 5-Figure 6 , Figure 7-Figure 8 , Figure 9-10 shown.
[0191] Table 3 Newton iteration method solution results for the target test function:
[0192]
[0193] The iterative results of the objective function of the SSA optimization algorithm (the initial range is -5~5) are as follows Figure 11-Figure 12 As shown, the iterative results of the objective function of the SSA optimization algorithm (the initial range is -10~10) are as follows Figure 13-14 As shown, the iterative results of the objective function of the SSA optimization algorithm (the initial range is -50~50) are as follows Figure 15-16 shown.
[0194] Table 4 Solution results of SSA optimization algorithm for target test function:
[0195]
[0196] After comparison, it can be clearly seen that the computational efficiency of the sparrow optimization algorithm is significantly higher than that of the Newton iteration method. For the solution process of the target test function, the iterative result of the Newton iteration method has a large oscillation amplitude, and its fitness will have a maximum value. Fitness is the standard for judging whether the iterative result meets the requirements, and its change trend directly reflects the convergence of the solution process. The iterative curve of the sparrow optimization algorithm is relatively smooth overall, and its trend changes gradually approach the optimal solution, and it has a higher tolerance for function convergence. Therefore, it can be concluded that for problems such as the balancing of the six-force element equations that require solving complex nonlinear equations, the sparrow optimization algorithm has higher computational efficiency and convergence speed than the Newton iteration method.
[0197] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0198] Since the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention, their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0199] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment.
[0200] According to an embodiment of the present application, the present invention also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0201] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0202] An embodiment of the present invention further provides an information data processing terminal, which, when executed on an electronic device, provides a user input interface to implement the steps in the above method embodiments. The information data processing terminal is not limited to mobile phones, computers, and switches.
[0203] An embodiment of the present invention further provides a server, which is used to provide a user input interface to implement the steps in the above method embodiments when executed on an electronic device.
[0204] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0205] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0206] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered by the protection scope of the present invention.
Claims
1. A six-force equation balancing method for a shipborne helicopter, characterized in that: The method includes: S1, setting the initial trim attitude of the target helicopter and the wind field environment information; S2, define the six-force equations of the target helicopter and limit the trim solution; S3, set the basic parameters and balancing interval of the SSA algorithm; The basic parameters of the SSA algorithm include: based on the determined six-force element equations and the balancing solution, the equations are balanced and solved using the sparrow search algorithm; the sparrow search algorithm simulates the foraging process of the sparrow population, and the sparrow is the iterative operator in the algorithm. In the problem of balancing the six-force element equation, the spatial dimension D is determined by the balancing solution. The number of sparrows is determined by assuming that there are N sparrows in the D-dimensional search space, and the position X of each sparrow represents a solution. Then the position set of the sparrow population is expressed as: X = {X1, X2…X N }, sparrows are given three attributes, namely discoverer, follower, and vigilant, and the position of the discoverer is represented by X d , the position of the follower is represented by X f , the position of the sentinel is represented by X v ; The location information of the discoverer, follower, and sentinel belongs to the sparrow population location information set {X d , X f , X v }∈X, the number of discoverers in the population is N d =0.2N, the number of followers is N f =0.8N, the number of guards is N v =0.2N; the same individual has the attributes of discoverer and vigilant successively, or has the attributes of follower and vigilant successively, but cannot have the attributes of discoverer and follower successively; the position X of each sparrow individual is represented by the target solution. In the six-force element equation balancing problem, the position of the i-th individual is represented as: The quality of individual positions X in the sparrow population is divided according to the size of the fitness value P. The fitness value P calculation formula is: P=sqrt((F X -0) 2 +(F Y -0) 2 +(F Z -0) 2 +(M X -0) 2 +(M Y -0) 2 +(M z -0) 2 ) / 6 The fitness of the i-th individual is expressed as P S,i ,Will Substitute the six-force element equations in turn to calculate the six-force element force corresponding to the i-th individual position {F x,i , F y,i , F z,i , M x,i , M y,i , M z,i }, which are expressed as: The backward force F calculated according to the position of the i-th individual x,i , lateral force F y,i , tension F z,i , rolling moment M x,i , pitch moment M y,i , counter torque M z,i , thus obtaining the position X of the i-th individual i The fitness P S,i ; The SSA algorithm defines a new fitness function and improves the fitness calculation method of the SSA algorithm, so that the results calculated by the algorithm during the iteration process meet the requirements of the helicopter dynamics six-force element equation to achieve force balance; by incorporating prior knowledge of helicopter dynamics, setting the search range of each balancing amount, and through discrete search ranges, the SSA algorithm is specialized to solve the six-force element equation balancing problem, avoiding balancing results that do not meet actual control requirements; The search range of each trim value is set according to the inherent properties of the target helicopter, and the search range of each trim value is used as the algorithm trim interval. M The search range is denoted as R M ∈[θ M,d ,θ M,u ]、Tail rotor collective pitch θ T The search range is denoted as R T ∈[θ T,d ,θ T,u ]、Rotor lateral periodic pitch variation θ c The search range is denoted as R c ∈[θ c,d ,θ c,u ]、Rotor longitudinal periodic pitch variation θ s The search range is denoted as R s ∈[θ s,d ,θ s,u ]、Helicopter pitch angle θ f The search range is denoted as R f,θ ∈[θ f,d ,θ f,u ]、Roll angle The search range is expressed as Among them, θ M,d ,θ T,d ,θ c,d ,θ s,d ,θ f,d , is the search lower limit of each balancing amount, θ M,u ,θ T,u ,θ c,u ,θ s,u ,θ f,u , is the search upper limit of each balancing amount; the sparrow search algorithm initializes the population position according to the search range, and then assigns attributes to each individual, so as to update the position according to the rules; The sparrow search algorithm iterates for T rounds, and all the sparrow populations in T rounds are expressed as: X T ={X 1 , X 2 …X t , X t+1 …X T }, t = 1, 2…T, X T represents the set of all sparrow populations in T rounds, X 1 , X 2 …X t , X t+1 …X T They represent the sparrow populations obtained from the 1st, 2nd…t, t+1…T iterations in T rounds respectively; the position set of each individual in the population of the tth round is expressed as represents the set of positions of each sparrow in the t-th sparrow population, They represent the positions of the 1st, 2nd…t, t+1…Tth sparrow individuals in the tth sparrow population respectively; the fitness corresponding to the position of each individual in the tth round population is expressed as P t represents the set of fitness values corresponding to the positions of each sparrow in the t-th sparrow population, They represent the fitness of the 1st, 2nd…t, t+1…Tth individual sparrows in the tth sparrow population respectively; the position of the i-th individual in the tth round population contains elements expressed as represents the position information of the i-th sparrow in the t-th sparrow population, It represents the balancing result of the sparrow individual to the six-force equation, Indicates the rotor collective pitch trim result, Indicates the tail rotor trim result. Indicates the rotor lateral cyclic pitch trim result. Indicates the result of the rotor longitudinal cyclic pitch trim. Indicates the helicopter pitch angle trim result. Indicates the helicopter roll angle trim result; represents the position of the jth dimension of the i-th individual in the population at the t-th iteration, j = 1, 2…D; S4, setting of the internal operator update rule of the SSA algorithm; S5, solution and statistics of the average optimal balancing results of the six-force element equation; Determine the minimum fitness through T rounds of iterations within the sparrow search algorithm And the individual position corresponding to this fitness The position information of each dimension corresponding to the individual position is It represents the optimal balancing result of the six-force element equation within T rounds, and the elements are represented as the optimal balancing result of the rotor collective pitch of the six-force element equation under the target working condition within T rounds. Optimal trim result of tail rotor collective pitch within T rounds The optimal trim result of rotor lateral periodic pitch change within T rounds Optimal trim result of rotor longitudinal cyclic pitch change within T rounds Optimal trim result of helicopter pitch angle in T rounds The optimal trim result of helicopter roll angle in T rounds Repeat the balancing process Q times, and calculate the average value of the position information of each dimension corresponding to the best position obtained by the Q balancing results, so as to obtain The optimal trim results of the rotor collective pitch under the target working condition are expressed as follows: Average optimal trim result of tail rotor collective pitch Average optimal trim result of rotor lateral periodic pitch change Average optimal trim result of rotor longitudinal cyclic pitch variation Average optimal trim result of helicopter pitch angle Average optimal trim result of helicopter roll angle 2. The six-force equation balancing method for shipborne helicopters according to claim 1 is characterized in that: In step S1, the target helicopter trim initial attitude quantity and wind field environment information are set, including: setting the helicopter initial attitude quantity and environmental wind field information; Among them, the initial attitude of the helicopter is the position state of the helicopter fuselage. The initial attitude sets 3 attitude angle parameters and 1 flight speed parameter, which are expressed as follows: initial roll angle θ0, initial pitch angle Initial pitch angle Flight speed v; The environmental wind field information indicates the working environment set when the target helicopter performs trim calculations. The parameters include two wind field parameters: wind direction and wind speed, which are expressed as follows: wind direction angle θ w , wind speed v w ; The above parameters are all scalars, all angle units are °, and all speed units are m / s.
3. The six-force equation balancing method for a shipborne helicopter according to claim 2, characterized in that: In step S2, the helicopter initial attitude and environmental wind field information are used as initial parameters, and based on the helicopter force balance condition, the helicopter six-force equation is established. The six forces correspond to the three fuselage forces and the three fuselage moments, and the force conditions are all expressed in the fuselage coordinate system; the three fuselage forces correspond to the backward force, lateral force and pulling force, respectively, which are expressed as follows: The backward force F x , lateral force F y , tension F z ; The moments on the three fuselages correspond to the rolling moments M x , pitch moment M y , counter torque M z .
4. The six-force equation balancing method for a shipborne helicopter according to claim 1, characterized in that: In step S2, the six-force equations of the target helicopter are defined, including: The forces on the three rotors are expressed as follows: The backward force F on the rotor x,M , lateral force F on the rotor y,M , the pull force F on the rotor z,M ; The moments of the three rotors are expressed as follows: The rolling moment M x,M , the pitch moment M of the rotor y,M 、Reaction torque M on the rotor z,M ; The force on a tail rotor is expressed as: The lateral force F on the tail rotor y,T ; The moments of the three tail rotors are expressed as follows: The rolling moment of the tail rotor M x,T 、The pitch moment M on the tail rotor y,M 、Reaction torque M on tail rotor z,M ; The forces on the two horizontal tails are expressed as follows: The rearward force on the horizontal tail F x,H 、Tension force F on the horizontal tail z,H ; The forces on the two vertical tails are expressed as follows: The rearward force F on the vertical tail x,V , lateral force F on the vertical tail z,V ; The moments of the three vertical tails are expressed as follows: The rolling moment of the vertical tail M x,V 、The pitching moment M on the vertical tail y,V 、Reaction torque M on the vertical tail z,V ; The forces on the three fuselages are expressed as follows: The rearward force on the fuselage is F x,F 、The lateral force F on the fuselage y,F 、Tension force F on the fuselage z,F ; The moments of the three fuselages are expressed as follows: The rolling moment M x,F 、Pitch moment M on the fuselage y,F 、Reaction torque M on the fuselage z,F ; The components of gravity acting on the helicopter in each direction are expressed as follows: The component of gravity acting on the helicopter in the rear direction is G x The backward component of the gravity on the helicopter is G y The backward component of the gravity on the helicopter is G z ; The six-force equation is constructed as follows: Among them, the three fuselage forces correspond to the rearward force F x , lateral force F y , tension F z The moments on the three fuselages correspond to the rolling moments M x , pitch moment M y , counter torque M z .
5. The six-force equation balancing method for a shipborne helicopter according to claim 1, characterized in that: In step S2, the six-force equations are divided into two categories: the first category is the helicopter control quantity, and the second category is the helicopter attitude quantity; The control variables include: rotor collective pitch θ M 、Tail rotor collective pitch θ T 、Rotor lateral periodic pitch variation θ c 、Rotor longitudinal periodic pitch θ s ; The attitude quantity is the position and attitude state of the helicopter fuselage, including: the helicopter pitch angle θ f , Roll Angle In the balancing solution of the six-force element equation, each force and moment is a function of the set balancing amount; The six-force element equation is expressed as: Among them, the three fuselage forces correspond to the rear force F x , lateral force F y , tension F z The moments on the three fuselages correspond to the rolling moments M x , pitch moment M y , counter torque M z The backward component of the gravity on the helicopter is G x The backward component of the gravity on the helicopter is G y The backward component of the gravity on the helicopter is G z .
6. The shipborne helicopter six-force equation balancing method according to claim 1, characterized in that: In step S4, the internal operator update rule of the SSA algorithm is set, including: The position update formula of the individual determined as the discoverer in each round is: Among them, the position set of each individual in the population at the t-th round is the current number of iterations; represents the position of the i-th individual in the j-th dimension at the t-th iteration, where j = 1, 2, …, D; represents the position of the i-th individual in the j-th dimension at the (t + 1)-th iteration, where j = 1, 2, …, D; T represents a constant for the number of iteration rounds, α is a random number in the range (0, 1], R2 is an alarm value, R2 ∈ [0, 1], ST is a safety threshold, ST ∈ [0.5, 1]; Q is a random number and follows a normal distribution, L is a 1×D matrix, and each element in L is 1; when R2 < ST, it means that the alarm value of the individual is less than the safety threshold, indicating that there are no predators around and it is safe, and the discoverer can search for food widely; if R2 > ST, it means that vigilant sparrows have discovered a predator, and all sparrows immediately take action to fly to other safe areas; except for the discoverer, the remaining sparrows are all followers, and the position update of the followers is shown as follows: The minimum fitness among the fitness corresponding to all discoverers in this round is defined as The position of the corresponding individual is expressed as represents the best position obtained by the discoverer in round t; the maximum fitness among the fitnesses corresponding to all individuals in this round is defined as The position of the corresponding individual is expressed as represents the worst position obtained in round t; A is a 1×D matrix, each element of which is randomly assigned to 1 or -1, A + =A T (AA T ) -1 , A T represents the transpose of A, A + Indicates the calculated position update parameter; when i>N f / 2, the followers with poor fitness values update their positions; When individuals in the population sense danger, the sparrow's early warning mechanism is triggered; in the simulation, 20% of the individuals in the total population are responsible for danger warning, and these individuals are given the alert attribute on top of their original attributes; The minimum fitness among the fitness corresponding to all individuals in this round is defined as in It represents the best position of all individuals in the population in all rounds so far; β is the step size parameter of individual movement, which is a random number with a normal distribution of variance 1 and mean 0. The random number is randomly generated by the algorithm according to the specified distribution during each round of iteration; is the fitness function value of the ith individual in round t; ε is a constant; represents the worst fitness among all fitness results in round t, represents the worst position of all individuals in the population in round t; when When , it means that the sparrow is at the edge of the group and needs to fly to the best position of the group; when When , it means that the individual in the middle of the population is aware of the danger and needs to get closer to other individuals; K is the step control coefficient, which indicates the direction of individual movement. The value of K is a random number between -1 and 1, which is randomly selected in each iteration process.
7. A shipborne helicopter six-force equation balancing system, characterized in that: The system is used to control the shipborne helicopter six-force element equation balancing method according to any one of claims 1 to 6, and the system comprises: Parameter setting module, used to set the target helicopter's initial trim attitude and wind field environment information; The equation group building module is used to define the six-force equation group of the target helicopter and limit the trim solution; SSA algorithm setting module, used to set the basic parameters and balancing interval of the SSA algorithm; The basic parameters of the SSA algorithm include: based on the determined six-force element equations and the balancing solution, the equations are balanced and solved using the sparrow search algorithm; the sparrow search algorithm simulates the foraging process of the sparrow population, and the sparrow is the iterative operator in the algorithm. In the problem of balancing the six-force element equation, the spatial dimension D is determined by the balancing solution. The number of sparrows is determined by assuming that there are N sparrows in the D-dimensional search space, and the position X of each sparrow represents a solution. Then the position set of the sparrow population is expressed as: X = {X1, X2…X N }, sparrows are given three attributes, namely discoverer, follower, and vigilant, and the position of the discoverer is represented by X d , the position of the follower is represented by X f The position of the sentinel is represented by X v ; The location information of the discoverer, follower, and sentinel belongs to the sparrow population location information set {X d , X f , X v }∈X, the number of discoverers in the population is N d =0.2N, the number of followers is N f =0.8N, the number of guards is N v =0.2N; the same individual has the attributes of discoverer and vigilant successively, or has the attributes of follower and vigilant successively, but cannot have the attributes of discoverer and follower successively; the position X of each sparrow individual is represented by the target solution. In the six-force element equation balancing problem, the position of the i-th individual is represented as: The quality of individual positions X in the sparrow population is divided according to the size of the fitness value P. The fitness value P calculation formula is: P=sqrt((F X -0) 2 +(F Y -0) 2 +(F Z -0) 2 +(M X -0) 2 +(M Y -0) 2 +(M Z -0) 2 ) / 6 The fitness of the i-th individual is expressed as P S,i ,Will Substitute the six-force element equations in turn to calculate the six-force element force corresponding to the i-th individual position {F x,i , F y,i , F z,i , M x,i , M y,i , M z,i }, which are expressed as: The backward force F calculated according to the position of the i-th individual x,i , lateral force F y,i , tension F z,i , rolling moment M x,i , pitch moment M y,i , counter torque M z,i , thus obtaining the position X of the i-th individual i The fitness P S,i ; The SSA algorithm defines a new fitness function and improves the fitness calculation method of the SSA algorithm, so that the results calculated by the algorithm during the iteration process meet the requirements of the helicopter dynamics six-force element equation to achieve force balance; by incorporating prior knowledge of helicopter dynamics, setting the search range of each balancing amount, and through discrete search ranges, the SSA algorithm is specialized to solve the six-force element equation balancing problem, avoiding balancing results that do not meet actual control requirements; The search range of each trim value is set according to the inherent properties of the target helicopter, and the rotor collective pitch θ M The search range is denoted as R M ∈[θ M,d ,θ M,u ]、Tail rotor collective pitch θ T The search range is denoted as R T ∈[θ T,d ,θ T,u ]、Rotor lateral periodic pitch variation θ c The search range is denoted as R c ∈[θ c,d ,θ c,u ]、Rotor longitudinal periodic pitch θ s The search range is denoted as R s ∈[θ s,d ,θ s,u ]、Helicopter pitch angle θ f The search range is denoted as R f,θ ∈[θ f,d ,θ f,u ]、Roll angle The search range is expressed as Among them, θ M,d ,θ T,d ,θ c,d ,θ s,d ,θ f,d , is the search lower limit of each balancing amount, θ M,u ,θ T,u ,θ c,u ,θ s,u ,θ f,u , is the search upper limit of each balancing amount; the sparrow search algorithm initializes the population position according to the search range, and then assigns attributes to each individual, so as to update the position according to the rules; The sparrow search algorithm iterates for T rounds, and all the sparrow populations in T rounds are expressed as: X T ={X 1 , X 2 …X t , X t+1 …X T }, t = 1, 2…T, X T represents the set of all sparrow populations in T rounds, X 1 , X 2 …X t , X t+1 …X T They represent the sparrow populations obtained from the 1st, 2nd…t, t+1…T iterations in T rounds respectively; the position set of each individual in the population of the tth round is expressed as represents the set of positions of each sparrow in the t-th sparrow population, They represent the positions of the 1st, 2nd…t, t+1…Tth sparrow individuals in the tth sparrow population respectively; the fitness corresponding to the position of each individual in the tth round population is expressed as P t represents the set of fitness values corresponding to the positions of each sparrow in the t-th sparrow population, They represent the fitness of the 1st, 2nd…t, t+1…Tth individual sparrows in the tth sparrow population respectively; the position of the i-th individual in the tth round population contains elements expressed as represents the position information of the i-th sparrow in the t-th sparrow population, It represents the balancing result of the sparrow individual to the six-force equation, Indicates the rotor collective pitch trim result, Indicates the tail rotor trim result. Indicates the rotor lateral cyclic pitch trim result. Indicates the result of the rotor longitudinal cyclic pitch trim. Indicates the helicopter pitch angle trim result. Indicates the helicopter roll angle trim result; represents the position of the jth dimension of the i-th individual in the population at the t-th iteration, j = 1, 2…D; Update rule setting module, used to set the update rule of the internal operator of SSA algorithm; Equation balancing module, used for solving and statistics of average optimal balancing results of six-force equations; Determine the minimum fitness through T rounds of iterations within the sparrow search algorithm And the individual position corresponding to this fitness The position information of each dimension corresponding to the individual position is It represents the optimal balancing result of the six-force element equation within T rounds, and the elements are represented as the optimal balancing result of the rotor collective pitch of the six-force element equation under the target working condition within T rounds. Optimal trim result of tail rotor collective pitch within T rounds The optimal trim result of rotor lateral periodic pitch change within T rounds Optimal trim result of rotor longitudinal cyclic pitch change within T rounds Optimal trim result of helicopter pitch angle in T rounds The optimal trim result of helicopter roll angle in T rounds Repeat the balancing process Q times, and calculate the average value of the position information of each dimension corresponding to the best position obtained by the Q balancing results, so as to obtain The optimal trim results of the rotor collective pitch under the target working condition are expressed as follows: Average optimal trim result of tail rotor collective pitch Average optimal trim result of rotor lateral periodic pitch change Average optimal trim result of rotor longitudinal cyclic pitch variation Average optimal trim result of helicopter pitch angle Average optimal trim result of helicopter roll angle
Citation Information
Patent Citations
Traffic signal control optimization method based on improved sparrow search algorithm
CN115100864A
Coaxial helicopter balancing method
CN116150887A
