Method for obtaining control input voltage and related device

By obtaining and selecting the control input voltage vector that satisfies the constraint conditions in the permanent magnet synchronous motor, and using multi-order derivatives and feedforward processing terms to calculate the objective function value, the problem of high computing power consumption in current loop control is solved and an efficient, Accurately control input voltage acquisition.

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

Patent Information

Application Number
CN202410807999.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-22
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Existing technology requires relatively high computing resources in the current loop control of permanent magnet synchronous motors, resulting in inefficient control input voltage acquisition methods that rely on engineers' calibration experience and require a large amount of calculations.

Method used

By obtaining the first control input voltage vector and stator current vector of the permanent magnet synchronous motor, based on the objective function value relationship of multiple candidate control input voltage vectors, select the second control input voltage vector that satisfies the constraint conditions, using multi-order derivatives and The feedforward processing item calculates the objective function value and reduces computing power consumption.

Benefits of technology

It achieves efficient acquisition of control input voltage without increasing computing resources, reduces the workload of manual calibration, improves control accuracy and efficiency, and reduces the amount of calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381398B_ABST
    Figure CN118381398B_ABST
Patent Text Reader

Abstract

The present application provides a method for obtaining a control input voltage and a related device, which obtain a first control input voltage vector and a stator current vector of a permanent magnet synchronous motor at a first moment. When the first control input voltage vector does not meet the constraint conditions, based on the size relationship of the objective function values ​​corresponding to multiple candidate control input voltage vectors, a second control input voltage vector is selected from the candidate control input voltage vectors as the control input voltage vector of the permanent magnet synchronous motor at the first moment. Based on the corresponding relationship, the control input voltage vector can be obtained by simple calculation and comparison of the objective function value, thereby achieving the purpose of reducing computing power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control, and in particular to a method for obtaining a control input voltage, a permanent magnet synchronous motor control system, and a readable storage medium. Background Art

[0002] Permanent magnet synchronous motors are increasingly used in the field of electric drive due to their simple structure and high power density. Figure 1 For permanent magnet synchronous motor (PMSM, Figure 1 The schematic diagram of dual-loop control of the motor (referred to as the motor in the figure), in which the function of the speed control module is to output the reference current. The current control module outputs the control input voltage based on the reference current and the collected motor current, which acts on the motor after conversion by the inverter. The current control module usually outputs the control input voltage in the form of segmented proportional integral control (PIC). This method requires engineers to perform a lot of calibration work, and the control effect of the segmented PIC often depends on the calibration experience of the calibration engineer.

[0003] Model predictive control is increasingly favored by the engineering community because of its fast dynamic response, high control accuracy, and small calibration workload.

[0004] However, the application of model predictive control in the current loop control of permanent magnet synchronous motors usually requires large computing resources. Figure 1 As shown, the computing power requirements for the chips in the control module are relatively high. Summary of the invention

[0005] The present application provides a method for obtaining a control input voltage, a permanent magnet synchronous motor control system, and a readable storage medium, with the aim of providing a method for obtaining a control input voltage of a permanent magnet synchronous motor with less computing power resource consumption.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] A method for obtaining a control input voltage, comprising:

[0008] Obtaining a first control input voltage vector and a stator current vector of the permanent magnet synchronous motor at a first moment;

[0009] In the case that the first control input voltage vector does not satisfy the constraint condition, based on the size relationship of the objective function values ​​respectively corresponding to a plurality of candidate control input voltage vectors, a second control input voltage vector is selected from the candidate control input voltage vectors as the control input voltage vector of the permanent magnet synchronous motor at the first moment, wherein the corresponding relationship between the first candidate control input voltage vector and the objective function value includes: the objective function value is determined based on the square of the difference, the difference is the difference between the reference current vector and the corrected stator current vector of the permanent magnet synchronous motor at the second moment, the corrected stator current vector at the second moment is obtained based on the difference between the stator current vector at the second moment and the feedforward current compensation term, and ... The stator current vector at the second moment is determined based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector, the feedforward current compensation term includes the product of the first term, the second term and the third term, the first term is a control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor, the second term is a control input matrix determined by the stator quadrature and direct-axis inductances, the third term is the sum of the pre-configured first feedforward processing term and the second feedforward processing term, the first feedforward processing term and the second feedforward processing term are both obtained based on the rotor flux angular velocity and the rotor permanent magnet flux, and the first candidate control input voltage vector is any one of the candidate control input voltage vectors.

[0010] Optionally, the constraint conditions include:

[0011] Inside the feasible domain formed by the regular polygon, the regular polygon is a regular polygon obtained by approximating the voltage constraint circle, and the boundary of the voltage constraint circle represents the maximum value of the DC bus voltage.

