Control method and control device of APF circuit based on model prediction
Through the control method based on model prediction, using topology diagrams and mathematical models, the time delay and chattering problems in APF circuit control are solved, precise control and simplified measurement are achieved, and the power quality of the power grid is improved.
Patent Information
- Application Number
- CN202410807231.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing APF circuit control strategy has time delay effects, chattering phenomena and measurement system complexity, making it difficult to achieve precise control and efficient harmonic suppression.
A control method based on model prediction is adopted to determine electrical quantities through topology diagrams, perform Parker transformation and Kirchhoff's law to construct a formula set, and combine forward difference method and Kalman filter to establish a multi-objective optimization model prediction control strategy to eliminate time delays. Influence and simplify measurement systems.
It achieves precise control of the APF circuit, eliminates the effects of time delay and chattering, simplifies the measurement system, and improves control accuracy and stability.
Smart Images

Figure CN118381027B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication technology, and in particular to a control method, a control device, a computer-readable storage medium and an APF circuit control system based on model prediction. Background Art
[0002] As a large number of power electronic devices are applied to the power system source, network, load, and storage links, while improving the flexibility of power system operation and control, it also brings about the problem of broadband harmonics in the power grid. On the one hand, the power electronic device itself constitutes a harmonic source, and the action of its internal power semiconductor switch will bring considerable high-frequency harmonics; on the other hand, the mutual influence between the devices makes the transmission and evolution mechanism of harmonics more complex, showing wide-area and broadband characteristics. The existence of harmonics will lead to problems such as deterioration of power quality, accelerated aging of equipment, and interference with measurement and communication, which must be suppressed. The active power filter (APF) based on power electronic technology has the characteristics of flexible operation and control, can realize tracking and compensation of dynamic harmonics, and has a high filtering bandwidth. In recent years, it has been often used in harmonic control of distribution networks. However, there is still room for improvement in performance: 1) absorb harmonic currents in the distribution network as much as possible; 2) at the same time, ensure that no new harmonic currents are introduced. High-performance APF control strategies need to be studied in depth.
[0003] In order to meet the functional requirements of APF and achieve tracking and regulation of higher frequency current harmonics, there are currently three common APF control strategies. There is a control strategy based on repetitive control, which adds the error signal to the output signal cycle by cycle until the error signal is zero, so that the reference current is equal to the actual compensation current; there is a control strategy based on sliding film control, which uses the error switching function to force the system to move according to the state trajectory of the predetermined "sliding mode", so that the APF output compensation current converges to the equilibrium point determined by the reference value; there is a control strategy based on finite set model prediction, which predicts the grid-side current, inverter-side current and filter capacitor voltage at the next moment according to the state equation, and selects the optimal switching state through the ergodic algorithm to achieve nonlinear control of the APF.
[0004] The above method has the following disadvantages:
[0005] 1. The existing control strategy based on repetitive control, when the reference current is not equal to the actual compensation current, adds the error signal to the output signal cycle by cycle until the error signal is zero, so that the reference current is equal to the actual compensation current. However, due to the existence of the delay link, the output current lags behind the reference value by one power frequency cycle. This patent proposes a multi-objective optimization model predictive control strategy that takes into account the time delay problem of discrete systems, thereby solving the problem of current tracking cycle lag.
[0006] 2. There is a control strategy based on sliding film control, which uses the error switching function to force the system to move according to the state trajectory of the predetermined "sliding mode", so that the APF output compensation current converges to the balance point determined by the reference value. However, this strategy will cause the system to jitter near the preset sliding mode state, which will cause additional output current jitter, affect the control accuracy and stability of the system, and increase energy loss. The method proposed in this patent will not have jitter phenomenon, and can obtain good control accuracy by setting a reasonable prediction step size, and there will be no additional energy loss.
[0007] 3. There is a control strategy based on finite set model prediction. This control strategy predicts the grid-side current, inverter-side current and filter capacitor voltage at the next moment according to the state equation, selects the optimal switch state through the traversal algorithm, and realizes the nonlinear control of APF. However, this control strategy needs to measure all the variables involved in the state equation, which makes the measurement system complicated. The method proposed in this patent uses Kalman filtering to predict the APF inverter-side current, thereby simplifying the measurement system. Summary of the invention
[0008] The main purpose of the present application is to provide a control method, a control device, a computer-readable storage medium and an APF circuit control system for an APF circuit based on model prediction, so as to at least eliminate the influence of time delay and realize precise control of the APF circuit through a simple system.
[0009] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a control method of an APF circuit based on model prediction is provided, wherein the APF circuit comprises a first capacitor, a second capacitor and an LCL filter, wherein the LCL filter comprises an inverter side inductor, a filter capacitor and a grid side inductor, wherein the first capacitor is connected in series with the second capacitor to provide a DC voltage, and the LCL filter is connected to a system, wherein the method comprises: topologically analyzing the APF circuit to obtain a first topological diagram, and determining a plurality of first electrical quantities according to the first topological diagram, wherein the first electrical quantity comprises a first target voltage, a second target voltage, a third target voltage, a first target current and a second target current, wherein the first target voltage is the voltage of the inverter side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid side inductor, and the first target current is the current of the inverter side inductor. The second target current is the current of the grid-side inductor; a Park transformation is performed on each of the first electrical quantities to obtain the corresponding second electrical quantity and a relationship between each of the second electrical quantities is constructed according to Kirchhoff's law to obtain a first formula group, wherein the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity; the first formula group is discretized using a forward difference method, and a corresponding space state equation is constructed to obtain a second formula group; a neutral point clamped topology is used to describe the output voltage of each phase in the APF circuit using a switching function to obtain a third formula group, and the third formula group is solved according to a first preset condition, a second preset condition and the second formula group to obtain a control input of the APF circuit, wherein the first preset condition is that the second target current of the APF circuit is a preset current, and the second preset condition is that the difference between the neutral point voltage and the preset voltage of the APF circuit is less than a first threshold value.
[0010] Optionally, after constructing the corresponding space state equation to obtain the second formula group, the method further includes: constructing a Kalman filter state prediction equation according to the second formula group: ; ; ;in, is the prior estimate of the electrical quantity at time k, A is the state matrix, B is the input matrix, is any one of the first electrical quantity or the second electrical quantity at time k-1, By input vector and interference Determine, R is the noise variance matrix, is the state observer output matrix at time k, H is the observation matrix, Q is the measurement noise variance matrix, is any one of the first electrical quantity or the second electrical quantity at time k, is the second target voltage at time k, is the second target current at time k; according to the Kalman filter state prediction equation, the error covariance prediction is performed: ; ;in, for The corresponding prior error is is the posterior error matrix at time k-1, for The covariance of the prior error matrix; according to the Kalman filter state prediction equation, the Kalman filter gain is calculated: ;in, is the Kalman filter gain matrix; according to the Kalman filter state prediction equation, the posterior estimate is calculated to obtain the estimated electrical quantity: ;in, is the posterior estimate.
[0011] Optionally, a Parker transform is performed on each of the first electrical quantities to obtain a corresponding second electrical quantity and the relationship between each of the second electrical quantities is constructed according to Kirchhoff's law to obtain a first formula group, including: performing a Parker transform on the first target voltage to obtain a first voltage and a second voltage, the first voltage is the direct-axis component of the first target voltage, and the second voltage is the quadrature-axis component of the first target voltage; performing a Parker transform on the second target voltage to obtain a third voltage and a fourth voltage, the third voltage is the direct-axis component of the second target voltage, and the fourth voltage is the quadrature-axis component of the second target voltage; performing a Parker transform on the third target voltage to obtain a fifth voltage and a sixth voltage, the fifth voltage is the quadrature-axis component of the third target voltage. The first target current is subjected to a Parker transformation to obtain a first current and a second current, wherein the first current is the direct-axis component of the first target current, and the second current is the quadrature-axis component of the first target current; the second target current is subjected to a Parker transformation to obtain a third current and a fourth current, wherein the third current is the direct-axis component of the second target current, and the fourth current is the quadrature-axis component of the second target current; the first formula group is constructed according to the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the first current, the second current, the third current and the fourth current: , , , , ; ; ; ;in, is the first target current, are the first current and the second current, is the second target current, are the third current and the fourth current, is the first target voltage, are the first voltage and the second voltage, is the second target voltage, are the third voltage and the fourth voltage, is the third target voltage, are the fifth voltage and the sixth voltage, is the angular velocity corresponding to the system frequency, is the capacitance of the filter capacitor, is the inductance of the inverter side inductor, is the inductance of the grid-side inductor.
[0012] Optionally, the first formula group is discretized by using a forward difference method, and includes: discretizing the first formula group by using a forward difference method: ;in, is the period corresponding to the switching frequency, It is any one of the first electrical quantity or the second electrical quantity at time k+1.
[0013] Optionally, a corresponding spatial state equation is constructed to obtain a second set of formulas, including:
[0014] According to the discretized first electrical quantity or the second electrical quantity of the APF circuit, a spatial state equation is constructed in the dq coordinate system: ; ; ; ; .
[0015] Optionally, the output voltage of each phase in the APF circuit is described by a switching function using a neutral point clamp topology to obtain a third formula group, including: the output voltage of each phase in the APF circuit is described by a switching function using a neutral point clamp topology: ; ;in, are the A phase, B phase and C phase of the APF circuit. , switch tubes T1 and T2 are turned on, and T3 and T4 are turned off. , output state P, is the DC voltage, is the output voltage of the xth phase, when , the switch tubes T2 and T3 are turned on, and the switch tubes T1 and T4 are turned off. , output state Q, when , the switch tubes T3 and T4 are turned on, and the switch tubes T1 and T2 are turned off. , output state N.
[0016] Optionally, solving the third formula group according to the first preset condition, the second preset condition and the second formula group to obtain the control input of the APF circuit includes: constructing a corresponding equation according to the second preset condition to obtain a fourth formula group: ; ;in, is the neutral point current at time K+1, is the first target current of phase x at time k+1 is the output voltage of phase x at time k+1, is the neutral point voltage at time k+2, is the voltage of the first capacitor at time k+1, is the voltage of the second capacitor at time k+1; when the fourth formula group is established, the first target current is solved for the third formula group according to the first preset condition: ; ; ; ; ; ;in, is the reference value of the third voltage at time k+3, is the reference value of the third current at time k+4, is the reference value of the third current at time k+3, is the fifth voltage at time k+3, is the reference value of the fourth voltage at time k+3, is the reference value of the fourth current at time k+4, is the reference value of the fourth current at time k+3, is the sixth voltage at time k+3, is the reference value of the third voltage at time k+2, is the reference value of the third current at time k+2, is the fifth voltage at time k+2, is the reference value of the fourth voltage at time k+2, is the reference value of the fourth current at time k+2, is the sixth voltage at time k+2, is the reference value of the first current at time k+1, is the second current reference value at time k+1; determines the first target voltage based on the first target current, and calculates the error cost function according to the first target voltage: ;in, is the error value, is the first current at time k+2, is the second current at time k+2; determines the corresponding state vector according to the first target voltage corresponding to the minimum value of the error value function, and determines the control input according to the vector state, wherein, When the corresponding state vector is greater than the second threshold, the corresponding switching function is determined as the control input. When the corresponding state vector is less than or equal to the second threshold and greater than the third threshold, according to the formula Calculate the neutral point voltage value function, determine the switch function corresponding to the minimum value of the neutral point value function as the control input, When the corresponding state vector is a zero vector, is determined as the control input.
[0017] According to another aspect of the present application, a control device for an APF circuit based on model prediction is provided, wherein the APF circuit comprises a first capacitor, a second capacitor and an LCL filter, wherein the LCL filter comprises an inverter side inductor, a filter capacitor and a grid side inductor, wherein the first capacitor is connected in series with the second capacitor to provide a DC voltage, and the LCL filter is connected to a system, wherein the device comprises: a determination unit, configured to perform topology analysis on the APF circuit to obtain a first topology diagram, and to determine a plurality of first electrical quantities according to the first topology diagram, wherein the first electrical quantity comprises a first target voltage, a second target voltage, a third target voltage, a first target current and a second target current, wherein the first target voltage is the voltage of the inverter side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid side inductor, the first target current is the current of the inverter side inductor, and the second target current is the current of the grid side inductor. flow; a first construction unit, used to perform a Parker transformation on each of the first electrical quantities to obtain a corresponding second electrical quantity and construct the relationship between each of the second electrical quantities according to Kirchhoff's law to obtain a first formula group, wherein the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity; a second construction unit, used to discretize the first formula group using a forward difference method, and construct a corresponding space state equation to obtain a second formula group; a first calculation unit, used to describe the output voltage of each phase in the APF circuit with a switching function using a neutral point clamping topology to obtain a third formula group, and solve the third formula group according to a first preset condition, a second preset condition and the second formula group to obtain a control input of the APF circuit, wherein the first preset condition is that the second target current of the APF circuit is a preset current, and the second preset condition is that the difference between the neutral point voltage of the APF circuit and the preset voltage is less than a first threshold value.
[0018] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0019] According to another aspect of the present application, an APF circuit control system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods used for any one of the methods described.
[0020] Applying the technical solution of the present application, in the control method of the APF circuit based on model prediction, first, the APF circuit is topologically analyzed to obtain a first topological diagram, and multiple first electrical quantities are determined according to the first topological diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current, and a second target current, wherein the first target voltage is the voltage of the inverter side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid side inductor, the first target current is the current of the inverter side inductor, and the second target current is the current of the grid side inductor; then, Park transformation is performed on each of the above first electrical quantities to obtain the corresponding second electrical quantity and each first electrical quantity is constructed according to Kirchhoff's law. The relationship between the above-mentioned second electrical quantity obtains the first formula group, and the above-mentioned second electrical quantity includes multiple direct-axis components and quadrature-axis components corresponding to the above-mentioned first electrical quantity; then, the forward difference method is used to discretize the above-mentioned first formula group, and the corresponding space state equation is constructed to obtain the second formula group; finally, the neutral point clamping topology is used to describe the output voltage of each phase in the above-mentioned APF circuit with a switching function to obtain the third formula group, and the above-mentioned third formula group is solved according to the first preset condition, the second preset condition and the above-mentioned second formula group to obtain the control input of the above-mentioned APF circuit, the above-mentioned first preset condition is that the above-mentioned second target current of the above-mentioned APF circuit is the preset current, and the above-mentioned second preset condition is that the difference between the neutral point voltage of the above-mentioned APF circuit and the preset voltage is less than the first threshold. This application constructs an LCL line mathematical model, establishes a multi-objective optimization model predictive control strategy for the delay problem of the design discrete system, and solves the control input of the model under constraints. This method eliminates the influence of delay and realizes precise control of the APF circuit through a simple system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A hardware structure block diagram of a mobile terminal according to a control method of an APF circuit based on model prediction provided in an embodiment of the present application is shown;
[0022] Figure 2A schematic flow chart of a control method of an APF circuit based on model prediction provided according to an embodiment of the present application is shown;
[0023] Figure 3 A topological diagram of an APF circuit provided according to an embodiment of the present application is shown;
[0024] Figure 4 A structural block diagram of a control device for an APF circuit based on model prediction provided according to an embodiment of the present application is shown.
[0025] The above drawings include the following reference numerals:
[0026] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of this application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] As introduced in the background technology, the control strategy based on repetitive control in the prior art causes the output current to lag behind the reference value by one power frequency cycle due to the existence of a delay link. The control strategy based on sliding film control causes the system to jitter near the preset sliding mode state, which will cause additional output current jitter, affecting the control accuracy and stability of the system and increasing energy loss. The control strategy based on finite set model prediction requires measuring all variables involved in the state equation, which makes the measurement system complicated. In order to eliminate the influence of time delay and achieve precise control of the APF circuit through a simple system, the embodiments of the present application provide a control method, a control device, a computer-readable storage medium and an APF circuit control system for an APF circuit based on model prediction.
[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0032] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a control method of an APF circuit based on model prediction according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned network specific examples may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 is used to communicate with the Internet wirelessly.
[0034] In this embodiment, a control method for an APF circuit based on model prediction running on a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] Figure 2 : is a flow chart of a control method of an APF circuit based on model prediction according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0036] Step S201, topologically analyze the APF circuit to obtain a first topological diagram, and determine a plurality of first electrical quantities according to the first topological diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current, and a second target current, wherein the first target voltage is the voltage of the inverter-side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid-side inductor, the first target current is the current of the inverter-side inductor, and the second target current is the current of the grid-side inductor;
[0037] Specifically, Figure 3 As an example of the APF circuit topology diagram shown in the figure, the APF divides the voltage into u C1,u C2 The first capacitor C 1 , the second capacitor C 2 Provides DC voltage V DC With O as the neutral point of the DC side; then through the inverter side inductor L 1 , filter capacitor C, grid-side inductor L 2 The LCL filter is connected to the system including power supply, line and load. 1 , T 2 , T 3 and T 4 For the switch tube.
[0038] According to the first topology diagram, the first target voltage u and the second target voltage u are determined. c , the third target voltage e, the first target current i 1 and the second target current i 2 .
[0039] Step S202, performing Park transformation on each of the first electrical quantities to obtain a corresponding second electrical quantity and constructing a relationship between each of the second electrical quantities according to Kirchhoff's law to obtain a first formula group, wherein the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity;
[0040] Specifically, for the first target voltage u and the second target voltage u c , the third target voltage e, the first target current i 1 and the second target current i 2 , perform Park decomposition one by one to decompose it into direct-axis components and quadrature-axis components to obtain the above-mentioned second electrical quantity, and construct a connection between the above-mentioned second electrical quantity on the AC side according to Kirchhoff's law in the dq rotating coordinate system to obtain the above-mentioned first formula group.
[0041] Step S203, discretizing the first formula group by forward difference method, and constructing the corresponding space state equation to obtain the second formula group;
[0042] Specifically, the forward difference method is used to discretize the first formula group in the dq coordinate system to obtain the spatial state equation, that is, the second formula group.
[0043] Step S204, using a neutral point clamp topology to describe the output voltage of each phase in the above-mentioned APF circuit with a switching function to obtain a third formula group, and solving the above-mentioned third formula group according to the first preset condition, the second preset condition and the above-mentioned second formula group to obtain the control input of the above-mentioned APF circuit, the above-mentioned first preset condition is that the above-mentioned second target current of the above-mentioned APF circuit is a preset current, and the above-mentioned second preset condition is that the difference between the neutral point voltage of the above-mentioned APF circuit and the preset voltage is less than the first threshold value.
[0044] Specifically, the APF circuit adopts a neutral point clamp (NPC) topology capable of outputting three levels, and the output voltage of any item can be represented by a switching function, and then the third formula group is constructed according to the switching function. Then, the third formula group is solved under the constraints of the first preset condition and the second preset condition to obtain the control input.
[0045] Through this embodiment, first, the APF circuit is topologically transformed to obtain a first topological diagram, and a plurality of first electrical quantities are determined according to the first topological diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current and a second target current, wherein the first target voltage is the voltage of the inverter side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid side inductor, the first target current is the current of the inverter side inductor, and the second target current is the current of the grid side inductor; then, Park transformation is performed on each of the first electrical quantities to obtain the corresponding second electrical quantity and the relationship between each of the second electrical quantities is constructed according to Kirchhoff's law to obtain To the first formula group, the above-mentioned second electrical quantity includes multiple direct-axis components and quadrature-axis components corresponding to the above-mentioned first electrical quantity; then, the above-mentioned first formula group is discretized by the forward difference method, and the corresponding space state equation is constructed to obtain the second formula group; finally, the neutral point clamping topology is used to describe the output voltage of each phase in the above-mentioned APF circuit with a switching function to obtain the third formula group, and the above-mentioned third formula group is solved according to the first preset condition, the second preset condition and the above-mentioned second formula group to obtain the control input of the above-mentioned APF circuit, the above-mentioned first preset condition is that the above-mentioned second target current of the above-mentioned APF circuit is the preset current, and the above-mentioned second preset condition is that the difference between the neutral point voltage of the above-mentioned APF circuit and the preset voltage is less than the first threshold. This application constructs an LCL line mathematical model, establishes a multi-objective optimization model predictive control strategy for the delay problem of the design discrete system, and solves the control input of the model under constraints. This method eliminates the influence of delay and realizes precise control of the APF circuit through a simple system.
[0046] In order to simplify the calculation process, in an optional implementation, after constructing the corresponding space state equation to obtain the second formula group, the method further includes:
[0047] Step S301, constructing a Kalman filter state prediction equation according to the second formula group:
[0048] ;
[0049] ;
[0050] ;
[0051] in, is the prior estimate of the electrical quantity at time k, A is the state matrix, B is the input matrix, is any one of the first electrical quantity or the second electrical quantity at time k-1, By input vector and interference Determine, R is the noise variance matrix, is the state observer output matrix at time k, H is the observation matrix, Q is the measurement noise variance matrix, is any one of the first electrical quantity or the second electrical quantity at time k, is the second target voltage at time k, is the second target current at time k;
[0052] Specifically, in order to omit the measurement of the current of the inverter inductor, the present application proposes to construct a Kalman filter state observation equation according to the above-mentioned spatial equation group, as shown in the above formula. 2 with u c Construct the measurement matrix z(k), that is , based on the Kalman filter state observer 1 Make real-time predictions.
[0053] Step S302: perform error covariance prediction according to the Kalman filter state prediction equation:
[0054] ;
[0055] ;
[0056] in, for The corresponding prior error is is the posterior error matrix at time k-1, for The covariance of , the prior error matrix;
[0057] Specifically, define x - The error between (k) and the actual value x(k) is the prior error e - (k), i.e. , and e - The covariance of (k) is the prior error matrix P - (k). In actual calculation, e - (k) is unknown, so it is necessary to calculate it with the help of the posterior error matrix P(k) at time k-1. As shown above.
[0058] Step S303, calculate the Kalman filter gain according to the Kalman filter state prediction equation:
[0059] ;
[0060] in, is the Kalman filter gain matrix;
[0061] Specifically, then, combining H and P - (k), we can get the Kalman filter gain matrix K(k).
[0062] Step S304, according to the Kalman filter state prediction equation, the posterior estimation is calculated to obtain the estimated electrical quantity:
[0063] ;
[0064] in, is the above posterior estimate.
[0065] Specifically, based on K(k) and the observation matrix z(k), x can be corrected - (k) Get the posterior estimate x kal (k).
[0066] In addition, to continuously update the prior estimated covariance p - (k), after correcting the state variables, the posterior error matrix needs to be calculated: .
[0067] In order to obtain the first formula group, in an optional implementation, the step S202 includes:
[0068] Step S2021, performing a Park transformation on the first target voltage to obtain a first voltage and a second voltage, wherein the first voltage is a direct-axis component of the first target voltage, and the second voltage is a quadrature-axis component of the first target voltage;
[0069] Specifically, the first target voltage u is subjected to Park transformation to obtain the first voltage u d and the second voltage u q .
[0070] Step S2022, performing a Park transformation on the second target voltage to obtain a third voltage and a fourth voltage, wherein the third voltage is a direct-axis component of the second target voltage, and the fourth voltage is a quadrature-axis component of the second target voltage;
[0071] Specifically, for the second target voltage u c Perform Park transformation to obtain the third voltage u cd and the fourth voltage u cq .
[0072] Step S2023, performing Park transformation on the third target voltage to obtain a fifth voltage and a sixth voltage, wherein the fifth voltage is a direct-axis component of the third target voltage, and the sixth voltage is a quadrature-axis component of the third target voltage;
[0073] Specifically, the third target voltage e is subjected to Park transformation to obtain a fifth voltage e d and the sixth voltage e q .
[0074] Step S2024, performing Park transformation on the first target current to obtain a first current and a second current, wherein the first current is a direct-axis component of the first target current, and the second current is a quadrature-axis component of the first target current;
[0075] Specifically, the first target current i1 is subjected to Park transformation to obtain the first current i 1d and the second current i 1q .
[0076] Step S2025, performing Park transformation on the second target current to obtain a third current and a fourth current, wherein the third current is a direct-axis component of the second target current, and the fourth current is a quadrature-axis component of the second target current;
[0077] Specifically, the second target current is subjected to Park transformation to obtain a third current i 2d and the fourth current i 2q .
[0078] Step S2026, constructing the first formula group according to the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the first current, the second current, the third current and the fourth current:
[0079] , , , , ;
[0080] ;
[0081] ;
[0082] ;
[0083] in, is the first target current mentioned above, are the first current and the second current, is the second target current mentioned above, are the third current and the fourth current, is the first target voltage, are the first voltage and the second voltage, is the second target voltage, are the third voltage and the fourth voltage, is the third target voltage, are the fifth voltage and the sixth voltage, is the angular velocity corresponding to the system frequency, is the capacitance of the above filter capacitor, is the inductance of the inverter side inductor, is the inductance of the above-mentioned grid-side inductor.
[0084] Specifically, the AC side electrical quantities have the above relationship in the dq rotating coordinate system.
[0085] In order to discretize the data before obtaining the above-mentioned spatial state equation, in an optional implementation manner, the above-mentioned step S203 includes:
[0086] Step S2031, discretize the first formula group using the forward difference method:
[0087] ;
[0088] in, is the period corresponding to the switching frequency, It is any one of the first electrical quantity or the second electrical quantity at time k+1.
[0089] Specifically, the first formula group is discretized, and the forward difference method is used for any electrical quantity x, as shown in the above formula.
[0090] In order to construct the second formula group, in an optional implementation, the step S203 further includes:
[0091] Step S2032: construct a spatial state equation in a dq coordinate system according to the discretized first electrical quantity or the second electrical quantity of the APF circuit:
[0092] ;
[0093] ;
[0094] ;
[0095] ;
[0096] .
[0097] Specifically, the state variable x(k+1) composed of the current of the inverter side inductor, the voltage of the filter capacitor and the current of the grid side inductor at time k+1 is determined by the state variable x(k) at time k, the input state u(k) and the interference amount e(k).
[0098] In order to construct the third formula group, in an optional implementation, the step S204 includes:
[0099] Step S2041, using a neutral point clamp topology to describe the output voltage of each phase in the above APF circuit using a switching function:
[0100] ;
[0101] ;
[0102] in, are the A phase, B phase and C phase of the APF circuit. , switch tube T 1 , T 2 On, T 3 , T 4 Shutdown, , output state P, is the above DC voltage, is the output voltage of the xth phase, when , switch tube T 2 , T 3 Turn on, switch tube T 1 , T 4 Shutdown, , output state Q, when , switch tube T 3 , T 4 Turn on, switch tube T 1 , T 2 Shutdown, , output state N.
[0103] Specifically, taking phase A as an example, when Sa=1, the switch tube T 1 , T 2 On, T 3 , T 4 Shutdown, u a =V DC / 2, define this output state as P; when Sa=0, T 2 , T 3 On, T 1 , T 4 Shutdown, u a =0, define this output state as Q; when Sa=-1, T 3 , T 4On, T 1 , T 2 Shutdown, u a =-V DC / 2, define this output state as N.
[0104] In order to obtain the above control input, in an optional implementation manner, the above step S204 further includes:
[0105] Step S2042: construct a corresponding equation according to the second preset condition to obtain a fourth formula group:
[0106] ;
[0107] ;
[0108] in, is the neutral point current at time K+1, is the first target current of phase x at time k+1 is the output voltage of phase x at time k+1, is the neutral point voltage at time k+2, is the voltage of the first capacitor at time k+1, is the voltage of the second capacitor at time k+1;
[0109] Specifically, in order to avoid a series of problems such as damage to the switching device due to excessive voltage, the neutral point voltage balance needs to be maintained. The neutral point current i can be controlled by adjusting the action time of the positive and negative small vectors with redundant relationship. o Direction and size, so as to achieve voltage balance between upper and lower capacitors on the DC side, as shown in the above formula.
[0110] Step S2043, when the fourth formula group is established, solve the first target current for the third formula group according to the first preset condition:
[0111] ;
[0112] ;
[0113] ;
[0114] ;
[0115] ;
[0116] ;
[0117] in, is the reference value of the third voltage at time k+3, is the reference value of the third current at time k+4, is the reference value of the third current at time k+3, is the fifth voltage at time k+3, is the reference value of the fourth voltage at time k+3, is the reference value of the fourth current at time k+4, is the reference value of the fourth current at time k+3, is the sixth voltage at time k+3, is the reference value of the third voltage at time k+2, is the reference value of the third current at time k+2, is the fifth voltage at time k+2, is the reference value of the fourth voltage at time k+2, is the reference value of the fourth current at time k+2, is the sixth voltage at time k+2, is the reference value of the first current at time k+1, is the second current reference value at time k+1;
[0118] Specifically, the present application proposes to implement the control strategy on the AC side, controlling i 2 According to the given grid-side current command value i 2 * Output; on the DC side, maintain Δu o Approximately 0. The process is as follows:
[0119] 1. Transform and derive the second formula group above to calculate the reference value of the filter capacitor at time k+3 :
[0120] ;
[0121] ;
[0122] 2. Considering that the grid voltage changes slowly on the time scale of the switching frequency, if T S is small enough to replace the sampling value e(k+3) at the future time with the sampling value e(k) at the current time k. :
[0123] ;
[0124] ;
[0125] 3. Based on and Based on the second formula group, the current reference value of the inverter side inductor at time k+1 is calculated: :
[0126] ;
[0127] .
[0128] Step S2044, determining the first target voltage based on the first target current, and calculating an error cost function according to the first target voltage:
[0129] ;
[0130] in, is the above error value, is the first current at time k+2, is the second current at time k+2;
[0131] Specifically, based on u(k+1), the corresponding i can be predicted 1 (k+2), and then the cost function characterizing the future error of the first target current is calculated according to the above formula.
[0132] Step S2045, determining a corresponding state vector according to the first target voltage corresponding to the minimum value of the error cost function, and determining the control input according to the vector state,
[0133] Among them, When the corresponding state vector is greater than the second threshold, the corresponding switching function is determined as the control input. When the corresponding state vector is less than or equal to the second threshold and greater than the third threshold, according to the formula Calculate the neutral point voltage value function, determine the above switch function corresponding to the minimum value of the neutral point value function as the above control input, When the corresponding state vector is a zero vector, Determine as the control input above.
[0134] Specifically, traverse 19 vector states and select the one that makes f 1 The smallest u(k+1). If u(k+1) belongs to a large vector or a medium vector, the corresponding switch combination S can be directly obtained. a (k+1), S b (k+1), S c (k+1); if u(k+1) belongs to the zero vector, set S a (k+1)=0,S b (k+1)=0,S c (k+1)=0; if u(k+1) is a small vector, then the representation Δu is calculated according to formula (20) oThe value function f of the future size 2 , select the positive and negative small vectors so that f 2 Take the smaller value of S a (k+1), S b (k+1), S c (k+1). .
[0135] Loop step S204, make i 2 Follow me 2 * Output, and maintain Δu o On a smaller scale.
[0136] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0137] The embodiment of the present application also provides a control device for an APF circuit based on model prediction. It should be noted that the control device for an APF circuit based on model prediction in the embodiment of the present application can be used to execute the control method for an APF circuit based on model prediction provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been explained will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0138] The following introduces the control device of the APF circuit based on model prediction provided in an embodiment of the present application.
[0139] Figure 4 is a structural block diagram of a control device for an APF circuit based on model prediction according to an embodiment of the present application. Figure 4 As shown, the device comprises:
[0140] The determination unit 10 is used to perform topology analysis on the APF circuit to obtain a first topology diagram, and determine a plurality of first electrical quantities according to the first topology diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current, and a second target current, wherein the first target voltage is the voltage of the inverter-side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid-side inductor, the first target current is the current of the inverter-side inductor, and the second target current is the current of the grid-side inductor;
[0141] A first constructing unit 20 is used to perform a Parker transformation on each of the first electrical quantities to obtain a corresponding second electrical quantity and construct a relationship between each of the second electrical quantities according to Kirchhoff's law to obtain a first formula group, wherein the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity;
[0142] A second construction unit 30 is used to discretize the first formula group by using a forward difference method, and construct a corresponding spatial state equation to obtain a second formula group;
[0143] The first calculation unit 40 is used to adopt a neutral point clamp topology to describe the output voltage of each phase in the above-mentioned APF circuit with a switching function to obtain a third formula group, and solve the above-mentioned third formula group according to the first preset condition, the second preset condition and the above-mentioned second formula group to obtain the control input of the above-mentioned APF circuit, the above-mentioned first preset condition is that the above-mentioned second target current of the above-mentioned APF circuit is a preset current, and the above-mentioned second preset condition is that the difference between the neutral point voltage of the above-mentioned APF circuit and the preset voltage is less than a first threshold value.
[0144] Through this embodiment, the determination unit performs topology on the above-mentioned APF circuit to obtain a first topology diagram, and determines multiple first electrical quantities according to the above-mentioned first topology diagram, the above-mentioned first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current and a second target current, the above-mentioned first target voltage is the voltage of the above-mentioned inverter side inductor, the above-mentioned second target voltage is the voltage of the above-mentioned filter capacitor, the above-mentioned third target voltage is the voltage of the above-mentioned grid side inductor, the above-mentioned first target current is the current of the above-mentioned inverter side inductor, and the above-mentioned second target current is the current of the grid side inductor; the first construction unit performs Park transformation on each of the above-mentioned first electrical quantities to obtain the corresponding second electrical quantity and constructs the relationship between each of the above-mentioned second electrical quantities according to Kirchhoff's law to obtain The first formula group, the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity; the second construction unit discretizes the first formula group using the forward difference method, and constructs the corresponding space state equation to obtain the second formula group; the first calculation unit uses the neutral point clamping topology to describe the output voltage of each phase in the APF circuit with a switching function to obtain the third formula group, and solves the third formula group according to the first preset condition, the second preset condition and the second formula group to obtain the control input of the APF circuit, the first preset condition is that the second target current of the APF circuit is the preset current, and the second preset condition is that the difference between the neutral point voltage of the APF circuit and the preset voltage is less than the first threshold. This application constructs an LCL line mathematical model, establishes a multi-objective optimization model predictive control strategy for the delay problem of the discrete system design, and solves the control input of the model under constraints. This method eliminates the influence of delay and realizes precise control of the APF circuit through a simple system.
[0145] In order to simplify the calculation process, in an optional implementation manner, the above device further includes:
[0146] The third construction unit is used to construct the Kalman filter state prediction equation according to the second formula group after constructing the corresponding space state equation to obtain the second formula group:
[0147] ;
[0148] ;
[0149] ;
[0150] in, is the prior estimate of the electrical quantity at time k, A is the state matrix, B is the input matrix, is any one of the first electrical quantity or the second electrical quantity at time k-1, By input vector and interference Determine, R is the noise variance matrix, is the state observer output matrix at time k, H is the observation matrix, Q is the measurement noise variance matrix, is any one of the first electrical quantity or the second electrical quantity at time k, is the second target voltage at time k, is the second target current at time k;
[0151] The second calculation unit is used to perform error covariance prediction according to the Kalman filter state prediction equation:
[0152] ;
[0153] ;
[0154] in, for The corresponding prior error is is the posterior error matrix at time k-1, for The covariance of , the prior error matrix;
[0155] The third calculation unit is used to calculate the Kalman filter gain according to the Kalman filter state prediction equation:
[0156] ;
[0157] in, is the Kalman filter gain matrix;
[0158] The fourth calculation unit is used to calculate the posterior estimate according to the Kalman filter state prediction equation to obtain the estimated electrical quantity:
[0159] ;
[0160] in, is the above posterior estimate.
[0161] In addition, to continuously update the prior estimated covariance p - (k), after correcting the state variables, the posterior error matrix needs to be calculated: .
[0162] In order to obtain the above first formula group, in an optional implementation manner, the above first construction unit includes:
[0163] A first processing module, configured to perform a Park transformation on the first target voltage to obtain a first voltage and a second voltage, wherein the first voltage is a direct-axis component of the first target voltage, and the second voltage is a quadrature-axis component of the first target voltage;
[0164] A second processing module, configured to perform a Park transformation on the second target voltage to obtain a third voltage and a fourth voltage, wherein the third voltage is a direct-axis component of the second target voltage, and the fourth voltage is a quadrature-axis component of the second target voltage;
[0165] a third processing module, configured to perform a Park transformation on the third target voltage to obtain a fifth voltage and a sixth voltage, wherein the fifth voltage is a direct-axis component of the third target voltage, and the sixth voltage is a quadrature-axis component of the third target voltage;
[0166] A fourth processing module, configured to perform a Parker transformation on the first target current to obtain a first current and a second current, wherein the first current is a direct-axis component of the first target current, and the second current is a quadrature-axis component of the first target current;
[0167] a fifth processing module, configured to perform a Parker transformation on the second target current to obtain a third current and a fourth current, wherein the third current is a direct-axis component of the second target current, and the fourth current is a quadrature-axis component of the second target current;
[0168] A sixth processing module is used to construct the first formula group according to the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the first current, the second current, the third current and the fourth current:
[0169] , , , , ;
[0170] ;
[0171] ;
[0172] ;
[0173] in, is the first target current mentioned above, are the first current and the second current, is the second target current mentioned above, are the third current and the fourth current, is the first target voltage, are the first voltage and the second voltage, is the second target voltage, are the third voltage and the fourth voltage, is the third target voltage, are the fifth voltage and the sixth voltage, is the angular velocity corresponding to the system frequency, is the capacitance of the above filter capacitor, is the inductance of the inverter side inductor, is the inductance of the above-mentioned grid-side inductor.
[0174] In order to discretize the data before obtaining the above-mentioned spatial state equation, in an optional implementation manner, the above-mentioned second construction unit includes:
[0175] The seventh processing module is used to discretize the first formula group using the forward difference method:
[0176] ;
[0177] in, is the period corresponding to the switching frequency, It is any one of the first electrical quantity or the second electrical quantity at time k+1.
[0178] In order to construct the second formula group, in an optional implementation manner, the second construction unit further includes:
[0179] The first construction module is used to construct a spatial state equation in a dq coordinate system according to each of the above-mentioned first electrical quantities or the above-mentioned second electrical quantities of the discretized APF circuit:
[0180] ;
[0181] ;
[0182] ;
[0183] ;
[0184] .
[0185] In order to construct the third formula group, in an optional implementation, the first calculation unit includes:
[0186] The first calculation module is used to describe the output voltage of each phase in the above APF circuit using a switching function by adopting a neutral point clamp topology:
[0187] ;
[0188] ;
[0189] in, are the A phase, B phase and C phase of the APF circuit. , switch tube T 1 , T 2 On, T 3 , T 4 Shutdown, , output state P, is the above DC voltage, is the output voltage of the xth phase, when , switch tube T 2 , T 3 Turn on, switch tube T 1 , T 4 Shutdown, , output state Q, when , switch tube T 3 , T 4 Turn on, switch tube T 1 , T 2 Shutdown, , output state N.
[0190] In order to obtain the above control input, in an optional implementation manner, the above first calculation unit further includes:
[0191] The second construction module is used to construct a corresponding equation according to the second preset condition to obtain a fourth formula group:
[0192] ;
[0193] ;
[0194] in, is the neutral point current at time K+1, is the first target current of phase x at time k+1 is the output voltage of phase x at time k+1, is the neutral point voltage at time k+2, is the voltage of the first capacitor at time k+1, is the voltage of the second capacitor at time k+1;
[0195] The second calculation module is used to solve the first target current for the third formula group according to the first preset condition when the fourth formula group is established:
[0196] ;
[0197] ;
[0198] ;
[0199] ;
[0200] ;
[0201] ;
[0202] in, is the reference value of the third voltage at time k+3, is the reference value of the third current at time k+4, is the reference value of the third current at time k+3, is the fifth voltage at time k+3, is the reference value of the fourth voltage at time k+3, is the reference value of the fourth current at time k+4, is the reference value of the fourth current at time k+3, is the sixth voltage at time k+3, is the reference value of the third voltage at time k+2, is the reference value of the third current at time k+2, is the fifth voltage at time k+2, is the reference value of the fourth voltage at time k+2, is the reference value of the fourth current at time k+2, is the sixth voltage at time k+2, is the reference value of the first current at time k+1, is the second current reference value at time k+1;
[0203] The third calculation module is used to determine the first target voltage based on the first target current, and calculate the error cost function according to the first target voltage:
[0204] ;
[0205] in, is the above error value, is the first current at time k+2, is the second current at time k+2;
[0206] The fourth calculation module is used to determine the corresponding state vector according to the first target voltage corresponding to the minimum value of the error value function, and determine the control input according to the vector state.
[0207] Among them, When the corresponding state vector is greater than the second threshold, the corresponding switching function is determined as the control input. When the corresponding state vector is less than or equal to the second threshold and greater than the third threshold, according to the formula Calculate the neutral point voltage value function, determine the above switch function corresponding to the minimum value of the neutral point value function as the above control input, When the corresponding state vector is a zero vector, Determine as the control input above.
[0208] The control device of the APF circuit based on model prediction includes a processor and a memory. The determination unit, the first construction unit, the second construction unit and the first calculation unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0209] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the delay effect can be eliminated by adjusting the kernel parameters, and the APF circuit can be precisely controlled through a simple system.
[0210] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0211] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the control method of the APF circuit based on model prediction.
[0212] An embodiment of the present invention provides a processor, which is used to run a program, wherein the control method of the APF circuit based on model prediction is executed when the program is run.
[0213] An embodiment of the present invention provides an APF circuit control system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements at least the steps of the above-mentioned APF circuit control method based on model prediction.
[0214] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the control method steps of the APF circuit based on model prediction described above.
[0215] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0216] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0217] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0218] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0219] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0220] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0221] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0222] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0223] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0224] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0225] 1) The control method of the APF circuit based on model prediction of the present application, first, the APF circuit is topologically analyzed to obtain a first topological diagram, and multiple first electrical quantities are determined according to the first topological diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current, and a second target current, wherein the first target voltage is the voltage of the inverter side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid side inductor, the first target current is the current of the inverter side inductor, and the second target current is the current of the grid side inductor; then, each of the first electrical quantities is subjected to a Park transformation to obtain a corresponding second electrical quantity and each of the second electrical quantities is constructed according to Kirchhoff's law. The relationship between electrical quantities is used to obtain a first formula group, and the above-mentioned second electrical quantity includes multiple direct-axis components and quadrature-axis components corresponding to the above-mentioned first electrical quantity; then, the above-mentioned first formula group is discretized by the forward difference method, and the corresponding space state equation is constructed to obtain the second formula group; finally, the output voltage of each phase in the above-mentioned APF circuit is described by a switching function using a neutral point clamping topology to obtain a third formula group, and the above-mentioned third formula group is solved according to the first preset condition, the second preset condition and the above-mentioned second formula group to obtain the control input of the above-mentioned APF circuit, and the above-mentioned first preset condition is that the above-mentioned second target current of the above-mentioned APF circuit is a preset current, and the above-mentioned second preset condition is that the difference between the neutral point voltage of the above-mentioned APF circuit and the preset voltage is less than the first threshold. This application constructs an LCL line mathematical model, establishes a multi-objective optimization model predictive control strategy for the delay problem of the design discrete system, and solves the control input of the model under constraints. This method eliminates the influence of delay and realizes precise control of the APF circuit through a simple system.
[0226] 2) The control device of the APF circuit based on model prediction of the present application, the determination unit performs topology on the above-mentioned APF circuit to obtain a first topology diagram, and determines multiple first electrical quantities according to the above-mentioned first topology diagram, the above-mentioned first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current and a second target current, the above-mentioned first target voltage is the voltage of the above-mentioned inverter side inductor, the above-mentioned second target voltage is the voltage of the above-mentioned filter capacitor, the above-mentioned third target voltage is the voltage of the above-mentioned grid side inductor, the above-mentioned first target current is the current of the above-mentioned inverter side inductor, and the above-mentioned second target current is the current of the grid side inductor; the first construction unit performs Park transformation on each of the above-mentioned first electrical quantities to obtain the corresponding second electrical quantity and constructs each of the above-mentioned second electrical quantities according to Kirchhoff's law. The relationship between the gas quantity is obtained by the first formula group, and the above-mentioned second electrical quantity includes multiple direct-axis components and quadrature-axis components corresponding to the above-mentioned first electrical quantity; the second construction unit discretizes the above-mentioned first formula group by the forward difference method, and constructs the corresponding space state equation to obtain the second formula group; the first calculation unit adopts the neutral point clamping topology to describe the output voltage of each phase in the above-mentioned APF circuit with a switching function to obtain the third formula group, and solves the above-mentioned third formula group according to the first preset condition, the second preset condition and the above-mentioned second formula group to obtain the control input of the above-mentioned APF circuit, the above-mentioned first preset condition is that the above-mentioned second target current of the above-mentioned APF circuit is the preset current, and the above-mentioned second preset condition is that the difference between the neutral point voltage of the above-mentioned APF circuit and the preset voltage is less than the first threshold. This application constructs an LCL line mathematical model, establishes a multi-objective optimization model predictive control strategy for the delay problem of the design discrete system, and solves the control input of the model under constraints. This method eliminates the influence of delay and realizes precise control of the APF circuit through a simple system.
[0227] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for an APF circuit based on model prediction, characterized in that: The APF circuit includes a first capacitor, a second capacitor and an LCL filter, the LCL filter includes an inverter side inductor, a filter capacitor and a grid side inductor, the first capacitor and the second capacitor are connected in series to provide a DC voltage, the LCL filter is connected to the system, and the method includes: Performing topology analysis on the APF circuit to obtain a first topology diagram, and determining a plurality of first electrical quantities according to the first topology diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current, and a second target current, wherein the first target voltage is the voltage of the inverter-side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid-side inductor, the first target current is the current of the inverter-side inductor, and the second target current is the current of the grid-side inductor; Performing a Parker transformation on each of the first electrical quantities to obtain a corresponding second electrical quantity and constructing a relationship between each of the second electrical quantities according to Kirchhoff's law to obtain a first formula group, wherein the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity; The first formula group is discretized by using the forward difference method, and the corresponding spatial state equation is constructed to obtain the second formula group; A neutral point clamp topology is used to describe the output voltage of each phase in the APF circuit with a switching function to obtain a third formula group. The third formula group is solved according to a first preset condition, a second preset condition and the second formula group to obtain a control input of the APF circuit. The first preset condition is that the second target current of the APF circuit is equal to a preset current, and the second preset condition is that the difference between the neutral point voltage of the APF circuit and the preset voltage is less than a first threshold value.
2. The method according to claim 1, characterized in that After constructing the corresponding spatial state equation to obtain the second formula group, the method further includes: The Kalman filter state prediction equation is constructed according to the second formula group: ; ; ; in, is the prior estimate of the electrical quantity at time k, A is the state matrix, B is the input matrix, is any one of the first electrical quantity or the second electrical quantity at time k-1, By input vector and interference Determine, R is the noise variance matrix, is the state observer output matrix at time k, H is the observation matrix, Q is the measurement noise variance matrix, is any one of the first electrical quantity or the second electrical quantity at time k, is the second target voltage at time k, is the second target current at time k; According to the Kalman filter state prediction equation, the error covariance prediction is performed: ; ; in, for The corresponding prior error is is the posterior error matrix at time k-1, for The covariance of , the prior error matrix; According to the Kalman filter state prediction equation, the Kalman filter gain is calculated: ; in, is the Kalman filter gain matrix; According to the Kalman filter state prediction equation, the estimated electrical quantity is calculated by posterior estimation: ; in, is the posterior estimate.
3. The method according to claim 2, characterized in that Performing Park transformation on each of the first electrical quantities to obtain the corresponding second electrical quantity and constructing the relationship between each of the second electrical quantities according to Kirchhoff's law to obtain a first formula group, including: Performing a Park transformation on the first target voltage to obtain a first voltage and a second voltage, wherein the first voltage is a direct-axis component of the first target voltage, and the second voltage is a quadrature-axis component of the first target voltage; Performing a Park transformation on the second target voltage to obtain a third voltage and a fourth voltage, wherein the third voltage is a direct-axis component of the second target voltage, and the fourth voltage is a quadrature-axis component of the second target voltage; Performing a Park transformation on the third target voltage to obtain a fifth voltage and a sixth voltage, wherein the fifth voltage is a direct-axis component of the third target voltage, and the sixth voltage is a quadrature-axis component of the third target voltage; Performing a Park transformation on the first target current to obtain a first current and a second current, wherein the first current is a direct-axis component of the first target current, and the second current is a quadrature-axis component of the first target current; Performing a Park transformation on the second target current to obtain a third current and a fourth current, wherein the third current is a direct-axis component of the second target current, and the fourth current is a quadrature-axis component of the second target current; The first formula group is constructed according to the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the first current, the second current, the third current and the fourth current: , , , , ; ; ; ; in, is the first target current, are the first current and the second current, is the second target current, are the third current and the fourth current, is the first target voltage, are the first voltage and the second voltage, is the second target voltage, are the third voltage and the fourth voltage, is the third target voltage, are the fifth voltage and the sixth voltage, is the angular velocity corresponding to the system frequency, is the capacitance of the filter capacitor, is the inductance of the inverter side inductor, is the inductance of the grid-side inductor.
4. The method according to claim 3, characterized in that The first set of formulas is discretized using a forward difference method, and includes: The first set of formulas is discretized using the forward difference method: ; in, is the period corresponding to the switching frequency, It is any one of the first electrical quantity or the second electrical quantity at time k+1.
5. The method according to claim 4, characterized in that The corresponding spatial state equation is constructed to obtain the second set of formulas, including: According to the discretized first electrical quantity or the second electrical quantity of the APF circuit, a spatial state equation is constructed in the dq coordinate system: ; ; ; ; 。 6. The method according to claim 5, characterized in that The output voltage of each phase in the APF circuit is described by a switching function using a neutral point clamp topology to obtain a third set of formulas, including: The output voltage of each phase in the APF circuit is described by a switching function using a neutral point clamp topology: ; ; in, are the A phase, B phase and C phase of the APF circuit. , switch tubes T1 and T2 are turned on, and T3 and T4 are turned off. , output state P, is the DC voltage, is the output voltage of the xth phase, when , the switch tubes T2 and T3 are turned on, and the switch tubes T1 and T4 are turned off. , output state Q, when , the switch tubes T3 and T4 are turned on, and the switch tubes T1 and T2 are turned off. , output state N.
7. The method according to claim 6, characterized in that Solving the third formula group according to the first preset condition, the second preset condition and the second formula group to obtain the control input of the APF circuit includes: According to the second preset condition, the corresponding equation is constructed to obtain the fourth formula group: ; ; in, is the neutral point current at time K+1, is the first target current of phase x at time k+1 is the output voltage of phase x at time k+1, is the neutral point voltage at time k+2, is the voltage of the first capacitor at time k+1, is the voltage of the second capacitor at time k+1; When the fourth formula group is established, the first target current is obtained by solving the third formula group according to the first preset condition: ; ; ; ; ; ; in, is the reference value of the third voltage at time k+3, is the reference value of the third current at time k+4, is the reference value of the third current at time k+3, is the fifth voltage at time k+3, is the reference value of the fourth voltage at time k+3, is the reference value of the fourth current at time k+4, is the reference value of the fourth current at time k+3, is the sixth voltage at time k+3, is the reference value of the third voltage at time k+2, is the reference value of the third current at time k+2, is the fifth voltage at time k+2, is the reference value of the fourth voltage at time k+2, is the reference value of the fourth current at time k+2, is the sixth voltage at time k+2, is the reference value of the first current at time k+1, is the second current reference value at time k+1; The first target voltage is determined based on the first target current, and an error cost function is calculated according to the first target voltage: ; in, is the error value, is the first current at time k+2, is the second current at time k+2; Determine the corresponding state vector according to the first target voltage corresponding to the minimum value of the error cost function, and determine the control input according to the vector state, Among them, When the corresponding state vector is greater than the second threshold, the corresponding switching function is determined as the control input. When the corresponding state vector is less than or equal to the second threshold and greater than the third threshold, according to the formula Calculate the neutral point voltage value function, determine the switch function corresponding to the minimum value of the neutral point value function as the control input, When the corresponding state vector is a zero vector, is determined as the control input.
8. A control device for an APF circuit based on model prediction, characterized in that: The APF circuit includes a first capacitor, a second capacitor and an LCL filter, the LCL filter includes an inverter side inductor, a filter capacitor and a grid side inductor, the first capacitor and the second capacitor are connected in series to provide a DC voltage, the LCL filter is connected to the system, and the device includes: a determination unit, configured to perform topology analysis on the APF circuit to obtain a first topology diagram, and determine a plurality of first electrical quantities according to the first topology diagram, wherein the first electrical quantities include a first target voltage, a second target voltage, a third target voltage, a first target current, and a second target current, wherein the first target voltage is the voltage of the inverter-side inductor, the second target voltage is the voltage of the filter capacitor, the third target voltage is the voltage of the grid-side inductor, the first target current is the current of the inverter-side inductor, and the second target current is the current of the grid-side inductor; a first constructing unit, configured to perform a Parker transformation on each of the first electrical quantities to obtain a corresponding second electrical quantity and construct a relationship between each of the second electrical quantities according to Kirchhoff's law to obtain a first formula group, wherein the second electrical quantity includes a plurality of direct-axis components and quadrature-axis components corresponding to the first electrical quantity; A second construction unit is used to discretize the first formula group by using a forward difference method, and construct a corresponding spatial state equation to obtain a second formula group; A first calculation unit is used to adopt a neutral point clamp topology to describe the output voltage of each phase in the APF circuit with a switching function to obtain a third formula group, and solve the third formula group according to a first preset condition, a second preset condition and the second formula group to obtain a control input of the APF circuit, wherein the first preset condition is that the second target current of the APF circuit is equal to a preset current, and the second preset condition is that the difference between the neutral point voltage of the APF circuit and the preset voltage is less than a first threshold value.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. An APF circuit control system, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.
