Deep reinforcement learning position control method for PMSM servo system

Through the deep reinforcement learning method, the use of logical grid and clothoid curve approximation tracking technology, combined with the DQN algorithm and MDP model, the control decision-making problem of the PMSM servo system in a high-dimensional state is solved, and the learning ability and intelligence of the system are improved.

CN118589941APending Publication Date: 2024-09-03TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410620191.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing PMSM servo system has low intelligence and cannot effectively handle complex and changeable operating environments and load interference, especially control decision-making problems in large state spaces, resulting in reduced learning efficiency or the inability to learn.

Method used

Using the deep reinforcement learning method, by establishing a logical grid and generating a clothoid curve, the optimal curve is selected for approximate tracking of the reference position instruction. The DQN algorithm is combined with the MDP model to calculate the immediate return component factor and determine the optimal clothoid control curve.

Benefits of technology

The learning ability and intelligence of the PMSM servo system are improved, which can effectively solve the decision-making problem of high-dimensional state and action space and achieve better control performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589941A
    Figure CN118589941A
Patent Text Reader

Abstract

The invention discloses a deep reinforcement learning control method for a position servo system of a permanent magnet synchronous motor (PMSM). The method comprises the following steps that a reference position instruction of a PMSM servo system is subjected to discrete representation by dividing logic grids, and meanwhile, each grid comprises a control action approaching tracking along 45 degrees or 90 degrees; a local coordinate system with the PMSM servo system as the center is established, a series of clothoids are generated through calculation, and the actual control position of the PMSM is represented; and taking the transverse distance and the relative tangential direction angle between the given curve and the clothoid as composition factors of immediate return, determining an optimal clothoid through a deep reinforcement learning DQN algorithm, and performing tracking control on a given reference position instruction. Compared with a traditional control method, the method has better learning ability and intelligence, and can solve the decision problem of a high-dimensional state and an action space at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of position control, and in particular to a deep reinforcement learning position control method for a PMSM servo system. Background Art

[0002] Permanent Magnet Synchronous Motor (PMSM) has been widely used in CNC machine tools, aerospace, industrial robots and other fields due to its many advantages such as small size, high efficiency, large electromagnetic torque, easy maintenance and convenient control. At present, PID (Proportional-Integral-Derivative) control, fuzzy control, adaptive control, sliding mode control and neural network control are usually used in PMSM servo systems to improve the control performance of the system. However, these algorithms have low intelligence and poor intelligence, and cannot interact with control instructions for learning and control. Faced with complex and changeable operating environments and uncertain factors such as load interference, PMSM servo systems must have the ability to learn to adapt to the environment, use advanced intelligence to handle automatic control problems, and respond to perturbations of unknown environmental information and unknown interference.

[0003] Reinforcement Learning (RL) does not rely on the internal information of the environment model and the controlled object. When the environment information is unknown or incompletely known, it forms and improves the control law through continuous interactive learning. RL uses the Q function to represent the expected cumulative return of the long-term execution of the control strategy as a criterion for measuring the quality of the strategy, and selects real-time decision actions based on long-term goals. It has been widely studied in the control field.

[0004] However, existing studies have used basic Q-learning algorithms, which are suitable for situations with small state spaces and cannot solve control decision-making problems in large state spaces. Moreover, basic Q-learning algorithms require a lot of learning experience to find a better control strategy. PMSM is a nonlinear, multivariable, and strongly coupled system that generates massive amounts of data during operation. If the servo system has too many states, it will lead to a decrease in RL learning efficiency or even the inability to learn. Summary of the invention

[0005] In order to solve the above problems existing in the prior art of position control of PMSM servo system, the present invention provides a PMSM servo system deep reinforcement learning position control method. The method has better learning ability and intelligence, and can solve the decision-making problem of high-dimensional state and action space.

[0006] To achieve the above object, the technical solution adopted by the present invention is:

[0007] Establishing a logic grid, and representing a reference position command of the PMSM servo system in the logic grid;

[0008] Generate a clothoid curve representing the actual position control state of the PMSM;

[0009] An optimal clothoid curve is selected, and the clothoid curve is controlled to approach and track a reference position instruction.