[0012] Optionally, multiple pre-configured candidate control input voltage vectors include:

[0013] The points on the edge of the regular polygon correspond to the control input voltage vector, and the points on the edge of the regular polygon include m equally divided points and vertices of the edge of the regular polygon, where m is a positive integer greater than or equal to 2.

[0014] Optionally, the weight of the stator current vector at the first moment includes: a state transfer matrix obtained by calculating multiple-order derivatives based on the stator current equation of the permanent magnet synchronous motor;

[0015] The weight of the first candidate control input voltage vector includes: the control input matrix obtained by calculating multiple-order derivatives based on the stator current equation of the permanent magnet synchronous motor.

[0016] Optionally, the state transfer matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor includes:

[0017] R s is the stator resistance, L d is the stator d-axis inductance, L q is the stator q-axis inductance, T s is the sampling period, I is the 2×2 identity matrix;

[0018] The control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor includes:

[0019]

[0020] Optionally, the first feedforward processing item includes: ω e is the rotor flux angular velocity, is the magnetic flux of the rotor permanent magnet;

[0021] The second feedforward processing term includes: L d is the stator d-axis inductance, L q is the stator q-axis inductance, i d is the stator d-axis current at the first moment, i q is the stator q-axis current at the first moment. Optionally, the second item is a control input matrix determined by the stator quadrature and direct-axis inductances, including:

[0022] The second item is L d is the stator d-axis inductance, L q is the stator q-axis inductance.

[0023] Optionally, the correspondence between the candidate control input voltage vector and the objective function value is obtained based on a first stator current equation, the first stator current equation is obtained by processing a second stator current equation, the processing includes two feedforward processings, the first feedforward processing includes feedforward voltage processing, the second feedforward processing includes coupling matrix processing, the feedforward voltage is the stator voltage excluding the stator voltage output by the voltage regulator, and the coupling matrix is ​​a coupling matrix of the stator orthogonal axes obtained based on the second stator current equation;

[0024] The processing also includes:

[0025] The results of the two feedforward processes are discretized based on multi-order Taylor polynomials.

[0026] A current loop control system, comprising:

[0027] Motor controller and memory;

[0028] The memory is used to store computer programs;

[0029] The motor controller is used to run the computer program to implement the above-mentioned method for obtaining the control input voltage.

[0030] A permanent magnet synchronous motor control system comprises the above current loop control system.

[0031] A readable storage medium, when instructions in the readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the above-mentioned method for obtaining a control input voltage.

[0032] A control input voltage acquisition device includes: an acquisition module and a selection module, wherein the acquisition module is used to acquire a first control input voltage vector of a permanent magnet synchronous motor at a first moment, and the selection module is used to select a second control input voltage vector from the candidate control input voltage vectors as the control input voltage vector of the permanent magnet synchronous motor at the first moment based on the magnitude relationship of the objective function values ​​respectively corresponding to a plurality of candidate control input voltage vectors when the first control input voltage vector does not meet the constraint condition, wherein the corresponding relationship between the first candidate control input voltage vector and the objective function value includes: the objective function value is determined based on the square of the difference value, wherein the difference value is the difference between the reference current vector and the modified stator current vector of the permanent magnet synchronous motor at the second moment, wherein the modified stator current vector at the second moment is determined based on the square of the difference value. The difference between the stator current vector at the second moment and the feedforward current compensation term is obtained, the stator current vector at the second moment is determined based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector, the feedforward current compensation term includes the product of the first term, the second term and the third term, the first term is a control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor, the second term is a control input matrix determined by the stator quadrature and direct axis inductances, the third term is the sum of the pre-configured first feedforward processing term and the second feedforward processing term, the first feedforward processing term and the second feedforward processing term are both obtained based on the rotor flux angular velocity and the rotor permanent magnet flux, and the first candidate control input voltage vector is any one of the candidate control input voltage vectors.

