A method and device for determining stator voltage value

Through the method of iteratively optimizing the voltage value, the MPC model is used to simplify the motor control, which solves the problem of large calculation amount in the motor model predictive control and realizes the determination of the stator voltage value quickly and with low calculation amount.

CN113783491BActive Publication Date: 2024-10-22WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111094205.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2024-10-22
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

The existing motor model predictive control algorithm requires a large amount of calculations and is difficult to solve online, making it difficult to quickly determine the stator voltage value.

Method used

Through iterative operations, the target voltage amplitude and angle are gradually adjusted, the loss function is optimized to determine the optimal voltage value, and the MPC model is used to simplify the calculation process.

Benefits of technology

It achieves fast and simple solution of the stator voltage value, reduces the amount of calculation, and overcomes the difficulty in parameter adjustment and slow response of the traditional PI regulator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113783491B_ABST
    Figure CN113783491B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for determining a stator voltage value, wherein the method includes: obtaining bus voltage and current parameter values, performing iterative operations for a set number of times according to the current parameter values, obtaining the optimal voltage angle and the optimal voltage amplitude corresponding to each iteration, and determining the stator voltage value at the current sampling moment according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration. It can be seen that the method for determining a stator voltage value provided by the present application can perform iterative operations for a set number of times according to the current parameter values ​​to obtain the optimal voltage amplitude and the optimal voltage angle corresponding to each iteration, and can easily determine the stator voltage value at the current sampling moment according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration, and the solution is simple and the amount of calculation is small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of motor current control, and in particular to a method and device for determining a stator voltage value. Background Art

[0002] Permanent Magnet Synchronous Motor (PMSM) has the advantages of small size, simple structure, high power density and wide speed regulation range, and is widely used in the field of motion control.

[0003] At present, the control strategy of PMSM drive system is mainly vector control based on proportional integral (PI) regulator. However, the proportional integral (PI) regulator used in vector control still has problems such as difficult parameter adjustment and slow response in driving occasions requiring no overshoot and high dynamic performance.

[0004] With the improvement of control algorithms and the enhancement of computing power of embedded chips, model predictive control (MPC) has replaced the PI regulator and has been gradually applied to the field of motor control because of its good dynamic control performance and ability to handle complex constrained optimization control problems and nonlinear control problems.

[0005] Based on this, document 1 (CN202011379291.1) proposes a motor model predictive control method, device and controller based on a continuous control set, which obtains the optimal stator voltage value by solving the quadratic programming problem. However, the algorithm has a large amount of calculation and is difficult to solve online. Summary of the invention

[0006] In view of this, the present application provides a method and device for determining a stator voltage value to solve the problem of large algorithm calculation and difficulty in online solution in the prior art. The technical solution is as follows:

[0007] A method for determining a stator voltage value, comprising:

[0008] Obtain bus voltage and current parameter values, wherein the current parameter value includes: a stator current value and a stator current reference value at a current sampling moment;

[0009] Perform the set number of iterations according to the current parameter value. For each iteration:

[0010] Taking the target voltage amplitude as a constant, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when changing the target voltage angle each time as the optimal voltage angle corresponding to the iteration;

[0011] The optimal voltage angle corresponding to the iteration is taken as a fixed value, the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time is determined as the optimal voltage amplitude corresponding to the iteration;

[0012] Among them, for the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage, and the target voltage angle is the initial voltage angle. For the non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration. The loss function is used to characterize the loss degree of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value. The stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment. The set amplitude difference and the set angle difference gradually decrease with the increasing number of iterations.

[0013] The stator voltage value at the current sampling moment is determined according to the optimal voltage angle and optimal voltage amplitude corresponding to the last iteration.

[0014] Optionally, the target voltage angle is gradually changed according to the set angle difference corresponding to the iteration, and the voltage angle that minimizes the loss function when the target voltage angle is changed each time is determined as the optimal voltage angle corresponding to the iteration, including:

[0015] The target voltage angle is gradually changed according to the set angle difference corresponding to the iteration until the set voltage angle is reached;

[0016] For each change in the target voltage angle, the voltage angle obtained is:

[0017] Determine a loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle;

[0018] Determine a smaller value between the loss function corresponding to the voltage angle and the initial loss function as the initial loss function, wherein for the first iteration, the initial loss function is a value determined according to the initial voltage amplitude, the initial voltage angle and the current parameter value;

[0019] The voltage angle corresponding to the initial loss function determined by the last change of the target voltage angle is determined as the optimal voltage angle corresponding to the iteration.

[0020] Optionally, the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time is determined as the optimal voltage amplitude corresponding to the iteration, including:

[0021] The target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration until the set voltage amplitude is reached;

[0022] The voltage amplitude obtained for each change in the target voltage amplitude is:

[0023] Determine a loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration, and the voltage amplitude;

[0024] Determine the smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function;

[0025] The voltage amplitude corresponding to the initial loss function determined by the last change of the target voltage amplitude is determined as the optimal voltage amplitude corresponding to the iteration.

[0026] Optionally, determining a loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle includes:

[0027] Determine a first stator voltage value according to the target voltage amplitude and the voltage angle as the stator voltage value at the current sampling moment;

[0028] Determine the predicted value of the stator current at the next sampling moment after the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment;

[0029] Determine the loss function corresponding to the voltage angle according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value;

[0030] Accordingly, according to the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude, the loss function corresponding to the voltage amplitude is determined, including:

[0031] Determine a second stator voltage value according to the optimal voltage angle corresponding to the iteration and the voltage amplitude as the stator voltage value at the current sampling moment;

[0032] Determine the predicted value of the stator current at the next sampling moment after the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment;

[0033] The loss function corresponding to the voltage amplitude is determined according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value.

[0034] Optionally, determining a predicted stator current value at a next sampling moment after the current sampling moment according to a stator voltage value at the current sampling moment and a stator current value at the current sampling moment includes:

[0035] The stator voltage value and the stator current value at the current sampling moment are input into the discrete current state equation to obtain the stator current prediction value at the next sampling moment of the current sampling moment output by the discrete current state equation, wherein the discrete current state equation is obtained by discretizing the stator voltage equation of the motor in the synchronous rotating coordinate system using the forward Euler formula.

[0036] A stator voltage value determination device comprises: an information acquisition module, an iteration module and a stator voltage value determination module;

[0037] An information acquisition module is used to acquire bus voltage and current parameter values, wherein the current parameter value includes: a stator current value and a stator current reference value at a current sampling moment;

[0038] The iteration module is used to perform iterative operations for a set number of times according to the current parameter value. For each iterative operation: the target voltage amplitude is taken as a fixed value, the target voltage angle is gradually changed according to the set angle difference corresponding to the iteration, and the voltage angle that minimizes the loss function when the target voltage angle is changed each time is determined as the optimal voltage angle corresponding to the iteration; the optimal voltage angle corresponding to the iteration is taken as a fixed value, the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time is determined as the optimal voltage amplitude corresponding to the iteration; wherein, For the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage, and the target voltage angle is the initial voltage angle. For the non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration. The loss function is used to characterize the loss degree of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value. The stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment. The set amplitude difference and the set angle difference gradually decrease with the increasing number of iterations.

[0039] The stator voltage value determination module is used to determine the stator voltage value at the current sampling moment according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration.

