Method for obtaining control input voltage and related device
By using deadbeat model predictive control and feedforward current compensation terms in permanent magnet synchronous motors, combined with multi-order Taylor polynomial discretization processing, the constraint problem of deadbeat model predictive control in the current loop is solved, and the control efficiency is improved. Effect and precision.
Patent Information
- Application Number
- CN202410808349.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The control effect of deadbeat model predictive control in the current loop of permanent magnet synchronous motor is affected by constraint conditions, and it is difficult to meet the voltage control needs in actual operation.
The deadbeat model prediction method is used to obtain the control input voltage vector of the permanent magnet synchronous motor, and when the constraint conditions are not met, the second control input that satisfies the constraint conditions is selected based on the objective function value relationship of multiple candidate control input voltage vectors. The voltage vector is discretized through feedforward current compensation terms and multi-order Taylor polynomials to ensure the accuracy of voltage control.
It improves the control effect of deadbeat model predictive control in the permanent magnet synchronous motor current loop, ensures that the control input voltage meets the constraint conditions, reduces the workload of manual calibration, and improves the control precision and accuracy.
Smart Images

Figure CN118381399B_ABST
Abstract
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] Deadbeat predictive control is increasingly favored by the engineering community because of its high control accuracy and small calibration workload.
[0004] However, in the actual operation of the permanent magnet synchronous motor, the control input voltage needs to meet certain constraints, and the deadbeat model predictive control cannot directly handle the constraints, which directly affects the control effect of the deadbeat model predictive control in the permanent magnet synchronous motor current loop. In summary, how to improve the control effect of the deadbeat model predictive control in the permanent magnet synchronous motor current loop has become one of the problems that need to be solved at present. 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 to solve the problem of how to improve the control effect of the zero-beat model predictive control in the permanent magnet synchronous motor current loop.
[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 of the permanent magnet synchronous motor at a first moment by using a deadbeat model prediction method;
[0009] In the case where the first control input voltage vector does not satisfy the constraint condition, based on the magnitude 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 absolute value 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 determined based on the absolute value of the stator current vector at the second moment The stator current vector at the second moment is obtained by the difference between the stator current vector and the feedforward current compensation term, 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 a first term and a second term, the first term is a control input matrix determined by the stator quadrature and direct axis inductances, the second term is the sum of a pre-configured first feedforward processing term and a 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, the multiple candidate control input voltage vectors include:
[0013] The vertices of the regular polygon correspond to voltage vectors.
[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: a 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 sis 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.
[0022] Optionally, the first item is a control input matrix determined by the stator quadrature and direct-axis inductances, including:
[0023] The first item is L d is the stator d-axis inductance, L q is the stator q-axis inductance.
[0024] Optionally, the correspondence between the candidate control input voltage vector and the objective function value is obtained based on the first stator current equation, and the first stator current equation is obtained by processing the second stator current equation, and the processing includes two feedforward processings, the first feedforward processing includes feedforward voltage processing, and 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 the coupling matrix of the stator orthogonal axis obtained based on the second stator current equation. After two consecutive feedforward processings, the stator current equation of the permanent magnet synchronous motor with orthogonal axes decoupled from each other can be obtained, which is for the precise control of the permanent magnet synchronous motor, thereby further improving the accuracy of the voltage control based on the constraint conditions; the processing also includes:
[0025] The results of the two feedforward processes are discretized based on multi-order Taylor polynomials. Constraints are obtained by discretization based on multi-order Taylor polynomials, and therefore have higher discrete accuracy, thereby further improving the accuracy of voltage control based on constraints.
[0026] A permanent magnet synchronous motor 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 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.
[0031] A control input voltage acquisition device includes: an acquisition module and a selection module, wherein the acquisition module is used to use a deadbeat model prediction method 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 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 absolute value of the difference, and the difference is the difference between the reference current vector and the correction value of the permanent magnet synchronous motor at the second moment. The difference between the stator current vectors, the modified 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 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 a first term and a second term, the first term is a control input matrix determined by the stator quadrature and direct axis inductances, the second term is the sum of a pre-configured first feedforward processing term and a 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.
[0032] 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 use a beat-free model prediction method to obtain a first control input voltage vector of the 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, 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 absolute value 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, and the corrected stator current vector at the second moment is based on the stator current vector at the second moment and the feedforward current. 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 a first term and a second term. The first term is a control input matrix determined by the stator quadrature and direct-axis inductances. The second term is the sum of a preconfigured first feedforward processing term and a second feedforward processing term. Both the first feedforward processing term and the second feedforward processing term are obtained based on the rotor flux angular velocity and the rotor permanent magnet flux. It can be seen that when the first control input voltage vector does not meet the constraint conditions, the second control input voltage vector is reselected as the control input voltage vector of the permanent magnet synchronous motor, so that the control input voltage vector of the permanent magnet synchronous motor can meet the constraint conditions, thereby improving the control effect of the zero-beat model predictive control in the current loop of the permanent magnet synchronous motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] 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.
[0034] Figure 1 It is a schematic diagram of current loop control for a permanent magnet synchronous motor;
[0035] Figure 2 It is a schematic diagram of the relationship between the hexagonal constraint and the voltage limit circle;
[0036] Figure 3 A flowchart of a method for obtaining a control input voltage provided in an embodiment of the present application;
[0037] 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
[0038] 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.
[0039] 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.
[0040] 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.
[0041] In order to improve the control effect of the beat-free model predictive control in the current loop of a permanent magnet synchronous motor, an embodiment of the present application provides a method for obtaining a control input voltage. Before describing the process of the method, the constraint equations and the derivation principles of the constraint equations are first described.
[0042] 1. Construction of accurate stator current equation of permanent magnet synchronous motor:
[0043] In the synchronous rotating coordinate system, the stator voltage equation of the permanent magnet synchronous motor can be expressed as:
[0044]
[0045] 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 d-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
[0046] The inventor discovered during the research that the stator voltage u sdq It can be divided into two parts, which can be expressed as:
[0047]
[0048] 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.
[0049] 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.
[0050] Therefore, based on formula (2), the stator voltage u output by the voltage regulator is dq In the synchronous rotating coordinate system, it can be expressed as:
[0051]
[0052] 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.
[0053] 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.
[0054] 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:
[0055]
[0056] 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.
[0057] 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:
[0058]
[0059] 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,
[0060] It should be noted that the state transfer matrix A2 and the control input matrix B1 in formula (5) are both 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. It can be understood that in practical applications, a discretized formula must be used, so execute 2.
[0061] 2. Construction of high-precision discrete stator current equation:
[0062] 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:
[0063]
[0064] 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.
[0065] 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:
[0066]
[0067] Substituting formula (6) into formula (7) yields:
[0068]
[0069] In formula (8), I is a 2×2 identity matrix.
[0070] Referring to the characteristics of the discrete control of permanent magnet synchronous motor, formula (8) can be rewritten as:
[0071] x k+1 =Ax k +Bu k (9)
[0072] It should be noted that the state transfer matrix in formula (9) is and the control input matrix They are all diagonal matrices, and the stator current equation obtained by discretization based on Taylor polynomial expansion is still decoupled between the d-axis and the q-axis. In this 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.
[0073] 3. Construction and optimization solution of the current constraint problem of permanent magnet synchronous motor:
[0074] The control input voltage of the permanent magnet synchronous motor during actual operation needs to meet certain constraints: ||u||2≤u max .
[0075] 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
[0076] It can be understood that based on the geometric relationship, the coordinates of the vertices and the lengths of the sides of the regular polygon can be obtained, and then the voltage constraint of the regular polygon can be obtained in the form of a linear inequality:
[0077]
[0078] In formula (10), 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).
[0079] The inventors found in the process of research that the current tracking optimization problem (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:
[0080]
[0081] In formula (11), the feedforward processing term needs to be considered. The first feedforward processing term is The second feedforward processing term is
[0082] represents the corrected stator current matrix (vector) at time k+1, where x k+1 =Ax k +Bu k .
[0083] In formula (11) Function value representing the objective function of the current tracking optimization problem.
[0084] When the optimal voltage vector appears inside the feasible region formed by the regular polygon (i.e., inside the region enclosed by the edges of the regular polygon), the optimal voltage vector can be solved by the principle of deadbeat predictive control, namely:
[0085] u k =B - (x ref -Ax k ) (12)
[0086] In formula (12), B - represents the inverse matrix of the control input matrix, x ref Indicates the reference value of the current, generally determined by the speed loop (such as Figure 1 The speed control module in the control module is given.
[0087] When the optimal voltage vector appears outside the feasible domain formed by the regular polygon, it can be seen from formula (11) that the current tracking optimization problem constructed in this application can be regarded as a linear programming problem. Due to the existence of actual voltage constraints, the optimal voltage vector of the optimization problem (11) can only appear at the vertices of the regular polygon. In order to save calculation amount, it is only necessary to traverse the objective function value of the optimization problem at the vertices of the regular polygon, and the optimal voltage vector can be determined based on the minimum objective function value.
[0088] It can be seen from the above principle derivation that in the embodiment of the present application, the minimum objective function value and the voltage vector u under the constraint conditions shown in formula (11) are constructed. k ', thus laying the foundation for the integration of the zero-beat predictive control method and constraint conditions.
[0089] Moreover, the minimum objective function value in equation (11) is related to the voltage vector u k ', based on the stator current equation of the permanent magnet synchronous motor with the d-axis and q-axis decoupled from each other after decoupling, therefore, on the basis of realizing control under constraint conditions, because the control input voltages of the d-axis and q-axis are decoupled from each other, more precise control can be achieved, and because of the correspondence between the minimum objective function value and the voltage vector in formula (11), the stator current equation of the permanent magnet synchronous motor based on the discretization of multi-order Taylor polynomials is obtained, so it has higher accuracy, thereby further improving the control accuracy based on realizing control under constraint conditions, and improving the control effect of the deadbeat model predictive control in the permanent magnet synchronous motor current loop.
[0090] 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 1The 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.
[0091] Figure 3 The method for obtaining the control input voltage provided in the embodiment of the present application comprises the following steps:
[0092] S11. Obtaining a control input voltage vector of the permanent magnet synchronous motor at the first moment by using a deadbeat model prediction method.
[0093] 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.
[0094] In order to reduce the workload of manual calibration and reduce the influence of manual subjectivity on the dual-loop control effect, the deadbeat model prediction method is used to obtain the first control input voltage vector of the permanent magnet synchronous motor. In other words, the first control input voltage vector of the permanent magnet synchronous motor is obtained based on formula (12).
[0095] S12: Determine whether the first control input voltage vector satisfies a constraint condition.
[0096] 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 (10).
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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 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, the optimal voltage vector can only appear at the vertex of the regular polygon, so in some implementations, the candidate control input voltage vector is the voltage vector corresponding to the vertex of the regular polygon.
[0101] by Figure 2 Taking the hexagon shown in FIG. 1 as an example, the candidate control input voltage vectors are voltage vectors corresponding to the vertices of the regular hexagon.
[0102] 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 vector u corresponding to each vertex of the regular polygon can be obtained k ', which is the candidate control input voltage vector.
[0103] 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 should be obtained to meet the needs of the actual project. Therefore, in this step, the numerical value of the control input voltage vector corresponding to each vertex of the regular polygon is input into A plurality of Js (J is the objective function value) are obtained, and the control input voltage value of the vertex used for the minimum value among the plurality of Js is obtained, that is, the control input voltage vector that satisfies the constraint condition, that is, the second control input voltage vector at the first moment.
[0104] It should be emphasized that formula (11) shows the corresponding relationship between the function value of the objective function (abbreviated as the objective function value) and the control input voltage vector when the constraint conditions are met. It can be understood that the corresponding relationship is specifically: the objective function value is determined based on the absolute value 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, that is,
[0105] 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, such as
[0106] The stator current vector at the second moment is based on the weighted sum of the stator current vector at the first moment and the first candidate control input voltage vector, such as x k+1 =Ax k +Bu k Sure.
[0107] The feedforward current compensation term includes the product of a first term and a second term, wherein the first term is a control input matrix determined by the stator quadrature and direct axis inductances, and the second term is the sum of a pre-configured first feedforward processing term and a second feedforward processing term, wherein 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.
[0108] In some implementations, the first feedforward processing term is The second feedforward processing term is
[0109] 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, such as B in formula (9).
[0110] It is understandable that the minimum is merely an example of a size relationship and is not intended to be limiting.
[0111] Combination Figure 1 , a permanent magnet synchronous motor is controlled using a second control input voltage vector that satisfies the constraints.
[0112] from Figure 3 It 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 the control input voltage vector satisfies the constraint conditions. If not, the control input voltage vector that satisfies the constraint conditions is obtained based on the geometric relationship corresponding to the constraint conditions. Therefore, the control effect of the deadbeat model predictive control in the permanent magnet synchronous motor system can be improved. The method proposed in this embodiment obtains the optimal control input voltage vector by solving the current tracking optimization problem with active constraint processing, thereby meeting the needs of implementation, and reducing the computing power requirements for the motor controller hardware under extreme working conditions, and improving the control accuracy of the permanent magnet synchronous motor current loop.
[0113] In addition, as mentioned above, the high-precision stator current equation is obtained based on the stator current equation of the permanent magnet synchronous motor with the d-axis and q-axis decoupled from each other. Therefore, in practical applications, u d (k) and uq (k) Mutual decoupling can achieve more accurate voltage control based on constraint conditions. Furthermore, the high-precision discrete stator current equation is obtained based on the discretization of multi-order Taylor polynomials, so it has a smaller discrete error. Accuracy, thereby further improving the accuracy of voltage control.
[0114] In summary, the method proposed in this embodiment can realize voltage control of a permanent magnet synchronous motor with less manual participation and easy implementation, and has high control accuracy, thereby improving the control effect of the deadbeat model predictive control in the current loop of the permanent magnet synchronous motor.
[0115] 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.
[0116] 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.
[0117] 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 the first control input voltage vector of the permanent magnet synchronous motor at the first moment by using a deadbeat model prediction method. The specific implementation method can be seen in S11.
[0118] 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 magnitude relationship of the objective function values respectively corresponding to the multiple 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 absolute value of the difference, the difference is the difference between the reference current vector and the modified stator current vector of the permanent magnet synchronous motor at the second moment, and the modified stator current vector at the second moment is based on the absolute value of the difference at the second moment. The difference between the stator current vector 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 and the second term, the first term is the control input matrix determined by the stator quadrature and direct axis inductance, the second 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, please refer to S12-S13.
[0119] The device for obtaining the control input voltage provided in this embodiment can be operated at 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.
[0120] 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.
[0121] 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 of the permanent magnet synchronous motor at a first moment by using a deadbeat model prediction method; In the case where the first control input voltage vector does not satisfy the constraint condition, based on the magnitude 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 absolute value 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 determined based on the absolute value of the stator current vector at the second moment The stator current vector at the second moment is obtained by the difference between the stator current vector and the feedforward current compensation term, 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 a first term and a second term, the first term is a control input matrix determined by the stator quadrature and direct axis inductances, the second term is the sum of a pre-configured first feedforward processing term and a 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 vertices of the regular polygon correspond to voltage vectors.
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 a 2×2 unit matrix; the control input matrix obtained by calculating the 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 first item is a control input matrix determined by the stator quadrature and direct-axis inductances, including: The first 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.
Citation Information
Patent Citations
An asynchronous motor model predictive control method and device
CN109245640A
Prediction control method, apparatus and device for three-phase permanent magnet synchronous electric motor, and medium
WO2023060748A1