[0033] The present application provides a method for obtaining a control input voltage, a permanent magnet synchronous motor control system, and a readable storage medium, which obtain a first control input voltage vector and a stator current vector of a permanent magnet synchronous motor at a first moment. When the first control input voltage vector does not satisfy a constraint condition, based on the size relationship of objective function values ​​corresponding to a plurality of candidate control input voltage vectors, a second control input voltage vector is selected from the candidate control input voltage vectors as the control input voltage vector of the permanent magnet synchronous motor at the first moment, wherein the corresponding relationship between the first candidate control input voltage vector and the objective function value includes: the objective function value is determined based on the square of the difference, and the difference is the difference between the reference current vector and the corrected stator current vector of the permanent magnet synchronous motor at the second moment, and the corrected stator current vector at the second moment is determined based on the square of the difference. The difference between the stator current vector at the second moment and the feedforward current compensation term is obtained, the stator current vector at the second moment is determined based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector, the feedforward current compensation term includes the product of the first term, the second term and the third term, the first term is a control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor, the second term is a control input matrix determined by the stator quadrature and direct axis inductance, the third term is the sum of the pre-configured first feedforward processing term and the second feedforward processing term, the first feedforward processing term and the second feedforward processing term are both obtained based on the rotor flux angular velocity and the rotor permanent magnet flux, and the first candidate control input voltage vector is any candidate control input voltage vector. It can be seen that based on the corresponding relationship, the control input voltage vector can be obtained by calculating and comparing simple objective function values ​​to achieve the purpose of reducing computing power. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a schematic diagram of current loop control for a permanent magnet synchronous motor;

[0036] Figure 2 It is a schematic diagram of the relationship between the hexagonal constraint and the voltage limit circle;

[0037] Figure 3 A flowchart of a method for obtaining a control input voltage provided in an embodiment of the present application;

[0038] Figure 4A schematic diagram of the structure of a device for obtaining a control input voltage provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0040] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0041] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0042] In order to realize a control method of a permanent magnet synchronous motor with low computing power resource consumption, an embodiment of the present application provides a method for obtaining a control input voltage. Before describing the process of the method, the constraint equation and the derivation principle of the constraint equation are first described.

[0043] 1. Construction of accurate stator current equation of permanent magnet synchronous motor:

[0044] In the synchronous rotating coordinate system, the stator voltage equation of the permanent magnet synchronous motor can be expressed as:

[0045]

[0046] In formula (1), u sdq is the stator voltage, i sdq is the stator current, R s is the stator resistance, L dq is the stator DC-axis inductance, is the rotor permanent magnet flux, ω e is the rotor flux angular velocity, p is the differential operator, which can generally be expressed as

[0047] The inventor discovered during the research that the stator voltage u sdq It can be divided into two parts, which can be expressed as:

[0048]

[0049] In formula (2), u dq is the control input voltage of the voltage regulator output. Figure 1 , Figure 1 The current control module shown in is also called a voltage regulator.

[0050] u sdq_ff is the feedforward voltage (the first feedforward processing term). Based on the calculation formula of the feedforward voltage in equation (2), it can be seen that the feedforward voltage can be obtained by the feedback term ω obtained in advance. e and Therefore, it can be considered as a known parameter and will not be considered for the time being.

[0051] Therefore, based on equation (2), the stator voltage u output by the voltage regulator is dq In the synchronous rotating coordinate system, it can be expressed as:

[0052]

[0053] In formula (3), the control input voltage (matrix) where u d is the stator d-axis (direct axis) control input voltage, u q The stator q-axis (quadrature axis) controls the input voltage, and the d-axis and q-axis are orthogonal axes.

[0054] Stator current matrix where i d is the stator d-axis current, i q is the stator q-axis current, R s is the stator resistance, ω e is the rotor flux angular velocity, is the rotor permanent magnet flux. Represents the state transfer matrix, where the state transfer matrix is ​​a non-diagonal matrix, indicating that the stator d-axis and q-axis currents in formula (3) are mutually coupled. represents the control input matrix.

[0055] In order to conveniently deal with the coupling terms of the d-axis and q-axis in the stator current equation, equation (3) is transformed into:

[0056]

[0057] In formula (4) It represents the coupling matrix of the d-axis and the q-axis in the stator current equation (i.e., the second feedforward processing term). Based on equation (4), it can be seen that the second feedforward processing is performed here, that is, the coupling matrix G is fed forward.

[0058] After feedforward processing, the feedforward voltage u sdq_ff And the coupling matrix G, the stator current equation of the permanent magnet synchronous motor with decoupled d-axis and q-axis is obtained, which is expressed as:

[0059]

[0060] The stator current matrix in formula (5) is It is uniformly expressed as the stator current matrix x below, that is, Control Input Voltage Matrix The following is uniformly expressed as the control input voltage matrix u, that is,

[0061] It should be noted that the state transfer matrix in formula (5) and the control input matrix They are all diagonal matrices. It can be seen that after two consecutive feedforward processes, the stator current equation of the permanent magnet synchronous motor with decoupled d-axis and q-axis is obtained. The stator current equation of the permanent magnet synchronous motor with decoupled d-axis and q-axis lays the foundation for precise control and will be described in detail later.

[0062] It can be understood that in practical applications, a discretized formula must be used, so perform 2.

[0063] 2. Construction of high-precision discrete stator current equation:

[0064] In one control cycle of the permanent magnet synchronous motor current loop, the voltage u dq It can be considered to be unchanged, so by taking the derivative of formula (5), we can get:

[0065]

[0066] In formula (6) represents the stator current matrix when the sampling time is k, where i d (k) represents the stator d-axis current when the sampling time is k, i q (k) represents the stator q-axis current when the sampling time is k, represents the control input voltage matrix when the sampling time is k, where u d (k) represents the control input voltage of the stator d axis when the sampling time is k, u q (k) represents the stator q-axis control input voltage when the sampling time is k, and n represents the order of the Taylor polynomial, which can be set by the user.

[0067] Since the current loop control period of the permanent magnet synchronous motor is usually around 100 microseconds, the state variable x(t) is processed using the principle of Taylor polynomial expansion to obtain:

[0068]

[0069] Substituting formula (6) into formula (7) yields:

[0070]

[0071] In formula (8), I is a 2×2 identity matrix.

[0072] Referring to the characteristics of the discrete control of permanent magnet synchronous motor, formula (8) can be rewritten as:

[0073] x k+1 =Ax k +Bu k (9)

[0074] It should be noted that the state transfer matrix in formula (9) is and the control input matrix are all diagonal matrices, T s is the sampling period. The stator current equation obtained by discretization based on Taylor polynomial expansion is still decoupled between the d-axis and the q-axis. In the present application, the discretization processing based on Taylor polynomial expansion makes the discretization error of equation (9) smaller, and it can be understood that the feedforward processing can also reduce the computing power of the discretization processing based on Taylor polynomial expansion.

[0075] 3. Construction of the optimization problem of permanent magnet synchronous motor stator current predictive control:

[0076] Usually, in the process of P-step prediction of state variables in model predictive current control, the inductance and resistance of the permanent magnet synchronous motor are taken as fixed values, that is, in the process of multi-step state prediction in the same control cycle, the inductance and resistance of the permanent magnet synchronous motor are assumed to be constant values. Conventional model predictive current control performs P-step prediction of state variables based on formula (9), which can be obtained:

[0077]

[0078] However, the inductance and resistance of the permanent magnet synchronous motor will change with the change of the system state quantity. Therefore, the prediction of the system state by formula (10) cannot truly reflect the change of the permanent magnet synchronous motor state quantity in theory.

[0079] This proposal considers the time-varying inductance and time-varying resistance to perform P-step prediction of the system state, and obtains a more realistic system state prediction quantity of the permanent magnet synchronous motor:

[0080]

[0081] In formula (11), A0 represents the state transfer matrix when performing 0-step state prediction, A1 represents the state transfer matrix when performing 1-step state prediction, A2 represents the state transfer matrix when performing 2-step state prediction, and so on. N-1 Represents the state transition matrix when performing (N-1)-step state prediction. B0 represents the state transition matrix when performing 0-step state prediction. Control input matrix during prediction, B1 means 1 The control input matrix for step state prediction is as follows: Push, B N-1 Represents the control input matrix corresponding to the (N-1)-step state prediction.

[0082] represents the state variable for p-step state prediction, where i dp It represents the d-axis current obtained by p-step state, i qp It represents the d-axis current obtained by performing p-step state on the q-axis current.

[0083] represents the control input voltage corresponding to the (p-1) step state prediction, where u d(p-1) represents the d-axis control input voltage corresponding to the (p-1)-step state prediction of the d-axis, u q(p-1) It represents the q-axis control input voltage corresponding to the q-axis (p-1)-step state prediction.

[0084] It should be noted that the state transfer matrix A0, A1, A2, ..., A P-1 and the control input matrices B0, B1, B2, ..., B P-1The corresponding motor inductance value (including stator d-axis inductance and stator q-axis inductance) and the corresponding stator resistance value can be provided by the motor design manufacturer. The state transfer matrix A0, A1, A2, ..., A P-1 and the control input matrices B0, B1, B2, ..., B P-1 The corresponding inductance and resistance are generally different.

[0085] Note X ref is the reference value matrix of the state current, combined with Figure 1 , which is given by the speed control module. The control optimization target of the permanent magnet synchronous motor current loop is set as:

[0086]

[0087] In formula (12), represents the adjustment gain matrix.

[0088] By ignoring the constant term, the optimization objective (12) can be written as follows:

[0089]

[0090] Without considering system constraints, the current tracking optimization problem of the permanent magnet synchronous motor can be transformed into the following quadratic optimization problem:

[0091]

[0092] It is understandable that in practice, the control input voltage of the permanent magnet synchronous motor during actual operation needs to meet certain constraints: ||u||2≤u max .