[0040] Optionally, the iterative module gradually changes the target voltage angle according to the set angle difference corresponding to the iteration, and determines the voltage angle that minimizes the loss function when the target voltage angle is changed each time as the optimal voltage angle corresponding to the iteration, including: an angle changing module, a first loss function comparison module and an optimal voltage angle determination module;

[0041] An angle changing module, used to gradually change the target voltage angle according to the set angle difference corresponding to the iteration until the set voltage angle is reached;

[0042] A first loss function comparison module is used for determining, for each voltage angle obtained by changing the target voltage angle, a loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle; and determining a smaller value between the loss function corresponding to the voltage angle and the initial loss function as the initial loss function, wherein, for the first iteration, the initial loss function is a value determined according to the initial voltage amplitude, the initial voltage angle and the current parameter value;

[0043] The optimal voltage angle determination module is used to determine the voltage angle corresponding to the initial loss function determined by the last change of the target voltage angle as the optimal voltage angle corresponding to the iteration.

[0044] Optionally, the iteration module gradually changes the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determines the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time as the optimal voltage amplitude corresponding to the iteration, including: an amplitude changing module, a second loss function comparison module and an optimal voltage amplitude determination module;

[0045] An amplitude changing module, used to gradually change the target voltage amplitude according to the set amplitude difference corresponding to the iteration until the set voltage amplitude is reached;

[0046] A second loss function comparison module is used for determining, for each voltage amplitude obtained by changing the target voltage amplitude, the loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration, and the voltage amplitude; and determining the smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function;

[0047] The optimal voltage amplitude determination module is used to determine the voltage amplitude corresponding to the initial loss function determined by the last change of the target voltage amplitude as the optimal voltage amplitude corresponding to the iteration.

[0048] Optionally, the process in which the first loss function comparison module determines the loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle includes: a first stator voltage value determination module, a first stator current prediction value determination module, and a first loss function determination module;

[0049] A first stator voltage value determination module, used to determine a first stator voltage value as a stator voltage value at a current sampling moment according to a target voltage amplitude and the voltage angle;

[0050] A first stator current prediction value determination module, used to determine a stator current prediction value at a next sampling moment of the current sampling moment according to a stator voltage value at a current sampling moment and a stator current value at the current sampling moment;

[0051] A first loss function determination module, used to determine the loss function corresponding to the voltage angle according to the stator current prediction value and the stator current reference value at the next sampling moment of the current sampling moment;

[0052] Correspondingly, the second loss function comparison module determines the process of the loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude, including: a second stator voltage value determination module, a second stator current prediction value determination module, and a second loss function determination module;

[0053] A second stator voltage value determination module, used to determine a second stator voltage value as the stator voltage value at a current sampling moment according to the optimal voltage angle corresponding to the iteration and the voltage amplitude;

[0054] A second stator current prediction value determination module, used to determine the stator current prediction value at the next sampling moment of the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment;

[0055] The second loss function determination module is used to determine the loss function corresponding to the voltage amplitude according to the stator current prediction value and the stator current reference value at the next sampling moment of the current sampling moment.

[0056] Optionally, the first stator current prediction value determination module and / or the second stator current prediction value determination module are specifically used to input the stator voltage value at the current sampling moment and the stator current value at the current sampling moment into the discrete current state equation to obtain the stator current prediction value at the next sampling moment of the current sampling moment output by the discrete current state equation, wherein the discrete current state equation is obtained by discretizing the stator voltage equation of the motor in a synchronous rotating coordinate system using the forward Euler formula.

[0057] Through the above technical solution, it can be known that the stator voltage value determination method provided in the present application first obtains the bus voltage and current parameter values, and then performs a set number of iterative operations according to the current parameter values. For each iterative operation: the target voltage amplitude is taken as a constant, and the target voltage angle is gradually changed according to the set angle difference corresponding to the iteration. The voltage angle that minimizes the loss function each time the target voltage angle is changed is determined as the optimal voltage angle corresponding to the iteration, and the optimal voltage angle corresponding to the iteration is taken as a constant, and the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration. The voltage amplitude that minimizes the loss function each time the target voltage amplitude is changed is determined as the optimal voltage amplitude corresponding to the iteration. Then, the stator voltage value at the current sampling moment is determined according to the optimal voltage angle and optimal voltage amplitude corresponding to the last iteration. The method for determining the stator voltage value provided in the present application can perform iterative operations for a set number of times according to the current parameter value to obtain the optimal voltage amplitude and the optimal voltage angle corresponding to each iteration. According to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration, the stator voltage value at the current sampling moment can be easily determined. The solution is simple and the calculation amount is small. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0059] Figure 1 A schematic diagram of a flow chart of a method for determining a stator voltage value provided in an embodiment of the present application;

[0060] Figure 2 A schematic diagram of a permanent magnet synchronous motor speed loop closed-loop system provided in an embodiment of the present application;

[0061] Figure 3 A schematic diagram of determining an optimal voltage amplitude and an optimal voltage angle based on a voltage circle;

[0062] Figure 4 A schematic diagram of the structure of a stator voltage value determination device provided in an embodiment of the present application;

[0063] Figure 5 A hardware structure block diagram of a stator voltage value determination device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0065] In view of the problems existing in the prior art, the inventor of this case conducted in-depth research and thought that an MPC model can be constructed, and the bus voltage, the stator current at time k (i.e., the stator current value at the current sampling time), the stator current reference value, the motor angular velocity and other parameters are input into the MPC model. The MPC model is iterated a set number of times to obtain the stator voltage value at time k (i.e., the stator voltage value at the current sampling time). Based on the MPC model, the inventor of this case proposed a method for determining the stator voltage value. Next, the method for determining the stator voltage value provided by this application is introduced in detail through the following embodiments.

[0066] See also Figure 1 , shows a schematic flow chart of a method for determining a stator voltage value provided in an embodiment of the present application, the method may include:

[0067] Step S101, obtaining bus voltage and current parameter values.

[0068] The current parameter value includes: the stator current value and the stator current reference value at the current sampling moment.

[0069] In this step, the stator current value at the current sampling moment includes: the d-axis stator current value and the q-axis stator current value at the current sampling moment. For the convenience of subsequent description, the current sampling moment is represented by k below, and the d-axis stator current value at the current sampling moment can be represented by i d (k) indicates that the q-axis stator current value at the current sampling time can be expressed as i q (k) indicates.

[0070] In this step, the stator current reference value includes a d-axis stator current reference value and a q-axis stator current reference value. Here, the d-axis stator current reference value can be expressed as i d _ref indicates that the q-axis stator current reference value can be obtained by i q _ref means.

[0071] In this step, the bus voltage can be expressed as udc.

[0072] Optionally, this step can also obtain other parameters besides bus voltage and current parameter values, such as motor angular velocity, etc.

[0073] Step S102, perform iterative operations for a set number of times according to the current parameter value, for each iterative operation: take the target voltage amplitude as a constant, gradually change the target voltage angle according to the set angle difference corresponding to the iteration, determine the voltage angle that minimizes the loss function each time the target voltage angle is changed, and use it as the optimal voltage angle corresponding to the iteration; take the optimal voltage angle corresponding to the iteration as a constant, gradually change the target voltage amplitude according to the set amplitude difference corresponding to the iteration, determine the voltage amplitude that minimizes the loss function each time the target voltage amplitude is changed, and use it as the optimal voltage amplitude corresponding to the iteration.

