Motor damping flexible control method based on deep reinforcement learning

Optimizing motor control through deep reinforcement learning controllers solves the problems of large calculation volume and discontinuous acceleration in existing motor control methods, achieves accurate modeling and efficient flexible control, and avoids the slow response and poor stability of traditional methods.

CN118778440AInactive Publication Date: 2024-10-15YUNNAN UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410745369.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing motor control methods require large amounts of calculations and discontinuous acceleration when planning speed. Traditional PID control strategies are complex in parameter adjustment, rely on manual experience, and require accurate modeling and consideration of external noise interference, resulting in slow response and poor stability.

Method used

A motor damping flexible control method based on deep reinforcement learning is adopted. By constructing a motor transfer function model, the flexible motor start and stop speed planning curve is set, and a deep reinforcement learning controller is constructed based on the Actor-Critic framework, and the reinforcement learning agent optimization strategy is used. Avoid the problem of poor parameter settings of traditional methods.

Benefits of technology

It achieves precise modeling control, reduces the amount of calculation and discontinuous changes in acceleration, and avoids the slow response and poor stability in traditional adaptive control. It directly optimizes the reward structure through deep reinforcement learning, captures the nonlinear behavior of the system, and improves control. efficiency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778440A_ABST
    Figure CN118778440A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of motor control, and discloses a motor damping flexible control method based on deep reinforcement learning, and the method comprises the steps: setting a start-stop speed planning curve of a flexible motor after building a motor transfer function model, building a deep reinforcement learning controller based on an Actor-Critic framework, and carrying out the control of the motor damping flexible control. The deep reinforcement learning controller comprises an observation vector module, a reward module and a stop module, and initializes parameters of the Actor-Critic network, including an observation vector, a network weight and an experience pool. According to the method, the DDPG algorithm is introduced into the motor control system, so that the system can directly optimize the reward structure through dynamic interaction with the environment without priori knowledge; after deep training, the reinforcement learning agent module can obtain the optimal decision in the current state to effectively capture the nonlinear behavior of the system without introducing unnecessary noise or information loss. In addition, the method avoids the problems of slow response and poor stability caused by poor parameter setting in the traditional adaptive control method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor control technology, and in particular to a motor vibration reduction flexible control method based on deep reinforcement learning. Background Art

[0002] In the field of machine tools, motor control must be managed with extreme care to avoid mechanical overtravel, which can lead to inaccurate machining of parts or damage to the workpiece or the machine itself. This precise control is essential to maintaining the high quality and efficiency expected in modern manufacturing processes.

[0003] In order to achieve flexible start and stop of the motor, the main research goal is to design a reasonable speed planning curve and cooperate with advanced control strategies to reduce overshoot and jitter in the transient control of the motor. The speed curve is designed by cubic polynomial to improve the stability of the system; or the square sine function is used to flexibly plan the speed curve to ensure the continuity of acceleration and deceleration; or the interval recognition method is combined with the Newton iteration method to improve the efficiency of curve processing.

[0004] These methods provide good solutions for motor speed control, but they require large amounts of calculations when planning speed, and the acceleration often changes discontinuously. When used with traditional PID control strategies, parameter adjustment is complex and relies on manual experience; using MPC control strategies also requires accurate modeling of the motor system, and consideration of multiple factors such as external noise interference. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the shortcomings of the prior art, the present invention provides a motor shock absorption flexible control method based on deep reinforcement learning, which has the advantages of precise modeling control and solves the above-mentioned technical problems.

[0007] (II) Technical solution

[0008] To achieve the above object, the present invention provides the following technical solution: a motor damping flexible control method based on deep reinforcement learning, comprising the following steps:

[0009] S1. Constructing a motor transfer function model, specifically including the following steps:

[0010] S1.1. Establish the phase voltage balance equation of the motor winding A, B, and C phases and the motor rotor torque balance equation. The specific expressions are as follows:

[0011] Phase voltage balance equation:

[0012]

[0013] Among them, u A、u B 、u C Respectively represent the voltage of motor phase A, B, and C, i A 、i B 、i C They represent the current of the motor A, B, and C phases respectively, R represents the winding resistance of the motor A, B, and C phases, L represents the inductance of the motor A, B, and C phases, θ represents the rotation angle of the motor rotor, ω represents the angular velocity of the motor rotor, and K m Represents the motor torque constant, Z r Indicates the number of gear teeth, Respectively represent the current i of motor phase A, B, and C A 、i B 、i C The first derivative with respect to time t, π represents the radian system of 180°, and sin(*) represents the sine function;