[0093] The above constraints correspond to a circle in the two-dimensional plane, namely the voltage constraint circle. In engineering practice, regular polygons can be used to approximate the voltage constraint circle, such as Figure 2 As shown, taking a regular hexagon as an example, Figure 2 In the figure, the horizontal axis represents the d-axis voltage and the vertical axis represents the q-axis voltage. The maximum values ​​of the d-axis voltage and the q-axis voltage are both u max , that is, the radius of the voltage constraint circle is u max . Figure 2 , n1, n2, n3, n4, n5, and n6 respectively represent sides of a regular hexagon. Figure 2 In the figure, A, B, C, D, E, and F are the vertices of a regular hexagon. Figure 2 The coordinates of the vertices of the regular hexagon are also shown, that is, the control input voltage vector (u d ,u q ): The coordinates of point A are (u max , 0), the coordinates of point B are The coordinates of point C are The coordinates of point D are (-u max , 0), the coordinates of point E are The coordinates of point F are G, H, I, J, K and L are the points that divide the sides of the regular hexagon into two equal parts. The control input voltage vector (u d ,u q ) is: The coordinates of point G are The coordinates of point H are The coordinates of point I are The coordinates of point J are The coordinates of point K are The coordinates of point L are

[0094] It can be understood that based on the geometric relationship, the coordinates of the vertices of the regular polygon, the coordinates of the equally divided points and the lengths of the sides can be obtained, and then the voltage constraint of the regular polygon can be obtained in the form of a linear inequality:

[0095]

[0096] In formula (15), N represents the number of sides of the regular polygon, u max Represents the maximum DC bus voltage value (i.e. the maximum value of the DC bus voltage).

[0097] The inequality constraint in equation (15) can be simplified as HU≤h. So far, the permanent magnet synchronous motor current tracking optimization problem considering system constraints (the current tracking optimization problem refers to how the current control module (current loop) outputs the optimal d-axis voltage and the optimal q-axis voltage) can be expressed as:

[0098]

[0099] It should be pointed out that the permanent magnet synchronous motor current tracking optimization problem (16) requires repeated solving of quadratic planning problems in each control cycle, which requires a main control chip with powerful computing power and is generally difficult to apply in actual engineering.

[0100] In order to avoid the online solution of the quadratic programming in formula (16), reduce the computing power requirement of the main control chip, and facilitate deployment in actual product controllers, the inventors propose the following theory:

[0101] 4. Efficient solution of the optimization problem of stator current predictive control of permanent magnet synchronous motor:

[0102] By analyzing formula (14) and formula (16), it is found that when the optimal voltage vector appears inside the feasible region formed by the regular polygon, based on formula (14), by taking the partial derivative of the objective function with respect to the control input voltage, that is, by setting Obtain the optimal voltage vector. It should be noted that only The obtained u0 acts on the controlled object (ie, the permanent magnet synchronous motor).

[0103] When the optimal voltage vector appears outside the feasible domain formed by the regular polygon, based on formula (11), it can be seen that the current tracking optimization problem is a quadratic programming problem. Due to the existence of constrained voltage (i.e., constraint conditions) in practical applications, according to the optimization theory, in the optimization problem represented by formula (16), the optimal voltage vector can only appear on the edge of the regular polygon, which makes it possible to simplify the calculation and save the amount of calculation.

[0104] Based on formula (16), we can further obtain formula (17):

[0105]

[0106] It can be understood that formula (17) needs to consider the feedforward processing term. The first feedforward processing term is The second feedforward processing term is

[0107] Represents the corrected stator current matrix (vector) at time k+1, where x1=A0x0+B0u0.

