Model prediction control method of generator and related device

By using model prediction control methods in hybrid systems, the speed and voltage ring of the generator are coordinated, and the fire out problem caused by slow engine torque response is solved, and the voltage stabilization effect of the generator is taken into account, improving the system stability.

CN119093789APending Publication Date: 2024-12-06BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411255010.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In hybrid systems, due to the slow engine torque response, the engine is prone to shutdown, and the existing methods fail to effectively take into account the voltage stabilization effect of the generator, resulting in large fluctuations in the generator voltage.

Method used

Using a model prediction control method, the q-axis reference current of the generator is determined through the coordination of the speed ring and the voltage ring, and the switching signal is output by using the model prediction controller of the current ring to drive the rectifier to realize the speed and voltage of the generator. Coordinate and indirectly adjust the torque of the generator to improve system stability.

Benefits of technology

On the basis of ensuring the performance of the generator, effectively adjust the torque of the generator, improve the stability of the hybrid system, avoid engine stalling, and maintain the voltage stabilization effect of the generator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119093789A_ABST
    Figure CN119093789A_ABST
Patent Text Reader

Abstract

The invention discloses a model predictive control method of a generator and a related device, and relates to the technical field of generator control, the model predictive control method comprises the following steps: determining a first q-axis reference current of the generator by using a model predictive controller of a rotating speed loop, and determining a second q-axis reference current of the generator by using a model predictive controller of a voltage loop, and determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current, taking the final q-axis reference current and the d-axis reference current as input, and utilizing a model prediction controller of the current loop to output a switching signal instruction so as to drive a rectifier to work and control the generator. According to the invention, the rotating speed and the voltage of the generator can be coordinated, the torque of the generator can be adjusted, and the generator can achieve a voltage stabilization effect, so that the torque of the generator can be indirectly adjusted on the basis of ensuring the performance of the generator, and the stability of the hybrid power system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of generator control, and in particular to a model predictive control method and related device for a generator based on engine-generator power coordination. Background Art

[0002] In a hybrid power system consisting of an engine and a generator, the mechanical connection between the engine and the generator in the power generation state makes the speed of the engine and the generator consistent, and the torques interact with each other, but the torque response of the engine is much slower than the torque response of the generator. Therefore, when the speed and torque instructions under the corresponding power are directly given, and the engine controls the speed and the generator controls the torque, the generator tends to drag the engine in the opposite direction of the target speed, resulting in instability of the hybrid power system and even engine stalling. The main reason for this is that the torque provided by the engine is not enough to meet the torque required by the generator. Therefore, appropriately adjusting the generator torque will be an effective means.

[0003] Existing literature has proposed a method of adjusting the generator torque adjustment coefficient according to the difference between the engine speed and the target speed, which can improve the stability and response speed of the hybrid system, but it does not pay attention to the voltage stabilization effect of the generator, resulting in large fluctuations in the generator voltage. Based on this, there is an urgent need for a method to indirectly adjust the generator torque on the basis of ensuring the generator performance to improve the stability of the hybrid system. Summary of the invention

[0004] The purpose of this application is to provide a model predictive control method and related devices for a generator, which can indirectly adjust the torque of the generator while ensuring the performance of the generator, thereby improving the stability of the hybrid power system.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a model predictive control method for a generator, the model predictive control method for a generator comprising:

[0007] Taking the actual speed of the generator and the reference speed of the generator as input, a first q-axis reference current of the generator is determined by using a model predictive controller of a speed loop;

[0008] Taking the actual speed of the generator, the actual voltage of the generator and the reference voltage of the generator as input, a model predictive controller of the voltage loop is used to determine the second q-axis reference current of the generator;

[0009] determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current;

[0010] The final q-axis reference current and the d-axis reference current are used as inputs, and a model predictive controller of the current loop is used to output a switching signal instruction; the switching signal instruction is used to drive the rectifier to work so as to control the generator.

[0011] Optionally, the model predictive controller of the speed loop is:

[0012]

[0013] Among them, i qωref (k) is the first q-axis reference current of the k-th control cycle; Δi qω (n) is the current increment of the nth control cycle;