[0014] Motor rotor torque balance equation:

[0015]

[0016] Among them, i A 、i B 、i C Respectively represent the current of motor phase A, B, and C, K m represents the motor torque constant, θ represents the motor rotor rotation angle, Z r Indicates the number of gear teeth, represents the second-order derivative of θ with respect to time t, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, T1 represents the load torque, and sin(*) represents the sine function;

[0017] S1.2, express the motor motion equation in incremental form, the specific expression is as follows:

[0018]

[0019] Among them, i A represents the current of motor phase A, L1 represents the self-inductance of motor phase A, Z r Indicates the number of gear teeth, represents the first-order derivative of δθ with respect to time t, represents the second-order derivative of δθ with respect to time t, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, sin(*) represents the sine function, and δ represents the change in the rotation angle per unit time;

[0020] S1.3. Perform an inverse Laplace transform on the expression in step S1.2 to obtain the transfer function model of the motor. The specific expression is as follows:

[0021]

[0022] Among them, G(s) represents the transfer function model of the motor, Z r represents the number of gear teeth, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, θ1(s) and θ2(s) represent the standard rotation angle of the motor rotor and the actual rotation angle of the motor rotor respectively;

[0023] S2. Setting the flexible motor start-stop speed planning curve, specifically including the following steps:

[0024] S2.1. Determine the starting speed V0 and target speed V of the flexible motor start-stop speed planning curve sp and planning time T;

[0025] S2.2. Calculate the tracking error delta_V.

[0026] S2.3, dividing the speed planning curve into three stages, namely: acceleration motion stage, uniform motion stage and deceleration motion stage;

[0027] S2.4, the acceleration stage and the deceleration stage are two symmetrical speed curves. The Sigmoid function with a smoothing factor is used to generate the S-curve. The speed curve expressions of the acceleration stage and the deceleration stage are as follows:

[0028] Speed ​​curve in the acceleration phase:

[0029] V t =V0+delta_V*sigmoid((T-t0) / t1)

[0030] Speed ​​curve in deceleration phase:

[0031] V t =V sp +delta_V*sigmoid((t3-T) / t2)

[0032] Among them, V t represents the speed at time t, V0 represents the starting speed, V sp represents the target speed, delta_V represents the tracking error, sigmoid(*) represents the sigmoid function, t1 represents the time of the acceleration phase, t0 represents the starting time, t3 represents the ending time, and t2 represents the time of the deceleration phase;

[0033] S2.5. When the speed reaches the specified speed, it remains unchanged and enters the uniform motion stage. The specific expression is as follows:

[0034] V t =Vsp

[0035] Among them, V sp Indicates the target speed;

[0036] S3. A deep reinforcement learning controller is constructed based on the Actor-Critic framework. The deep reinforcement learning controller includes an observation vector module, a reward module and a stop module. The observation vector module is used to perform integral calculation on the observed motor state, that is, to receive the speed planning curve in step S2 and the data in step S1. The reward module adjusts the current moment strategy through the reward function. The stop module is provided with limiting conditions for ending the current training round. The deep reinforcement learning controller also includes a reinforcement learning agent module, which is used to be trained and evaluated by the Actor-Critic network.

[0037] S4, initialize the parameters of the Actor-Critic network, including the observation vector, network weight and experience pool, and train the reinforcement learning agent module in step S3;

[0038] S5, judging whether the current training result of the reinforcement learning agent module has reached the target value set in theory, if it has reached the target value, loading the trained reinforcement learning agent module into the deep reinforcement learning controller, otherwise, continuing the training;

[0039] S6. Use the deep reinforcement learning controller for flexible control of the motor. If the motor meets the actual control requirements, the control is completed. If not, repeat the above steps S1-S6.

[0040] As a preferred technical solution of the present invention, the expression of the speed tracking error delta_V in step S2.2 is as follows:

[0041] delta_V=V sp -V0

[0042] Among them, V0 represents the starting speed, V sp Indicates the target speed.