[0108] represents the reference current vector, where i dref1 Indicates the d-axis reference current value, i qref1 represents the q-axis reference current, both of which are generally controlled by the speed control loop (such as Figure 1 It should be noted that formula (17) is obtained by performing one-step state prediction on formula (12).

[0109] The inventors found in the process of research that: based on formula (17), it is only necessary to traverse the objective function values ​​of the optimization problem at each vertex of the regular polygon and at the m equally divided points of the N edges to determine the optimal control input voltage vector, where m is a positive integer greater than or equal to 2. In practical applications, m is selected as a positive integer greater than or equal to 3. The larger m is, the higher the accuracy is, but the more computing resources are required. It can be set by the user according to actual needs.

[0110] Combined with formula (17), the control input voltage vectors corresponding to the vertices of the regular polygon and the m equally divided points of the N sides are taken as u0, and are substituted into formula (17) to obtain the corresponding J1. The u0 with the smallest J1 is the control input voltage vector used to control the permanent magnet synchronous motor.

[0111] It can be understood that by traversing the corresponding objective function values ​​of the points on the regular polygon to obtain the optimal control input voltage vector, the amount of calculation is greatly reduced compared with the method of solving the quadratic programming problem, thereby saving computing power.

[0112] Based on the above theoretical innovation, the embodiment of the present application provides a method for obtaining a control input voltage, which is applied to a permanent magnet synchronous motor control system (with Figure 1 The permanent magnet synchronous motor control system includes a current loop control system, and the method for obtaining the control input voltage provided in the embodiment of the present application is executed by the current loop control system.

[0113] Figure 3 The method for obtaining the control input voltage provided in the embodiment of the present application comprises the following steps:

[0114] S11, obtaining a control input voltage vector and a stator current vector of the permanent magnet synchronous motor at a first moment.

[0115] Combination Figure 1 , the control input voltage vector is the voltage vector output by the voltage control module. Assuming that the current operating moment of the permanent magnet synchronous motor is the first moment k, the control input voltage vector at the first moment k is u k In order to distinguish it from the subsequent steps, the control input voltage vector obtained in this step is called the first control input voltage vector.

[0116] In some implementations, based on equation (14), the partial derivative of the objective function with respect to the control input voltage is obtained, that is, Will pass The obtained u0 is used as the first control input voltage vector of the permanent magnet synchronous motor.

[0117] The stator current vector at the first moment is

[0118] S12: Determine whether the first control input voltage vector satisfies a constraint condition.

[0119] It is understandable that the constraint is ||u||2≤u max , this constraint corresponds to a circle in the two-dimensional plane (with a radius of u max ), in engineering practice, a regular polygon is used to approximate the voltage constraint circle. Therefore, one way to implement the constraint condition is shown in formula (15).

[0120] If the first control input voltage vector satisfies the constraint condition, it means that the obtained first control input voltage vector can meet the needs of the actual project. Figure 1 As shown, the permanent magnet synchronous motor can be controlled using a first control input voltage vector.

[0121] If the first control input voltage vector does not satisfy the constraint condition, it means that the obtained first control input voltage vector cannot meet the requirements of the actual project, and then the following step S13 is performed.

[0122] S13. Based on the magnitude relationship of the objective function values ​​corresponding to the plurality of candidate control input voltage vectors, select a second control input voltage vector from the candidate control input voltage vectors as the control input voltage vector of the permanent magnet synchronous motor at the first moment.

[0123] It can be understood that the candidate control input voltage vector is pre-configured in the permanent magnet synchronous motor system. Because the acquired voltage control vector is to satisfy the constraint condition, and as mentioned above, one implementation method of the constraint condition is a regular polygon approximated by the voltage constraint circle, and the constraint condition is not satisfied, that is, the optimal voltage vector appears outside the feasible domain formed by the regular hexagon. In this case, as mentioned above, the optimal voltage vector can only appear on the edge of the regular polygon, so in some implementation methods, the candidate control input voltage vector is the voltage vector corresponding to the vertex of the regular polygon and the m-divided points of the edge.

[0124] by Figure 2 Taking the regular hexagon shown as an example, the candidate control input voltage vectors are voltage vectors corresponding to the vertices of the regular hexagon and the m equally divided points of the six sides. In one example, m=2 is selected.

[0125] It can be understood that the control input voltage value of the vertex of the regular polygon is related to u max The relationship between is known, such as Figure 2 As shown in the figure, the coordinates of the vertex A of the regular hexagon are (u max , 0), so the control input voltage vector corresponding to the vertex A of the regular hexagon is (u max , 0), therefore, based on Figure 2 Taking the geometric relationship as an example, the control input voltage vectors corresponding to the vertices of the regular polygon and the m equally divided points of the edge, ie, the candidate control input voltage vectors, can be obtained.

[0126] It can be understood that when the first control input voltage vector does not satisfy the constraint condition, a control input voltage vector satisfying the constraint condition is obtained to meet the needs of the actual project. Therefore, in this step, the numerical values ​​of the control input voltage vectors corresponding to the vertices of the regular polygon and the m equally divided points of the edge are input into formula (17), and multiple J1s (J1 is the objective function value) are obtained, and the control input voltage value used for the minimum value among the multiple J1s is obtained, that is, the control input voltage vector satisfying the constraint condition, that is, the second control input voltage vector at the first moment.

[0127] It can be understood that the corresponding relationship represented by formula (17) represents: the corresponding relationship between the candidate control input voltage vector (i.e., the pre-configured control input voltage vector) and the objective function value, and any candidate control input voltage vector is referred to as the first candidate control input voltage vector. The corresponding relationship includes: the objective function value is determined based on the square of the difference, and the difference is the difference between the reference current vector and the corrected stator current vector of the permanent magnet synchronous motor at the second moment. The corrected stator current vector at the second moment is obtained based on the difference between the stator current vector at the second moment and the feedforward current compensation term. The stator current vector is determined based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector. The feedforward current compensation term includes the product of the first term, the second term and the third term. The first term is the control input matrix obtained by calculating the multi-order derivatives of the stator current equation based on the permanent magnet synchronous motor, such as B in formula (9). The second term is the control input matrix determined by the stator quadrature and direct axis inductances, such as B. The third term is the sum of the pre-configured first feedforward processing term and the second feedforward processing term. The first feedforward processing term and the second feedforward processing term are both obtained based on the rotor flux angular velocity and the rotor permanent magnet flux.

[0128] In some implementations, the first feedforward processing term is The second feedforward processing term is

[0129] The weight of the stator current vector at the first moment includes: a state transfer matrix obtained by calculating multiple-order derivatives based on the stator current equation of the permanent magnet synchronous motor, such as A in formula (9). The weight of the first candidate control input voltage vector includes: a control input matrix obtained by calculating multiple-order derivatives based on the stator current equation of the permanent magnet synchronous motor, that is, B0, such as B in formula (9).

[0130] It is understandable that the minimum is merely an example of a size relationship and is not intended to be limiting.

[0131] Combination Figure 1 , a permanent magnet synchronous motor is controlled using a second control input voltage vector that satisfies the constraints.

[0132] from Figure 3It can be seen from the process shown that in order to reduce the workload of manual calibration and reduce the influence of manual subjectivity on the dual-loop control effect, the deadbeat predictive control method is first used to obtain the control input voltage vector of the permanent magnet synchronous motor and determine whether it meets the constraints. If the obtained control input voltage vector does not meet the constraints, then based on the size relationship of the objective function values ​​corresponding to multiple candidate control input voltage vectors, the control input voltage vector that meets the constraints is obtained. Because multiple candidate control input voltage vectors can be pre-configured and the parameters required in the corresponding relationship can be obtained, there is no need to solve the quadratic programming problem, so the amount of calculation can be reduced.

[0133] In addition, the high-precision discrete stator current equation is obtained based on the discretization of multi-order Taylor polynomials, and therefore has a smaller discrete error, thereby further improving the accuracy of voltage control.

[0134] In summary, the method proposed in this embodiment can save computing power, thereby facilitating implementation, and has higher control accuracy.

[0135] The embodiment of the present application also provides a permanent magnet synchronous motor control system, comprising: a motor controller and a memory. The memory is used to store a computer program, and the motor controller is used to run the computer program to implement Figure 3 The method for obtaining the control input voltage is shown.

[0136] The embodiment of the present application further provides a readable storage medium, when the instructions in the readable storage medium are executed by the processor of the electronic device, the electronic device can execute Figure 3 The method for obtaining the control input voltage is shown.

[0137] The embodiment of the present application also provides a device for obtaining a control input voltage, such as Figure 4 As shown, it includes: an acquisition module and a selection module. The acquisition module is used to acquire a first control input voltage vector of the permanent magnet synchronous motor at a first moment. The specific implementation method can refer to S11.

[0138] The selection module is used to select a second control input voltage vector as the control input voltage vector of the permanent magnet synchronous motor at the first moment from the candidate control input voltage vectors based on the size relationship of the objective function values ​​respectively corresponding to a plurality of candidate control input voltage vectors when the first control input voltage vector does not meet the constraint condition, wherein the corresponding relationship between the first candidate control input voltage vector and the objective function value includes: the objective function value is determined based on the square of the difference, the difference is the difference between the reference current vector and the corrected stator current vector of the permanent magnet synchronous motor at the second moment, the corrected stator current vector at the second moment is obtained based on the difference between the stator current vector at the second moment and the feedforward current compensation term, and the corresponding relationship between the first candidate control input voltage vector and the objective function value includes: the objective function value is determined based on the square of the difference, the difference is the difference between the reference current vector and the corrected stator current vector of the permanent magnet synchronous motor at the second moment, the corrected stator current vector at the second moment is obtained based on the difference between the stator current vector at the second moment and the feedforward current compensation term, and the corrected stator current vector at the second moment is obtained based on the difference between the stator current vector ... The stator current vector at the second moment is determined based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector, the feedforward current compensation term includes the product of the first term, the second term and the third term, the first term is a control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor, the second term is a control input matrix determined by the stator quadrature and direct axis inductance, the third term is the sum of the pre-configured first feedforward processing term and the second feedforward processing term, the first feedforward processing term and the second feedforward processing term are both obtained based on the rotor flux angular velocity and the rotor permanent magnet flux, and the first candidate control input voltage vector is any candidate control input voltage vector. For specific implementation methods, see S12-S13.

[0139] The device for obtaining the control input voltage provided in this embodiment can be operated in Figure 1 The current control module in the permanent magnet synchronous motor control system shown is executed, which can realize the voltage control of the permanent magnet synchronous motor with less manual participation and easy implementation, and has higher control accuracy.

[0140] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0141] 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.

Claims

1. A method for obtaining a control input voltage, characterized in that: include: Obtaining a first control input voltage vector and a stator current vector of the permanent magnet synchronous motor at a first moment; In the case that the first control input voltage vector does not satisfy the constraint condition, based on the size relationship of the objective function values ​​respectively corresponding to a plurality of candidate control input voltage vectors, a second control input voltage vector is selected from the candidate control input voltage vectors as the control input voltage vector of the permanent magnet synchronous motor at the first moment, wherein the corresponding relationship between the first candidate control input voltage vector and the objective function value includes: the objective function value is determined based on the square of the difference, the difference is the difference between the reference current vector and the corrected stator current vector of the permanent magnet synchronous motor at the second moment, the corrected stator current vector at the second moment is obtained based on the difference between the stator current vector at the second moment and the feedforward current compensation term, and ... The stator current vector at the second moment is determined based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector, the feedforward current compensation term includes the product of the first term, the second term and the third term, the first term is a control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor, the second term is a control input matrix determined by the stator quadrature and direct-axis inductances, the third term is the sum of the pre-configured first feedforward processing term and the second feedforward processing term, the first feedforward processing term and the second feedforward processing term are both obtained based on the rotor flux angular velocity and the rotor permanent magnet flux, and the first candidate control input voltage vector is any one of the candidate control input voltage vectors.

2. The method according to claim 1, characterized in that: The constraints include: Inside the feasible domain formed by the regular polygon, the regular polygon is a regular polygon obtained by approximating the voltage constraint circle, and the boundary of the voltage constraint circle represents the maximum value of the DC bus voltage.

3. The method according to claim 2, characterized in that The plurality of candidate control input voltage vectors include: The points on the edge of the regular polygon correspond to the control input voltage vector, and the points on the edge of the regular polygon include m equally divided points and vertices of the edge of the regular polygon, where m is a positive integer greater than or equal to 2.

4. The method according to any one of claims 1 to 3, characterized in that: The weight of the stator current vector at the first moment includes: a state transfer matrix obtained by calculating multiple-order derivatives based on the stator current equation of the permanent magnet synchronous motor; The weight of the first candidate control input voltage vector includes: a control input matrix obtained by calculating multiple-order derivatives based on the stator current equation of the permanent magnet synchronous motor.

5. The method according to claim 4, characterized in that The state transfer matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor includes: R s is the stator resistance, L d is the stator d-axis inductance, L q is the stator q-axis inductance, T s is the sampling period, I is the 2×2 identity matrix; The control input matrix obtained by calculating multi-order derivatives based on the stator current equation of the permanent magnet synchronous motor includes:

6. The method according to any one of claims 1 to 3, characterized in that: The first feedforward processing term includes: ω e is the rotor flux angular velocity, is the magnetic flux of the rotor permanent magnet; The second feedforward processing term includes: L d is the stator d-axis inductance, L q is the stator q-axis inductance, i d is the stator d-axis current at the first moment, i q is the stator q-axis current at the first moment.

7. The method according to any one of claims 1 to 3, characterized in that: The second term is a control input matrix determined by the stator quadrature and direct-axis inductances, including: The second item is L d is the stator d-axis inductance, L q is the stator q-axis inductance.

8. The method according to any one of claims 1 to 3, characterized in that: The correspondence between the candidate control input voltage vector and the objective function value is obtained based on a first stator current equation, the first stator current equation is obtained by processing a second stator current equation, the processing includes two feedforward processes, the first feedforward process includes a feedforward voltage process, the second feedforward process includes a coupling matrix process, the feedforward voltage is a stator voltage other than a stator voltage output by a voltage regulator, and the coupling matrix is ​​a coupling matrix of a stator orthogonal axis obtained based on the second stator current equation; The processing also includes: The results of the two feedforward processes are discretized based on multi-order Taylor polynomials.

9. A permanent magnet synchronous motor system, characterized in that: include: Motor controller and memory; The memory is used to store computer programs; The motor controller is used to run the computer program to implement the method for obtaining the control input voltage according to any one of claims 1 to 8.

10. A readable storage medium, characterized in that: When the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for obtaining a control input voltage as described in any one of claims 1 to 8.