[0014]

[0015] Among them, △i qω (k) is the current increment of the kth control cycle; J is the generator moment of inertia; ω ref is the reference speed of the generator; ω r (k) is the actual speed of the generator in the kth control cycle; B is the damping coefficient; T s is the control period; △ω r (k) is the speed increment of the generator in the kth control cycle; P n is the number of generator pole pairs; ψ f is the permanent magnet flux amplitude of the generator.

[0016] Optionally, the model predictive controller for the voltage loop is:

[0017]

[0018] Among them, i quref (k) is the second q-axis reference current of the k-th control cycle; u ref is the reference voltage of the generator; u dc (k) is the actual voltage of the generator in the kth control cycle; T s is the control period; R is the parallel resistance of the rectifier; C1 is the parallel capacitance of the rectifier; ψ f is the permanent magnet flux amplitude of the generator; ω r (k) is the actual speed of the generator in the kth control cycle.

[0019] Optionally, determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current specifically includes:

[0020] Taking the first q-axis reference current and the second q-axis reference current as inputs, optimizing and solving the cost function with minimizing the cost function as an optimization goal, and determining a first weight and a second weight;

[0021] Based on the first weight and the second weight, a weighted sum is performed on the first q-axis reference current and the second q-axis reference current to obtain a final q-axis reference current.

[0022] Optionally, the cost function is:

[0023] cost=(i dref (k)-i d (k+2)) 2 +[k u (i quref (k)-i q (k+2)) 2 +k ω (i qωref (k)-i q (k+2)) 2 ];

[0024] Among them, cost is the price; i dref (k) is the d-axis reference current of the kth control cycle; i d (k+2) is the actual current of the d-axis in the k+2th control cycle; k u is the second weight; i quref (k) is the second q-axis reference current of the k-th control cycle; i q (k+2) is the actual current of the q-axis in the k+2th control cycle; k ω is the first weight; i qωref (k) is the first q-axis reference current of the kth control cycle.

[0025] Optionally, the final q-axis reference current is calculated as:

[0026] i qref =k u ×i quref +k ω ×i qωref ;

[0027] Among them, i qref is the final q-axis reference current; k u is the second weight; i quref is the second q-axis reference current; k ω is the first weight; i qωref is the first q-axis reference current.

[0028] In a second aspect, the present application provides a model predictive control device for a generator, the model predictive control device for the generator comprising:

[0029] A first determination module is used to determine a first q-axis reference current of the generator by using an actual speed of the generator and a reference speed of the generator as inputs and using a model predictive controller of a speed loop;

[0030] a second determination module, for determining a second q-axis reference current of the generator by using a model predictive controller of a voltage loop with an actual speed of the generator, an actual voltage of the generator and a reference voltage of the generator as inputs;

[0031] a third determining module, configured to determine a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current;

[0032] The control module is used to take the final q-axis reference current and the d-axis reference current as inputs and output a switching signal instruction using a model predictive controller of the current loop; the switching signal instruction is used to drive the rectifier to work so as to control the generator.

[0033] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the model predictive control method for the generator described in any one of the above.

[0034] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the model predictive control method for a generator as described above.

[0035] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the model predictive control method for a generator as described above.

[0036] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0037] The present application provides a model predictive control method and related devices for a generator, which uses a model predictive controller of a speed loop to determine a first q-axis reference current of the generator, uses a model predictive controller of a voltage loop to determine a second q-axis reference current of the generator, and determines a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current. The final q-axis reference current and the d-axis reference current are used as inputs, and a model predictive controller of a current loop is used to output a switching signal instruction to drive a rectifier to work and control the generator. In the process of controlling the generator, the present application determines the corresponding q-axis reference current based on the speed loop and the voltage loop at the same time, further determines the final q-axis reference current, and can coordinate the speed and voltage of the generator, which can not only adjust the torque of the generator, but also enable the generator to achieve a voltage stabilization effect, thereby indirectly adjusting the torque of the generator on the basis of ensuring the performance of the generator, thereby improving the stability of the hybrid power system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 This is an application environment diagram of a model predictive control method for a generator provided in Example 1 of the present application.