[0010] As a further improvement of the present invention, the logic grid is composed of square grid units.

[0011] As a further improvement of the present invention, each square grid unit contains information on grid occupancy and servo control actions a(t) in different directions and angles.

[0012] As a further improvement of the present invention, the servo control action a(t) is based on the horizontal direction and approaches and tracks the reference position instruction from the current square grid unit to the next square grid unit along 45° or 90°.

[0013] As a further improvement of the present invention, the clothoid curve representing the actual position is generated in the form of a clothoid curve with the PMSM servo system as the center and the initial position as the starting point.

[0014] As a further improvement of the present invention, the selection of the optimal clothoid curve includes:

[0015] Representing the reference position instruction in the logic grid as a given target curve;

[0016] Calculate the lateral distance and relative tangent direction angle between the target curve and the clothoid curve;

[0017] Calculate the immediate reward component factor of the MDP model according to the lateral distance and the relative tangent direction angle;

[0018] Based on the MDP model and the immediate reward component factors, the optimal convolution control curve is determined by the DQN algorithm.

[0019] The calculation formula for the immediate return component factor is:

[0020] d i =a i +c α α i ;

[0021] Where: d i is the immediate return component factor; a i is the horizontal distance between curves; α i is the relative tangent direction angle of the curve; c αis the scaling factor for the lateral distance and tangent angle.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] By dividing the logic grid, the reference position command of the PMSM servo system is discretely represented, and each grid contains a control action of approximating and tracking along 45° or 90°; a local coordinate system centered on the PMSM servo system is established, and a series of clothoid curves are calculated to represent the actual control position of the PMSM; the lateral distance and relative tangent direction angle between the given curve and the clothoid curve are used as the component factors of the immediate return, and the optimal clothoid curve is determined by the deep reinforcement learning DQN algorithm to track and control the given reference position command. Compared with the traditional control method, the present invention has better learning ability and intelligence, and can solve the decision-making problem of high-dimensional state and action space.

[0024] The details of one or more embodiments of the present invention are presented in the following drawings and descriptions. Other features and advantages of the present invention will become apparent from the accompanying drawings. It should be understood that the above general description and the detailed descriptions below are only exemplary and explanatory and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0026] Figure 1 It is a flow chart of a PMSM servo system deep reinforcement learning position control method of the present invention;

[0027] Figure 2 is a block diagram of the position control of the servo system of the present invention;

[0028] Figure 3 It is a schematic diagram of grid division of the present invention;

[0029] Figure 4 It is a schematic diagram of generating a clothoid curve of the present invention;

[0030] Figure 5 It is a schematic diagram of the clothoid curve fitting approximation of a given position of the present invention. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully in conjunction with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present invention will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solutions of the present invention may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present invention.

[0032] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware units or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation.

[0034] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example.

[0035] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or sub-modules is not necessarily limited to those steps or sub-modules explicitly listed, but may include other steps or sub-modules not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0036] Figure 1 is a flow chart of a PMSM servo system deep reinforcement learning position control method of the present invention, such as Figure 1As shown, the present invention provides a PMSM servo system deep reinforcement learning position control method, comprising:

[0037] Establishing a logic grid, and representing a reference position command of the PMSM servo system in the logic grid;

[0038] Generate a clothoid curve representing the actual position control state of the PMSM;

[0039] An optimal clothoid curve is selected, and the clothoid curve is controlled to approach and track a reference position instruction.

[0040] A control block diagram of a PMSM servo system deep reinforcement learning position control method of the present invention is shown in FIG. Figure 2 As shown ( Figure 2 Medium θ * ref represents the expected value of the position angle, θ L Indicates the actual feedback value of the position angle). The following is combined with Figure 2 The specific steps of this embodiment are described as follows:

[0041] This embodiment divides the reference position command of the PMSM servo system into logical grids to discretely represent it, and each grid contains a control action for approximating and tracking along 45° or 90°; establishes a local coordinate system centered on the PMSM servo system, calculates and generates a series of clothoid curves to represent the actual control position of the PMSM; uses the lateral distance and relative tangent direction angle between the given curve and the clothoid curve as the component factors of the immediate reward, determines the optimal clothoid curve through the deep reinforcement learning DQN algorithm, and tracks and controls the given reference position command. The specific implementation method is as follows:

[0042] The desired reference position command trajectory of the PMSM servo system is defined on the global logic diagram, and the actual tracking strategy of the servo control is divided into three main steps to complete.

[0043] (a) Logical grid division:

[0044] In the algorithm design, a two-dimensional grid consisting of square units is established to discretely represent the reference position command of the PMSM servo system. Each square unit contains information about the grid occupancy and also contains actions a(t) in different directions and angles. Based on the horizontal direction, the servo action a(t) approaches the position command from the current grid to the next grid along 45° or 90°, such as Figure 3 ( Figure 3 The grid in the figure represents a grid).

[0045] (b) Clothoid curve generation:

[0046] A coordinate system centered on the PMSM servo system is established, and a set of virtual clothoid curves are used to represent the position control state. Under stable control conditions, all calculated tentacles are represented in the local coordinate system of the PMSM servo system. They start with the initial state of the PMSM servo system and unfold in the form of a clothoid curve, such as Figure 4 shown. Figure 4 The horizontal axis is time, and the vertical axis is position instruction.

[0047] (c) Optimal curve selection:

[0048] Each clothoid curve is represented as a potential position control trajectory, that is, the actual feedback position of the PMSM, and the given reference position command is approximated and tracked in the logic grid according to the control action. A set of measurement values ​​is calculated using the lateral distance between the curves and the relative tangent direction angle as the component factors of the immediate return of the MDP model. Finally, the optimal clothoid control curve is determined by the DQN algorithm to achieve highly intelligent control with intelligent perception and intelligent decision-making. The schematic diagram of the actual clothoid curve and the reference command curve is shown in Figure 5 As shown, the calculation method of the immediate return component factor is as follows:

[0049] d i =a i +c α α i ;

[0050] Where: d i is the immediate return component factor; a i is the horizontal distance between curves; α i is the relative tangent direction angle of the curve; c α is the scaling factor for the lateral distance and tangent angle.

[0051] In summary, the deep reinforcement learning position control method for a PMSM servo system provided by the present invention has better learning ability and intelligence than traditional control methods, and can solve decision-making problems in high-dimensional state and action space.

[0052] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.

Claims

1. A deep reinforcement learning position control method for a PMSM servo system, characterized in that: include: establishing a logic grid, and representing a reference position command of the PMSM servo system in the logic grid; Generate a clothoid curve representing the actual position control state of the PMSM; An optimal clothoid curve is selected, and the clothoid curve is controlled to approach and track a reference position instruction.

2. A PMSM servo system deep reinforcement learning position control method according to claim 1, characterized in that: The logic grid is composed of square grid cells.

3. A PMSM servo system deep reinforcement learning position control method according to claim 2, characterized in that: Each square grid cell contains information about the grid occupancy and the servo control actions a(t) in different directions and angles.

4. A PMSM servo system deep reinforcement learning position control method according to claim 3, characterized in that: The servo control action a(t) is based on the horizontal direction and approaches and tracks the reference position instruction from the current square grid unit to the next square grid unit along 45° or 90°.

5. The deep reinforcement learning position control method for a PMSM servo system according to claim 1, characterized in that: The clothoid curve representing the actual position is generated in the form of a clothoid curve with the PMSM servo system as the center and the initial position as the starting point.

6. A PMSM servo system deep reinforcement learning position control method according to claim 1, characterized in that: The selection of the optimal clothoid curve includes: Representing the reference position instruction in the logic grid as a given target curve; Calculate the lateral distance and relative tangent direction angle between the target curve and the clothoid curve; Calculating an immediate reward component factor of the MDP model based on the lateral distance and the relative tangent direction angle; Based on the MDP model and immediate reward component factors, the optimal convolution control curve is determined through the DQN algorithm.

7. A PMSM servo system deep reinforcement learning position control method according to claim 6, characterized in that: The calculation formula of the immediate return component factor is: d i =a i +c α a i ; Where: d i is the immediate return component factor; a i is the horizontal distance between curves; α i is the relative tangent direction angle of the curve; c α is the scaling factor for lateral distance and tangent angle.