[0043] As a preferred technical solution of the present invention, the expression of the motor state stored in the observation vector module is as follows:

[0044] s(t)=[y(t),e(t),∫e(t)dt] T

[0045] Among them, s(t) represents the stored motor state, which is a vector, y(t) represents the actual speed, e(t) represents the error between the actual speed y(t) and the set speed v(t), ∫e(t)dt represents the integral of e(t), and the superscript T represents the transpose. Observation vector module, reward module and stop module.

[0046] As a preferred technical solution of the present invention, the expression of the error e(t) between the actual speed y(t) and the set speed v(t) is as follows:

[0047] e(t)=|v(t)-y(t)|

[0048] Where |*| represents the absolute value, y(t) represents the actual speed, v(t) represents the set speed, and e(t) represents the error between the actual speed y(t) and the set speed v(t).

[0049] As a preferred technical solution of the present invention, the reward function expression stored in the reward module is as follows:

[0050]

[0051] Among them, Reward represents the reward function, e represents the tracking error between the actual speed and the set speed, ε represents a constant to prevent the denominator from being zero, max represents the planned maximum speed, and y(t) represents the actual speed.

[0052] Compared with the prior art, the present invention provides a motor damping flexible control method based on deep reinforcement learning, which has the following beneficial effects:

[0053] The present invention constructs a deep reinforcement learning controller by introducing an Actor-Critic structure into the motor control system and combining it with an experience pool playback mechanism. The system can directly optimize its reward structure through dynamic interaction with the environment without prior knowledge. After in-depth training, the reinforcement learning agent module can learn the optimal decision in the current state and effectively capture the nonlinear behavior of the system without introducing unnecessary noise or information loss. In addition, the method avoids the problems of slow response and poor stability caused by poor parameter settings in traditional adaptive control methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a schematic diagram of the overall process of the present invention;

[0055] Figure 2 It is a schematic diagram of the framework design of the present invention;

[0056] Figure 3 This is a schematic diagram of the training process of the reinforcement learning agent module of the present invention;

[0057] Figure 4This is a schematic diagram of the Actor network of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] See also Figure 1-4 , a motor damping flexible control method based on deep reinforcement learning, comprising the following steps:

[0060] S1. Constructing a motor transfer function model, specifically including the following steps:

[0061] S1.1. Establish the phase voltage balance equation of the motor winding A, B, and C phases and the motor rotor torque balance equation. The specific expressions are as follows:

[0062] Phase voltage balance equation:

[0063]

[0064] Among them, u A 、u B 、u C Respectively represent the voltage of motor phase A, B, and C, i A 、i B 、i C They represent the current of the motor A, B, and C phases respectively, R represents the winding resistance of the motor A, B, and C phases, L represents the inductance of the motor A, B, and C phases, θ represents the rotation angle of the motor rotor, ω represents the angular velocity of the motor rotor, and K m Represents the motor torque constant, Z r Indicates the number of gear teeth, Respectively represent the current i of motor phase A, B, and C A 、i B 、i C The first derivative with respect to time t, π represents the radian system of 180°, and sin(*) represents the sine function;

[0065] Motor rotor torque balance equation:

[0066]

[0067] Among them, i A 、i B 、i C Respectively represent the current of motor phase A, B, and C, K mrepresents the motor torque constant, θ represents the motor rotor rotation angle, Z r Indicates the number of gear teeth, represents the second-order derivative of θ with respect to time t, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, T1 represents the load torque, and sin(*) represents the sine function;

[0068] S1.2, express the motor motion equation in incremental form, the specific expression is as follows:

[0069]

[0070] Among them, i A represents the current of motor phase A, L1 represents the self-inductance of motor phase A, Z r Indicates the number of gear teeth, represents the first-order derivative of δθ with respect to time t, represents the second-order derivative of δθ with respect to time t, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, sin(*) represents the sine function, and δ represents the change in the rotation angle per unit time;

[0071] S1.3. Perform an inverse Laplace transform on the expression in step S1.2 to obtain the transfer function model of the motor. The specific expression is as follows:

[0072]

[0073] Among them, G(s) represents the transfer function model of the motor, Z r represents the number of gear teeth, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, θ1(s) and θ2(s) represent the standard rotation angle of the motor rotor and the actual rotation angle of the motor rotor respectively;