[0074] Among them, for the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage, and the target voltage angle is the initial voltage angle. For the non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration. The loss function is used to characterize the degree of loss of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value. The stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment. The set amplitude difference and the set angle difference gradually decrease with the increasing number of iterations.

[0075] That is, this step can perform a set number of iterative operations in the MPC model, wherein any iterative operation process can include two steps: step S1021, taking the target voltage amplitude as a constant, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when the target voltage angle is changed each time, as the optimal voltage angle corresponding to the iteration.

[0076] In this step, the target voltage amplitude can be taken as a constant, and the optimal voltage angle under the target voltage amplitude can be determined according to the loss function as the optimal voltage angle corresponding to the iteration. Specifically, the target voltage amplitude is taken as a constant, and the target voltage angle is gradually changed according to the set angle difference corresponding to the iteration, and after each change of the target voltage angle to obtain a new voltage angle, the loss function corresponding to the new voltage angle is determined to obtain the voltage angle that minimizes the loss function, and the voltage angle is taken as the optimal voltage angle under the target voltage amplitude, that is, the optimal voltage angle corresponding to the iteration.

[0077] Step S1022, taking the optimal voltage angle corresponding to the iteration as a constant, gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determining the voltage amplitude that minimizes the loss function when changing the target voltage amplitude each time as the optimal voltage amplitude corresponding to the iteration.

[0078] In this step, the optimal voltage angle corresponding to the iteration can be taken as a fixed value, and the optimal voltage amplitude under the optimal voltage angle can be determined according to the loss function as the optimal voltage amplitude corresponding to the iteration. Specifically, the optimal voltage angle corresponding to the iteration is taken as a fixed value, and the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and after each change of the target voltage amplitude to obtain a new voltage amplitude, the loss function corresponding to the new voltage amplitude is determined to obtain the voltage amplitude that minimizes the loss function, and the voltage amplitude is taken as the optimal voltage amplitude under the optimal voltage angle corresponding to the iteration, that is, the optimal voltage amplitude corresponding to the iteration.

[0079] It should be noted that for the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage. If the initial voltage amplitude is expressed as U 0 Indicates that it is optional. Here, U m is the stator voltage amplitude (ie, the rotation voltage amplitude); the initial voltage angle is a preset angle value, and optionally, the initial voltage angle θ in this embodiment is 0 is 0. For non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration.

[0080] It should also be noted that the set amplitude difference and the set angle difference can be gradually reduced as the number of iterations increases. For example, for the set angle difference, the set angle difference corresponding to the first iteration is Δθ, the set angle difference corresponding to the second iteration is Δθ / 2, ..., and so on. The set angle difference corresponding to the i-th iteration is Δθ / 2 i-1 ; For the set amplitude difference, the set amplitude difference corresponding to the first iteration is ΔU, the set amplitude difference corresponding to the second iteration is ΔU / 2, ..., and so on, the set amplitude difference corresponding to the i-th iteration is ΔU / 2 i-1 .

[0081] Step S103: Determine the stator voltage value at the current sampling moment according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration.

[0082] In this embodiment, the number of iterations can be preset, and the iterative calculation process in step S102 is stopped when the set number of iterations is reached. Then, the stator voltage value at time k can be obtained according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration. Here, the stator voltage value at time k includes the d-axis stator voltage value at time k and the q-axis stator voltage value at time k.

[0083] The stator voltage value determination method provided in the present application first obtains the bus voltage and current parameter values, and then performs a set number of iterative operations according to the current parameter values. For each iterative operation: the target voltage amplitude is taken as a constant, and the target voltage angle is gradually changed according to the set angle difference corresponding to the iteration, and the voltage angle that minimizes the loss function each time the target voltage angle is changed is determined as the optimal voltage angle corresponding to the iteration, and the optimal voltage angle corresponding to the iteration is taken as a constant, and the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and the voltage amplitude that minimizes the loss function each time the target voltage amplitude is changed is determined as the optimal voltage amplitude corresponding to the iteration, and then the stator voltage value at the current sampling moment is determined according to the optimal voltage angle and optimal voltage amplitude corresponding to the last iteration. The method for determining the stator voltage value provided in the present application can perform iterative operations for a set number of times according to the current parameter value to obtain the optimal voltage amplitude and the optimal voltage angle corresponding to each iteration. According to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration, the stator voltage value at the current sampling moment can be easily determined. The solution is simple and the calculation amount is small.

[0084] In an optional embodiment, an embodiment of the present application introduces the process of "step S1021, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when changing the target voltage angle each time, as the optimal voltage angle corresponding to the iteration".

[0085] Optionally, the process of this step may include the following steps A1 to A3:

[0086] Step A1: gradually change the target voltage angle according to the set angle difference corresponding to the iteration until the set voltage angle is reached.

[0087] For example, assuming the target voltage angle is 0, the angle difference is set to When the voltage angle is set to 0±π, the target voltage angle is gradually changed according to the set angle difference. The obtained voltage angles include: And ±π, that is, when the set voltage angle is reached, a total of 8 voltage angles are obtained.

[0088] It should be noted that, in this embodiment, the set voltage angles corresponding to each iteration are different. For example, assuming that for the first iteration, the target voltage angle is θ 0 , for the i-th iteration, the target voltage angle is θ i-1 , then the set voltage angle corresponding to the first iteration is θ 0 ±π, the set voltage angle corresponding to the i-th iteration is

[0089] Step A2, for each voltage angle obtained by changing the target voltage angle: determine the loss function corresponding to the voltage angle based on the current parameter value, the target voltage amplitude and the voltage angle; determine the smaller value between the loss function corresponding to the voltage angle and the initial loss function as the initial loss function.

[0090] In this step, before the first iteration, the initial loss function needs to be determined based on the initial voltage amplitude, initial voltage angle and current parameter value. After the initial loss function is determined, for each voltage angle obtained by changing the target voltage angle, the loss function corresponding to the voltage angle needs to be determined based on the current parameter value, target voltage amplitude and the voltage angle, and then the loss function corresponding to the voltage angle is compared with the initial loss function to find the smaller value, and the smaller value found is used as the initial loss function.

[0091] Optionally, the following takes any voltage angle obtained by changing the target voltage angle as an example to illustrate the process of this step of "determining the loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle", and the process may include the following steps A21 to A23:

[0092] Step A21: Determine a first stator voltage value according to the target voltage amplitude and the voltage angle as the stator voltage value at the current sampling moment.

[0093] In this embodiment, the expression of the stator voltage can be preset, that is, the following equation (1):

[0094]

[0095] Where U is the stator voltage amplitude and θ is the stator voltage angle.

[0096] In this step, the target voltage amplitude and the voltage angle are substituted into the above formula (1) to obtain the d-axis first stator voltage value and the q-axis first stator voltage value.

[0097] Step A22: Determine a predicted stator current value at a sampling moment next to the current sampling moment according to the stator current value at the current sampling moment and the stator voltage value at the current sampling moment.

[0098] Optionally, in this embodiment, the forward Euler formula may be used in advance to discretize the stator voltage equation of the motor in the synchronous rotating coordinate system to obtain a discrete current state equation.

