Motor control device using model predictive control
The motor control device uses model predictive control to set a control model and evaluation function for the d-q axes of a three-phase motor, calculating control voltage to minimize the evaluation function and integrate deviations, effectively reducing steady-state deviation and calculation time.
Patent Information
- Application Number
- JP2023052738
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing motor control devices using model predictive control require repeated calculations for each control cycle, increasing calculation load and time to obtain optimal control inputs.
A motor control device using model predictive control that sets a control model and evaluation function for the d-q axes of a three-phase motor, calculates control voltage to minimize the evaluation function, and integrates the deviation to improve current following, utilizing algebraic calculations to reduce steady-state deviation.
The solution allows the current on the d-q axes of a three-phase motor to closely follow the target current, reducing steady-state deviation while shortening calculation time without increasing load.
Smart Images

Figure 2024141219000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device that uses model predictive control to control currents on the dq axes of a three-phase motor. [Background technology]
[0002] In recent years, efforts to realize a low-carbon or carbon-free society have been intensifying as a measure against global climate change. There is also a strong demand for reducing CO2 emissions from vehicles and the like, and the electrification of power sources is progressing rapidly. In addition, a control device that controls a motor as a power source by optimization using model predictive control is known, for example, as described in Patent Document 1.
[0003] This control device controls a door motor that opens and closes the elevator doors, and a permanent magnet synchronous motor is used as the door motor. In this control device, a state equation including the speed and acceleration when the door is opened and closed is defined as a prediction model, and a control input that minimizes a predetermined evaluation function is calculated at each predetermined time. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2019-48697 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, the above control devices use numerical analysis methods based on iterative methods such as Newton's method and steepest descent method as a calculation method for minimizing the evaluation function. This calculation method requires repeated calculations for each control cycle, which increases the calculation load and takes a long time to obtain the optimal control input.
[0006] The present invention has been made to solve the above-mentioned problems, and has an object to provide a motor control device that can make the current on the dq axes of a three-phase motor closely follow a target current by using model predictive control. [Means for solving the problem]
[0007] In order to achieve the above object, the invention of claim 1 is a motor control device that uses model predictive control to control the current on the dq axis of a three-phase motor, and is characterized by comprising: a control model setting means for setting a control model of the three-phase motor; an evaluation function setting means for setting a predetermined evaluation function including the sum of squares of the deviation between the target current and the actual current on the dq axis and the sum of squares of the control voltage on the dq axis; a control voltage calculation means for calculating a control voltage based on the set control model so that the set evaluation function is minimized; and an integral control means for integrating based on the deviation and adding it to the calculated control voltage.
[0008] According to this configuration, the control model of the three-phase motor is set by the control model setting means. In addition, a predetermined evaluation function including the sum of squares of the deviation between the target current and the actual current on the dq axes of the three-phase motor and the sum of squares of the control voltage on the dq axes is set by the evaluation function setting means. Then, based on the set control model, a control voltage is calculated so that the set evaluation function is minimized. In addition, the integral control means integrates based on the deviation and adds it to the calculated control voltage. By applying this control voltage to the controlled object, the current on the dq axes of the three-phase motor can be made to follow the target current well while reducing the steady-state deviation.
[0009] The invention of claim 2 is characterized in that, in a motor control device using the model predictive control described in claim 1, the control model is set by the following equation (1), and the evaluation function is set by the following equation (2).
number
number
[0010] According to this configuration, the control voltage v that minimizes the evaluation function J in equation (2) can be calculated by algebraic calculation based on the control model in equation (1). Therefore, unlike the conventional method that uses an iterative method, the calculation time can be shortened without increasing the calculation load. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing a motor control system to which a motor control device according to an embodiment of the present invention is applied. [Diagram 2] FIG. 2 is a block diagram showing an overview of control in a controller of the motor control system. [Diagram 3] The figures show the results of simulating the transition of the current value on the d-axis, where (a) shows the case where an integrator is used and (b) shows the case where no integrator is used. [Figure 4] The figures show the results of simulating the transition of the current value on the q axis, where (a) shows the case where an integrator is used and (b) shows the case where no integrator is used. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] A preferred embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing a motor control system 1 to which a motor control device according to an embodiment of the present invention is applied. A motor 2 in this motor control system 1 is a three-phase motor having three coils of U-phase, V-phase, and W-phase, and is equipped with a rotor having a permanent magnet. This control system 1 also includes a controller 3, an inverter switching pattern generating unit 4, and an inverter 5. The U-axis, V-axis, and W-axis corresponding to the U-phase, V-phase, and W-phase, respectively, of the motor 2 are in a coordinate system shifted from each other by 120 degrees, whereas the d-axis and q-axis are in a rotating coordinate system shifted from each other by 90 degrees, and the d-axis coincides with the magnetic flux direction of the rotor of the motor 2.
[0013] The controller 3 (control model setting means, evaluation function setting means, control voltage calculation means, and integral control means) has an optimizer and an integrator that respectively execute optimal control and integral control, which will be described later. The controller 3 calculates dq-axis control voltages using model predictive control based on dq-axis current commands (target currents) for controlling the motor 2, and converts the calculation results into UVW-axis control voltages and outputs them. The inverter switching pattern generation unit 4 generates an inverter switching pattern that satisfies the UVW-axis control voltages from the controller 3. Based on the generated inverter switching pattern, the inverter 5 generates UVW phase voltages, which are control voltages for the UVW axes. The generated UVW phase voltages, i.e., control voltages corresponding to the dq-axis control voltages calculated by the controller 3, are then applied to the motor 2, and the motor 2 is controlled to output a predetermined torque according to the dq-axis current commands.
[0014] FIG. 2 shows the control process in the controller 3 in a block diagram. As shown in the figure, in the controller 3, a calculation is performed by optimal control based on the deviation between a target value and a feedback value from a controlled object, and a predetermined optimal value is output. Also, a calculation is performed by integral control based on the deviation, and a predetermined integral value is output. Then, the integral value output by the integral control is added to the control value output by the optimal control, which includes disturbances and model errors, and input to the controlled object. As described above, by adding the integral value based on the deviation to the control value obtained by the optimal control and inputting it to the controlled object, it is possible to reduce steady-state deviations due to disturbances and model errors.
[0015] Next, a description will be given of current control on the dq axes of the motor 2 using model predictive control. The following equation (1) represents a control model of the motor 2 set in the controller 3.
number
[0016] Moreover, the following formula (2) represents an evaluation function J set in the controller 3.
number
[0017] In the above formula (2), i with a superscript * * is the target current, and the d-axis and q-axis target currents are collectively defined as a vector. Therefore, the target currents of the d-axis and q-axis are defined as i * d and i * q Then, i * =(i * d i * q ) T In addition, i is the actual current, and the target current vector i * Similarly, the actual currents of the d-axis and q-axis are collectively defined as a vector. Furthermore, the values in the brackets (k, k+N, etc.) in the above equation (2) are the step times of discretized control. Therefore, i * [k+N] is i * [k] represents a target current vector N-1 steps ahead of [k]. Furthermore, v in the above equation (2) is a control voltage, and the above target current i * Similarly to the actual current i, the d-axis and q-axis control voltages are collectively defined as a vector. Therefore, the d-axis and q-axis control voltages are defined as v d and v q Then, v=(v d v q ) T It is defined as:
[0018] In addition, R in the above equation (2) is the target current i * and the actual current i, and Q in the above equation (2) is a weighting matrix for the square of the control voltage v. t R and t Q is the transpose of R and Q, respectively.
[0019] In the motor control system 1 of the present embodiment, the control voltage v is calculated by optimization using model predictive control. Specifically, based on the control model of the above formula (1), the control voltage v is calculated as follows so that the evaluation function J of the above formula (2) is minimized.
[0020] First, when the above equation (1) is discretized with respect to the control period Δt, it becomes a recurrence formula like the following equation (3).
number
[0021] In order to simplify the above equation (3), the matrix and the current and voltage vectors are replaced as follows, so that equation (3) can be expressed as the following equation (4).
number
[0022] Here, at time k, the target current i * In this control, the evaluation function J in equation (2) is set so that the deviation between the target value and the current for the next N steps is small and this is achieved with a small control voltage.
[0023] Then, the sequence of control voltages v for the next N steps that minimizes this evaluation function J is {v[j]} j=k,k+1,···,k+N-1 Request.
[0024] The calculation method for minimizing the evaluation function J is basically the same as searching for the minimum value of a downward convex quadratic function. That is, the evaluation function J in equation (2) is * Since it is expressed by the square of (i) and the square of the control voltage v, if no limit is set in the calculation for the magnitude of the control voltage v, the minimum value and the local minimum value will be the same.
[0025] Furthermore, when minimizing the evaluation function J, because the control model of equation (1) is expressed by equation (4), minimization is performed by gradually backing away from N steps ahead. In the control model of equation (4), the real current vector one control cycle ahead, i.e., the real current vector i[n+1] for the real current vector i[n], depends only on the control voltage vector v[n] at time n and the real current vector i[n]. Therefore, minimization calculations can be performed while ignoring previous times (e.g., time n-1).
[0026] First, the minimization of the evaluation function J N steps ahead is as follows: That is, at the time k+N, since it is not necessary to take the control voltage vector v into consideration, the evaluation function J is as shown in the following equation (5).
number
[0027] Moreover, the minimization of the evaluation function J at the N-1 step ahead is as follows: That is, the evaluation function J at the time k+N-1 is expressed by the following formula (6).
number
[0028] In this case, if the actual current vector i at time k+N is expressed at time k+N-1 using the above-mentioned equation (4), equation (6) becomes the following equation (7).
number
[0029] Then, equation (7) is minimized with the control voltage v[k+N-1] at time k+N-1. Specifically, equation (7) is partially differentiated with respect to the control voltage v[k+N-1] to calculate the control voltage v[k+N-1] at which equation (7) becomes 0. In this case, the control voltage v[k+N-1] that minimizes equation (7) is expressed by the following equation (8).
number
[0030] As described above, the control voltage v[k+N-1] at time k+N-1 is calculated by dividing the actual current i[k+N-1] at time k+N-1 by the target current i * It is a function of [k+N]. For simplification, the above equation (8) can be expressed as the following equation (9).
number
[0031] When the above equation (9) is substituted into the evaluation function J at time k+N-1, it is expressed as the following equation (10).
number
[0032] As described above, the evaluation function J at time k is expressed by the real current vector i at the previous time k-1 and the control voltage v, and is minimized by the control voltage v at time k-1. In addition, the control voltage v to be minimized is calculated by going back to the current time and expressing it by the real current vector i at time k-1. Note that the optimal voltage derived at this stage is not a "numerical value" but is in the state of a "function."
[0033] Then, finally, the optimal control voltage is calculated as a numerical value by substituting the current actual current vector measured by a sensor (not shown) and the command current (target current) for the N steps ahead into equation (9).
[0034] The control voltage vector v calculated as above is the sum of the product of the matrix and the actual current vector i and a constant vector, so it can be calculated by algebraic calculation. Then, the calculated control voltage vector v, i.e., the UVW axis control voltages corresponding to the dq axis control voltages, are output from the controller 3, and the motor 2 is controlled as described above.
[0035] 3 and 4 respectively show the results of simulating the transition of the current value on the d-axis and q-axis of the motor 2 under this control. Each figure (a) shows the case where an integrator is used in the controller 3, and each figure (b) shows the case where no integrator is used as a comparative example. In each figure, the target current i * is shown by a dashed line, and the actual current i is shown by a solid line.
[0036] As shown in Fig. 3, the target current i * d and the actual current i d In the case of (b) where an integrator is not used, a steady-state deviation occurs, but in the case of (a) where an integrator is used, the steady-state deviation is reduced compared to (b), and the actual current i d is the target current i * d It can be seen that it follows .
[0037] Similarly, as shown in Fig. 4, the target current i * q and the actual current i q In the case of (b) where an integrator is not used, a steady-state deviation occurs, but in the case of (a) where an integrator is used, the steady-state deviation is reduced compared to (b), and the actual current i q is the target current i * q It can be seen that it follows.
[0038] As described above, according to the present embodiment, the actual current i on the dq axes of the motor 2 is converted into the target current i * In addition, the control voltage v that minimizes the evaluation function J in equation (2) can be calculated by algebraic calculation based on the control model in equation (1), so that the calculation time can be shortened without increasing the calculation load, unlike the conventional method that uses an iterative method.
[0039] The present invention is not limited to the above-described embodiment, but can be embodied in various forms. The detailed configurations of the motor control system 1 and the controller 3 shown in the embodiment are merely examples, and can be modified as appropriate within the scope of the present invention. [Explanation of symbols]
[0040] 1 Motor Control System 2 Motor (three-phase motor) 3. Controller (control model setting means, evaluation function setting means, control voltage calculation means, and integral control means) 4. Inverter switching pattern generator 5. Inverter
Claims
1. A motor control device that uses model predictive control to control currents on d-q axes of a three-phase motor, A control model setting means for setting a control model of the three-phase motor; an evaluation function setting means for setting a predetermined evaluation function including a sum of squares of a deviation between a target current and an actual current on the d-q axes and a sum of squares of a control voltage on the d-q axes; a control voltage calculation means for calculating the control voltage based on the set control model so as to minimize the set evaluation function; an integral control means for integrating the deviation and adding the result to the calculated control voltage; A motor control device using model predictive control, comprising:
2. The control model is set by the following equation (1):
2. The motor control device using model predictive control according to claim 1, wherein the evaluation function is set by the following formula (2): [0010] [0025]
Citation Information
Patent Citations
Elevator door control device and elevator door drive system
JP2019048697A