[0074] S2. Setting the flexible motor start-stop speed planning curve, specifically including the following steps:

[0075] S2.1. Determine the starting speed V0 and target speed V of the flexible motor start-stop speed planning curve sp and planning time T;

[0076] S2.2, calculate the tracking error delta_V;

[0077] The expression of velocity tracking error delta_V is as follows:

[0078] delta_V=V sp -V0

[0079] Among them, V0 represents the starting speed, V sp Indicates the target speed

[0080] S2.3, dividing the speed planning curve into three stages, namely: acceleration motion stage, uniform motion stage and deceleration motion stage;

[0081] S2.4, the acceleration stage and the deceleration stage are two symmetrical speed curves. The Sigmoid function with a smoothing factor is used to generate the S-curve. The speed curve expressions of the acceleration stage and the deceleration stage are as follows:

[0082] Speed ​​curve in the acceleration phase:

[0083] V t =V0+delta_V*sigmoid((T-t0) / t1)

[0084] Speed ​​curve in deceleration phase:

[0085] V t =V sp +delta_V*sigmoid((t3-T) / t2)

[0086] Among them, V t represents the speed at time t, V0 represents the starting speed, V sp represents the target speed, delta_V represents the tracking error, sigmoid(*) represents the sigmoid function, t1 represents the time of the acceleration phase, t0 represents the starting time, t3 represents the ending time, and t2 represents the time of the deceleration phase;

[0087] S2.5. When the speed reaches the specified speed, it remains unchanged and enters the uniform motion stage. The specific expression is as follows:

[0088] V t =V sp

[0089] Among them, V sp Indicates the target speed;

[0090] S3. A deep reinforcement learning controller is constructed based on the Actor-Critic framework. The deep reinforcement learning controller includes an observation vector module (Actor Vector), a reward module (Reward) and a stop module (Stop). The observation vector module is used to perform integral calculation on the observed motor state, that is, to receive the speed planning curve in step S2 and the data in step S1. The reward module adjusts the current moment strategy through the reward function. The stop module is provided with limiting conditions for ending the current training round. The deep reinforcement learning controller also includes a reinforcement learning agent module, which is used to be trained and evaluated by the Actor-Critic network.

[0091] The expression of the motor state stored in the observation vector module is as follows:

[0092] s(t)=[y(t),e(t),∫e(t)dt] T

[0093] Where s(t) represents the stored motor state, which is a vector, y(t) represents the actual speed, e(t) represents the error between the actual speed y(t) and the set speed v(t), ∫e(t)dt represents the integral of e(t), and the superscript T represents the transpose. Observation vector module, reward module and stop module;

[0094] The expression of the error e(t) between the actual speed y(t) and the set speed v(t) is as follows:

[0095] e(t)=|v(t)-y(t)|

[0096] Where |*| represents the absolute value, y(t) represents the actual speed, v(t) represents the set speed, and e(t) represents the error between the actual speed y(t) and the set speed v(t);

[0097] The output of the Actor network is fed into the Critic network, which evaluates the effect of the current action and calculates the corresponding Q-value. Q-value is a quantitative evaluation of the effect of an action. According to the value of Q-value, the Actor network is guided to make the best choice in different states. In this way, the two networks work together to continuously optimize and adjust strategies to achieve a more efficient learning and decision-making process.

[0098] In reinforcement learning, the reward function plays a vital role. It guides the agent to learn and make decisions effectively during the interaction with the environment, with the goal of maximizing the total reward. The design of the reward mechanism is very diverse and can be mainly classified into discrete, continuous and hybrid types.

[0099] A discrete reward function provides a fixed reward or penalty value, which is usually suitable for simpler task environments because it does not distinguish between the subtle differences in different behaviors. Although simple in operation, it cannot effectively deal with situations that require complex strategies.

[0100] In contrast, continuous and hybrid reward functions dynamically adjust rewards based on the actual effects of the behavior. This design not only increases the flexibility of the strategy, but also enables the agent to adjust its behavior more accurately. In order to greatly enhance the learning efficiency and adaptability of the agent and ensure that it makes the best decision in a changing environment, a hybrid reward function is adopted.

[0101] The reward function expression stored in the reward module is as follows:

[0102]