[0099] Specifically, the stator voltage equation of the motor in the synchronous rotating coordinate system is as follows (2):

[0100]

[0101] Where U d and U q are the d-axis and q-axis stator voltage components respectively, i d and i q are the d-axis and q-axis stator current components respectively, R is the stator resistance, is the permanent magnet flux, is the motor angular velocity, L d and L q are the d-axis and q-axis inductance components respectively.

[0102] Considering that the mechanical time constant of the permanent magnet synchronous motor is much larger than the electrical time constant, it is assumed that the motor angular velocity is If unchanged, Considered as a constant, the forward Euler formula is used to discretize the stator voltage equation (1) to obtain the discrete current state equation (3):

[0103]

[0104] Where k∈N is the current sampling time, k+1 is the next sampling time, T s is the sampling period, U d (k) and U q (k) are the d-axis and q-axis stator voltages at time k, i d (k) and i q (k) are the d-axis and q-axis stator currents at time k, i d (k+1) and i q (k+1) are the predicted values ​​of the d-axis and q-axis currents at the next sampling moment.

[0105] Then, this step can calculate the stator current value at the current sampling moment (i.e., i in formula (3) d (k) and i q (k)) and the stator voltage value at the current sampling time obtained in step A21 (i.e., U in formula (3) d (k) and U q (k)) is input into the discrete current state equation (3), and the stator current prediction value at time k+1 output by the discrete current state equation (3) can be obtained (i.e., i in formula (3) d (k+1) and i q (k+1)).

[0106] Step A23: Determine the loss function corresponding to the voltage angle according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value.

[0107] In this embodiment, the following loss function (4) may be preset:

[0108] g=|i d (k+1)-i d _ref| 2 +λ·|i q (k+1)-i q _ref| 2 (4).

[0109] In the formula, i d _ref is the d-axis stator current reference value, i q _ref is the q-axis stator current reference value, and λ is the weight coefficient.

[0110] Then, the stator current prediction value and the stator current reference value at the next sampling time of the current sampling time are input into the above formula (4), and the loss function corresponding to the voltage angle can be obtained. After determining the loss function corresponding to the voltage angle, a new initial loss function can be determined according to the following step A24.

[0111] Step A24, determining the smaller value between the loss function corresponding to the voltage angle and the initial loss function as the initial loss function.

[0112] The loss function corresponding to the voltage angle is denoted as g(n), and the initial loss function is denoted as g 0 , then according to formula g 0 =min(g 0 ,g(n)) determines the initial loss function in this step, that is, the smaller value of the loss function corresponding to the voltage angle and the initial loss function is used as the initial loss function.

[0113] In this step, for each change in the voltage angle obtained, the initial loss function is determined according to the above steps A21 to A24.

[0114] It can be understood that the initial loss function finally determined in this step is the minimum value of the initial loss function and the loss function corresponding to each voltage angle. Based on this, in addition to using the method provided in this step to determine the final initial loss function, this embodiment can also first determine the loss function corresponding to the voltage angle obtained by each change in the target voltage angle, and then determine the minimum loss function from the loss function corresponding to the voltage angle obtained by each change in the target voltage angle and the initial loss function as the initial loss function finally obtained in this step. Of course, this embodiment can also use other methods, which are not limited here.

[0115] Step A3: determine the voltage angle corresponding to the initial loss function determined by the last change of the target voltage angle as the optimal voltage angle corresponding to the iteration.

[0116] After the final initial loss function (i.e., the initial loss function determined by the last change in the target voltage angle) is determined in the above step A2, the voltage angle corresponding to the initial loss function is the optimal voltage angle corresponding to this iteration.

[0117] In another optional embodiment, an embodiment of the present application introduces the process of the above-mentioned "step S1022, gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determining the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time, as the optimal voltage amplitude corresponding to the iteration".

[0118] Optionally, the process of this step may include the following steps B1 to B3:

[0119] Step B1: gradually change the target voltage amplitude according to the set amplitude difference corresponding to the iteration until the set voltage amplitude is reached.

[0120] The process of this step of "gradually changing the target voltage amplitude according to the set amplitude difference corresponding to this iteration" is similar to the above step A1. For details, please refer to the introduction in the above step A1, which will not be repeated here.

[0121] It should be noted that, in this embodiment, the set voltage amplitudes corresponding to each iteration are different. For example, for the first iteration, the target voltage amplitude is U 0 , for the i-th iteration, the target voltage amplitude is U i-1 , then the set voltage amplitude corresponding to the first iteration is U 0 ±U m / 2, the set voltage amplitude corresponding to the i-th iteration is U i-1 ±U m / 2 i .

[0122] Step B2, for the voltage amplitude obtained each time the target voltage amplitude is changed: determine the loss function corresponding to the voltage amplitude based on the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude; determine the smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function.

[0123] In this step, for each change in the target voltage amplitude to obtain the voltage amplitude, it is necessary to determine the loss function corresponding to the voltage amplitude based on the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude, and then compare the loss function corresponding to the voltage amplitude with the initial loss function to find the minimum value, and use the found minimum value as the initial loss function.

[0124] Optionally, the following takes any voltage amplitude obtained by changing the target voltage amplitude as an example to illustrate the process of this step of "determining the loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude", and the process may include the following steps B21 to B23:

[0125] Step B21: Determine a second stator voltage value according to the optimal voltage angle and the voltage amplitude corresponding to the iteration as the stator voltage value at the current sampling moment.

[0126] Step B22: Determine a predicted stator current value at a sampling moment next to the current sampling moment according to the stator current value at the current sampling moment and the stator voltage value at the current sampling moment.

[0127] Step B23: Determine the loss function corresponding to the voltage amplitude according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value.

[0128] Here, the process of step B21 to step B23 is similar to the process of the above-mentioned step A21 to step A23, and the details can be referred to the introduction in the above-mentioned embodiment, which will not be repeated here.

[0129] After the loss function corresponding to the voltage amplitude is determined, a new initial loss function may be determined according to the following step B24.

[0130] Step B24: Determine the smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function.

[0131] The loss function corresponding to the voltage amplitude is denoted as g(m), and the initial loss function is denoted as g 0 , then according to formula g 0 =min(g 0 ,g(m)) determines the initial loss function in this step, that is, the smaller value of the loss function corresponding to the voltage amplitude and the initial loss function is used as the initial loss function.

[0132] In this step, for each change in the voltage amplitude obtained, the initial loss function is determined according to the above steps B21 to B24.

[0133] It can be understood that the initial loss function finally determined in this step is the minimum value of the initial loss function and the loss function corresponding to each voltage amplitude. Based on this, in addition to using the method provided in this step to determine the final initial loss function, this embodiment can also first determine the loss function corresponding to the voltage amplitude obtained by each change in the target voltage amplitude, and then determine the minimum loss function from the loss function corresponding to the voltage amplitude obtained by each change in the target voltage amplitude and the initial loss function, as the initial loss function finally obtained in this step. Of course, this embodiment can also use other methods, which are not limited here.

[0134] Step B3: determine the voltage amplitude corresponding to the initial loss function determined by the last change of the target voltage amplitude as the optimal voltage amplitude corresponding to the iteration.

[0135] After the final initial loss function (ie, the initial loss function determined by the last change in the target voltage amplitude) is determined in the above step B2, the voltage amplitude corresponding to the initial loss function is the optimal voltage amplitude corresponding to the iteration.

