Permanent magnet synchronous motor layered optimal control method based on preset time
By adopting a layered optimal control method in a permanent magnet synchronous motor, using the inverse optimal preset time controller and the finite set model prediction controller, the problem that traditional control solutions cannot respond quickly within the preset time is solved, and the problem of the traditional control solution being unable to respond quickly within the preset time is realized. Motors have fast and accurate speed control and system stability in the field of high precision.
Patent Information
- Application Number
- CN202411071334.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-19
AI Technical Summary
The traditional permanent magnet synchronous motor control scheme cannot respond quickly within the preset time and achieve the expected speed, and is prone to system oscillation, which cannot meet the needs of high-precision fields.
Using a layered optimal control method based on preset time, the inverse optimal preset time controller and finite set model prediction controller are designed as the outer ring and the inner ring controller respectively, to avoid directly solving the HJB equation and ensure that the motor is in The expected speed is achieved within a preset time, and the current tracking and maximum current torque ratio are achieved by operating the switch of the inverter.
It realizes that the motor quickly and accurately reaches the expected speed within the preset time, avoids system oscillation, improves dynamic response capabilities and accuracy, and meets the needs of high-precision fields.
Smart Images

Figure CN118984085A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical engineering technology, and in particular to a layered optimal control method for a permanent magnet synchronous motor based on preset time. Background Art
[0002] With the rapid development of high-precision fields such as aerospace and electric vehicles, higher requirements are placed on the accuracy and size of electrical transmission devices. Traditional series resistance speed control has the defect of high energy consumption, and the speed control device based on thyristor often has large speed ripple and cannot adapt to occasions with high precision requirements. Permanent magnet synchronous motor (PMSM) has permanent magnets pre-embedded or attached in the rotor, does not require additional excitation devices, has the advantages of high energy density, adjustable output torque and speed.
[0003] Traditional PMSM control schemes are generally based on cascaded proportional integral (PI) control and space vector modulation (SVM) methods. This scheme requires three PI controllers to be cascaded to control the q-axis current and two PI controllers to be cascaded to control the d-axis current. On the one hand, the traditional control scheme ignores the dynamic characteristics of the inverter, which easily causes system oscillation. On the other hand, it cannot guarantee that the motor can reach the expected speed within the preset time. In order to make PMSM better play a role in high-precision occasions, the present invention proposes a hierarchical optimal control method for permanent magnet synchronous motors based on preset time. Summary of the invention
[0004] The technical problem to be solved by the present invention is how to make a permanent magnet synchronous motor reach a desired speed within a preset time without the need for a modulation link, with rapid dynamic response, and provide a hierarchical optimal control method for a permanent magnet synchronous motor based on preset time.
[0005] like Figure 1 As shown, the present invention solves the above technical problems through the following technical solutions, and the present invention comprises the following steps:
[0006] S1: Design an inverse optimal preset time controller for the mechanical system of the motor as an outer loop controller, and use this controller to give the desired q-axis current As the input of the inner loop, it avoids directly solving the HJB equation and makes the motor reach the desired speed within the preset time;
[0007] S2: Design a finite set model predictive controller for the motor's electrical system as an inner loop controller, which directly manipulates the on-off period of the inverter switch to change the voltage provided by the inverter to the motor at each sampling time, so that the motor q-axis current i q Can accurately track the signal given by the outer ring And the d-axis current i d To obtain the maximum current-torque ratio.
[0008] Furthermore, in step S1, the specific design process of the inverse optimal preset time controller is as follows:
[0009] S11: Define ω r is the expected speed, and the speed error is z=ω-ω r , and design the switching relationship as:
[0010]
[0011] The auxiliary variables are l is the custom error bound;
[0012] S12: Define the Lyapunov function as:
[0013]
[0014] Taking the derivative of the above Lyapunov function and substituting the mechanical system equation of the motor into it, we get:
[0015]
[0016] S13: The command signal given by the outer loop controller is regarded as the actual value, and the following is obtained:
[0017]
[0018] S14: Introducing a virtual control rate auxiliary controller η * , so that the expression in step S13 satisfies the preset time theorem, and we get:
[0019]
[0020] S15: define κ = pqr, The virtual control rate auxiliary controller η * Substituting the expression in S14, we get:
[0021]
[0022] in:
[0023]
[0024] is the Lie derivative;
[0025] S16: Then the inverse optimal preset time controller is obtained as follows:
[0026]
[0027] Where ι = 2, It is a class of K infinite functions.
[0028] Furthermore, in step S12, the mechanical system equation of the motor is as follows:
[0029]
[0030] Where J is the motor moment of inertia, n p is the number of motor pole pairs, Ψ f is the permanent magnet flux, i d is the d-axis current, ω is the motor speed, L is the motor dq-axis inductance, R s is the motor armature resistance, T L is the load torque and B is the dynamic friction coefficient.
[0031] Furthermore, in step S14, the virtual control rate auxiliary controller n * as follows:
[0032]
[0033] Furthermore, in step S14, the preset time theorem is as follows:
[0034] For any system, if its closed-loop system satisfies the Lyapunov equation:
[0035]
[0036] Among them, p>0,q>0,0<r<1 are user-defined parameters;
[0037] Then the system can converge within the preset time.
[0038] Furthermore, in step S2, the specific design process of the finite set model predictive controller is as follows:
[0039] S21: Perform Park transformation on the voltage vector in the natural coordinate system:
[0040]
[0041] S22: The electrical system equations of the motor are discretized into the first order using the forward Euler method, and the result is:
[0042]
[0043] S23: For the inner loop control, it is necessary to control the on and off of the switch device so that i d (k+1) and i q (k+1) can minimize the following performance indicators:
[0044]
[0045] S24: Perform second-order discretization based on the first-order discretization to compensate for the delay:
[0046]
[0047] The corresponding performance indicators become:
[0048]
[0049] S25: Add additional limiting items to the inner loop controller to prevent the motor from overcurrent:
[0050]
[0051] Among them, I m is the maximum current the motor can withstand;
[0052] S26: The performance indicators required for the finite set model predictive controller are as follows:
[0053] G=G 1 +λG 2
[0054] Here, λ is a positive real number.
[0055] Furthermore, in step S21, for a three-phase two-level inverter, at each moment, for a determined motor angle, the inverter can only output the following seven different voltage vectors:
[0056]
[0057] in:
[0058]
[0059] Furthermore, in step S22, the electrical system equation of the motor is as follows:
[0060]
[0061] Where J is the motor moment of inertia, n p is the number of motor pole pairs, L is the motor dq axis inductance, R sis the motor armature resistance, ω is the motor speed, Ψ f is the permanent magnet flux, T L is the load torque, n p is the number of motor pole pairs, i d 、i q 、u d with u q are the current and voltage in the dq coordinate system respectively.
[0062] Compared with the prior art, the present invention has the following advantages: the hierarchical optimal control method of the permanent magnet synchronous motor based on preset time can make the outer loop system achieve the optimality under the given performance index by setting the inverse optimal preset time controller, and at the same time avoid directly solving the HJB (Hamilton-Jacobi-Bellman) equation, so that the motor can reach the expected speed within the preset time; through the finite set model predictive controller, the motor current i q Can quickly and accurately track the signal given by the outer ring And the d-axis current i d The maximum current-torque ratio is obtained by setting the current to 0, and the overall system of the motor reaches the preset time stability and optimality. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a flow chart of a method for optimal control of a permanent magnet synchronous motor layered based on preset time according to the present invention;
[0064] Figure 2 It is a comparison diagram of motor speed curves under different control modes in the second embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.
[0066] Embodiment 1
[0067] This embodiment provides a technical solution: a method for hierarchical optimal control of a permanent magnet synchronous motor based on a preset time, including the following specific contents:
[0068] Considering a PMSM system driven by a three-phase two-level inverter, the mechanical system equation and electrical system equation of the motor can be expressed as:
[0069]
[0070] Wherein, equation (1) is the mechanical equation of PMSM, equation (2) is the electrical equation, J is the motor moment of inertia, L is the motor dq axis inductance, Rs is the motor armature resistance, ω is the motor speed, Ψ f is the permanent magnet flux, T L is the load torque, B is the dynamic friction coefficient, n p is the number of motor pole pairs, i d 、i q 、u d with u q are the current and voltage in the dq coordinate system respectively.
[0071] For any system, if its closed-loop system satisfies the Lyapunov equation:
[0072]
[0073] Among them, p>0,q>0,0<r<1 are user-defined parameters;
[0074] Then the system can converge within the preset time.
[0075] First, the inverse optimal preset time controller is designed for the mechanical part as the outer loop controller to give the desired q-axis current As the input of the inner loop, the controller can not only make the outer loop system achieve the optimality under the given performance index, but also avoid directly solving the Hamilton-Jacobi-Bellman (HJB) equation, and can also make the motor reach the desired speed within the preset time.
[0076] Definition r is the expected speed, and the speed error is z=ω-ω r , and design the switching relationship as:
[0077]
[0078] The auxiliary variables are l is a custom error bound.
[0079] Define the Lyapunov function as:
[0080]
[0081] Taking the derivative and substituting (1) into it, we get:
[0082]
[0083] Considering that the response speed of the motor electrical part is much faster than that of the mechanical part, the command signal given by the outer loop controller can be regarded as the actual value, and equation (4) becomes:
[0084]
[0085] Introducing virtual control rate auxiliary controller η * , so that (5) satisfies the preset time theorem (3), and we get:
[0086]
[0087] η * Specifically:
[0088]
[0089] Define κ = pqr, Substituting (7) into (6), we can obtain:
[0090]
[0091] in:
[0092]
[0093] Inverse optimal preset time controller The following performance indicators can be minimized:
[0094]
[0095] Thus, the inverse optimal preset time controller designed for the mechanical part of the motor has been completed, which provides a controller that can make the mechanical system (1) reach the preset time inverse optimal And there is no need to solve the HJB equation.
[0096] Next, a finite control set-model predictive control (FCS-MPC) is designed for the electrical part (2). This controller directly manipulates the on-off period of the switch on the inverter, affecting the voltage provided by the inverter to the motor at each sampling time, thereby making the motor q-axis current i q Can quickly and accurately track the signal given by the outer ring And the d-axis current i d The maximum current-torque ratio is obtained by setting the current to 0, and the overall system of the motor reaches the preset time stability and optimality.
[0097] For a three-phase two-level inverter, at each moment, for a certain motor angle, the inverter can only output 7 different voltage vectors:
[0098]
[0099] in:
[0100]
[0101] Perform Park transformation on the voltage vector (9) in the natural coordinate system:
[0102]
[0103] Since (10) is calculated at each sampling point, it is necessary to discretize (2) and apply the forward Euler method to obtain:
[0104]
[0105] For the inner loop control, it is necessary to control the on and off of the switch device, that is, s i The value of i in (11) d (k+1) and i q (k+1) can minimize the following performance indicators:
[0106]
[0107] Since (11) is a first-order forward expression, considering the sampling and calculation delays, the turn-on and turn-off times of the device, a second-order discretization is performed on the basis of the first-order discretization to compensate for the delay:
[0108]
[0109] The corresponding performance indicators become:
[0110]
[0111] The main purpose of the inner loop controller is to find a set of voltage vectors to minimize the performance index (14). However, considering that the motor has a maximum allowable current, the inner loop controller should also add additional restrictions to prevent the motor from overcurrent:
[0112]
[0113] Among them, I m is the maximum current that the motor can withstand, then the performance indicator that the inner loop controller ultimately needs to minimize is:
[0114] G=G 1 +λG 2
[0115] Wherein, λ is a sufficiently large positive real number.
[0116] Embodiment 2
[0117] In this embodiment, a simulation system model is built, and system parameters are selected as shown in Table 1:
[0118] Table 1 Simulation system parameters
[0119]
[0120]
[0121] In order to demonstrate the superiority of the present invention, a step signal is selected as the excitation to test whether the motor can quickly track the signal. The preset speed is 40 rad / s, and the load changes from 0.2 N·m to 5 N·m at 0.5 s. At the same time, the control scheme using the traditional proportional integral controller (PI) and the linear quadratic regulator (LQR) as the outer loop controller is compared. The speed curve is as follows Figure 2 As shown. It can be seen that under the controller proposed by the present invention, the motor can reach the preset speed at the fastest speed. When the load changes suddenly, the traditional controllers all show a significant drop in speed, while the speed under the controller of the present invention hardly changes. This experiment proves the superiority of the present invention.
[0122] In summary, the hierarchical optimal control method of the permanent magnet synchronous motor based on preset time in the above embodiment can enable the motor to reach a preset speed within a preset time, avoiding directly solving the complex HJB equation. At the same time, hierarchical optimal control can solve the optimality problem.
[0123] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time, characterized in that: The following steps are involved: S1: Design an inverse optimal preset time controller for the mechanical system of the motor as an outer loop controller, and use this controller to give the desired q-axis current As the input of the inner loop, it avoids directly solving the HJB equation and makes the motor reach the desired speed within the preset time; S2: Design a finite set model predictive controller for the motor's electrical system as an inner loop controller, which directly manipulates the on-off period of the inverter switch to change the voltage provided by the inverter to the motor at each sampling time, so that the motor q-axis current i q Can accurately track the signal given by the outer ring And the d-axis current i d To obtain the maximum current-torque ratio.
2. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 1, characterized in that: In step S1, the specific design process of the inverse optimal preset time controller is as follows: S11: Define ω r is the expected speed, and the speed error is z=ω-ω r , and design the switching relationship as: The auxiliary variables are l is the custom error bound; S12: Define the Lyapunov function as: Taking the derivative of the above Lyapunov function and substituting the mechanical system equation of the motor into it, we get: S13: The command signal given by the outer loop controller is regarded as the actual value, and the following is obtained: S14: Introducing a virtual control rate auxiliary controller η * , so that the expression in step S13 satisfies the preset time theorem, and we get: S15: define κ = pqr, The virtual control rate auxiliary controller η * Substituting the expression in S14, we get: in: is the Lie derivative; S16: Then the inverse optimal preset time controller is obtained as follows: Where ι = 2, It is a class of K infinite functions.
3. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 2, characterized in that: In step S12, the mechanical system equation of the motor is as follows: Where J is the motor moment of inertia, n p is the number of motor pole pairs, Ψ f is the permanent magnet flux, i d is the d-axis current, ω is the motor speed, L is the motor dq-axis inductance, R s is the motor armature resistance, T L is the load torque and B is the dynamic friction coefficient.
4. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 3, characterized in that: In step S14, the virtual control rate auxiliary controller n * as follows:
5. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 4, characterized in that: In step S14, the preset time theorem is as follows: For any system, if its closed-loop system satisfies the Lyapunov equation: Among them, p>0,q>0,0<r<1 are user-defined parameters; Then the system can converge within the preset time.
6. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 2, characterized in that: In step S2, the specific design process of the finite set model predictive controller is as follows: S21: Perform Park transformation on the voltage vector in the natural coordinate system: S22: The electrical system equations of the motor are discretized into the first order using the forward Euler method, and the result is: S23: For the inner loop control, it is necessary to control the on and off of the switch device so that i d (k+1) and i q (k+1) can minimize the following performance indicators: S24: Perform second-order discretization based on the first-order discretization to compensate for the delay: The corresponding performance indicators become: S25: Add additional limiting items to the inner loop controller to prevent the motor from overcurrent: Among them, I m is the maximum current the motor can withstand; S26: The performance indicators required for the finite set model predictive controller are as follows: G=G1+λG2 Here, λ is a positive real number.
7. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 6, characterized in that: In step S21, for a three-phase two-level inverter, at each moment, for a determined motor angle, the inverter can only output the following seven different voltage vectors: in:
8. The method for hierarchical optimal control of a permanent magnet synchronous motor based on preset time according to claim 7, characterized in that: In step S22, the electrical system equation of the motor is as follows: Where J is the motor moment of inertia, n p is the number of motor pole pairs, L is the motor dq axis inductance, R s is the motor armature resistance, ω is the motor speed, Ψ f is the permanent magnet flux, T L is the load torque, n p is the number of motor pole pairs, i d 、i q 、u d with u q are the current and voltage in the dq coordinate system respectively.