[0103] Among them, Reward represents the reward function, e represents the tracking error between the actual speed and the set speed, ε represents a constant to prevent the denominator from being zero, max represents the planned maximum speed, and y(t) represents the actual speed

[0104] S4, initialize the parameters of the Actor-Critic network, including the observation vector, network weight and experience pool, and train the reinforcement learning agent module in step S3;

[0105] The Actor network has a three-layer structure. The first layer has 3 neurons, the second layer has 256 neurons, and the third layer has 1 neuron. The output of the Actor network will be used as the input of the Critic network. The input layer of the Critic network has 4 neurons, the second and third layers have 256 neurons, and the fourth layer has 1 neuron. It can be seen that the input layer of the Critic not only contains the current state of the motor, but also contains the action taken. The Q-value represents the evaluation score obtained by taking the action in the current state. The size of the Q-value value represents the pros and cons of the adopted strategy.

[0106] like Figure 4 The Actor network calculates the action at to be taken based on the current state St (including the first layer of neurons - the three elements on the left)

[0107] Assuming that the current motor speed is slow and the error with the set speed is large, the action taken is to increase the input excitation: after increasing the input, the motor speed increases; it also means that after taking action at (increasing input excitation), the motor enters the next state St+1 (fast state) from state St (slow speed state). But how to evaluate the quality of the action taken? The reward Rt is used, which is the Reward mentioned above. The reward function Reward is inversely proportional to the tracking error. The smaller the error, the larger the reward value. This means that under the current state St, the action at taken can make the tracking error et smaller and the reward value Reward larger. After taking action at, the motor reaches the next state St+1. The process described above is the training process of the intelligent agent, but this is only one round of training. The intelligent agent needs to go through multiple rounds of training to meet the control requirements. In order to save the training data of these rounds, an experience pool is constructed to improve the stability and efficiency of the training process.

[0108] S5, judging whether the current training result of the reinforcement learning agent module has reached the target value set in theory, if it has reached the target value, loading the trained reinforcement learning agent module into the deep reinforcement learning controller, otherwise, continuing the training;

[0109] S6, using the deep reinforcement learning controller for flexible control of the motor. If the motor meets the actual control requirements, the control is completed. If not, the above steps S1-S6 are repeated;

[0110] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A motor damping flexible control method based on deep reinforcement learning, characterized in that: The following steps are involved: S1. Constructing a motor transfer function model, specifically including the following steps: S1.

1. Establish the phase voltage balance equation of the motor winding A, B, and C phases and the motor rotor torque balance equation. The specific expressions are as follows: Phase voltage balance equation: Among them, u A 、u B 、u C Respectively represent the voltage of motor phase A, B, and C, i A 、i B 、i C They represent the current of the motor A, B, and C phases respectively, R represents the winding resistance of the motor A, B, and C phases, L represents the inductance of the motor A, B, and C phases, θ represents the rotation angle of the motor rotor, ω represents the angular velocity of the motor rotor, and K m Represents the motor torque constant, Z r Indicates the number of gear teeth, Respectively represent the current i of motor phase A, B, and C A 、i B 、i C The first derivative with respect to time t, π represents the radian system of 180°, and sin(*) represents the sine function; Motor rotor torque balance equation: Among them, i A 、i B 、i C Respectively represent the current of motor phase A, B, and C, K m represents the motor torque constant, θ represents the motor rotor rotation angle, Z r Indicates the number of gear teeth, represents the second-order derivative of θ with respect to time t, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, T1 represents the load torque, and sin(*) represents the sine function; S1.2, express the motor motion equation in incremental form, the specific expression is as follows: Among them, i A represents the current of motor phase A, L1 represents the self-inductance of motor phase A, Z r Indicates the number of gear teeth, represents the first-order derivative of δθ with respect to time t, represents the second-order derivative of δθ with respect to time t, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, sin(*) represents the sine function, and δ represents the change in the rotation angle per unit time; S1.

3. Perform an inverse Laplace transform on the expression in step S1.2 to obtain the transfer function model of the motor. The specific expression is as follows: Among them, G(s) represents the transfer function model of the motor, Z r represents the number of gear teeth, J represents the sum of the current load inertia of the motor and the motor rotor inertia, D represents the viscous friction coefficient, θ1(s) and θ2(s) represent the standard rotation angle of the motor rotor and the actual rotation angle of the motor rotor respectively; S2. Setting the flexible motor start-stop speed planning curve, specifically including the following steps: S2.

1. Determine the starting speed V0 and target speed V of the flexible motor start-stop speed planning curve sp and planning time T; S2.2, calculate the tracking error delta_V; S2.3, dividing the speed planning curve into three stages, namely: acceleration motion stage, uniform motion stage and deceleration motion stage; S2.4, the acceleration stage and the deceleration stage are two symmetrical speed curves. The Sigmoid function with a smoothing factor is used to generate the S-curve. The speed curve expressions of the acceleration stage and the deceleration stage are as follows: Speed ​​curve in the acceleration phase: V t =V0+delta_V*sigmoid((T-t0) / t1) Speed ​​curve in deceleration phase: V t =V sp +delta_V*sigmoid((t3-T) / t2) Among them, V t represents the speed at time t, V0 represents the starting speed, V sp represents the target speed, delta_V represents the tracking error, sigmoid(*) represents the sigmoid function, t1 represents the time of the acceleration phase, t0 represents the starting time, t3 represents the ending time, and t2 represents the time of the deceleration phase; S2.

5. When the speed reaches the specified speed, it remains unchanged and enters the uniform motion stage. The specific expression is as follows: V t =V sp Among them, V sp Indicates the target speed; S3. A deep reinforcement learning controller is constructed based on the Actor-Critic framework. The deep reinforcement learning controller includes an observation vector module, a reward module and a stop module. The observation vector module is used to perform integral calculation on the observed motor state error, that is, to receive the speed planning curve in step S2 and the data in step S1. The reward module adjusts the current moment strategy through the reward function. The stop module is provided with limiting conditions for ending the current training round. The deep reinforcement learning controller also includes a reinforcement learning agent module, which is used to be trained and evaluated by the Actor-Critic network. S4, initialize the parameters of the Actor-Critic network, including the observation vector, network weight and experience pool, and train the reinforcement learning agent module in step S3; S5, judging whether the current training result of the reinforcement learning agent module has reached the target value set in theory, if it has reached the target value, loading the trained reinforcement learning agent module into the deep reinforcement learning controller, otherwise, continuing the training; S6. Use the deep reinforcement learning controller for flexible control of the motor. If the motor meets the actual control requirements, the control is completed. If not, repeat the above steps S1-S6.

2. The motor damping flexible control method based on deep reinforcement learning according to claim 1 is characterized in that: The expression of the velocity tracking error delta_V in step S2.2 is as follows: delta_V=V sp -V0 Among them, V0 represents the starting speed, V sp Indicates the target speed.

3. The motor damping flexible control method based on deep reinforcement learning according to claim 1 is characterized in that: The expression of the motor state stored in the observation vector module is as follows: s(t)=[y(t),e(t),∫e(t)dt] T Among them, s(t) represents the stored motor state, which is a vector, y(t) represents the actual speed, e(t) represents the error between the actual speed y(t) and the set speed v(t), ∫e(t)dt represents the integration of e(t), and the superscript T represents the transpose; observation vector module, reward module and stop module.

4. The motor damping flexible control method based on deep reinforcement learning according to claim 3 is characterized in that: The expression of the error e(t) between the actual speed y(t) and the set speed v(t) is as follows: e(t)=|v(t)-y(t)| Where |*| represents the absolute value, y(t) represents the actual speed, v(t) represents the set speed, and e(t) represents the error between the actual speed y(t) and the set speed v(t).

5. The motor damping flexible control method based on deep reinforcement learning according to claim 1 is characterized in that: The reward function expression stored in the reward module is as follows: Among them, Reward represents the reward function, e represents the tracking error between the actual speed and the set speed, ε represents a constant to prevent the denominator from being zero, max represents the planned maximum speed, and y(t) represents the actual speed.

Citation Information

Patent Citations

  • Motor control method

    CN114567229A

  • Active-disturbance-rejection controller parameter optimization method based on deep reinforcement learning

    CN115097736A

  • Prediction control weight factor dynamic optimization method based on deep residual network

    CN116954072A

  • Deep learning models for electric motor winding temperature estimation and control

    EP4358393A1

  • Distributed and centralized adaptive control of electric submersible pumps

    US20210071508A1