[0136] The stator voltage value determination method provided in this embodiment can set the stator voltage amplitude and the stator voltage angle according to the permanent magnet synchronous motor voltage equation, and decouple the d-axis stator voltage and the q-axis stator voltage. At the same time, as the number of iterations increases, the set amplitude difference and the set angle difference are continuously reduced, and different set voltage amplitudes and set voltage angles are set accordingly, so that the iteration range is continuously reduced, and the iteration is stopped when the set number of times is reached, and then the stator voltage value at the current sampling moment is determined according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration. The calculation amount of the above-mentioned whole process is small, and the above-mentioned iterative process essentially only includes shifting and addition and subtraction algorithms, thereby realizing the hardware deployment of the algorithm. At the same time, the stator voltage value determination method provided in the embodiment of the present application does not require a PI regulator, thereby overcoming the problems of difficult parameter adjustment and slow response of the traditional PI regulator.

[0137] In order to make those skilled in the art understand this scheme better, the following Figure 2 The above embodiment of the present application is introduced in detail. As mentioned above, the method for determining the stator voltage value provided in the embodiment of the present application is implemented based on a pre-established MPC model, so when implementing the present application, it is necessary to first establish the MPC model.

[0138] Here, the process of establishing the MPC model is essentially mathematical modeling, which includes the following steps:

[0139] 1): Obtain the stator voltage equation (2) of the motor in the synchronous rotating coordinate system, set the motor angular velocity in the stator voltage equation to be constant, discretize the stator voltage equation using the forward Euler formula, and obtain the discrete current state equation (3).

[0140] 2) Set the stator voltage expression (1).

[0141] 3) Define the loss function (4).

[0142] After the mathematical modeling is completed, the stator voltage value at time k can be determined according to the stator voltage value determination method provided in the embodiment of the present application.

[0143] For details, see Figure 2 FIG. 1 is a schematic diagram of a permanent magnet synchronous motor speed loop closed-loop system provided in an embodiment of the present application. The stator voltage value determination method provided in an embodiment of the present application can be applied to Figure 2 The MPC model in the MPC model includes the following input quantities: bus voltage udc (here, the stator voltage amplitude is: ), current parameter value (i.e., d-axis stator current reference value i d _ref, q-axis stator current reference value i q _ref, d-axis stator current value i at time k d (k), q-axis stator current value i at time k q (k)), and motor angular velocity The output is the d-axis stator voltage value U at time k d (k) and the q-axis stator voltage value U at time k q (k).

[0144] After obtaining bus voltage udc, current parameter value and motor angular velocity After that, the following iterative process can be performed:

[0145] Step0: Calculate the initial loss function g0.

[0146] Specifically, the following steps are included:

[0147] 1) Set the initial voltage amplitude (determined according to the bus voltage udc):

[0148] 2) Set the initial voltage angle: θ 0 = 0. See Figure 3 (a) shows the initial voltage amplitude and initial voltage angle.

[0149] 3) Based on formula (1), the d-axis stator voltage value and the q-axis stator voltage value at time k are determined according to the initial voltage amplitude and initial angle, that is, U d (k) = U 0 ·cos(θ 0 ), U q (k) = U 0 ·sin(θ 0 ).

[0150] 4) Based on formula (3), the predicted d-axis stator current value i at time k+1 is calculated according to the d-axis stator voltage value and the q-axis stator voltage value at time k: d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1).

[0151] 5) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1) Calculate the initial loss function value g0.

[0152] The first iteration process (iteration number i=1) includes the following Step 1 and Step 2:

[0153] Step 1: Determine the optimal voltage angle θ corresponding to the first iteration 1 .

[0154] Specifically, the following steps are included:

[0155] 1) See Figure 3 As shown in (b), the target voltage amplitude (i.e., the initial voltage amplitude U 0 ) as a constant, and gradually change the target voltage angle (i.e., the initial voltage angle θ) according to the set angle difference Δθ 0 ), until the set voltage angle θ is reached 0 ±π. This step can obtain n voltage angles in total, and for each voltage angle, the following 2) to 5) are executed.

[0156] 2) Based on formula (1), according to the target voltage amplitude (i.e. the initial voltage amplitude U 0 ) and the voltage angle determine the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k).

[0157] 3) Based on formula (3), according to the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k) Calculate the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1).

[0158] 4) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q(k+1) calculates the loss function corresponding to the voltage angle. For ease of description, the loss function corresponding to the voltage angle is represented by g(n) below.

[0159] 5) g 0 =min(g 0 ,g(n)), that is, the initial loss function g 0 Compare it with the loss function g(n) corresponding to the voltage angle and take the smaller value as the initial loss function g 0 .

[0160] 6) The initial loss function g finally determined in Step 1 0 The corresponding voltage angle is taken as the optimal voltage angle θ corresponding to the first iteration 1 .For example, Figure 3 The angle corresponding to the bold arrow shown in (b) (optimal voltage angle) is θ 1 .

[0161] Step 2: Determine the optimal voltage amplitude U corresponding to the first iteration 1 .

[0162] Specifically, the following steps are included:

[0163] 1) See Figure 3 As shown in (c), the optimal voltage angle θ corresponding to the first iteration is 1 As a constant, the target voltage amplitude (i.e., the initial voltage amplitude U) is gradually changed according to the set amplitude difference ΔU. 0 ), until the set voltage amplitude U is reached 0 ±U m / 2. In this step, a total of m voltage amplitudes can be obtained. For each voltage amplitude, the following 2) to 5) are executed.

[0164] 2) Based on formula (1), according to the optimal voltage angle θ corresponding to the first iteration 1 The d-axis stator voltage value U at time k is determined by the voltage amplitude d (k) and q-axis stator voltage value U q (k).

[0165] 3) Based on formula (3), according to the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k) Calculate the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1).

[0166] 4) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1 d(k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1) calculates the loss function corresponding to the voltage amplitude. For ease of description, the loss function corresponding to the voltage angle is represented by g(m) below.

[0167] 5) g 0 =min(g 0 ,g(m)), that is, the initial loss function g 0 Compare it with the loss function g(m) corresponding to the voltage amplitude and take the smaller value as the initial loss function g 0 .

[0168] 6) The initial loss function g finally determined in Step 2 0 The corresponding voltage amplitude is taken as the optimal voltage amplitude U corresponding to the first iteration 1 .For example, Figure 3 The amplitude corresponding to the bold arrow shown in (c) (optimal voltage amplitude) is U 1 .

[0169] The second iteration process (iteration number i=2) includes the following Step 3 and Step 4:

[0170] Step 3: Determine the optimal voltage angle θ corresponding to the second iteration 2 .

[0171] Specifically, the following steps are included:

[0172] 1) See Figure 3 As shown in (d), the target voltage amplitude (i.e., the optimal voltage amplitude corresponding to the first iteration U 1 ) as a constant, and gradually change the target voltage angle θ according to the set angle difference Δθ / 2 1 , until the set voltage angle θ is reached 1 ±π / 2. This step can obtain n voltage angles in total, and for each voltage angle, the following 2) to 5) are executed.

[0173] 2) Based on formula (1), according to the target voltage amplitude U 1 The d-axis stator voltage value U at time k is determined by the voltage angle d (k) and q-axis stator voltage value U q (k).

[0174] 3) Based on formula (3), according to the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k) Calculate the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q(k+1).

[0175] 4) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1) Calculate the loss function g(n) corresponding to the voltage angle.

[0176] 5) g 0 =min(g 0 ,g(n)).

[0177] 6) The initial loss function g finally determined in Step 3 0 The corresponding voltage angle is taken as the optimal voltage angle θ corresponding to the second iteration 2 .For example, Figure 3 The angle corresponding to the bold arrow shown in (d) (optimal voltage angle) is θ 2 .

[0178] Step 4: Determine the optimal voltage amplitude U corresponding to the second iteration 2 .

[0179] Specifically, the following steps are included:

[0180] 1) See Figure 3 As shown in (e), the optimal voltage angle θ corresponding to the second iteration is 2 As a constant, the target voltage amplitude U is gradually changed according to the set amplitude difference ΔU / 2. 1 , until the set voltage amplitude U is reached 1 ±U m / 4. In this step, a total of m voltage amplitudes can be obtained. For each voltage amplitude, the following 2) to 5) are performed.

[0181] 2) Based on formula (1), according to the optimal voltage angle θ corresponding to the second iteration 2 The d-axis stator voltage value U at time k is determined by the voltage amplitude d (k) and q-axis stator voltage value U q (k).

[0182] 3) Based on formula (3), according to the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k) Calculate the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1).

[0183] 4) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1) calculates the loss function corresponding to the voltage amplitude. For ease of description, the loss function corresponding to the voltage angle is represented by g(m) below.

[0184] 5) g 0 =min(g 0 ,g(m)).

[0185] 6) The initial loss function g finally determined in Step 4 0 The corresponding voltage amplitude is taken as the optimal voltage amplitude U corresponding to the first iteration 2 .For example, Figure 3 The amplitude corresponding to the bold arrow shown in (e) (optimal voltage amplitude) is U 2 .

[0186] …, and so on. The i-th iteration process includes the following Step (2i-1) and Step (2i):

[0187] Step (2i-1): Determine the optimal voltage angle θ corresponding to the i-th iteration i .

[0188] Specifically, the following steps are included:

[0189] 1) Set the target voltage amplitude (i.e. the optimal voltage amplitude U corresponding to the i-1th iteration) i-1 ) as a constant, according to the set angle difference Δθ / 2 i-1 Gradually change the target voltage angle θ i-1 , until the set voltage angle is reached This step can obtain a total of n voltage angles, and for each voltage angle, the following 2) to 5) are executed.

[0190] 2) Based on formula (1), according to the target voltage amplitude U i-1 The d-axis stator voltage value U at time k is determined by the voltage angle d (k) and q-axis stator voltage value U q (k).

[0191] 3) Based on formula (3), according to the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k) Calculate the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1).

[0192] 4) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1) Calculate the loss function g(n) corresponding to the voltage angle.

[0193] 5) g 0 =min(g 0 ,g(n)).

[0194] 6) The initial loss function g finally determined by Step (2i-1) 0 The corresponding voltage angle is taken as the optimal voltage angle θ corresponding to the i-th iteration i .

[0195] Step (2i): Determine the optimal voltage amplitude U corresponding to the i-th iteration i .

[0196] Specifically, the following steps are included:

[0197] 1) The optimal voltage angle θ corresponding to the i-th iteration i As a fixed value, according to the set amplitude difference ΔU / 2 i-1 Gradually change the target voltage amplitude U i-1 , until the set voltage amplitude U is reached i-1 ±U m / 2 i This step can obtain a total of m voltage amplitudes, and for each voltage amplitude, the following 42) to 45) are executed.

[0198] 2) Based on formula (1), according to the optimal voltage angle θ corresponding to the i-th iteration i The d-axis stator voltage value U at time k is determined by the voltage amplitude d (k) and q-axis stator voltage value U q (k).

[0199] 3) Based on formula (3), according to the d-axis stator voltage value U at time k d (k) and q-axis stator voltage value U q (k) Calculate the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1).

[0200] 4) Based on formula (4), according to the predicted value i of the d-axis stator current at time k+1 d (k+1) and the predicted value of the q-axis stator current at time k+1 i q (k+1) Calculate the loss function g(m) corresponding to the voltage amplitude.

[0201] 5) g0 =min(g 0 ,g(m)).

[0202] 6) The initial loss function g finally determined in Step (2i) 0 The corresponding voltage amplitude is taken as the optimal voltage amplitude U corresponding to the i-th iteration i .

[0203] The above process is repeated continuously. When the set number of times is reached, the stator voltage value at time k can be determined based on formula (1) according to the optimal voltage angle and optimal voltage amplitude corresponding to the last iteration.

[0204] An embodiment of the present application also provides a stator voltage value determination device. The stator voltage value determination device provided in the embodiment of the present application is described below. The stator voltage value determination device described below and the stator voltage value determination method described above can be referenced to each other.

[0205] See also Figure 4 , shows a schematic diagram of the structure of a stator voltage value determination device provided in an embodiment of the present application, such as Figure 4 As shown, the stator voltage value determination device may include: an information acquisition module 401 , an iteration module 402 and a stator voltage value determination module 403 .

[0206] The information acquisition module 401 is used to acquire bus voltage and current parameter values, wherein the current parameter value includes: a stator current value and a stator current reference value at a current sampling moment.

[0207] The iteration module 402 is used to perform an iterative operation for a set number of times according to the current parameter value. For each iterative operation: taking the target voltage amplitude as a fixed value, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when the target voltage angle is changed each time as the optimal voltage angle corresponding to the iteration; taking the optimal voltage angle corresponding to the iteration as a fixed value, gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determining the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time as the optimal voltage amplitude corresponding to the iteration; wherein, For the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage, and the target voltage angle is the initial voltage angle. For the non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration. The loss function is used to characterize the degree of loss of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value. The stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment. The set amplitude difference and the set angle difference gradually decrease with the increasing number of iterations.

[0208] The stator voltage value determination module 403 is used to determine the stator voltage value at the current sampling moment according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration.

[0209] The stator voltage value determination device provided in the present application first obtains the bus voltage and current parameter values, and then performs a set number of iterative operations according to the current parameter values. For each iterative operation: the target voltage amplitude is taken as a constant, and the target voltage angle is gradually changed according to the set angle difference corresponding to the iteration, and the voltage angle that minimizes the loss function each time the target voltage angle is changed is determined as the optimal voltage angle corresponding to the iteration, and the optimal voltage angle corresponding to the iteration is taken as a constant, and the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and the voltage amplitude that minimizes the loss function each time the target voltage amplitude is changed is determined as the optimal voltage amplitude corresponding to the iteration, and then the stator voltage value at the current sampling moment is determined according to the optimal voltage angle and optimal voltage amplitude corresponding to the last iteration. The stator voltage value determination device provided in the present application can perform iterative operations for a set number of times according to the current parameter value to obtain the optimal voltage amplitude and the optimal voltage angle corresponding to each iteration. According to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration, the stator voltage value at the current sampling moment can be easily determined. The solution is simple and the calculation amount is small.

[0210] In one possible implementation, the above-mentioned iteration module 402 gradually changes the target voltage angle according to the set angle difference corresponding to the iteration, and determines the voltage angle that minimizes the loss function when changing the target voltage angle each time. The process as the optimal voltage angle corresponding to the iteration may include: an angle change module, a first loss function comparison module and an optimal voltage angle determination module.