[0040] Figure 2 A flow chart of a model predictive control method for a generator provided in Example 1 of the present application.

[0041] Figure 3 A schematic diagram of the control architecture of a model predictive control method for a generator provided in Example 1 of the present application.

[0042] Figure 4 A schematic diagram of the functional modules of a model predictive control device for a generator provided in Example 2 of the present application.

[0043] Figure 5 A schematic diagram of the structure of a computer device provided in Example 3 of the present application. DETAILED DESCRIPTION

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

[0045] Example 1

[0046] The model predictive control method of the generator provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal communicates with the server through the network. The data storage system can store the data that the server needs to process. The data storage system can be set up separately, integrated on the server, or placed on the cloud or other servers. The terminal can send the actual speed and actual voltage of the generator to be processed to the server. After the server receives the actual speed and actual voltage of the generator to be processed, for the actual speed and actual voltage of the generator to be processed, the server uses the actual speed of the generator and the reference speed of the generator as input, and uses the model predictive controller of the speed loop to determine the first q-axis reference current of the generator; uses the actual speed of the generator, the actual voltage of the generator and the reference voltage of the generator as input, and uses the model predictive controller of the voltage loop to determine the second q-axis reference current of the generator; based on the first q-axis reference current and the second q-axis reference current, determine the final q-axis reference current; use the final q-axis reference current and the d-axis reference current as input, and use the model predictive controller of the current loop to output the switch signal instruction, which is used to drive the rectifier to work to control the generator. The server can feedback the obtained switch signal instruction to the terminal.

[0047] In addition, in some embodiments, the model predictive control method of the generator can also be implemented independently by a server or a terminal. For example, the terminal can directly process the actual speed and actual voltage of the generator to be processed, or the server can obtain the actual speed and actual voltage of the generator to be processed from the data storage system and process the actual speed and actual voltage of the generator to be processed.

[0048] The terminals may be, but are not limited to, various desktop computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server may be implemented as an independent server or a server cluster consisting of multiple servers, or a cloud server.

[0049] like Figure 2As shown, a model predictive control method for a generator is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 Taking the server in as an example, the model predictive control method of the generator includes:

[0050] Step S1, taking the actual speed of the generator and the reference speed of the generator as input, and using the model predictive controller of the speed loop to determine the first q-axis reference current of the generator.

[0051] Step S2, taking the actual speed of the generator, the actual voltage of the generator and the reference voltage of the generator as input, and using the model predictive controller of the voltage loop to determine the second q-axis reference current of the generator.

[0052] Step S3: determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current.

[0053] Step S4, taking the final q-axis reference current and the d-axis reference current as input, using the model predictive controller of the current loop to output a switching signal instruction; the switching signal instruction is used to drive the rectifier to work so as to control the generator.

[0054] By implementing the above-mentioned steps S1 to S4, this embodiment can determine the first q-axis reference current and the second q-axis reference current of the generator through the model predictive controller of the speed loop and the model predictive controller of the voltage loop respectively, further determine the final q-axis reference current, and use the final q-axis reference current and the d-axis reference current as inputs, and use the model predictive controller of the current loop to output a switching signal instruction to control the generator. When controlling the generator, the speed and voltage of the generator can be coordinated, so that the torque of the generator can be indirectly adjusted on the basis of ensuring the performance of the generator, thereby improving the stability of the hybrid power system, and being suitable for vehicle hybrid power systems.

[0055] In order to solve the problem that the engine is easy to stall due to the slow engine torque response during the engine-generator power coordination process, the method of appropriately adjusting the generator torque has become more effective. However, at the same time, due to the change of generator torque, other performance of the generator may be affected, such as poor voltage stabilization effect, increased generator harmonics, etc. Therefore, it is a good idea to indirectly adjust the generator torque on the basis of ensuring the generator performance by controlling the relevant performance of the generator. This requires taking into account both generator torque regulation and generator performance control, which is equivalent to a multi-objective control problem. The model predictive control strategy can solve the above problems well.

[0056] Based on this, this embodiment proposes a model predictive control method based on engine-generator power coordination. The model predictive control method uses speed MPC (Model Predictive Control, i.e., model predictive controller of the speed loop) and voltage MPC (i.e., model predictive controller of the voltage loop) to coordinate with each other. The speed MPC maintains the stability of the generator speed by adjusting the electromagnetic torque of the generator, and the voltage MPC achieves voltage stabilization by controlling the generator power. The two respectively use the deadbeat speed predictive control strategy and the deadbeat voltage predictive control strategy to output corresponding q-axis reference currents (i.e., the first q-axis reference current and the second q-axis reference current), and adjust the weights of the two according to the difference between the engine-generator speed and the target speed (i.e., the reference speed), and calculate a comprehensive value of the q-axis reference current (i.e., the final q-axis reference current) as the q-axis reference current for the next step of model predictive control. In the mode of engine controlling speed and generator controlling torque, when running stably, the generator can meet the generator-related control requirements by adopting a voltage stabilization control strategy. However, when the load demand power suddenly increases, the engine-generator speed remains unchanged and the generator torque increases. At this time, the torque provided by the engine is not enough to maintain the operation of the generator, which is equivalent to the generator having a tendency to drag the engine in the opposite direction of the target speed. If only the voltage stabilization control strategy is used, due to the large instantaneous torque change, according to the motor speed equation, the engine-generator speed will drop rapidly in an instant, and even cause the engine to stall. Therefore, the speed MPC is required to maintain the speed stability. The essence of the speed MPC is to appropriately reduce the required torque and power of the generator at the moment when the engine torque does not respond in time, thereby slowing down the speed of the generator speed drop so as not to cause the engine to stall. After the engine torque is responded, the engine-generator speed recovers rapidly. When it returns to the rated speed, the generator voltage and power will also recover rapidly.

[0057] like Figure 3 As shown, the traditional method for controlling the generator is: in one control cycle, the q-axis reference current and the d-axis reference current i dref , Observed speed of generator Observed rotor angle of the generator The actual d-axis current i of the generator d and the actual q-axis current i of the generator q As input, the current MPC (i.e., the model predictive controller of the current loop) is used to output a switching signal instruction. The rectifier works based on the switching signal instruction to control the generator and collect the A-phase current i on the three-phase line of the generator. A and C phase current i C , and the A phase current i A and C phase current i CCoordinate transformation (i.e. Figure 3 3s / 2s in the equation), we get the α-axis current i α and the β-axis current i β , while the α-axis current i α , β-axis current i β 、α-axis voltage u α and β axis voltage u β As input, the sliding mode observer SMO outputs the observed speed of the generator and the observed rotor angle of the generator And based on the observed rotor angle of the generator For α-axis current i α and the β-axis current i β Coordinate transformation (i.e. Figure 3 2s / 2r in the equation, and the actual d-axis current i of the generator is obtained. d and the actual q-axis current i of the generator q , and control the next control cycle. In the traditional control method, the q-axis reference current is generally determined by the PI controller with the reference voltage as input. At this time, only voltage stabilization control can be performed, which may cause the engine to stall.

[0058] In order to solve the above problems, considering the existing method of adjusting the generator torque adjustment coefficient according to the difference between the engine speed and the target speed, the stability and response speed of the hybrid system can be improved, but the voltage stabilization effect of the generator is not paid attention to, resulting in large fluctuations in the generator voltage. This embodiment provides a method for indirectly adjusting the torque of the generator on the basis of ensuring the performance of the generator, and introduces the speed MPC and the voltage MPC at the same time. At this time, the q-axis reference current is determined by the speed MPC and the voltage MPC at the same time, and the speed MPC is based on the actual speed ω of the generator. r and the reference speed of the generator ω ref As input, determine the first q-axis reference current i of the generator qωref , the voltage MPC is based on the actual voltage u of the generator dc and the reference voltage u of the generator ref As input, determine the second q-axis reference current i of the generator quref At this time, the current MPC is improved so that the improved current MPC is further based on the first q-axis reference current i qωref and the second q-axis reference current i quref The final q-axis reference current is determined, and then the traditional control method is executed based on the final q-axis reference current to coordinate the speed and voltage, and indirectly adjust the torque of the generator on the basis of ensuring the performance of the generator, so as to ensure that the engine does not stall and the generator voltage fluctuates little and is in a stable voltage state.

[0059] In order to achieve multi-objective coordinated control, it is necessary to establish the relationship between the generator and speed control, and the generator and voltage control.

[0060] (1) Speed ​​MPC

[0061] The mechanical equation of motion of the generator is as follows:

[0062]

[0063] In formula (1), T e is the electromagnetic torque; T L is the load torque; B is the damping coefficient; ω r is the actual speed of the generator; J is the moment of inertia of the generator; t is the time.

[0064] The actual current i of the generator on the d-axis d = 0 when the torque equation is as follows:

[0065]

[0066] In formula (2), P n is the number of generator pole pairs; ψ f is the permanent magnet flux amplitude of the generator; i q is the actual current of the generator's q axis.

[0067] Using the forward Euler formula to expand the mechanical motion equation, we can get:

[0068]

[0069] In formula (3), ω r (k+1) is the actual speed of the generator in the k+1th control cycle; T s is the control period; ω r (k) is the actual speed of the generator in the kth control cycle; T e (k) is the electromagnetic torque of the kth control cycle; T L (k) is the load torque of the kth control cycle. The kth control cycle is the current control cycle, and the k+1th control cycle is the next control cycle.

[0070] Since the load torque is unknown, the control quantity cannot be calculated directly using the discrete equation shown in formula (3), which is not conducive to the expression of control. Therefore, the incremental equation is used to calculate the control quantity, eliminating the stable load torque in the control process, and expressing the generator speed and electromagnetic torque with incremental equations, as follows:

[0071] △ω r (k+1)=ω r (k+1)-ω r (k) (4)

[0072] △T e (k) = T e (k)-T e (k-1) (5)

[0073] In the above formula, △ω r (k+1) is the speed increment of the k+1th control cycle; △T e (k) is the electromagnetic torque increment of the kth control cycle; T e (k) is the electromagnetic torque of the kth control cycle; T e (k-1) is the electromagnetic torque of the k-1th control cycle.

[0074] Assume that the load torque is a stable constant, that is, △T L (k) = T L (k)-T L (k-1)=0,△T L (k) is the load torque increment of the kth control cycle, T L (k) is the load torque of the kth control cycle, T L (k-1) is the load torque of the k-1th control cycle. Based on equations (3) and (4), the speed increment is predicted using the incremental expression as follows:

[0075]

[0076] In formula (6), Δω r (k) is the speed increment of the kth control cycle.

[0077] The predicted speed can be expressed as follows using the incremental expression:

[0078]

[0079] Using deadbeat control, let ω r (k+1)=ω ref ,ω ref is the reference speed of the generator, the electromagnetic torque increment can be obtained as follows:

[0080]

[0081] Then combined with formula (2), the current increment is:

[0082]

[0083] In formula (9), △i qω (k) is the current increment of the kth control cycle; J is the generator moment of inertia; ω ref is the reference speed of the generator; ω r(k) is the actual speed of the generator in the kth control cycle; B is the damping coefficient; T s is the control period; △ω r (k) is the speed increment of the generator in the kth control cycle; P n is the number of generator pole pairs; ψ f is the permanent magnet flux amplitude of the generator.

[0084] The calculated current increments are accumulated to obtain the first q-axis reference current i required to achieve the reference speed. qωref :

[0085]

[0086] In formula (10), i qωref (k) is the first q-axis reference current of the k-th control cycle; Δi qω (n) is the current increment of the nth control cycle.

[0087] Based on this, the speed MPC increment expression based on deadbeat speed predictive control can be deduced. Then in S1, the model predictive controller of the speed loop is formula (10). At this time, the actual speed of the generator and the reference speed of the generator are used as inputs, and the model predictive controller of the speed loop is used to determine the first q-axis reference current of the generator.

[0088] (2) Voltage MPC

[0089] according to Figure 3 The relationship between current and power in the circuit shown in the figure is used to establish the voltage loop mathematical model as follows:

[0090]

[0091] In the above formula, C1 is the parallel capacitance of the rectifier; u dc is the DC side voltage of the rectifier; i dc is the DC current of the rectifier; R is the parallel resistance of the rectifier; P switch is the switching loss of the rectifier; u d is the actual voltage of the d-axis of the generator; i d is the actual current of the generator's d-axis; u q is the actual voltage of the generator's q axis; i q is the actual current of the generator's q axis.

[0092] Ignoring the switching loss and the effect of resistance and inductance in the stator winding, d =0, it can be simplified to:

[0093]

[0094] In formula (13), ψ f is the permanent magnet flux amplitude of the generator; ω r is the actual speed of the generator.

[0095] Expand equation (13) using the forward Euler formula and shift the terms to obtain:

[0096]

[0097] In formula (14), u dc (k+1) is the DC side voltage of the rectifier in the k+1th control cycle; u dc (k) is the DC side voltage of the rectifier in the kth control cycle; T s is the control cycle, the kth control cycle is the current control cycle, and the k+1th control cycle is the next control cycle; ω r (k) is the actual speed of the generator in the kth control cycle; i q (k) is the actual current of the generator along the q axis in the kth control cycle.

[0098] Using deadbeat control, let u dc (k+1)=u ref ,u ref is the reference voltage of the generator, then the second q-axis reference current i can be obtained to reach the reference voltage quref :

[0099]

[0100] In formula (15), i quref (k) is the second q-axis reference current of the k-th control cycle; u ref is the reference voltage of the generator; u dc (k) is the actual voltage of the generator in the kth control cycle; T s is the control period; R is the parallel resistance of the rectifier; C1 is the parallel capacitance of the rectifier; ψ f is the permanent magnet flux amplitude of the generator; ω r (k) is the actual speed of the generator in the kth control cycle.

[0101] Then in S2, the model predictive controller of the voltage loop is formula (15), where the actual speed of the generator, the actual voltage of the generator and the reference voltage of the generator are used as inputs, and the model predictive controller of the voltage loop is used to determine the second q-axis reference current of the generator.

[0102] In S3, determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current specifically includes:

[0103] (1) Taking the first q-axis reference current and the second q-axis reference current as inputs, optimizing and solving the cost function with minimizing the cost function as the optimization goal, and determining the first weight and the second weight.

[0104] The cost function is:

[0105] cost=(i dref (k)-i d (k+2)) 2 +[k u (i quref (k)-i q (k+2)) 2 +k ω (i qωref (k)-i q (k+2)) 2 ](16)

[0106] In formula (16), cost is the cost; i dref (k) is the d-axis reference current of the kth control cycle; i d (k+2) is the actual current of the d-axis in the k+2th control cycle; k u is the second weight, representing the voltage target weight; i quref (k) is the second q-axis reference current of the k-th control cycle; i q (k+2) is the actual current of the q-axis in the k+2th control cycle; k ω is the first weight, representing the speed target weight; i qωref (k) is the first q-axis reference current of the kth control cycle. u +k ω is 1.

[0107] When the difference between the actual speed and the reference speed is large, k ω The value should be larger. When the actual speed is close to the reference speed, k ω The value can be set to 0, k u The value can be set to 1-k ω If the actual voltage exceeds the allowable voltage range, k needs to be set. u =1, k ω =0, so as to avoid long-term overvoltage of the hybrid power system. In this embodiment, the first weight and the second weight can also be manually set according to the above principle.

[0108] (2) Based on the first weight and the second weight, a weighted sum is performed on the first q-axis reference current and the second q-axis reference current to obtain a final q-axis reference current.

[0109] The final calculation formula of q-axis reference current is:

[0110] iqref =k u ×i quref +k ω ×i qωref (17)

[0111] In formula (17), i qref is the final q-axis reference current; k u is the second weight; i quref is the second q-axis reference current; k ω is the first weight; i qωref is the first q-axis reference current.

[0112] The speed MPC is actually to determine the first q-axis reference current required to fully meet the generator torque demand under the current working condition. The voltage MPC is actually to determine the second q-axis reference current required to fully meet the generator voltage demand under the current working condition. In fact, the two may not be able to be fully taken into account, so a compromise is needed. The optimization calculation of the cost function is the process of compromise. At this time, the final q-axis reference current obtained is composed of a voltage term and a torque term. The weights of the two (i.e., the first weight and the second weight) are determined by the cost function. The voltage regulation demand and torque demand of the generator under the current working condition are taken into account at the same time, and the optimal weight is calculated. The process of seeking the optimal value of the cost function actually comprehensively considers the voltage and torque requirements of the generator under the current working condition. Therefore, the result is the most suitable control for the current working condition, which takes into account both the voltage regulation demand and the torque demand. It can indirectly adjust the torque of the generator on the basis of ensuring the performance of the generator to improve the stability of the hybrid system.

[0113] In S4, the final q-axis reference current and the d-axis reference current are used as inputs, and the model predictive controller of the current loop is used to output a switching signal instruction, and the switching signal instruction is used to drive the rectifier to work to control the generator. At this time, the final q-axis reference current is directly used as the q-axis reference current, and the control process is completed using the traditional control method, which will not be repeated here.

[0114] This embodiment proposes a model predictive control method based on engine-generator power coordination. This method uses the speed MPC and voltage MPC to coordinate with each other to solve the problem of the engine easily stalling due to the slow engine torque response during the engine-generator power coordination process. Compared with previous technologies, this embodiment is based on the variable weight coordination control strategy of speed MPC and voltage MPC, and uses the model predictive control strategy to solve the multi-objective coordination control problem. By controlling the relevant performance of the generator, the torque of the generator is indirectly adjusted on the basis of ensuring the performance of the generator, while taking into account the generator torque regulation and generator performance control.

[0115] The embodiment of the present application also provides an application scenario, which applies the above-mentioned model predictive control method for the generator. Specifically, the model predictive control method for the generator provided in this embodiment can be applied to the generator control scenario in the hybrid power system. The generator control scenario includes a data acquisition link, a data processing link and a control link. The data acquisition link is used to obtain the actual speed and actual voltage of the generator. The data processing link is used to use the actual speed and actual voltage of the generator as input to output a switch signal instruction for controlling the generator. The control link is used to work based on the switch signal instruction to control the generator. The model predictive control method for the generator provided in this embodiment belongs to the data processing link.

[0116] Example 2

[0117] Based on the same inventive concept, the embodiment of the present application also provides a model predictive control device for a generator for implementing the model predictive control method for a generator involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiment of the model predictive control device for a generator provided below can refer to the limitations of the model predictive control method for a generator above, and will not be repeated here.

[0118] like Figure 4 As shown, a model predictive control device for a generator is provided, and the model predictive control device for the generator comprises:

[0119] The first determination module M1 is used to determine a first q-axis reference current of the generator by using an actual rotation speed of the generator and a reference rotation speed of the generator as inputs and utilizing a model predictive controller of a rotation speed loop.

[0120] The second determination module M2 is used to determine the second q-axis reference current of the generator by using the model predictive controller of the voltage loop with the actual rotation speed of the generator, the actual voltage of the generator and the reference voltage of the generator as inputs.

[0121] The third determination module M3 is configured to determine a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current.

[0122] The control module M4 is used to take the final q-axis reference current and the d-axis reference current as inputs and output a switching signal instruction using a model predictive controller of the current loop; the switching signal instruction is used to drive the rectifier to work so as to control the generator.

[0123] Example 3

[0124] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a model predictive control method for a generator is implemented.

[0125] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0126] In an exemplary embodiment, a computer device is also provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the model predictive control method for the generator described in Example 1.

[0127] Example 4

[0128] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the model predictive control method for the generator described in Embodiment 1 is implemented.

[0129] Example 5

[0130] An embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the model predictive control method for the generator described in Example 1.

[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0132] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0133] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0134] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0135] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A model predictive control method for a generator, characterized in that: The model predictive control method of the generator comprises: Taking the actual speed of the generator and the reference speed of the generator as input, a first q-axis reference current of the generator is determined by using a model predictive controller of a speed loop; Taking the actual speed of the generator, the actual voltage of the generator and the reference voltage of the generator as input, a model predictive controller of the voltage loop is used to determine the second q-axis reference current of the generator; determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current; The final q-axis reference current and the d-axis reference current are used as inputs, and a model predictive controller of the current loop is used to output a switching signal instruction; the switching signal instruction is used to drive the rectifier to work so as to control the generator.

2. The model predictive control method for a generator according to claim 1, characterized in that: The model predictive controller of the speed loop is: Among them, i qωref (k) is the first q-axis reference current of the k-th control cycle; Δi qω (n) is the current increment of the nth control cycle; Among them, Δi qω (k) is the current increment of the kth control cycle; J is the generator moment of inertia; ω ref is the reference speed of the generator; ω r (k) is the actual speed of the generator in the kth control cycle; B is the damping coefficient; T s is the control period; Δω r (k) is the speed increment of the generator in the kth control cycle; P n is the number of generator pole pairs; ψ f is the permanent magnet flux amplitude of the generator.

3. The model predictive control method for a generator according to claim 1, characterized in that: The model predictive controller of the voltage loop is: Among them, i quref (k) is the second q-axis reference current of the k-th control cycle; u ref is the reference voltage of the generator; u dc (k) is the actual voltage of the generator in the kth control cycle; T s is the control period; R is the parallel resistance of the rectifier; C1 is the parallel capacitance of the rectifier; ψ f is the permanent magnet flux amplitude of the generator; ω r (k) is the actual speed of the generator in the kth control cycle.

4. The model predictive control method for a generator according to claim 1, characterized in that: Determining a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current specifically includes: Taking the first q-axis reference current and the second q-axis reference current as inputs, optimizing and solving the cost function with minimizing the cost function as an optimization goal, and determining a first weight and a second weight; Based on the first weight and the second weight, a weighted sum is performed on the first q-axis reference current and the second q-axis reference current to obtain a final q-axis reference current.

5. The model predictive control method for a generator according to claim 4, characterized in that: The cost function is: cost=(i dref (k)-i d (k+2)) 2 +[k u (i quref (k)-i q (k+2)) 2 +k ω (i qωref (k)-i q (k+2)) 2 ]; Among them, cost is the price; i dref (k) is the d-axis reference current of the kth control cycle; i d (k+2) is the actual current of the d-axis in the k+2th control cycle; k u is the second weight; i quref (k) is the second q-axis reference current of the k-th control cycle; i q (k+2) is the actual current of the q-axis in the k+2th control cycle; k ω is the first weight; i qωref (k) is the first q-axis reference current of the kth control cycle.

6. The model predictive control method for a generator according to claim 4, characterized in that: The final calculation formula of q-axis reference current is: i qref =k u ×i quref +k ω ×i qωref ; Among them, i qref is the final q-axis reference current; k u is the second weight; i quref is the second q-axis reference current; k ω is the first weight; i qωref is the first q-axis reference current.

7. A model predictive control device for a generator, characterized in that: The model predictive control device of the generator comprises: A first determination module is used to determine a first q-axis reference current of the generator by using an actual speed of the generator and a reference speed of the generator as inputs and using a model predictive controller of a speed loop; a second determination module, for determining a second q-axis reference current of the generator by using a model predictive controller of a voltage loop with an actual speed of the generator, an actual voltage of the generator and a reference voltage of the generator as inputs; a third determining module, configured to determine a final q-axis reference current based on the first q-axis reference current and the second q-axis reference current; The control module is used to take the final q-axis reference current and the d-axis reference current as inputs and output a switching signal instruction using a model predictive controller of the current loop; the switching signal instruction is used to drive the rectifier to work so as to control the generator.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the model predictive control method for the generator according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the model predictive control method for the generator according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the model predictive control method for the generator according to any one of claims 1 to 6 is implemented.