A real-time trajectory planning method, device, medium and product based on trajectory analytical solution
Through the real-time trajectory planning method based on the trajectory analytical solution, it is transformed into a multi-stage profile parameter planning problem and solved using the modified Newton method, which solves the problem of large calculation amount and low efficiency when avoiding the HGV no-fly zone, and achieves an efficient and accurate trajectory. planning.
Patent Information
- Application Number
- CN202410873553.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-02
AI Technical Summary
In the field of hypersonic glide vehicle (HGV) control, the horizontal and longitudinal motions during no-fly zone avoidance are strongly coupled and highly nonlinear, resulting in the existing multi-stage trajectory parameterization solution being computationally intensive and difficult to converge, reducing the efficiency of real-time trajectory planning. Efficiency and precision.
A real-time trajectory planning method based on trajectory analytical solutions is adopted. By obtaining the aircraft's trajectory analytical solution and waypoint constraints, it is transformed into a multi-stage profile parameter planning problem, and the modified Newton method is used for iterative solution to determine the optimal no-fly zone avoidance real-time trajectory. Planning parameters, segmentally control the horizontal and vertical flight profiles to achieve the most economical trajectory planning.
It improves the efficiency and accuracy of real-time trajectory planning for no-fly zone avoidance, realizes the adjustability and controllability of the code through a fully analytical iterative process, has real-time application capabilities, and simplifies the trajectory planning problem to only include 2n+1 trajectory parameterizations. Multistage parametric programming of expression profile parameters.
Smart Images

Figure CN118424296B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of trajectory planning technology, and in particular to a real-time trajectory planning method, device, medium and product based on trajectory analytical solution. Background Art
[0002] In the field of hypersonic glide vehicle (HGV) control, no-fly zone avoidance is the process of using trajectory analysis design methods to generate trajectories in real time under the premise of a known decision path, including trajectory analysis prediction, multi-stage trajectory parameterization solution, and tracking guidance. When avoiding a no-fly zone, the HGV has large lateral maneuvers, and its dynamics have aerodynamic characteristics of large angle of attack and large roll angle, which makes the lateral and longitudinal motions strongly coupled and highly nonlinear. At present, the multi-stage trajectory parameterization solution mostly uses the Gaussian algorithm, which has a large amount of calculation and is difficult to converge, reducing the efficiency and accuracy of real-time trajectory planning. Summary of the invention
[0003] The purpose of the present invention is to provide a real-time trajectory planning method, device, medium and product based on trajectory analytical solution, which can improve the efficiency and accuracy of real-time trajectory planning for avoiding no-fly zones.
[0004] To achieve the above-mentioned purpose, the present invention provides the following scheme: a real-time trajectory planning method based on trajectory analytical solution, comprising: obtaining the trajectory analytical solution and path point constraints of the aircraft; the trajectory analytical solution is obtained by the upper-level path decision-making, according to the no-fly zone information and the state of the aircraft, establishing the analytical error relationship between the motion equation and the perturbation analytical solution, converting the analytical error relationship into a high-order deformation equation and solving it recursively.
[0005] A trajectory parameterization expression is determined based on the trajectory analytical solution.
[0006] According to the waypoint constraints, trajectory parameterized expressions and trajectory constraints, the optimal control problem of trajectory parameterized expression planning is transformed into a multi-stage profile parameter planning problem.
[0007] The modified Newton method is used to iteratively solve the multi-stage profile parameter planning problem to determine the optimal no-fly zone avoidance real-time trajectory planning parameters.
[0008] The aircraft is controlled based on the no-fly zone avoidance real-time trajectory planning parameters.
[0009] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a real-time trajectory planning method based on trajectory analytical solution.
[0010] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a real-time trajectory planning method based on trajectory analytical solution.
[0011] A computer program product comprises a computer program, which, when executed by a processor, implements a real-time trajectory planning method based on trajectory analytical solution.
[0012] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0013] The purpose of the present invention is to provide a real-time trajectory planning method, device, medium and product based on trajectory analytical solution, which can obtain the most economical no-fly zone avoidance trajectory for lateral maneuvering by controlling the lateral and longitudinal flight profiles in sections. This method converts the conventional trajectory planning optimal control problem into a real-time trajectory planning method containing only two n +1 multi-stage parameter planning problem of profile parameters with parametric expression of trajectory. The iterative process is fully parsed, the code is fully adjustable and controllable, and has real-time application capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 A flow chart of a real-time trajectory planning method based on trajectory analytical solution provided in Example 1 of the present invention;
[0016] Figure 2 Schematic diagram of the parameterized form of the lateral acceleration profile provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] The purpose of the present invention is to provide a real-time trajectory planning method, device, medium and product based on trajectory analytical solution, which can improve the efficiency and accuracy of real-time trajectory planning for avoiding no-fly zones.
[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0020] Example 1: Figure 1 As shown, a real-time trajectory planning method based on trajectory analytical solution in this embodiment includes: Step 101: Obtaining the trajectory analytical solution and path point constraints of the aircraft. The trajectory analytical solution is obtained by the upper-level path decision-making, according to the no-fly zone information and the state of the aircraft, establishing the analytical error relationship between the motion equation and the perturbation analytical solution, converting the analytical error relationship into a high-order deformation equation and recursively solving it.
[0021] Step 102: Determine a trajectory parameterization expression based on the trajectory analytical solution.
[0022] Step 103: According to the path point constraints, the trajectory parameterized expression and the trajectory constraints, the trajectory parameterized expression planning optimal control problem is converted into a multi-stage profile parameter planning problem.
[0023] Step 104: Use the modified Newton method to iteratively solve the multi-stage profile parameter planning problem to determine the optimal no-fly zone avoidance real-time trajectory planning parameters.
[0024] Step 105: Control the aircraft based on the real-time trajectory planning parameters for avoiding the no-fly zone.
[0025] Among them, the multi-stage profile parameter planning problem is:
[0026] .
[0027] in, J Objective function for multi-stage profile parameter planning problem; The independent variable In the i The value of the path point; The independent variable In the i-1 The value of the waypoints; n is the total number of waypoints in the waypoint constraint; is the first-order coefficient of lift acceleration profile; is the coefficient of the zero-order term of the lift acceleration profile; is the independent variable longitudinal range; Analyze the expression for velocity; Analyze the expression for the horizontal process; is the lift acceleration at the end of the segment; is the initial lift acceleration; For terminal voyage; is the initial voyage; is the terminal velocity; The terminal horizontal stroke.
[0028] Step 104 includes: Step 104-1: using the Lagrange multiplier method, the multi-stage profile parameter planning problem is transformed into an unconstrained parameter optimization problem, and the Lagrange equation is determined.
[0029] Step 104 - 2: Calculate the initial profile parameters of each iterative profile, solve the Lagrangian equation according to the initial profile parameters, and obtain the initial Lagrangian multiplier.
[0030] Step 104-3: Use the initial Lagrange multiplier as an iteration parameter for the first iteration of the Lagrange equation.
[0031] Step 104-4: Get the current step length.
[0032] Step 104-5: Set the number of iterations j=1.
[0033] Step 104-6: Determine the Jacobian matrix at the jth iteration and the Hessian matrix at the jth iteration according to the iteration parameters at the jth iteration.
[0034] Step 104-7: Determine the iteration parameters at the j+1th iteration according to the Jacobian matrix at the jth iteration and the Hessian matrix at the jth iteration.
[0035] Step 104 - 8 : Determine the Jacobian matrix at the j+1th iteration according to the iteration parameters at the j+1th iteration.
[0036] Step 104 - 9 : judging whether the convergence tolerance condition is satisfied according to the Jacobian matrix at the j+1th iteration and the current step length, and obtaining a first judgment result.
[0037] Step 104-10: If the first judgment result is no, then update the current step length, increase the value of the iteration number j+1 by 1, and return to step 104-7. Updating the current step length includes: determining the ratio of the current step length to the step length change as the updated current step length.
[0038] Step 104 - 11: If the first judgment result is yes, determine whether the current step length is within the preset step length range to obtain a second judgment result.
[0039] Step 104 - 12: If the second judgment result is no, update the current step length, increase the value of the iteration number j+1 by 1, and return to step 104 - 7.
[0040] Step 104 - 13 : If the second judgment result is yes, then determine the iteration parameters at the j+1th iteration as the optimal no-fly zone avoidance real-time trajectory planning parameters.
[0041] The convergence tolerance condition is:
[0042] .
[0043] in, is the Jacobian matrix at the j+1th iteration; is the Jacobian matrix at the jth iteration; is the current step length; is the convergence tolerance.
[0044] Step 104-12 includes: determining the ratio of the current step length to the step length change as the updated current step length.
[0045] Step 104-2 includes: Step 104-2-1: Order Initial value of the first-order term of the profile The value of is 0, and an analytical solution is obtained; the analytical solution includes a velocity analytical solution, a heading angle analytical solution and a lateral range analytical solution.
[0046] Step 104-2-2: Based on the velocity analytical solution, construct the terminal velocity constraint analytical expression of each sub-segment trajectory.
[0047] Step 104-2-3: Inversely solve the multiple terminal velocity constraint analytical expressions to obtain the corresponding Profile parameters; The profile is the drag acceleration profile; The section is the lift acceleration section.
[0048] Step 104-2-4: Based on the analytical solution of the horizontal distance, obtain the analytical expression of the terminal horizontal distance of each sub-segment trajectory.
[0049] Step 104-2-5: Inversely solve the multiple terminal horizontal path analytical expressions to obtain the corresponding Section parameters.
[0050] Step 104-2-6: Based on multiple Section parameters and multiple The profile parameters construct the initial Lagrange multipliers.
[0051] The terminal velocity constraint analytical expression is:
[0052] .
[0053] in, is the terminal velocity constraint; is the terminal longitudinal distance; is the radius of the Earth; for Section parameters The initial value of is the analytical solution for velocity; is the average radial distance;
[0054] The profile parameters are:
[0055] .
[0056] Where g is the acceleration due to gravity;
[0057] The terminal cross-distance analytical formula is:
[0058] .
[0059] The profile parameters are:
[0060] .
[0061] in, is the terminal traverse constraint of the sub-segment trajectory; The independent variable The value at the i-th path point; The independent variable The value at the i-1th path point; Indicates average speed;
[0062] The Jacobian matrix is:
[0063] .
[0064] in, is the Jacobian matrix at the jth iteration; is the partial derivative of the Lagrangian function with respect to the parameter p; is the partial derivative of the Lagrangian function with respect to the parameter λ; is the first derivative of the performance index; For the co-state; is the partial derivative of the constraint function with respect to the parameter p; is the constraint function;
[0065] The Hessian matrix is:
[0066] .
[0067] in, is the Hessian matrix; , , and All are Hessian matrix elements; is the second-order derivative of the performance index; is the transpose of the first-order derivative of the constraint function; is the second-order derivative of the constraint function.
[0068] According to the trajectory parameterization expression, a parameterized model of the trajectory planning problem is established, and a flight profile parameter solution method is designed to generate a no-fly zone avoidance trajectory in real time. First, since the trajectory parameterization expression is controlled by the lateral and longitudinal flight profiles, that is, the component of the lift-to-drag ratio on the plumb plane ( profile) and the component of lift acceleration in the horizontal plane ( profile), so a parameterized profile is designed to transform the trajectory planning optimal control problem into a multi-stage profile parameter planning problem; then, a customized real-time solution method for the multi-stage profile parameter planning problem is proposed, and the initial value and descent gradient of parameter iteration are selected analytically; finally, a parameter iteration solution algorithm based on the modified Newton method is designed to realize the real-time application of the trajectory planning problem.
[0069] 1 Parametric modeling of multi-stage trajectory planning.
[0070] According to the no-fly zone avoidance path obtained by the upper-level path decision, the trajectory is divided into segments by path point segmentation points, and a multi-stage profile parameter equation is established. Based on the homotopic analytical solution of the trajectory, the flight profile parameter equation, the re-entry terminal constraint, the path point constraint and the minimum control force performance index, the no-fly zone avoidance trajectory planning problem is transformed into a multi-stage trajectory parameterized expression profile parameter planning problem.
[0071] Based on the trajectory homology analytical solution, in the generalized equatorial coordinate system, the flight longitudinal distance As the independent variable, we can get the flight speed V , horizontal process , Track angle ξ The trajectory parameterized expression of , thus analytically predicting the terminal flight state. Among them, the trajectory is planned Section and The profile is controlled. The profile controls speed and range and determines the longitudinal flight trajectory; The profile controls the heading and range, determining the lateral flight trajectory.
[0072] The present invention will Section and The section form is designed as follows:
[0073] (1)
[0074] in, For the i The component of the lift acceleration of the segment trajectory in the horizontal plane, The independent variable The value at each path point, the third minor formula is Connection constraints for sections, The schematic diagram of the cross-section is as follows Figure 2 shown. i is the section control parameter to be solved, a total of 2 n +1.
[0075] Since the reentry corridor of HGV is narrow and irregular, considering the flexibility and physical feasibility of the profile, the transverse profile is in the form of a piecewise polynomial, according to the number of path points. n (including the end point) divide the trajectory into n In addition, since a small angle of attack change rate is often used during the reentry glide process to minimize the change in the aircraft flow field, thereby reducing the change in the aerodynamic heating distribution on the aircraft, and the angle of attack directly affects the size of the lift-to-drag ratio, the present invention will The profile is set as a constant to conform to the actual physical meaning. In actual flight, it will be adjusted in the range near the profile parameters according to the deviation from the nominal profile, that is, the flight profile is corrected through closed-loop tracking and guidance, and terminal control is achieved on the basis of satisfying various process constraints.
[0076] In order to be consistent with the performance index of the no-fly zone avoidance path decision-trajectory planning problem, the performance index of the multi-stage trajectory parameterization expression profile parameter planning problem is also set to the minimum cumulative lateral control force. , we can get:
[0077] (2)
[0078] In addition, based on the terminal constraints of the reentry glide, the path point constraints obtained by the upper path decision, and the connection constraints between the sub-segments, combined with the homotopy analytical equation of the glide trajectory, the terminal constraint equation predicted by the trajectory parameterization expression is established. The terminal constraints include the terminal velocity Constraints, terminal positions, or horizontal travel Constraints, path point constraints are the terminal traverse distances of each sub-segment trajectory Constraint, and the terminal horizontal distance of the nth track = .
[0079] Combining the above constraints and indicators, the optimal control problem of HGV no-fly zone avoidance trajectory planning can be simplified to a multi-stage parameter planning problem as shown below:
[0080] Problem 4.1 HGV no-fly zone avoidance multi-stage trajectory parameterization expression profile parameter planning problem:
[0081] (3)
[0082] in, The independent variable The value at each path point, and the vertical distance of the terminal of the nth track = , the initial longitudinal distance of the nth track =0, that is, the terminal longitudinal distance of each sub-segment trajectory. When the second sub-formula is calculated by analytical solution, i The initial horizontal distance of the segment trajectory is i -1 The terminal horizontal distance of the trajectory, that is, =0, initial horizontal distance of the nth track = , i =1,…, n -1.
[0083] The optimization index is J ( p ), 2 in formula (3) n The nonlinear equation system consisting of constraints can be simplified as F ( p )=0, where is the optimization parameter vector. Then problem 4.1 can be simplified as follows:
[0084] (4)
[0085] Problem 4.1 is a parameter optimization problem with only equality constraints. According to optimization theory, the Lagrange multiplier method is used to transform it into an unconstrained parameter optimization problem. Define the Lagrange equation:
[0086] (5)
[0087] in, is the Lagrange multiplier vector to be solved, then the first-order necessary condition for the above problem is:
[0088] (6)
[0089] According to the first-order necessary conditions, we can get 4 n +1 nonlinear equation system consisting of 4 equations n +1 solution parameter is y =( p ; λ )Therefore, the multi-stage trajectory profile parameter planning problem can be transformed into solving a nonlinear equation set (Equation (6)), and the present invention adopts Newton's method to solve it.
[0090] 2 Customization of multi-stage trajectory parameter planning.
[0091] Newton iteration method is one of the effective ways to solve parameter planning problems. However, when there are many iterative variables, the original Newton method is not easy to converge and is greatly affected by the initial value, making it difficult to apply in real time. To this end, the present invention proposes two customized strategies to solve the multi-stage trajectory profile parameter planning problem: ① customization of the initial value of the profile parameter iteration; ② customization of the profile parameter descent gradient.
[0092] 2.1 Customization of initial values of profile parameter iteration.
[0093] Since the homotopy analytical solution of the trajectory is too complex and it is difficult to select the initial value, the analytical solution obtained by the present invention based on the perturbation theory is , an approximate feasible solution of the profile parameters is obtained analytically, which is used as the initial value of the Newton iteration method , in order to be sufficiently close to the convergence region.
[0094] make The initial value of the first-order term of the profile is , solve the analytical solution as the initial value of the iteration of the profile parameters. Among them, according to the terminal velocity constraint , solve for the parameters The initial value of , and according to the terminal trajectories of each sub-segment , solve for the parameters The initial value of , i =1,…, n In addition, set , together as the initial value of Newton iteration , and further iterations are performed to obtain the precise values of the profile parameters.
[0095] Velocity analytical solution ) Only with The parameters of the profile are related to The analytical solution of is:
[0096] (7)
[0097] Right now:
[0098] (8)
[0099] Then the parameter k 10 0 The inverse solution is:
[0100] (9)
[0101] Furthermore, according to the heading angle He Hengcheng The analytical solution of each sub-segment trajectory is obtained Analytical expression, let , solve for the parameters . Because The analytical solution is introduced into After analyzing the formula, the integrand is not integrable. He Hengcheng The velocity is approximated as a constant .therefore, We can get:
[0102] (10)
[0103] in, Indicates the terminal heading angle of the i-th trajectory.
[0104] Depend on The analytical solution of is:
[0105] (11)
[0106] Then the parameter The inverse solution is:
[0107] (12)
[0108] In summary, the initial value of Newton's iteration method is It can be expressed as follows:
[0109] (13)
[0110] The initial value obtained by this method is an approximate feasible solution to Problem 4.1, which is more conducive to the convergence of Newton's method than randomly selecting initial values.
[0111] 2.2 Customization of profile parameter descent gradient.
[0112] In order to use the Newton iteration method, it is necessary to obtain the first and second order derivatives of the Lagrange equation, that is, the Jacobian matrix and the Hessian matrix Since the homotopy analytical solution uses many Gauss-Legendre integral formulas, the reverse derivation is difficult and the calculation is time-consuming. Therefore, the trajectory-based analytical solution is used to solve , , in order to speed up the computational efficiency of Newton's method iteration. middle F ( p ) is obtained based on the homotopy analytical solution of the trajectory, which is only used for derivation.
[0113] The Lagrangian function can be expressed as follows:
[0114] (14)
[0115] in, is the lateral lift acceleration of the first trajectory, is the lateral lift acceleration of the second trajectory, is the lateral lift acceleration of the n-1th trajectory, is the lateral lift acceleration of the nth trajectory.
[0116] Lagrangian function with respect to the iteration parameter y =[ p ; λ The Jacobian matrix of It can be expressed as follows:
[0117] (15)
[0118] Lagrangian function with respect to the iteration parameter y =[ p ; λ ]'s Hessian matrix It can be expressed as follows:
[0119] (16)
[0120] Among them, , Write in the following format:
[0121] (17)
[0122] (18)
[0123] in, , , , , , , , , , , , , , , , , , , , , , , , and All are Heisen array elements; , , , , , , , , , , , , , , , , , , , , , , , and These are all constraint function gradient elements
[0124] Based on the analytical solution of the trajectory, the specific forms of the derivative components in equations (15) and (16) are analytically solved to obtain , The approximate analytical solution of . The analytical calculations of each component are given below.
[0125] First, according to the analytical solution, we introduce the calculation formula (15): F ( p )of and each trajectory segment , used for derivation, as follows:
[0126] (19)
[0127] (20)
[0128] (twenty one)
[0129] in: is the analytical solution of the heading angle, The second polynomial is the third polynomial, dimensional polynomial coefficients, The longitudinal course of the kth trajectory.
[0130] (twenty two)
[0131] Write the Gauss-Legendre integral formula as the cumulative sum of functions at the quadrature nodes, , The present invention adopts the 10th order Legendre polynomial, Legendre Zero Determined by replacing the variables on the integral interval, Similarly, the integral coefficient on the integral interval [-1,1] By replacing the variables to the integral interval of each trajectory sub-segment ,Right now:
[0132] (twenty three)
[0133] Then, according to formula (19)-formula (21), formula (15) and formula (16) Each component can be solved analytically as follows:
[0134] (twenty four)
[0135] (25)
[0136] (26)
[0137] (27)
[0138] (28)
[0139] (29)
[0140] (30)
[0141] (31)
[0142] in, is the gradient element of the constraint function, is the gradient element of the constraint function, are the polynomial coefficients, is the gradient element of the constraint function, is the gradient element of the constraint function, is the analytical solution for the horizontal process, Lateral acceleration, is the gradient element of the constraint function, is the gradient element of the constraint function, is the gradient element of the constraint function, in equations (25) to (28) , in formula (29)-formula (31) .
[0143] Furthermore, the Lagrangian function in equation (15) is related to the profile parameters p The first-order derivative of can be solved analytically as follows:
[0144] (32)
[0145] (33)
[0146] (34)
[0147] in, and are all Jacobian matrix elements, is the i-th longitudinal section, is the constraint function, and are the section coefficients, is the gradient element of the constraint function, and All are cooperative. , and They are all second-order derivative elements of constraint functions. and are all Hessian matrix elements, i =1,…, n Finally, let , the Lagrangian function in formula (16) is about the profile parameter p The second-order derivative of can be solved analytically as follows:
[0148] (35)
[0149] (36)
[0150] (37)
[0151] (38)
[0152] (39)
[0153] (40)
[0154] Through the above derivation, we can get the analytical form of each component in equation (15) and equation (16), thus obtaining , The analytical solution of ensures that the solution is updated in real time during the iteration process until the Newton method converges.
[0155] 3 Parameterized solution algorithm for real-time trajectory planning.
[0156] On the basis of the customized method of multi-stage trajectory parameter planning, in order to improve the convergence range of parameter iteration, a multi-stage trajectory parameter solving algorithm based on the modified Newton method is designed to complete real-time trajectory planning.
[0157] The general expression of Newton's iteration method can be expressed as:
[0158] (41)
[0159] in, j is the number of iterations, j =0 is the initial value of iteration.
[0160] The present invention adopts a customized modified Newton method to expand the convergence range and introduce a descending step length. The Newton iteration process is modified, and the one-dimensional line search criterion (Armjio criterion) is used to ensure that the result of each iteration is a descending process. This not only maintains the convergence speed of the Newton iteration, but also relaxes the requirements for the selection of initial values, thus improving the convergence characteristics of the iteration.
[0161] Modified Newton's method Modify the iterative formula of Newton's method as follows:
[0162] (42)
[0163] The initial value distance When the root is far away, if it cannot meet the following conditions:
[0164] (43)
[0165] The iteration will not converge. Once the initial value enters the convergence domain, Newton's method converges at a quadratic rate. Therefore, the purpose of the Armijo criterion is to select the iteration step size. So equation (43) holds true.
[0166] make for y j The descending direction at , according to the first-order Taylor expansion, if it satisfies:
[0167] (44)
[0168] Step length Satisfies the Armjio criterion, where are the complementary coefficients of the Taylor expansion.
[0169] Construct a one-dimensional line search and set the initial step size , if it does not satisfy equation (44), then The multiple decreases until it satisfies formula (44), and then selects the corresponding That's it.
[0170] Therefore, the parameterized solution algorithm for real-time trajectory planning to avoid no-fly zones is obtained as follows.
[0171] Initialization: Number of path points to avoid n, HGV initial state value x 0 , the horizontal and vertical distance of the waypoint , , terminal velocity , the homotopy analytical solution of the trajectory , analytical solution .
[0172] 1: Let the number of iterations j =0, set the modified Newton method parameters .
[0173] 2: Analytical calculation of iterative profile parameters and initial values of Lagrange multipliers (Formula (13)).
[0174] 3: Analytical calculation of Lagrangian function with respect to iteration parameters The Jacobian matrix (Formula (15)).
[0175] 4: while do.
[0176] 5: Analytical calculation of Lagrangian function with respect to iteration parameters The Hessian matrix (Formula (16)).
[0177] 6: Update the profile parameters and get (Formula (42)).
[0178] 7: Analytical calculation of Lagrangian function with respect to iteration parameters The Jacobian matrix (Formula (15)).
[0179] 8: while do.
[0180] 9: .
[0181] 10: Update the profile parameters and get (Formula (42)).
[0182] 11: Analytical calculation of Lagrangian function with respect to iteration parameters The Jacobian matrix (Formula (15)).
[0183] 12: endwhile.
[0184] 13: Command j = j +1, y j = yj+1 , .
[0185] 14: .
[0186] 15:endwhile.
[0187] 16: return y j .
[0188] The algorithm steps can be summarized as follows:
[0189] 1) Calculate the initial values of each iterative profile parameter and Lagrange multiplier .
[0190] 2) Set the initial step size of Newton iteration .
[0191] 3) Calculate the Lagrangian function with respect to the iteration parameter The Jacobian matrix and the Hessian matrix , get the updated parameters .
[0192] 4) Calculation , to determine whether the convergence tolerance is met ε n , if satisfied, the iteration stops and the optimal solution is output , otherwise, go to step 5).
[0193] 5) Use 2-norm to measure vector and determine step size Does it satisfy the Armjio criterion? If so, let j = j +1, = , return to step 2), otherwise, keep making , update the parameters , until the Armjio criterion is met or Small enough to j = j +1, = , return to step 2).
[0194] The present invention proposes a parametric modeling, customization and iterative solution method for the real-time trajectory planning problem based on trajectory homology analytical solution, and obtains the most economical no-fly zone avoidance trajectory for lateral maneuvering by segmented control of the lateral and longitudinal flight profiles. This method transforms the conventional trajectory planning optimal control problem into a multi-stage parameter planning problem containing only 2n+1 trajectory parameterized expression profile parameters. The iterative process is completely analytical, the code is fully adjustable and controllable, and has real-time application capabilities.
[0195] Embodiment 2: A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a real-time trajectory planning method based on trajectory analytical solution in Embodiment 1.
[0196] Embodiment 3: A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a real-time trajectory planning method based on trajectory analytical solution in Embodiment 1.
[0197] Embodiment 4: A computer program product comprises a computer program, which, when executed by a processor, implements the steps of a real-time trajectory planning method based on trajectory analytical solution in Embodiment 1.
[0198] Embodiment 5: A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a real-time trajectory planning method based on trajectory analytical solution in Embodiment 1 is implemented.
[0199] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0200] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0201] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0202] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A real-time trajectory planning method based on trajectory analytical solution, characterized in that: include: Obtaining the trajectory analytical solution and path point constraints of the aircraft; the trajectory analytical solution is obtained by establishing an analytical error relationship between the motion equation and the perturbation analytical solution based on the no-fly zone information and the state of the aircraft by the upper-level path decision, converting the analytical error relationship into a high-order deformation equation and solving it recursively; Determine a trajectory parameterized expression based on the trajectory analytical solution; According to the path point constraints, trajectory parameterized expressions and trajectory constraints, the trajectory parameterized expression planning optimal control problem is transformed into a multi-stage profile parameter planning problem; Iteratively solving the multi-stage profile parameter planning problem using a modified Newton method to determine optimal no-fly zone avoidance real-time trajectory planning parameters; Controlling the aircraft based on the no-fly zone avoidance real-time trajectory planning parameters; The multi-stage profile parameter planning problem is: ; in, J Objective function for multi-stage profile parameter planning problem; The independent variable In the i The value of the path point; The independent variable In the i-1 The value of the waypoints; n is the total number of waypoints in the waypoint constraint; is the first-order coefficient of lift acceleration profile; is the coefficient of the zero-order term of the lift acceleration profile; is the independent variable longitudinal range; Analyze the expression for velocity; Analyze the expression for the horizontal process; is the lift acceleration at the end of the segment; is the initial lift acceleration; For terminal voyage; is the initial voyage; is the terminal velocity; is the terminal horizontal distance; The modified Newton method is used to iteratively solve the multi-stage profile parameter planning problem to determine the optimal no-fly zone avoidance real-time trajectory planning parameters, including: Using the Lagrange multiplier method, the multi-stage profile parameter planning problem is transformed into an unconstrained parameter optimization problem and the Lagrange equation is determined; Calculate the initial profile parameters of each iterative profile, solve the Lagrange equation according to the initial profile parameters, and obtain the initial Lagrange multiplier; The initial Lagrange multiplier is used as the iteration parameter of the first iteration of the Lagrange equation; Get the current step length; Let the number of iterations j = 1; According to the iteration parameters at the jth iteration, the Jacobian matrix at the jth iteration and the Hessian matrix at the jth iteration are determined; According to the Jacobian matrix at the jth iteration and the Hessian matrix at the jth iteration, the iteration parameters at the j+1th iteration are determined; According to the iteration parameter at the j+1th iteration, the Jacobian matrix at the j+1th iteration is determined; Judging whether the convergence tolerance condition is met according to the Jacobian matrix at the j+1th iteration and the current step size, a first judgment result is obtained; If the first judgment result is no, the current step size is updated, the value of the iteration number j+1 is increased by 1, and the process returns to the step of "determining the Jacobian matrix at the jth iteration and the Hessian matrix at the jth iteration according to the iteration parameter at the jth iteration"; If the first judgment result is yes, then judging whether the current step length is within the preset step length range, and obtaining a second judgment result; If the second judgment result is no, the current step size is updated, the value of the iteration number j+1 is increased by 1, and the process returns to the step "determining the Jacobian matrix at the jth iteration and the Hessian matrix at the jth iteration according to the iteration parameter at the jth iteration"; If the second judgment result is yes, the iteration parameters at the j+1th iteration are determined as the optimal no-fly zone avoidance real-time trajectory planning parameters.
2. A real-time trajectory planning method based on trajectory analytical solution according to claim 1, characterized in that: The convergence tolerance condition is: ; in, is the Jacobian matrix at the j+1th iteration; is the Jacobian matrix at the jth iteration; is the current step length; is the convergence tolerance.
3. A real-time trajectory planning method based on trajectory analytical solution according to claim 2, characterized in that: The updating of the current step size includes: The ratio of the current step length to the step length change is determined as the updated current step length.
4. A real-time trajectory planning method based on trajectory analytical solution according to claim 2, characterized in that: Calculate the initial profile parameters of each iterative profile, solve the Lagrange equation according to the initial profile parameters, and obtain the initial Lagrange multiplier, including: make Initial value of the first-order term of the profile The value of is 0, and an analytical solution is obtained; the analytical solution includes a velocity analytical solution, a heading angle analytical solution and a lateral range analytical solution; Based on the velocity analytical solution, the terminal velocity constraint analytical expression of each sub-segment trajectory is constructed; Inversely solve the multiple terminal velocity constraint analytical expressions to obtain the corresponding Profile parameters; The profile is the drag acceleration profile; The profile is the lift acceleration profile; According to the analytical solution of the horizontal range, the analytical formula of the terminal horizontal range of each sub-segment trajectory is obtained; Inversely solve the multiple terminal cross-distance analytical expressions to obtain the corresponding Profile parameters; According to multiple Section parameters and multiple The profile parameters construct the initial Lagrange multipliers.
5. A real-time trajectory planning method based on trajectory analytical solution according to claim 4, characterized in that: The terminal velocity constraint analytical expression is: ; in, is the terminal velocity constraint; is the terminal longitudinal distance; is the radius of the Earth; for Section parameters The initial value of is the analytical solution for velocity; is the average radial distance; Said The profile parameters are: ; Where g is the acceleration due to gravity; The terminal cross-distance analytical formula is: ; Said The profile parameters are: ; in, is the terminal traverse constraint of the sub-segment trajectory; The independent variable The value at the i-th path point; The independent variable The value at the i-1th path point; Indicates average speed; The Jacobian matrix is: ; in, is the Jacobian matrix at the jth iteration; is the partial derivative of the Lagrangian function with respect to the parameter p; is the partial derivative of the Lagrangian function with respect to the parameter λ; is the first derivative of the performance index; For the co-state; is the partial derivative of the constraint function with respect to the parameter p; is the constraint function; The Hessian matrix is: ; in, is the Hessian matrix; , , and All are Hessian matrix elements; is the second-order derivative of the performance index; is the transpose of the first-order derivative of the constraint function; is the second-order derivative of the constraint function.
6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a real-time trajectory planning method based on trajectory analytical solution as described in any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a real-time trajectory planning method based on trajectory analytical solution according to any one of claims 1 to 5 is implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a real-time trajectory planning method based on trajectory analytical solution according to any one of claims 1 to 5 is implemented.