[0211] The angle changing module is used to gradually change the target voltage angle according to the set angle difference corresponding to the iteration until the set voltage angle is reached.

[0212] The first loss function comparison module is used to determine the loss function corresponding to the voltage angle for each voltage angle obtained by changing the target voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle; determine the smaller value between the loss function corresponding to the voltage angle and the initial loss function as the initial loss function, wherein for the first iteration, the initial loss function is a value determined according to the initial voltage amplitude, the initial voltage angle and the current parameter value.

[0213] The optimal voltage angle determination module is used to determine the voltage angle corresponding to the initial loss function determined by the last change of the target voltage angle as the optimal voltage angle corresponding to the iteration.

[0214] In one possible implementation, the above-mentioned iteration module 402 gradually changes the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determines the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time. The process as the optimal voltage amplitude corresponding to the iteration may include: an amplitude change module, a second loss function comparison module and an optimal voltage amplitude determination module.

[0215] The amplitude changing module is used to gradually change the target voltage amplitude according to the set amplitude difference corresponding to the iteration until the set voltage amplitude is reached.

[0216] The second loss function determination module is used to determine the loss function corresponding to the voltage amplitude obtained each time the target voltage amplitude is changed: according to the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude; determine the smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function.

[0217] The optimal voltage amplitude determination module is used to determine the voltage amplitude corresponding to the initial loss function determined by the last change of the target voltage amplitude as the optimal voltage amplitude corresponding to the iteration.

[0218] In one possible implementation, the process of the first loss function comparison module determining the loss function corresponding to the voltage angle based on the current parameter value, the target voltage amplitude and the voltage angle may include: a first stator voltage value determination module, a first stator current prediction value determination module and a first loss function determination submodule.

[0219] The first stator voltage value determination module is used to determine the first stator voltage value as the stator voltage value at the current sampling moment according to the target voltage amplitude and the voltage angle.

[0220] The first stator current prediction value determination module is used to determine the stator current prediction value at the next sampling moment of the current sampling moment according to the stator current value at the current sampling moment and the stator voltage value at the current sampling moment.

[0221] The first loss function determination submodule is used to determine the loss function corresponding to the voltage angle according to the stator current prediction value and the stator current reference value at the next sampling moment of the current sampling moment.

[0222] In one possible implementation, the process of the second loss function comparison module determining the loss function corresponding to the voltage amplitude based on the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude may include: a second stator voltage value determination module, a second stator current prediction value determination module and a second loss function determination submodule.

[0223] The second stator voltage value determination module is used to determine the second stator voltage value as the stator voltage value at the current sampling moment according to the optimal voltage angle corresponding to the iteration and the voltage amplitude.

[0224] The second stator current prediction value determination module is used to determine the stator current prediction value at the next sampling moment of the current sampling moment according to the stator current value at the current sampling moment and the stator voltage value at the current sampling moment.

[0225] The second loss function determination submodule is used to determine the loss function corresponding to the voltage amplitude according to the stator current prediction value and the stator current reference value at the next sampling moment of the current sampling moment.

[0226] In one possible implementation, the above-mentioned first stator current prediction value determination module and / or second stator current prediction value determination module can be specifically used to input the stator current value at the current sampling moment and the stator voltage value at the current sampling moment into a discrete current state equation to obtain the stator current prediction value at the next sampling moment of the current sampling moment output by the discrete current state equation, wherein the discrete current state equation is obtained by discretizing the stator voltage equation of the motor in a synchronous rotating coordinate system using the forward Euler formula.

[0227] The embodiment of the present application also provides a stator voltage value determination device. Optionally, Figure 5 The hardware structure diagram of the stator voltage value determination device is shown in FIG. Figure 5 , the hardware structure of the stator voltage value determination device may include: at least one processor 501, at least one communication interface 502, at least one memory 503 and at least one communication bus 504;

[0228] In the embodiment of the present application, the number of the processor 501, the communication interface 502, the memory 503, and the communication bus 504 is at least one, and the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504;

[0229] The processor 501 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention;

[0230] The memory 503 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;

[0231] The memory 503 stores a program, and the processor 501 can call the program stored in the memory 503, and the program is used to:

[0232] Obtain bus voltage and current parameter values, wherein the current parameter value includes: a stator current value and a stator current reference value at a current sampling moment;

[0233] Perform the set number of iterations according to the current parameter value. For each iteration:

[0234] Taking the target voltage amplitude as a constant, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when changing the target voltage angle each time as the optimal voltage angle corresponding to the iteration;

[0235] The optimal voltage angle corresponding to the iteration is taken as a fixed value, the target voltage amplitude is gradually changed according to the set amplitude difference corresponding to the iteration, and the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time is determined as the optimal voltage amplitude corresponding to the iteration;

[0236] Among them, for the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage, and the target voltage angle is the initial voltage angle. For the non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration. The loss function is used to characterize the loss degree of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value. The stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment. The set amplitude difference and the set angle difference gradually decrease with the increasing number of iterations.

[0237] The stator voltage value at the current sampling moment is determined according to the optimal voltage angle and optimal voltage amplitude corresponding to the last iteration.

[0238] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0239] An embodiment of the present application further provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned method for determining the stator voltage value is implemented.

[0240] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0241] Finally, it should be noted that, in this article, relational terms such as and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0242] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0243] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for determining a stator voltage value, characterized in that: include: Obtain bus voltage and current parameter values, wherein the current parameter values ​​include: a stator current value and a stator current reference value at a current sampling moment; Perform a set number of iterative operations according to the current parameter value, and for each iterative operation: Taking the target voltage amplitude as a constant, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when changing the target voltage angle each time as the optimal voltage angle corresponding to the iteration; Taking the optimal voltage angle corresponding to the iteration as a fixed value, gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determining the voltage amplitude that minimizes the loss function when changing the target voltage amplitude each time as the optimal voltage amplitude corresponding to the iteration; Wherein, for the first iteration, the target voltage amplitude is the initial voltage amplitude determined according to the bus voltage, and the target voltage angle is the initial voltage angle; for the non-first iteration, the target voltage amplitude is the optimal voltage amplitude corresponding to the previous iteration, and the target voltage angle is the optimal voltage angle corresponding to the previous iteration; the loss function is used to characterize the degree of loss of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value; the stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment; and the set amplitude difference and the set angle difference gradually decrease as the number of iterations increases; The stator voltage value at the current sampling moment is determined according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration.

2. The method for determining the stator voltage value according to claim 1, characterized in that: The step of gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, and determining the voltage angle that minimizes the loss function when changing the target voltage angle each time as the optimal voltage angle corresponding to the iteration, comprises: gradually changing the target voltage angle according to the set angle difference corresponding to the iteration until the set voltage angle is reached; The voltage angle obtained for each change of the target voltage angle is: Determining a loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle; Determine a smaller value between a loss function corresponding to the voltage angle and an initial loss function as the initial loss function, wherein, for a first iteration, the initial loss function is a value determined according to the initial voltage amplitude, the initial voltage angle, and the current parameter value; The voltage angle corresponding to the initial loss function determined by the last change of the target voltage angle is determined as the optimal voltage angle corresponding to the iteration.

