A preset performance attitude tracking control method based on exact penalty function
By using precise penalty functions and control parameterization methods in spacecraft attitude control, the problem of traditional methods being difficult to ensure both transient and steady-state performance is solved, and effective control of spacecraft attitude errors and realization of preset performance are achieved.
Patent Information
- Application Number
- CN202311294528.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-10-07
AI Technical Summary
The traditional optimal control scheme is difficult to ensure good transient and steady-state performance in spacecraft attitude control at the same time, especially in high-precision and complex space missions, it is difficult to effectively respond to attitude errors.
The preset performance attitude tracking control method based on the precise penalty function is adopted. By establishing the attitude error model of the rigid spacecraft, the preset performance function and constraints, and combining the precise penalty function method and the control parameterization method, the constrained optimization problem is transformed into Unconstrained optimization problems, and convert infinite-dimensional control quantity optimization problems into finite-dimensional parameter optimization problems.
It realizes the constrained attitude error convergence of transient performance and the spacecraft attitude tracking error control of steady-state performance. It can set the convergence speed of attitude error and the tracking error size in steady state, and convert it into a tractable nonlinear planning problem.
Smart Images

Figure CN117985246B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of spacecraft control technology, and in particular to a preset performance attitude tracking control method based on an accurate penalty function. Background Art
[0002] High-precision and complex space missions such as on-orbit service, space exploration, and rendezvous and docking place high demands on the attitude control system of spacecraft. It is required that the attitude error response has good transient performance and steady-state performance under the action of the attitude control system of the spacecraft. Traditional optimal control schemes can only ensure that the attitude controller has good steady-state performance. Under this motivation, the present invention combines the preset performance function and the precise penalty function method that can handle constraints to design a preset performance attitude tracking control method based on the precise penalty function. Summary of the invention
[0003] The object of the present invention is to provide a preset performance attitude tracking control method based on an accurate penalty function.
[0004] To achieve the above object, the present invention is implemented according to the following technical solutions:
[0005] The present invention comprises the following steps:
[0006] S1: Establish attitude error model of rigid spacecraft;
[0007] S2: Establishing a preset performance function and a preset performance constraint;
[0008] S3: Optimal control problem of spacecraft attitude tracking under preset performance: Establish an optimal control model with constraints, the optimal control model includes: objective function, dynamic equation and inequality constraints, combine the objective function, dynamic equation and preset performance constraints, and establish an optimal spacecraft attitude tracking control problem with preset performance constraints;
[0009] S4: Processing the preset performance constraints based on the exact penalty function method;
[0010] S5: Combining steps S3 and S4, the optimization problem with the preset performance inequality constraint is transformed into an unconstrained optimization problem;
[0011] S6: Based on the control parameterization method, the infinite-dimensional control quantity optimization problem in the optimization problem of step S5 is converted into a finite-dimensional parameter optimization problem.
[0012] The beneficial effects of the present invention are:
[0013] The present invention is a preset performance attitude tracking control method based on an accurate penalty function. Compared with the prior art, the present invention has the following technical effects:
[0014] 1) It can realize transient performance constraints to set the convergence speed of attitude error;
[0015] 2) It is possible to achieve steady-state performance constraints, that is, the size of the spacecraft attitude tracking error in the steady state can be set.
[0016] 3) Based on the exact penalty function method and control parameterization method, the optimization problem with preset performance constraints can be converted into a tractable nonlinear programming problem. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a posture tracking error response curve diagram of an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. The illustrative embodiments and descriptions of the present invention are used to explain the present invention but are not intended to limit the present invention.
[0019] The overall scheme of the present invention is summarized as follows:
[0020] 1) To realize the attitude tracking control of the spacecraft, the attitude error model of the rigid spacecraft is established;
[0021] 2) To achieve the preset performance control of the spacecraft attitude tracking error, the preset performance function and preset performance constraints are established;
[0022] 3) Based on the exact penalty function method, the optimal control problem of spacecraft attitude tracking under preset performance is established.
[0023] 4) The control parameterization method is used to solve the preset performance optimal control problem.
[0024] Establish a rigid spacecraft attitude error model:
[0025] The control scheme of the present invention is a model-based control scheme, so the attitude error model of the rigid spacecraft is first established:
[0026]
[0027] where q e ∈Q represents the attitude error quaternion, represents the angular velocity error, ω e =ω-Gω d , represents the angular velocity, G represents the attitude error q e The corresponding rotation matrix is, represents the desired angular velocity, is the control input, Represents the spacecraft moment of inertia matrix.
[0028] To create a preset performance function:
[0029] In order to achieve the preset performance control of the spacecraft attitude tracking error, it is necessary to establish the preset performance function and preset performance constraint.
[0030] Preset performance function δ(t):
[0031] δ(t)=(λ0-λ ∞ )2 -kt +λ ∞ (1.2)
[0032] where k,λ0,λ ∞ >0.
[0033] Establish corresponding preset performance constraints:
[0034] -δ(t)<q ei <δ(t),i=1,2,3 (1.3)
[0035] where q ei Represents the vector portion of the error quaternion.
[0036] Optimal control problem of spacecraft attitude tracking under preset performance:
[0037] In order to deal with the preset performance constraints (1.3), the present invention first establishes a constrained optimal control model. The optimal control model includes: objective function, dynamic equations and inequality constraints. Considering the minimum posture tracking error, angular velocity error and energy loss, the following objective function is established:
[0038]
[0039] Where R q ,R w ,R u >0 are the weights of attitude error, angular velocity error and energy loss, respectively. f Represents the end moment.
[0040] Combining the objective function (1.4), the spacecraft dynamic equation (1.1) and the preset performance constraint (1.3), the optimal spacecraft attitude tracking control problem P1 with preset performance constraints is established:
[0041]
[0042] where q e0 Represents the initial attitude error quaternion, ω e0 Represents the initial angular velocity error.
[0043] By observing formula (1.5), P1 is an optimal control problem with infinite-dimensional inequality constraints, which is difficult to solve. Therefore, the present invention introduces the exact penalty function method. Next, the preset performance constraint C6 is processed based on the exact penalty function method:
[0044]
[0045] where β q =max(0 6×1 ,g q -W q ε γ 1 6×1 ), ε is the penalty parameter, σ>1,γ>1,ρ and W q are all positive real parameters.
[0046] Combining the optimization problem P1 and equation (1.6), the optimization problem P1 with preset performance inequality constraints is transformed into the unconstrained optimization problem P2:
[0047]
[0048] Control parameterization method:
[0049] P2 is an optimization problem with infinite-dimensional control quantity, which is still difficult to solve. Therefore, the present invention introduces the control parameterization method. Based on the control parameterization method, the infinite-dimensional control quantity optimization problem in the optimization problem P2 is converted into a finite-dimensional parameter optimization problem. The continuous control quantity u(t) is converted into a finite-dimensional parameter optimization problem on the time scale t∈[0,t f ] is divided into K intervals, thus generating K+1 nodes {t0,t1,t2,...,t K}, where t0 = 0, t K =t f The parameterized control quantity can be expressed as:
[0050]
[0051] in are the control parameters to be optimized:
[0052]
[0053] Therefore, the infinite-dimensional control quantity optimization problem P2 can be transformed into a finite-dimensional parameter optimization problem P3:
[0054]
[0055] The optimization problem P3 is a standard optimal parameter selection problem. In order to convert it into a general computable nonlinear programming problem, it is necessary to obtain the gradient of the objective function in the optimization problem P3, that is,
[0056]
[0057] in
[0058] Φ0=ρε σ (1.12)
[0059] H is the Hamiltonian function, satisfying
[0060]
[0061] The Lagrange multiplier λ satisfies
[0062]
[0063] Example:
[0064] Consider the preset performance attitude tracking control scenario: the initial attitude and expected attitude of the spacecraft are set to q(0) = [0.815; -0.0998; -0.35; 0.4509] and q d The initial angular velocity and the expected angular velocity satisfy ω(0)=[0; 0; 0] and ω d (t) = [0; 0; 0]. The spacecraft is required to meet the preset performance constraints during attitude tracking:
[0065] -δ(t)<q ei (t)<δ(t),i=1,2,3 (1.15)
[0066] Where δ(t) is the preset performance function satisfying:
[0067] δ(t)=(1-0.001)2 -t +0.001 (1.16)
[0068] In order to achieve the preset performance constraint (1.15), the present invention first establishes a constrained optimal control model. The optimal control model includes: objective function, dynamic equations and inequality constraints. Considering the minimum posture tracking error, angular velocity error and energy loss, the following objective function is first established:
[0069]
[0070] Where R q =1,R w =0.8,R u =1.2 are the weights of attitude error, angular velocity error and energy loss respectively, t f =15s represents the end time.
[0071] Combining the objective function (1.17), the spacecraft dynamic equation (1.1) and the preset performance constraint formula reference (1.15), the optimal spacecraft attitude tracking control problem P1 with preset performance constraints is established:
[0072]
[0073] in Represents the initial attitude error quaternion, ω e0 (0) = [0; 0; 0] represents the initial angular velocity error.
[0074] By observing formula (1.18), P1 is an optimal control problem with infinite-dimensional inequality constraints, which is difficult to solve. Therefore, the present invention introduces the exact penalty function method. Next, the preset performance constraint C6 is processed based on the exact penalty function method:
[0075]
[0076] where β q =max(0 6×1 ,g q -W q ε γ 1 6×1 ), , ε is the penalty parameter, σ=2,γ=2,ρ=10 5 and W q =1.
[0077] Combining the optimization problem P1 and equation (1.19), the optimization problem P1 with preset performance inequality constraints is transformed into the unconstrained optimization problem P2:
[0078]
[0079] P2 is an optimization problem with infinite-dimensional control quantity, which is still difficult to solve. Therefore, the present invention introduces the control parameterization method. Based on the control parameterization method, the infinite-dimensional control quantity optimization problem in the optimization problem P2 is converted into a finite-dimensional parameter optimization problem. The continuous control quantity u(t) is converted into a finite-dimensional parameter optimization problem on the time scale t∈[0,t f ] is divided into K intervals, thus generating K+1 nodes {t0,t1,t2,...,t K}, where t0 = 0, t K =t f The parameterized control quantity can be expressed as
[0080]
[0081] in is the control parameter to be optimized,
[0082]
[0083] Therefore, the infinite-dimensional control quantity optimization problem P2 can be transformed into a finite-dimensional parameter optimization problem P3:
[0084]
[0085] The optimization problem P3 is a standard optimal parameter selection problem. In order to convert it into a general computable nonlinear programming problem, it is necessary to obtain the gradient of the objective function in the optimization problem P3, that is,
[0086]
[0087] in:
[0088] Φ0=ρε σ (1.25)
[0089] H is the Hamiltonian function, satisfying
[0090]
[0091] The Lagrange multiplier λ satisfies
[0092]
[0093] By using MATLAB's fmincon function and gradient information (1.24) to solve the nonlinear programming problem (1.23), we can obtain the optimal control sequence u of the spacecraft. Substituting the obtained optimal control sequence into the spacecraft dynamics equation (1.1), we can obtain Figure 1 The attitude tracking error response curve shown;
[0094] By observing the spacecraft's attitude tracking error curve, the preset performance constraints were achieved.
[0095] The technical solution of the present invention is not limited to the above-mentioned specific embodiments. All technical variations made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims
1. A preset performance attitude tracking control method based on an accurate penalty function, Features: The following steps are involved: Step S1: Establish the attitude error model of the rigid spacecraft: where q e ∈Q represents the attitude error quaternion, represents the angular velocity error, ω e =ω-Gω d , represents the angular velocity, G represents the attitude error quaternion q e The corresponding rotation matrix is represents the desired angular velocity, is the control input, represents the spacecraft moment of inertia matrix; Step S2: Establishing a preset performance function and preset performance constraints: Preset performance function δ(t): δ(t)=(λ 0 -l ∞ )2 -kt +λ ∞ (1.2) among them k,l 0 ,l ∞ >0; Establish corresponding preset performance constraints: -δ(t)<q ei <δ(t),i=1,2,3 (1.3) where q ei Represents the vector part of the error quaternion; Step S3: Optimal control problem of spacecraft attitude tracking under preset performance: Establishing an optimal control model with constraints, wherein the optimal control model includes: an objective function, a dynamic equation and an inequality constraint, and establishing an optimal spacecraft attitude tracking control problem with preset performance constraints by combining the objective function, the dynamic equation and the preset performance constraint; Step S4: Processing the preset performance constraints based on the exact penalty function method; Step S5: Combining steps S3 and S4, the optimization problem with preset performance inequality constraints is transformed into an unconstrained optimization problem; Step S6: Based on the control parameterization method, convert the infinite-dimensional control quantity optimization problem in the optimization problem of step S5 into a finite-dimensional parameter optimization problem; The steps S3-S5 are specifically as follows: Considering the minimum attitude tracking error, angular velocity error and energy loss, the following objective function is established: Where R q ,R w ,R u >0 are the weights of attitude error, angular velocity error and energy loss, respectively. f Represents the end moment; Combining the objective function (1.4), the attitude error model of the rigid spacecraft (1.1) and the preset performance constraints (1.3), the optimal spacecraft attitude tracking control problem P1 with preset performance constraints is established: where q e0 Represents the initial attitude error quaternion, ω e0 represents the initial angular velocity error; The preset performance constraint C6 is processed based on the exact penalty function method: where β q =max(0 6×1 ,g q -W q εγ1 6×1 ), ε is the penalty parameter, σ>1,γ>1,ρ and W q are all positive real parameters; Combining the optimization problem P1 and equation (1.6), the optimization problem P1 with preset performance inequality constraints is transformed into the unconstrained optimization problem P2:
2. According to claim 1, a preset performance attitude tracking control method based on an exact penalty function, Features: The step S6 specifically includes: based on the control parameterization method, converting the infinite-dimensional control quantity optimization problem in the optimization problem P2 into a finite-dimensional parameter optimization problem; converting the continuous control quantity u(t) at the time scale t∈[0,t f ] is divided into K intervals, thus generating K+1 nodes {t 0 ,t 1 ,t 2 ,…,t K }, where t 0 =0,t K =t f ; The parameterized control quantity is expressed as: in is the control parameter to be optimized; The infinite-dimensional control quantity optimization problem P2 is transformed into a finite-dimensional parameter optimization problem P3: Get the gradient of the objective function in the optimization problem P3, that is: in: F 0 =re σ (1.12) H is the Hamiltonian function, satisfying: The Lagrange multiplier λ satisfies:
