Ammonia thruster thrust stability control method and system
By dividing local areas and updating the model in real time, adaptive controller parameters are generated, which solves the problem of low thrust control accuracy and robustness of the ammonia thruster and achieves high-precision and high-stability thrust control to meet the requirements of the spacecraft. Control needs.
Patent Information
- Application Number
- CN202410940206.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-15
AI Technical Summary
The existing ammonia thruster thrust control method has insufficient accuracy and low robustness, making it difficult to meet the high-precision and high-stability requirements of spacecraft attitude and orbit control.
By dividing the working area of the ammonia thruster into multiple local areas, a local linear model library is constructed, and the model optimization network and action evaluation algorithm are used for real-time updates to generate adaptive controller parameters, combined with state constraints and control input constraints. , the global optimal control input sequence is obtained through the control optimization algorithm to achieve thrust stable control.
It improves the thrust output accuracy and stability of the ammonia thruster, enhances the adaptability and robustness of the system, and meets the spacecraft's control requirements for high precision and stability.
Smart Images

Figure CN118494790B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of thruster control, and in particular to a method and system for controlling thrust stability of an ammonia thruster. Background Art
[0002] Ammonia thruster is a common actuator for attitude control and orbit control of satellites and spacecraft. It has the advantages of continuously adjustable thrust, high specific impulse and no pollution. However, due to the drastic change of physical properties of ammonia near the thermodynamic critical point and the complex flow and heat transfer process inside the thruster, it is difficult to guarantee the thrust output accuracy and stability.
[0003] Traditional ammonia thruster control methods mainly include open-loop control based on pressure-flow characteristics and closed-loop control based on thermodynamic models. It is usually difficult to cope with thrust fluctuations caused by changes in propellant properties and external disturbances, and the robustness of the controller needs to be improved.
[0004] In summary, the existing thrust control method of ammonia thrusters has insufficient accuracy and low robustness, and cannot meet the high-precision and high-stability requirements of spacecraft attitude and orbit control. The present invention can solve the problems in the prior art. Summary of the invention
[0005] The embodiments of the present invention provide a method and system for controlling thrust stability of an ammonia thruster, which can solve the problems in the prior art.
[0006] According to a first aspect of the embodiments of the present invention,
[0007] A method for controlling thrust stability of an ammonia thruster is provided, comprising:
[0008] Based on the historical working conditions of the ammonia thruster, the working range of the ammonia thruster is divided into multiple local areas to build a local linear model library; according to the working state of the ammonia thruster, a corresponding local model is selected from the local linear model library, and a corresponding local controller is switched to determine the control input;
[0009] The local model is updated in real time by using a model optimization network, and based on the operating state, the control input and the response output of the ammonia thruster, the network parameters are adjusted through online learning to generate an updated dynamic model; an action evaluation algorithm is used to evaluate the control performance through a reward function based on the updated dynamic model, in combination with the control input and the response output, and a controller parameter adjustment strategy is generated, and the controller parameters of the local controller are self-tuned to obtain adaptive controller parameters;
[0010] According to the updated dynamic model and the adaptive controller parameters, combined with the state constraints and control input constraints of the ammonia thruster, with the minimization of the cost function as the goal, a global optimal control input sequence is obtained through a control optimization algorithm, the first element of the global optimal control input sequence is used as the current control instruction, and the other elements of the global optimal control input sequence are used as reference control trajectories, and thrust stability control is achieved based on the current control instruction and the reference control trajectory.
[0011] In an optional embodiment,
[0012] According to the working state of the ammonia thruster, a corresponding local model is selected from the local linear model library, and a corresponding local controller is switched to determine the control input, including:
[0013] The measurement signal of the ammonia thruster is collected to generate an operating state vector, the operating state vector is classified based on a pre-trained Gaussian mixture model, the posterior probability that the operating state vector belongs to each of the local models is determined, the local model corresponding to the maximum value in the posterior probability is used as the adapted local model, and the local controller is determined;
[0014] Based on the local controller, a plurality of adjacent local controllers are obtained, the control law of each of the adjacent local controllers is calculated, and a fusion factor of each of the control laws is determined, and the control laws of the adjacent local controllers are fused to determine the switching control law, with the sum of the fusion factors at each moment being 1 and the switching process being continuously differentiable as a constraint condition;
[0015] Based on the stability condition of the Lyapunov function, a linear matrix inequality is constructed, and based on the linear matrix inequality, all fusion factors in the switching control law are solved to generate a stable and smooth switching control law, and obtain a control input signal.
[0016] In an optional embodiment,
[0017] The local model is updated in real time by using a model optimization network, and based on the operating state, the control input and the response output of the ammonia thruster, the network parameters are adjusted through online learning to generate an updated dynamic model, including:
[0018] Obtaining the operating state and control input of the ammonia thruster;
[0019] Based on a pre-trained kernel extreme learning machine network, by inputting the operating state and the control input, using a Gaussian kernel function to calculate a kernel function value between the operating state and the control input and a pre-collected training sample, and using the kernel function value as a kernel function output of a hidden layer node;
[0020] Based on the kernel function output of the hidden layer node, the network output weight is solved by the least square method to obtain the optimized local model parameters; based on the optimized local model parameters, the local model of the ammonia thruster is updated in real time.
[0021] In an optional embodiment,
[0022] Using an action evaluation algorithm, based on the updated dynamic model, combined with the control input and the response output, the control performance is evaluated through a reward function, a controller parameter adjustment strategy is generated, and the controller parameters of the local controller are self-tuned, and the adaptive controller parameters include:
[0023] The action evaluation algorithm is constructed based on the reinforcement learning method;
[0024] Initialize the global action network, global evaluation network and multiple parallel processing units;
[0025] For each parallel processing unit, do the following:
[0026] Copying parameters from the global action network and the global evaluation network to generate a local action network and a local evaluation network, based on updating the dynamic model, interacting with the controlled object through the local action network, collecting sample data and storing it in a local data cache;
[0027] Extracting a set of sample data from the local data cache, calculating the gradient of the local evaluation network, and uploading the gradient to the global evaluation network;
[0028] Based on the sample data, by pre-building a trust domain policy optimization algorithm, the policy update direction and step size of the local action network are calculated, the update direction and step size are uploaded to the global action network, and the global action network is asynchronously updated to generate an updated global action network;
[0029] Using the updated global action network, generating a controller parameter adjustment strategy;
[0030] Based on the adjustment strategy, self-tuning controller parameters of the local controller is performed to obtain adaptive controller parameters;
[0031] Based on the adaptive controller parameters, the controlled object is controlled, and a reward function value is calculated according to an actual control result;
[0032] Feeding back the reward function value to the global evaluation network, and updating the global evaluation network in combination with the actual control result;
[0033] The operation of the parallel processing unit is repeated until the global action network and the global evaluation network reach the preset control target, and the optimal adaptive controller parameters are determined.
[0034] In an optional embodiment,
[0035] Based on the sample data, by pre-building a trust region policy optimization algorithm, the strategy update direction and step size of the local action network are calculated including:
[0036] Calculate the strategy update direction, the formula is as follows:
[0037] ;
[0038] Among them, θ Indicates the policy parameters i Operators that perform gradient calculations, J ( i ) represents the strategy parameters i The cumulative return of the current strategy at time N represents the total number of samples, i Indicates the sample number, π θ ( a i |s i ) represents the strategy parameters i When in state s i Next select action a i The probability of θ logπ θ ( a i |s i ) indicates the i The logarithmic policy gradient of samples, A πθ ( a i |s i ) indicates that in the state s i Take action a i The advantage function value of , F represents the information matrix that measures the curvature information in different directions in the strategy parameter space, and d represents the strategy update direction vector.
[0039] In an optional embodiment,
[0040] According to the updated dynamic model and the adaptive controller parameters, combined with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, a global optimal control input sequence is obtained through a control optimization algorithm, including:
[0041] Establishing state constraints and control input constraints of the ammonia thruster;
[0042] Based on the error between the actual thrust and the target thrust, a thrust error quadratic function is determined to construct a thrust error term; based on the difference between the control inputs at adjacent moments, a control input difference quadratic function is determined to construct a control input change rate term; based on the penalty values generated by violating the state constraint and violating the control input constraint, a penalty function is determined to construct a constraint violation penalty term; based on the thrust error term, the control input change rate term and the constraint violation penalty term, a cost function is constructed;
[0043] With the goal of minimizing the cost function, a control optimization algorithm is constructed;
[0044] In each iteration process, the control optimization algorithm constructs a quadratic program based on the gradient and Hessian matrix at the current iteration point, solves the quadratic program to obtain the increment of the control input sequence and updates the iteration point, and determines whether the preset convergence condition is met. If not, the next iteration is entered, otherwise the iteration is terminated and the current corresponding control input sequence is output to obtain the global optimal control input sequence.
[0045] In an optional embodiment,
[0046] Based on the thrust error term, the control input change rate term and the constraint violation penalty term, constructing a cost function includes:
[0047] The cost function has the following formula:
[0048] ;
[0049] in, J 1 represents the thrust error term, k Indicates the time, K Indicates the total time, e k Indicates k The thrust error at a given moment is α 1 represents the thrust error sensitivity coefficient, J 2 represents the control input change rate term, Δ u k Indicates k The difference between adjacent control inputs at each moment, α 2 represents the control input change rate sensitivity coefficient, J3 represents the constraint violation penalty term, j Indicates the state constraint sequence number, m represents the total number of state constraints, g j ( x k ) indicates the j The state constraint is k The function value at time instant, β 1 represents the sensitivity coefficient of violating the state constraint, l Indicates the control input constraint number, n represents the total number of control input constraints, h l ( u k ) indicates the l The control input constraints are in k The function value at time instant, β 2 represents the sensitivity coefficient of violating the control input constraint, J represents the cost function, c 1 represents the contribution index of thrust error term, c 2 represents the contribution index of the control input change rate term, c 3 represents the contribution index of the constraint violation penalty term.
[0050] According to a second aspect of the embodiments of the present invention,
[0051] Provided is an ammonia thruster thrust stability control system, comprising:
[0052] The first unit is used to divide the working range of the ammonia thruster into multiple local areas based on the historical working conditions of the ammonia thruster, and build a local linear model library; according to the working state of the ammonia thruster, select a corresponding local model from the local linear model library, switch the corresponding local controller, and determine the control input;
[0053] The second unit is used to update the local model in real time by using a model optimization network, adjust network parameters through online learning based on the operating state, the control input and the response output of the ammonia thruster, and generate an updated dynamic model; use an action evaluation algorithm, based on the updated dynamic model, combined with the control input and the response output, evaluate the control performance through a reward function, generate a controller parameter adjustment strategy, and self-tune the controller parameters of the local controller to obtain adaptive controller parameters;
[0054] The third unit is used to obtain a global optimal control input sequence through a control optimization algorithm based on the updated dynamic model and the adaptive controller parameters, in combination with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, and to use the first element of the global optimal control input sequence as the current control instruction, and other elements of the global optimal control input sequence as reference control trajectories, to achieve thrust stability control based on the current control instruction and the reference control trajectory.
[0055] According to a third aspect of the embodiments of the present invention,
[0056] An electronic device is provided, comprising:
[0057] processor;
[0058] a memory for storing processor-executable instructions;
[0059] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0060] A fourth aspect of the embodiments of the present invention is:
[0061] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0062] In an embodiment of the present invention, by dividing the working range into multiple local areas and constructing a local linear model library, the corresponding local model and controller can be selected according to the current working state of the ammonia thruster, so as to realize refined control for different working conditions and improve the adaptability and stability of the system; since the local model and controller are constructed according to historical working condition data and can be selected and switched in real time according to the current working condition, the control strategy can be adjusted in real time during the operation of the ammonia thruster to adapt to different working environments and operating conditions; using the action evaluation algorithm, combined with the updated dynamic model, control input and thruster response output, the control performance is evaluated through the reward function, and the adjustment strategy of the controller parameters is generated. The adjustment strategy can help the system to autonomously adjust the controller parameters to adapt to different working states and environmental changes, and realize the optimization of the adaptive controller parameters; taking the minimization of the cost function as the optimization goal, the system can achieve the expected performance goals more efficiently during the control process; through the control optimization algorithm, the system can find the global optimal control input sequence, and realize the optimization of the thruster control under the premise of satisfying the constraints. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a schematic flow chart of a method for controlling thrust stability of an ammonia thruster according to an embodiment of the present invention;
[0064] Figure 2 It is a schematic diagram of the structure of the thrust stability control system of an ammonia thruster according to an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, 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.
[0066] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0067] Figure 1 FIG. 1 is a flow chart of a method for controlling thrust stability of an ammonia thruster according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0068] S101. Based on the historical working conditions of the ammonia thruster, the working range of the ammonia thruster is divided into multiple local areas, and a local linear model library is constructed; according to the working condition of the ammonia thruster, a corresponding local model is selected from the local linear model library, and a corresponding local controller is switched to determine a control input;
[0069] The historical operating conditions generally include valve opening, thruster inlet pressure, thruster inlet temperature, thruster outlet pressure, thruster outlet temperature, thruster wall temperature, thruster mass flow, actual output thrust, working time period, workload, related internal control parameters, etc.;
[0070] Collect and organize historical operating data of the ammonia thruster, including information such as working time period, workload, temperature and pressure changes; divide the working range into multiple local areas according to the collected historical operating data, preferably using a clustering algorithm for division, and for each local area, construct a local linear model by a linear system identification method, establish a local linear model library, and store the local linear model corresponding to each local area in it for subsequent use;
[0071] When the ammonia thruster is in a specific working state, the corresponding local model is selected according to the working state, the model matching method is used for selection, the local controller corresponding to the selected local model is switched to determine the control input, so that the ammonia thruster can maintain stability and performance optimization under the working condition;
[0072] In this embodiment, by dividing the working range into multiple local areas and constructing a local linear model library, the corresponding local model and controller can be selected according to the current operating state of the ammonia thruster, so as to realize refined control for different operating conditions and improve the adaptability and stability of the system; since the local model and controller are constructed based on historical operating data and can be selected and switched in real time according to the current operating state, the control strategy can be adjusted in real time during the operation of the ammonia thruster to adapt to different working environments and operating conditions; the local model and controller used can be selected and switched according to the actual operating state of the ammonia thruster to realize the adaptability of the system, and the control strategy can be adjusted in time in the face of operating condition changes or system parameter drifts to ensure the stability and reliability of the system.
[0073] In an optional embodiment, according to the operating state of the ammonia thruster, a corresponding local model is selected from the local linear model library, and a corresponding local controller is switched, and determining the control input includes:
[0074] The measurement signal of the ammonia thruster is collected to generate an operating state vector, the operating state vector is classified based on a pre-trained Gaussian mixture model, the posterior probability that the operating state vector belongs to each of the local models is determined, the local model corresponding to the maximum value in the posterior probability is used as the adapted local model, and the local controller is determined;
[0075] Based on the local controller, a plurality of adjacent local controllers are obtained, the control law of each of the adjacent local controllers is calculated, and a fusion factor of each of the control laws is determined, and the control laws of the adjacent local controllers are fused to determine the switching control law, with the sum of the fusion factors at each moment being 1 and the switching process being continuously differentiable as a constraint condition;
[0076] Based on the stability condition of the Lyapunov function, a linear matrix inequality is constructed, and based on the linear matrix inequality, all fusion factors in the switching control law are solved to generate a stable and smooth switching control law, and obtain a control input signal.
[0077] The operating state vector specifically refers to a feature vector extracted from the measurement signal of the ammonia thruster, which is used to describe the current operating state of the ammonia thruster, such as thrust size, rotation speed, temperature, etc.;
[0078] The posterior probability specifically refers to the probability of a hypothesis or model under the condition of given observation data. In the present invention, the posterior probability represents the probability that the operating state vector belongs to each local model;
[0079] The control law specifically refers to a rule or algorithm for determining an output control signal according to the current working state of the ammonia thruster, so as to realize the control of the ammonia thruster;
[0080] The fusion factor specifically refers to the weight coefficient of adjacent local controllers in the control law fusion process, which is used to determine the comprehensive weight of the control inputs of two adjacent controllers;
[0081] The switching control law specifically refers to the control law used when switching between different local models, which is obtained by fusing the control laws of adjacent local controllers to ensure the continuity and stability of the control input during the switching process;
[0082] Firstly, the measurement signals of the ammonia thruster are collected through sensors, including valve opening, thruster inlet pressure, inlet temperature, outlet pressure, outlet temperature, wall temperature, mass flow rate and actual output thrust, etc. The measurement signals are combined into a working state vector to represent the current working state of the thruster.
[0083] Then, the operating state vector is classified using a pre-trained Gaussian mixture model. The Gaussian mixture model is a probability density estimation method that fits probability distributions of arbitrary shapes through the weighted sum of multiple Gaussian distributions. During the pre-training stage, a large amount of historical operating data is used to estimate the parameters of the Gaussian mixture model so that it can accurately describe the probability distribution characteristics of different operating conditions. During classification, the operating state vector is input into the trained Gaussian mixture model, and the posterior probability that the operating state vector belongs to each local model is calculated. The posterior probability represents the probability that the thruster is in each local area under the current operating condition;
[0084] Next, the local model corresponding to the maximum value is selected from the posterior probability as the adaptive local model under the current working condition. Each local model corresponds to a pre-designed local controller, so determining the adaptive local model also determines the corresponding local controller;
[0085] In order to achieve smooth controller switching, the control laws of adjacent local controllers need to be integrated. First, based on the adapted local controller, multiple adjacent local controllers are obtained. Adjacent means the controllers corresponding to the areas adjacent to the adapted local area when the working interval is divided. For each adjacent local controller, its control law based on the current state is calculated, that is, the control input is determined based on the feedback information.
[0086] In order to smoothly fuse these adjacent control laws, the concept of fusion factor is introduced. The fusion factor represents the weight of each adjacent control law in the final control input. It is required that the sum of each fusion factor is 1 at every moment to ensure that the numerical range of the control input before and after fusion remains unchanged. At the same time, in order to ensure the continuous differentiability of the switching process, the derivative of the fusion factor is also taken into consideration as a constraint.
[0087] Finally, using Lyapunov stability theory, a linear matrix inequality is constructed to ensure the stability of the switching control. Linear matrix inequality is a special type of semidefinite programming problem that can be used for stability analysis and synthesis of control systems. By solving the linear matrix inequality, the value of the fusion factor that meets the stability condition can be obtained. Substituting the solved fusion factor into the weighted sum of adjacent control laws, the final stable and smooth switching control law can be obtained. The stable and smooth switching control law combines the control effects of the adaptive local controller and the adjacent local controller, taking into account the control performance while ensuring smooth switching. The switching control law can be output as the control input signal of the ammonia thruster to achieve precise and stable control of the thrust.
[0088] In this embodiment, the Gaussian mixture model is used to classify the working state of the thruster so that the system can respond accordingly according to different working states; the adaptive local model and local controller are selected according to the classification result of the working state vector to realize fine control of different working states; by fusing the control laws of adjacent local controllers and introducing fusion factors, a smooth transition of controller switching is realized to avoid the instability of the system during the switching process; the Lyapunov stability theory is used to construct a linear matrix inequality to ensure the stability of the switching control and the stability and reliability of the system under different working states; by comprehensively adapting the control effects of the local controller and the adjacent local controllers, the control performance and the requirements of smooth switching are taken into account to improve the performance of the system.
[0089] S102. Using a model optimization network to update the local model in real time, based on the operating state, the control input and the response output of the ammonia thruster, adjusting the network parameters through online learning, and generating an updated dynamic model; using an action evaluation algorithm, based on the updated dynamic model, combined with the control input and the response output, evaluating the control performance through a reward function, generating a controller parameter adjustment strategy, and self-tuning the controller parameters of the local controller to obtain adaptive controller parameters;
[0090] In this embodiment, by utilizing the model optimization network, online learning is performed based on the operating conditions, control inputs and thruster response outputs, network parameters are adjusted, and an updated dynamic model is generated to achieve real-time monitoring and modeling of the thruster dynamic characteristics, so that the control system can adapt to changes in thruster performance in a timely manner; utilizing the action evaluation algorithm, combined with the updated dynamic model, control inputs and thruster response outputs, the control performance is evaluated through a reward function, and an adjustment strategy for controller parameters is generated. The adjustment strategy can help the system to autonomously adjust controller parameters to adapt to different operating conditions and environmental changes, thereby achieving optimization of adaptive controller parameters.
[0091] In an optional embodiment, the local model is updated in real time using a model optimization network, and based on the operating state, the control input and the response output of the ammonia thruster, the network parameters are adjusted through online learning to generate an updated dynamic model, which includes:
[0092] Obtaining the operating state and control input of the ammonia thruster;
[0093] Based on a pre-trained kernel extreme learning machine network, by inputting the operating state and the control input, using a Gaussian kernel function to calculate a kernel function value between the operating state and the control input and a pre-collected training sample, and using the kernel function value as a kernel function output of a hidden layer node;
[0094] Based on the kernel function output of the hidden layer node, the network output weight is solved by the least square method to obtain the optimized local model parameters; based on the optimized local model parameters, the local model of the ammonia thruster is updated in real time.
[0095] First, the operating status and control input of the ammonia thruster are obtained in real time through sensors and control systems. The operating status reflects the current working state of the thruster, and the control input refers to the control command applied to the thruster at the current moment.
[0096] Next, the local model is updated online using the pre-trained kernel extreme learning machine network. The kernel extreme learning machine is a single hidden layer feedforward neural network with the advantages of fast training speed and strong generalization ability. In the pre-training stage, a large amount of historical operating data is used to initialize the input weights and hidden layer node parameters of the network and keep them fixed. In the online update stage, the currently acquired operating state and control input are input into the pre-trained network, and the intermediate output of the network is obtained through the kernel function transformation of the hidden layer nodes.
[0097] The kernel function is a key component of the kernel extreme learning machine, which is used to map the input data to a high-dimensional feature space to achieve nonlinear transformation. The kernel function preferably uses a Gaussian kernel function, and for the current input working state and control input, the kernel function value of each hidden layer node is calculated respectively. The kernel function value represents the similarity between the current input and the hidden layer node. The higher the similarity, the larger the kernel function value. The calculated kernel function value is used as the output of the hidden layer node and passed to the output layer of the network.
[0098] In the output layer, the network output weights are solved by the least squares method to minimize the error between the network output and the actual measured value. Since the parameters of the hidden layer nodes have been determined in the pre-training stage, only the output weights need to be adjusted to achieve fast network training. The solved output weights are the updated local model parameters.
[0099] Finally, the original local model parameters are replaced with the updated local model parameters to achieve real-time update of the local model. The updated local model can more accurately describe the dynamic characteristics of the ammonia thruster under the current working conditions and provide reliable prior information for controller design. By updating the local model online, it is possible to effectively adapt to changes in the dynamic characteristics of the thruster and improve the adaptability and robustness of the control system.
[0100] The online update of the local model and the switching of the controller are carried out in parallel. In each control cycle, the adapted local model and controller are first selected according to the current working state, and then the adapted local model is updated using the nuclear extreme learning machine network. The updated local model will be used for the design and switching of the controller in the next control cycle. Through this real-time update and switching strategy, the thrust output of the ammonia thruster can be accurately and stably controlled to meet the high-precision and high-reliability requirements of the spacecraft attitude and orbit control.
[0101] In this embodiment, the local model is updated online using a pre-trained nuclear extreme learning machine network, which can quickly adjust the model parameters so that the model parameters can more accurately describe the dynamic characteristics of the thruster and provide reliable prior information. The rapid training characteristics of the nuclear extreme learning machine network can realize the rapid update of the local model parameters and the rapid adaptability of the control system to the dynamic characteristics of the thruster. The online update of the local model and the switching of the controller are carried out in parallel, and the parallel strategy can ensure that the latest local model parameters can be used for controller design and switching in each control cycle to achieve accurate and stable thrust output control. By updating the parallel strategy of the local model and the controller in real time, accurate and stable control of the thrust output of the ammonia thruster can be achieved, meeting the high-precision and high-reliability requirements of the attitude and orbit control of the spacecraft.
[0102] In an optional embodiment, an action evaluation algorithm is used, based on the updated dynamic model, in combination with the control input and the response output, to evaluate the control performance through a reward function, generate an adjustment strategy for controller parameters, and self-tune the controller parameters of the local controller, and the adaptive controller parameters include:
[0103] The action evaluation algorithm is constructed based on the reinforcement learning method;
[0104] Initialize the global action network, global evaluation network and multiple parallel processing units;
[0105] For each parallel processing unit, do the following:
[0106] Copying parameters from the global action network and the global evaluation network to generate a local action network and a local evaluation network, based on updating the dynamic model, interacting with the controlled object through the local action network, collecting sample data and storing it in a local data cache;
[0107] Extracting a set of sample data from the local data cache, calculating the gradient of the local evaluation network, and uploading the gradient to the global evaluation network;
[0108] Based on the sample data, by pre-building a trust domain policy optimization algorithm, the policy update direction and step size of the local action network are calculated, the update direction and step size are uploaded to the global action network, and the global action network is asynchronously updated to generate an updated global action network;
[0109] Using the updated global action network, generating a controller parameter adjustment strategy;
[0110] Based on the adjustment strategy, self-tuning controller parameters of the local controller is performed to obtain adaptive controller parameters;
[0111] Based on the adaptive controller parameters, the controlled object is controlled, and a reward function value is calculated according to an actual control result;
[0112] Feeding back the reward function value to the global evaluation network, and updating the global evaluation network in combination with the actual control result;
[0113] The operation of the parallel processing unit is repeated until the global action network and the global evaluation network reach the preset control target, and the optimal adaptive controller parameters are determined.
[0114] First, a global action network and a global evaluation network are initialized to generate adjustment strategies for controller parameters and evaluate control effects. At the same time, multiple parallel processing units are created. Each unit independently executes the reinforcement learning process without direct communication with each other.
[0115] For each parallel processing unit, parameters are copied from the global action network and the global evaluation network to generate a local action network and a local evaluation network, allowing each unit to independently explore control strategies and improve the diversity of sample data; next, the local action network interacts with the controlled object, generates control inputs based on the current state, and observes the state and reward value at the next moment. This process is based on a dynamic model that is updated in real time to adapt to changes in the characteristics of the controlled object. The collected sample data, including state transitions and reward values, are stored in the local data cache for subsequent network training;
[0116] When a certain number of samples are accumulated in the local data cache, a set of sample data is randomly extracted from it to calculate the gradient of the local evaluation network. The purpose of the evaluation network is to estimate the value function of the state-action pair, that is, the long-term cumulative reward that can be obtained by taking a certain action in the current state. The gradient information reflects the degree of approximation of the current evaluation network to the true value function, which is uploaded to the global evaluation network for the update of the evaluation network parameters;
[0117] In addition to evaluating the training of the network, sample data is also used to optimize the action network strategy. The trust region strategy optimization algorithm is used to limit the amplitude of the strategy update, thereby improving the strategy performance while ensuring the stability of the update process. Specifically, in each parallel unit, the direction and step size of the action network strategy update are calculated based on the local sample data, and the update direction and step size are uploaded to the global action network, and the parameters of the global action network are updated asynchronously. The asynchronous update mechanism can reduce the communication overhead between parallel units and improve the training efficiency.
[0118] The updated global action network is used to generate the adjustment strategy of the controller parameters. Based on the adjustment strategy, the parameters of the local controller are self-tuned to obtain the adaptive controller parameters; the adaptive controller parameters reflect the optimal control strategy under the current dynamic environment and can quickly respond to changes in the characteristics of the controlled object;
[0119] The controlled object is controlled using the adaptive controller parameters, and the reward function value is calculated based on the actual control effect. The reward function measures the quality of the control effect and is a key feedback signal for reinforcement learning. The reward function value and the actual control result are fed back to the global evaluation network for further optimization of the evaluation network parameters.
[0120] Each parallel processing unit repeats independently and continuously updates the global action network and evaluation network until the preset convergence conditions are met or the given control target is achieved. The parallel learning mechanism can make full use of the computing resources of multiple processing units and accelerate the convergence process of reinforcement learning.
[0121] Finally, the global action network obtained through reinforcement learning can generate the optimal controller parameter adjustment strategy and realize adaptive tuning of controller parameters.
[0122] In this embodiment, by creating multiple parallel processing units, each unit independently executes the reinforcement learning process without direct communication with each other, the computing resources of multiple processing units can be fully utilized, the convergence process of reinforcement learning can be accelerated, and the training efficiency can be improved; the dynamic model updated in real time can adapt to the changes in the characteristics of the controlled object, wherein the reinforcement learning process is based on the sample data collected by the dynamic model, including state transfer and reward value, so that the control system can quickly respond to the changes in the characteristics of the controlled object; an asynchronous update mechanism is adopted to limit the amplitude of the strategy update, while improving the strategy performance, ensuring the stability of the update process, reducing the communication overhead between parallel units, and improving the training efficiency; the global action network obtained by reinforcement learning generates the optimal controller parameter adjustment strategy, realizes the adaptive setting of the controller parameters, enables the controller to quickly respond to changes in the dynamic environment, and improves the adaptability and performance of the system; the reward function value is calculated according to the actual control effect, and fed back to the global evaluation network for further optimization of the evaluation network parameters, continuously optimizing the evaluation network, improving the accurate evaluation of the control effect, and optimizing the control strategy.
[0123] In an optional embodiment, based on the sample data, by pre-building a trust domain policy optimization algorithm, calculating the policy update direction and step size of the local action network includes:
[0124] Calculate the strategy update direction, the formula is as follows:
[0125] ;
[0126] Among them, θ Indicates the policy parameters i Operators that perform gradient calculations, J ( i ) represents the strategy parameters i The cumulative return of the current strategy at time N represents the total number of samples, i Indicates the sample number, π θ ( a i |s i ) represents the strategy parameters i When in state s i Next select action a i The probability of θ logπ θ ( ai |s i ) indicates the i The logarithmic policy gradient of samples, A πθ ( a i |s i ) indicates that in the state s i Take action a i The advantage function value of , F represents the information matrix that measures the curvature information in different directions in the strategy parameter space, and d represents the strategy update direction vector.
[0127] According to the calculation strategy, the direction of the update formula consists of three parts:
[0128] The first part is the calculation formula of the policy gradient. It represents the gradient of the current policy relative to the policy parameters, and measures the impact of a small change in the policy parameters on the cumulative return. The gradient of the current policy relative to the policy parameters is obtained by averaging the contributions of all samples. For each sample, the contribution is obtained by multiplying two items, one of which is the logarithmic policy gradient of taking the corresponding action in a state, which represents the impact of a small change in the policy parameters on the probability of taking the action; the other is the advantage function value, which indicates how good it is to take the corresponding action in a state relative to the average;
[0129] The second part is the calculation formula of the information matrix, which measures the curvature information in different directions in the policy parameter space and reflects the shape characteristics of the policy distribution. The calculation of the information matrix is also based on the average of all samples. The contribution of each sample is the outer product of the logarithmic policy gradient and its transpose. The information matrix can be regarded as the Riemann metric of the policy parameter space and is used to correct the gradient direction in the natural gradient method.
[0130] The third part uses the results of the first two parts to obtain the final policy update direction by solving a set of linear equations. The overall set of equations represents the direction of change of the policy gradient vector mapped to the parameter space, so that under the information matrix metric, the inner product of the change direction and the gradient vector is equal to the modulus of the gradient vector. The change direction is as consistent as possible with the gradient direction on the basis of correcting the geometry of the parameter space, representing the direction of the fastest ascent. The policy update direction obtained by solving the set of equations comprehensively considers the gradient information and the curvature information of the parameter space, which can accelerate the convergence of the policy.
[0131] According to the formula, by measuring the gradient of the current strategy relative to the strategy parameters, that is, the impact of a small change in the strategy parameters on the cumulative return, and averaging the contribution of all samples, the gradient of the strategy parameters can be effectively estimated, helping the optimization algorithm to converge to the optimal solution faster; by measuring the curvature information in different directions in the strategy parameter space and reflecting the shape characteristics of the strategy distribution, the information matrix can be effectively estimated to help the optimization algorithm more accurately select the appropriate strategy update direction; by solving the linear equations to obtain the final strategy update direction, comprehensively considering the gradient information and the parameter space curvature information, the strategy update direction can more accurately guide the parameter update, accelerate the convergence process of the strategy, and improve the efficiency and stability of the optimization algorithm; comprehensively, by calculating the strategy update direction and step size, effective adjustment of the strategy parameters can be achieved, and the performance and convergence speed of the optimization algorithm can be improved.
[0132] S103. According to the updated dynamic model and the adaptive controller parameters, combined with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, a global optimal control input sequence is obtained through a control optimization algorithm, the first element of the global optimal control input sequence is used as the current control instruction, and the other elements of the global optimal control input sequence are used as reference control trajectories, and thrust stability control is achieved based on the current control instruction and the reference control trajectory.
[0133] The state constraint specifically refers to the state restriction conditions that the ammonia working fluid thruster must meet during operation. The state restriction conditions may include restrictions on the pressure, temperature, mass flow rate, etc. of the thruster to ensure that the thruster operates within a safe range without damage or failure;
[0134] The control input constraint specifically refers to the restriction condition on the control input, that is, the restriction on the control instruction applied to the thruster. The restriction condition may include restrictions on the thruster valve opening, thrust size, etc., to ensure that the control operation of the thruster is carried out within an acceptable range and does not cause overload or other adverse effects;
[0135] The global optimal control input sequence specifically refers to the optimal control input sequence obtained by minimizing the cost function under the condition of considering the state constraints and the control input constraints. The control input sequence is calculated by the optimization algorithm to ensure that the thruster operation effect is optimal under the given constraints;
[0136] In this embodiment, taking into account the state constraints and control input constraints, it can be ensured that the thruster is always in a safe and stable working state during operation, while avoiding operations beyond the thruster's capabilities; minimizing the cost function is used as the optimization goal, so that the system can more efficiently achieve the expected performance goals during the control process; through the control optimization algorithm, the system can find the global optimal control input sequence, and optimize the thruster control while satisfying the constraints; the first element of the global optimal control input sequence is used as the current control instruction, and the remaining elements are used as reference control trajectories, so that the system can stably control the thruster according to the real-time situation and keep it running on the optimal trajectory.
[0137] In an optional embodiment, according to the updated dynamic model and the adaptive controller parameters, combined with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, a global optimal control input sequence is obtained through a control optimization algorithm, including:
[0138] Establishing state constraints and control input constraints of the ammonia thruster;
[0139] Based on the error between the actual thrust and the target thrust, a thrust error quadratic function is determined to construct a thrust error term; based on the difference between the control inputs at adjacent moments, a control input difference quadratic function is determined to construct a control input change rate term; based on the penalty values generated by violating the state constraint and violating the control input constraint, a penalty function is determined to construct a constraint violation penalty term; based on the thrust error term, the control input change rate term and the constraint violation penalty term, a cost function is constructed;
[0140] With the goal of minimizing the cost function, a control optimization algorithm is constructed;
[0141] In each iteration process, the control optimization algorithm constructs a quadratic program based on the gradient and Hessian matrix at the current iteration point, solves the quadratic program to obtain the increment of the control input sequence and updates the iteration point, and determines whether the preset convergence condition is met. If not, the next iteration is entered, otherwise the iteration is terminated and the current corresponding control input sequence is output to obtain the global optimal control input sequence.
[0142] Firstly, state constraints and control input constraints are established for the ammonia thruster. The constraints reflect the safe working range of the thruster and the physical limitations of the controller, and must be strictly satisfied during the optimization process.
[0143] Next, a cost function is constructed to evaluate the control performance. The cost function consists of three parts: thrust error term, control input change rate term, and constraint violation penalty term. The thrust error term measures the deviation between the actual thrust and the target thrust, and uses a quadratic function to characterize the error size. The larger the error, the higher the cost function value. The control input change rate term considers the difference between the control inputs at adjacent moments, and is also described by a quadratic function in order to suppress drastic changes in the control input and improve control smoothness. The constraint violation penalty term penalizes violations of state constraints or control input constraints, and the penalty value is proportional to the degree of constraint violation. The weighted sum of these three terms gives a complete cost function expression to comprehensively evaluate the control performance.
[0144] After determining the cost function, with the goal of minimizing the cost function, a control optimization algorithm is constructed using a quadratic programming method based on gradient and Hessian matrix, and the global optimal control input sequence is found through iterative search; specifically, in each iteration process, the gradient and Hessian matrix of the cost function to the control input are first calculated at the current iteration point, the gradient provides the direction information of the cost function value decreasing, and the Hessian matrix describes the local curvature characteristics of the cost function, and a quadratic programming subproblem is constructed. The goal of the quadratic programming subproblem is to find an increment of the control input sequence under the condition of satisfying the state constraints and the control input constraints, so that the cost function value decreases;
[0145] Solve this quadratic programming subproblem, obtain the optimal control input increment at the current iteration point, add the increment to the current control input sequence, update the iteration point, and enter the next round of iteration. During the iteration process, continuously check whether the preset convergence conditions are met, such as whether the decrease in the cost function value is less than a given threshold, and preferably whether the number of iterations reaches the upper limit. Once the convergence conditions are met, it means that a local optimal solution has been found, and the iteration process terminates. At this time, the currently obtained control input sequence is output as the global optimal control input sequence;
[0146] The iterative optimization method based on quadratic programming uses the gradient and Hessian information of the cost function, takes into account the descent direction and step size during the search process, and can quickly converge to the local optimal solution. Optionally, by designing a reasonable starting point and convergence conditions, the probability of finding the global optimal solution can be further improved. At the same time, since each iteration strictly satisfies the state constraints and control input constraints, it can ensure that the obtained control input sequence is physically feasible, avoiding constraint violation problems;
[0147] Finally, the globally optimal control input sequence obtained is applied to the ammonia thruster to achieve precise tracking control of the thrust.
[0148] In this embodiment, the cost function consists of three parts: a thrust error term, a control input change rate term, and a constraint violation penalty term. It comprehensively considers multiple aspects of control performance. Through the construction of the cost function, the control performance can be effectively evaluated and the adjustment of the controller can be guided in the optimization process. The quadratic programming method based on the gradient and Hessian matrix is used for control optimization, which can quickly find the global optimal control input sequence while satisfying the constraints. Through iterative search, the system can effectively adjust the control input to minimize the cost function and achieve precise tracking control of the thruster. The quadratic programming method utilizes the gradient and Hessian information of the cost function, while considering the descent direction and step size, and can quickly converge to the local optimal solution, thereby improving the response speed and performance of the system.
[0149] In an optional embodiment, constructing a cost function based on the thrust error term, the control input change rate term and the constraint violation penalty term includes:
[0150] The cost function has the following formula:
[0151] ;
[0152] in, J 1 represents the thrust error term, k Indicates the time, K Indicates the total time, e k Indicates k The thrust error at a given moment is α 1 represents the thrust error sensitivity coefficient, J 2 represents the control input change rate term, Δ u k Indicates k The difference between adjacent control inputs at each moment, α 2 represents the control input change rate sensitivity coefficient, J 3 represents the constraint violation penalty term, j Indicates the state constraint sequence number, m represents the total number of state constraints, g j ( x k ) indicates the j The state constraint is k The function value at time instant, β 1 represents the sensitivity coefficient of violating the state constraint, l Indicates the control input constraint number, n represents the total number of control input constraints, h l ( u k ) indicates thel The control input constraints are in k The function value at time instant, β 2 represents the sensitivity coefficient of violating the control input constraint, J represents the cost function, c 1 represents the thrust error term contribution index, c 2 represents the contribution index of the control input change rate term, c 3 represents the contribution index of the constraint violation penalty term.
[0153] The formula describes the construction of the cost function, which includes three main parts: thrust error term, control input change rate term and constraint violation penalty term, as well as the combination relationship between them;
[0154] The thrust error term is calculated by first calculating the absolute value of the thrust error at each moment, and then transforming it through an exponential function; the independent variable of the exponential function is the inverse of the product of the absolute value of the error and a sensitivity coefficient, and the transformed result is squared. Compared with the original error square, it is equivalent to a dynamic scaling of the error; when the error is small, the scaling factor is close to 1, and the error amplification effect is not obvious; when the error is large, the scaling factor increases rapidly, and the error amplification effect is significant. The processing method can highlight the influence of large errors and suppress the interference of small errors. The transformed error squares are accumulated to obtain the thrust error term;
[0155] The calculation of the control input change rate term is similar to the thrust error term, which is aimed at the difference between the control inputs at adjacent moments. For the control input change at each moment, the absolute value is first calculated, then transformed by an exponential function, squared and accumulated to obtain the control input change rate term. The independent variable of the exponential function is the inverse of the product of the absolute value of the change and the sensitivity coefficient, which plays the role of dynamically scaling the change and highlighting the impact of large changes.
[0156] The calculation of constraint violation penalty is relatively complex, and is divided into two parts: state constraint violation penalty and control input constraint violation penalty. For each state constraint, the function value at each moment is calculated, and the larger of the function value and 0 is taken to indicate the degree of constraint violation. Similar exponential function transformation and square processing are then performed, and the state constraint violation penalty is accumulated. The calculation of control input constraint violation penalty is similar, but it is for the control input constraint function value at each moment. The state constraint violation penalty and the control input constraint violation penalty are added together to obtain the total constraint violation penalty.
[0157] Finally, the thrust error term, the control input change rate term, and the constraint violation penalty term are combined to obtain a complete cost function expression. The combination adopts a logarithmic exponential form. Specifically, the thrust error term is multiplied by the logarithm of the control input change rate term, the control input change rate term is multiplied by the logarithm of the constraint violation penalty term, and the constraint violation penalty term is multiplied by the logarithm of the thrust error term. The three products are added together to obtain the cost function value. The combination method can balance the contribution of the three terms. By adjusting the contribution index before the three logarithms, the importance of each term can be flexibly adjusted to achieve overall optimization of the control performance.
[0158] According to the formula, the characteristics of the thrust control problem are fully considered. By introducing the sensitivity coefficient and the contribution index, the thrust tracking accuracy and control smoothness can be taken into account while meeting the constraints. The use of exponential function transformation and logarithmic exponential combination makes the cost function adaptive to the sensitivity of errors and changes, and can achieve a good balance under different working conditions. At the same time, the cost function has good mathematical properties and is easy to derive and optimize, providing a basis for the subsequent optimization algorithm design.
[0159] Figure 2 FIG. 1 is a schematic diagram of the structure of the thrust stability control system of the ammonia thruster according to an embodiment of the present invention. Figure 2 As shown, the system comprises:
[0160] The first unit is used to divide the working range of the ammonia thruster into multiple local areas based on the historical working conditions of the ammonia thruster, and build a local linear model library; according to the working state of the ammonia thruster, select a corresponding local model from the local linear model library, switch the corresponding local controller, and determine the control input;
[0161] The second unit is used to update the local model in real time by using a model optimization network, adjust network parameters through online learning based on the operating state, the control input and the response output of the ammonia thruster, and generate an updated dynamic model; use an action evaluation algorithm, based on the updated dynamic model, combined with the control input and the response output, evaluate the control performance through a reward function, generate a controller parameter adjustment strategy, and self-tune the controller parameters of the local controller to obtain adaptive controller parameters;
[0162] The third unit is used to obtain a global optimal control input sequence through a control optimization algorithm based on the updated dynamic model and the adaptive controller parameters, in combination with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, and to use the first element of the global optimal control input sequence as the current control instruction, and other elements of the global optimal control input sequence as reference control trajectories, to achieve thrust stability control based on the current control instruction and the reference control trajectory.
[0163] According to a third aspect of the embodiments of the present invention,
[0164] An electronic device is provided, comprising:
[0165] processor;
[0166] a memory for storing processor-executable instructions;
[0167] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0168] A fourth aspect of the embodiments of the present invention is:
[0169] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0170] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling thrust stability of an ammonia thruster, characterized in that: include: Based on the historical working conditions of the ammonia thruster, the working range of the ammonia thruster is divided into multiple local areas to build a local linear model library; according to the working state of the ammonia thruster, a corresponding local model is selected from the local linear model library, and a corresponding local controller is switched to determine the control input; The local model is updated in real time by using a model optimization network, and based on the operating state, the control input and the response output of the ammonia thruster, the network parameters are adjusted through online learning to generate an updated dynamic model; an action evaluation algorithm is used to evaluate the control performance through a reward function based on the updated dynamic model, in combination with the control input and the response output, and a controller parameter adjustment strategy is generated, and the controller parameters of the local controller are self-tuned to obtain adaptive controller parameters; According to the updated dynamic model and the adaptive controller parameters, combined with the state constraints and control input constraints of the ammonia thruster, with the minimization of the cost function as the goal, a global optimal control input sequence is obtained through a control optimization algorithm, the first element of the global optimal control input sequence is used as the current control instruction, and the other elements of the global optimal control input sequence are used as reference control trajectories, and thrust stability control is achieved based on the current control instruction and the reference control trajectory; According to the working state of the ammonia thruster, a corresponding local model is selected from the local linear model library, and a corresponding local controller is switched to determine the control input, including: The measurement signal of the ammonia thruster is collected to generate an operating state vector, the operating state vector is classified based on a pre-trained Gaussian mixture model, the posterior probability that the operating state vector belongs to each of the local models is determined, the local model corresponding to the maximum value in the posterior probability is used as the adapted local model, and the local controller is determined; Based on the local controller, a plurality of adjacent local controllers are obtained, the control law of each of the adjacent local controllers is calculated, and a fusion factor of each of the control laws is determined, and the control laws of the adjacent local controllers are fused to determine the switching control law, with the sum of the fusion factors at each moment being 1 and the switching process being continuously differentiable as a constraint condition; Based on the stability condition of the Lyapunov function, a linear matrix inequality is constructed, and based on the linear matrix inequality, all fusion factors in the switching control law are solved to generate a stable and smooth switching control law, and obtain a control input signal.
2. The method according to claim 1, characterized in that The local model is updated in real time by using a model optimization network, and based on the operating state, the control input and the response output of the ammonia thruster, the network parameters are adjusted through online learning to generate an updated dynamic model, including: Obtaining the operating state and control input of the ammonia thruster; Based on a pre-trained kernel extreme learning machine network, by inputting the operating state and the control input, using a Gaussian kernel function to calculate a kernel function value between the operating state and the control input and a pre-collected training sample, and using the kernel function value as a kernel function output of a hidden layer node; Based on the kernel function output of the hidden layer node, the network output weight is solved by the least square method to obtain the optimized local model parameters; based on the optimized local model parameters, the local model of the ammonia thruster is updated in real time.
3. The method according to claim 1, characterized in that Using an action evaluation algorithm, based on the updated dynamic model, combined with the control input and the response output, the control performance is evaluated through a reward function, a controller parameter adjustment strategy is generated, and the controller parameters of the local controller are self-tuned, and the adaptive controller parameters include: The action evaluation algorithm is constructed based on the reinforcement learning method; Initialize the global action network, global evaluation network and multiple parallel processing units; For each parallel processing unit, do the following: Copying parameters from the global action network and the global evaluation network to generate a local action network and a local evaluation network, based on updating the dynamic model, interacting with the controlled object through the local action network, collecting sample data and storing it in a local data cache; Extracting a set of sample data from the local data cache, calculating the gradient of the local evaluation network, and uploading the gradient to the global evaluation network; Based on the sample data, by pre-building a trust domain policy optimization algorithm, the policy update direction and step size of the local action network are calculated, the update direction and step size are uploaded to the global action network, and the global action network is asynchronously updated to generate an updated global action network; Using the updated global action network, generating a controller parameter adjustment strategy; Based on the adjustment strategy, self-tuning controller parameters of the local controller is performed to obtain adaptive controller parameters; Based on the adaptive controller parameters, the controlled object is controlled, and a reward function value is calculated according to an actual control result; Feeding back the reward function value to the global evaluation network, and updating the global evaluation network in combination with the actual control result; The operation of the parallel processing unit is repeated until the global action network and the global evaluation network reach the preset control target, and the optimal adaptive controller parameters are determined.
4. The method according to claim 3, characterized in that Based on the sample data, by pre-building a trust region policy optimization algorithm, the strategy update direction and step size of the local action network are calculated including: Calculate the strategy update direction, the formula is as follows: ; Among them, θ Indicates the policy parameters θ Operators that perform gradient calculations, J ( θ ) represents the strategy parameters θ The cumulative return of the current strategy at time N represents the total number of samples, i Indicates the sample number, π θ ( a i |s i ) represents the strategy parameters θ When in state s i Next select action a i The probability of θ logπ θ ( a i |s i ) indicates the i The logarithmic policy gradient of samples, A πθ ( a i |s i ) indicates that in the state s i Take action a i The advantage function value of , F represents the information matrix that measures the curvature information in different directions in the strategy parameter space, and d represents the strategy update direction vector.
5. The method according to claim 1, characterized in that According to the updated dynamic model and the adaptive controller parameters, combined with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, a global optimal control input sequence is obtained through a control optimization algorithm, including: Establishing state constraints and control input constraints of the ammonia thruster; Based on the error between the actual thrust and the target thrust, a thrust error quadratic function is determined to construct a thrust error term; based on the difference between the control inputs at adjacent moments, a control input difference quadratic function is determined to construct a control input change rate term; based on the penalty values generated by violating the state constraint and violating the control input constraint, a penalty function is determined to construct a constraint violation penalty term; based on the thrust error term, the control input change rate term and the constraint violation penalty term, a cost function is constructed; With the goal of minimizing the cost function, a control optimization algorithm is constructed; In each iteration process, the control optimization algorithm constructs a quadratic program based on the gradient and Hessian matrix at the current iteration point, solves the quadratic program to obtain the increment of the control input sequence and updates the iteration point, and determines whether the preset convergence condition is met. If not, the next iteration is entered, otherwise the iteration is terminated and the current corresponding control input sequence is output to obtain the global optimal control input sequence.
6. The method according to claim 5, characterized in that Based on the thrust error term, the control input change rate term and the constraint violation penalty term, constructing a cost function includes: The cost function has the following formula: ; in, J 1 represents the thrust error term, k Indicates the time, K Indicates the total time, e k Indicates k The thrust error at a given moment is α 1 represents the thrust error sensitivity coefficient, J 2 represents the control input change rate term, Δ u k Indicates k The difference between adjacent control inputs at each moment, α 2 represents the control input change rate sensitivity coefficient, J 3 represents the constraint violation penalty term, j Indicates the state constraint sequence number, m represents the total number of state constraints, g j ( x k ) indicates the j The state constraint is k The function value at time instant, β 1 represents the sensitivity coefficient of violating the state constraint, l Indicates the control input constraint number, n represents the total number of control input constraints, h l ( u k ) indicates the l The control input constraints are in k The function value at time instant, β 2 represents the sensitivity coefficient of violating the control input constraint, J represents the cost function, γ 1 represents the contribution index of thrust error term, γ 2 represents the contribution index of the control input change rate term, γ 3 represents the contribution index of the constraint violation penalty term.
7. A thrust stability control system for an ammonia thruster, used to implement the method according to any one of claims 1 to 6, characterized in that: include: The first unit is used to divide the working range of the ammonia thruster into multiple local areas based on the historical working conditions of the ammonia thruster, and build a local linear model library; according to the working state of the ammonia thruster, select a corresponding local model from the local linear model library, switch the corresponding local controller, and determine the control input; The second unit is used to update the local model in real time by using a model optimization network, adjust network parameters through online learning based on the operating state, the control input and the response output of the ammonia thruster, and generate an updated dynamic model; use an action evaluation algorithm, based on the updated dynamic model, combined with the control input and the response output, evaluate the control performance through a reward function, generate a controller parameter adjustment strategy, and self-tune the controller parameters of the local controller to obtain adaptive controller parameters; The third unit is used to obtain a global optimal control input sequence through a control optimization algorithm based on the updated dynamic model and the adaptive controller parameters, in combination with the state constraints and control input constraints of the ammonia thruster, with the goal of minimizing the cost function, and to use the first element of the global optimal control input sequence as the current control instruction, and other elements of the global optimal control input sequence as reference control trajectories, to achieve thrust stability control based on the current control instruction and the reference control trajectory.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Elevator system self-learning optimal control method and system based on deep reinforcement learning
CN111753468A
Power tracking control method based on adaptive value iteration nuclear power system
CN113868961A
Nuclear power tracking control method based on integral reinforcement learning
CN113885328A
Model predictive control trajectory tracking control system and method based on reinforcement learning
CN114967676A
Spacecraft, and control system for controlling operation of spacecraft
WO2019030949A1