3. The method for determining the stator voltage value according to claim 2, characterized in that: The step of gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determining the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time as the optimal voltage amplitude corresponding to the iteration, comprises: gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration until the set voltage amplitude is reached; The voltage amplitude obtained for each change of the target voltage amplitude is: Determining a loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration, and the voltage amplitude; Determine a smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function; The voltage amplitude corresponding to the initial loss function determined by the last change of the target voltage amplitude is determined as the optimal voltage amplitude corresponding to the iteration.

4. The method for determining the stator voltage value according to claim 3, characterized in that: The step of determining a loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle includes: Determining a first stator voltage value according to the target voltage amplitude and the voltage angle as the stator voltage value at the current sampling moment; Determine a predicted stator current value at a sampling moment next to the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment; Determine the loss function corresponding to the voltage angle according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value; Correspondingly, determining the loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration, and the voltage amplitude includes: Determine a second stator voltage value according to the optimal voltage angle corresponding to the iteration and the voltage amplitude as the stator voltage value at the current sampling moment; Determine a predicted stator current value at a sampling moment next to the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment; A loss function corresponding to the voltage amplitude is determined according to a stator current prediction value at a sampling moment next to the current sampling moment and the stator current reference value.

5. The method for determining the stator voltage value according to claim 4, characterized in that: Determining the predicted value of the stator current at the next sampling moment of the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment includes: The stator voltage value and the stator current value at the current sampling moment are input into a discrete current state equation to obtain a stator current prediction value at the next sampling moment of the current sampling moment output by the discrete current state equation, wherein the discrete current state equation is obtained by discretizing the stator voltage equation of the motor in a synchronous rotating coordinate system using a forward Euler formula.

6. A device for determining a stator voltage value, characterized in that: include: An information acquisition module, an iteration module and a stator voltage value determination module; The information acquisition module is used to acquire bus voltage and current parameter values, wherein the current parameter values ​​include: a stator current value and a stator current reference value at a current sampling moment; The iteration module is used to perform an iterative operation for a set number of times according to the current parameter value. For each iterative operation: taking the target voltage amplitude as a constant, gradually changing the target voltage angle according to the set angle difference corresponding to the iteration, determining the voltage angle that minimizes the loss function when the target voltage angle is changed each time, as the optimal voltage angle corresponding to the iteration; taking the optimal voltage angle corresponding to the iteration as a constant, gradually changing the target voltage amplitude according to the set amplitude difference corresponding to the iteration, determining the voltage amplitude that minimizes the loss function when the target voltage amplitude is changed each time, as the optimal voltage amplitude corresponding to the iteration; wherein, for the first iteration , the target voltage amplitude is an initial voltage amplitude determined according to the bus voltage, the target voltage angle is an initial voltage angle, for non-first iteration, the target voltage amplitude is an optimal voltage amplitude corresponding to the previous iteration, the target voltage angle is an optimal voltage angle corresponding to the previous iteration, the loss function is used to characterize the loss degree of the stator current prediction value at the next moment of the current sampling moment relative to the stator current reference value, the stator current reference value at the next sampling moment of the current sampling moment is determined according to the stator current value, voltage amplitude and voltage angle at the current sampling moment, and the set amplitude difference and the set angle difference gradually decrease with the increasing number of iterations; The stator voltage value determination module is used to determine the stator voltage value at the current sampling moment according to the optimal voltage angle and the optimal voltage amplitude corresponding to the last iteration.

7. The stator voltage value determination device according to claim 6, characterized in that: The iterative module gradually changes the target voltage angle according to the set angle difference corresponding to the iteration, and determines the voltage angle that minimizes the loss function when changing the target voltage angle each time as the optimal voltage angle corresponding to the iteration, including: an angle changing module, a first loss function comparison module and an optimal voltage angle determination module; The angle changing module is used to gradually change the target voltage angle according to the set angle difference corresponding to the iteration until the set voltage angle is reached; The first loss function comparison module is used for determining, for each voltage angle obtained by changing the target voltage angle, the loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle; determining the smaller value between the loss function corresponding to the voltage angle and the initial loss function as the initial loss function, wherein, for the first iteration, the initial loss function is a value determined according to the initial voltage amplitude, the initial voltage angle and the current parameter value; The optimal voltage angle determination module is used to determine the voltage angle corresponding to the initial loss function determined by the last change of the target voltage angle as the optimal voltage angle corresponding to the iteration.

8. The stator voltage value determination device according to claim 7, characterized in that: The iteration module gradually changes the target voltage amplitude according to the set amplitude difference corresponding to the iteration, and determines the voltage amplitude that minimizes the loss function when changing the target voltage amplitude each time as the optimal voltage amplitude corresponding to the iteration, including: an amplitude changing module, a second loss function comparison module and an optimal voltage amplitude determination module; The amplitude changing module is used to gradually change the target voltage amplitude according to the set amplitude difference corresponding to the iteration until the set voltage amplitude is reached; The second loss function comparison module is used for determining, for each voltage amplitude obtained by changing the target voltage amplitude, the loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration, and the voltage amplitude; and determining the smaller value between the loss function corresponding to the voltage amplitude and the initial loss function as the initial loss function; The optimal voltage amplitude determination module is used to determine the voltage amplitude corresponding to the initial loss function determined by the last change of the target voltage amplitude as the optimal voltage amplitude corresponding to the iteration.

9. The stator voltage value determination device according to claim 8, characterized in that: The process in which the first loss function comparison module determines the loss function corresponding to the voltage angle according to the current parameter value, the target voltage amplitude and the voltage angle includes: a first stator voltage value determination module, a first stator current prediction value determination module, and a first loss function determination module; The first stator voltage value determination module is used to determine a first stator voltage value as the stator voltage value at the current sampling moment according to the target voltage amplitude and the voltage angle; The first stator current prediction value determination module is used to determine the stator current prediction value at the next sampling moment of the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment; The first loss function determination module is used to determine the loss function corresponding to the voltage angle according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value; Correspondingly, the second loss function comparison module determines the process of the loss function corresponding to the voltage amplitude according to the current parameter value, the optimal voltage angle corresponding to the iteration and the voltage amplitude, including: a second stator voltage value determination module, a second stator current prediction value determination module, and a second loss function determination module; The second stator voltage value determination module is used to determine the second stator voltage value as the stator voltage value at the current sampling moment according to the optimal voltage angle corresponding to the iteration and the voltage amplitude; The second stator current prediction value determination module is used to determine the stator current prediction value at the next sampling moment of the current sampling moment according to the stator voltage value at the current sampling moment and the stator current value at the current sampling moment; The second loss function determination module is used to determine the loss function corresponding to the voltage amplitude according to the stator current prediction value at the next sampling moment of the current sampling moment and the stator current reference value.

10. The stator voltage value determination device according to claim 9, characterized in that: The first stator current prediction value determination module and / or the second stator current prediction value determination module are specifically used to input the stator voltage value at the current sampling moment and the stator current value at the current sampling moment into a discrete current state equation to obtain the stator current prediction value at the next sampling moment of the current sampling moment output by the discrete current state equation, wherein the discrete current state equation is obtained by discretizing the stator voltage equation of the motor in a synchronous rotating coordinate system using the forward Euler formula.