A method and system for multi-harmonic compensation control of a grid-connected inverter

By constructing a priority evaluation and asynchronous update mechanism for multi-dimensional state characteristics in the grid-connected inverter, the harmonic compensation channel is dynamically selected for updating, which solves the problem of low controller resource utilization in multiple harmonic mitigation, achieves efficient multi-harmonic compensation effect, reduces algorithm complexity and improves power quality.

CN123144085APending Publication Date: 2026-11-20TECHNICAL SKILLS TRAINING CENT STATE GRID HUNAN ELECTRIC POWER CO +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611530903.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing grid-connected inverters suffer from high controller computational load and low resource utilization when facing multiple harmonics, making it difficult to allocate computing resources reasonably, resulting in problems such as redundant calculations and low utilization of controller computing resources.

Method used

By constructing a priority evaluation and asynchronous update mechanism based on multi-dimensional state characteristics, the amplitude, trend and waiting time status of the target harmonic are obtained, the update priority of the harmonic compensation control channel is dynamically evaluated, only the harmonic channel with the highest comprehensive priority is updated, and the historical compensation instructions of the unselected channels are kept. The total compensation current reference is synthesized to drive the grid-connected inverter to output the compensation current.

Benefits of technology

It reduces redundant calculations in the PI channel, improves the utilization of the controller's computing resources, ensures the continuity and accuracy of multi-objective harmonics, reduces algorithm complexity, makes it easy to implement in low-cost embedded controllers, and improves power quality management performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144085A_ABST
    Figure CN123144085A_ABST
Patent Text Reader

Abstract

The application discloses a kind of multi-harmonic compensation control method and system of grid-connected inverter, it is related to power electronics and power quality control field, including: obtaining the multi-dimensional state characteristics of each target harmonic in target harmonic set in current control period;Based on multi-dimensional state characteristics, the update priority of the harmonic compensation control channel corresponding to each target harmonic is evaluated;According to the update priority, at least one target harmonic is selected from the target harmonic set as an update object, the compensation instruction update is executed to the harmonic compensation control channel corresponding to the update object, and the historical compensation instruction of the harmonic compensation control channel corresponding to the unselected target harmonic is maintained;Based on the current compensation instruction of each harmonic compensation control channel, total compensation current reference is synthesized to drive grid-connected inverter to output compensation current.The application guarantees the continuous treatment effect of multi-target harmonic, significantly reduces the controller operation burden, and improves the utilization rate of computing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power electronics and power quality management technology, specifically relating to a multi-harmonic compensation control method and system for grid-connected inverters. Background Technology

[0002] Currently, with the widespread integration of power electronic systems and nonlinear loads into the power grid, multiple harmonics easily appear in the grid current, leading to current waveform distortion, increased line losses, and degraded power quality. Grid-connected inverters typically employ active filtering to mitigate these harmonics. Existing technologies generally extract each harmonic through Fourier transform and set up an independent control channel for each target harmonic to generate a compensation current reference. Finally, the inverter's inner current loop and PWM module output compensation currents in opposite directions. Each harmonic control channel performs state extraction, coordinate transformation, error calculation, and controller updates in parallel within each control cycle. However, as the number of target harmonics increases, the fully parallel processing method with all channels using the same update frequency leads to a significant increase in the controller's computational load and storage requirements. This easily results in redundant calculations and makes it difficult to rationally allocate computational resources based on the amplitude differences and urgency of changes of each harmonic, resulting in low utilization of controller computational resources and a heavy burden of repetitive calculations.

[0003] Therefore, there is an urgent need for a multi-harmonic compensation control method and system for grid-connected inverters that can reduce unnecessary PI repetitive updates and improve the utilization efficiency of control computing resources while maintaining continuous compensation for multiple harmonics. Summary of the Invention

[0004] In view of the shortcomings of the prior art, the purpose of this invention is to provide a multi-harmonic compensation control method and system for grid-connected inverters, which can reduce the repeated calculation of PI channels while maintaining the continuous control effect of multiple harmonics, improve the utilization rate of controller computing resources, and help improve the real-time execution capability of the control system.

[0005] This invention provides a multi-harmonic compensation control method for a grid-connected inverter, comprising:

[0006] Obtain the multidimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle;

[0007] Based on the multidimensional state characteristics, the update priority of the harmonic compensation control channel corresponding to each target harmonic is evaluated;

[0008] According to the update priority, at least one target harmonic is selected from the target harmonic set as the update object, and the compensation instruction is updated for the harmonic compensation control channel corresponding to the update object, while the historical compensation instructions for the harmonic compensation control channel corresponding to the unselected target harmonic are maintained.

[0009] Based on the current compensation command of each harmonic compensation control channel, a total compensation current reference is synthesized to drive the grid-connected inverter to output compensation current.

[0010] The system acquires the multidimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle; based on the multidimensional state characteristics, it evaluates the update priority of the harmonic compensation control channel corresponding to each target harmonic; according to the update priority, it selects at least one target harmonic from the target harmonic set as the update object, executes the compensation command update on the harmonic compensation control channel corresponding to the update object, and maintains the historical compensation commands of the harmonic compensation control channels corresponding to the unselected target harmonics; based on the current compensation commands of each harmonic compensation control channel, it synthesizes a total compensation current reference to drive the grid-connected inverter to output compensation current.

[0011] The step of evaluating the update priority of the harmonic compensation control channel corresponding to each target harmonic based on the multidimensional state characteristics includes: multiplying the amplitude state, the amplitude change trend state, and the waiting update time state by their respective weighting coefficients and then performing linear weighted fusion to obtain a comprehensive priority score for each target harmonic; and determining the update priority based on the comprehensive priority score.

[0012] The formula for calculating the comprehensive priority score is as follows:

[0013] ;

[0014] in, Indicates the first individual harmonics In the Comprehensive priority score for each control cycle; Indicates the first Weighting coefficients for each target harmonic; , , These represent the weighting coefficients for amplitude state, amplitude change trend state, and waiting time for update state, respectively. The amplitude state term is calculated as the square of the ratio of the harmonic amplitude estimate to the normalized reference value for the current control cycle. The state term representing the trend of amplitude change is calculated as the square of the ratio of the absolute value of the difference between the estimated harmonic amplitude of the current control cycle and the previous control cycle to the normalized reference value. This represents the waiting time status item, which is calculated as the ratio of the waiting counter value of the current control cycle to the waiting time normalization parameter.

[0015] The step of selecting at least one target harmonic from the target harmonic set as the update object according to the update priority, executing compensation command updates on the harmonic compensation control channel corresponding to the update object, and maintaining the historical compensation commands of the harmonic compensation control channels corresponding to the unselected target harmonics includes: selecting the top harmonic with the highest comprehensive priority score. The updated set consists of several target harmonics, among which... The value is an integer greater than or equal to 1; for target harmonics belonging to the update set, a first update flag is generated, the compensation instruction of the corresponding harmonic compensation control channel is recalculated, and its waiting counter is cleared; for target harmonics not belonging to the update set, a second update flag is generated, the compensation instruction of the corresponding harmonic compensation control channel in the previous control cycle is maintained, and its waiting counter is incremented by one.

[0016] The process of obtaining the multidimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle includes: extracting the instantaneous components and amplitudes of each target harmonic using a sliding discrete Fourier transform; transforming the instantaneous components of each target harmonic to a synchronous coordinate system rotating at the corresponding target harmonic angular velocity to obtain a direct-flow error signal for generating the compensation command.

[0017] The recursive update formula for the sliding discrete Fourier transform is as follows:

[0018] ;

[0019] in, and They represent the first individual harmonics Complex states in the current and previous control cycles; Indicates the corresponding rotation factor; and These represent the three-phase current sampling values ​​currently entering and exiting the sliding window, respectively. The number of sampling points within the sliding window; the formula for constructing the rotation angle of the synchronous coordinate system is:

[0020] ;

[0021] in, Indicates target harmonics The angle of the synchronous rotating coordinate system; This represents the rotation direction coefficient, with 1 for positive sequence harmonics and -1 for negative sequence harmonics; It represents the synchronous phase angle of the fundamental positive sequence voltage of the power grid.

[0022] The step of synthesizing a total compensation current reference based on the current compensation commands of each harmonic compensation control channel to drive the grid-connected inverter to output compensation current includes: converting the current compensation commands of each harmonic compensation control channel to a three-phase stationary coordinate system and superimposing them to obtain the total compensation current reference; inputting the error between the total compensation current reference and the actual output current of the grid-connected inverter into a multi-resonance proportional resonant controller for adjustment, and combining it with the grid connection point voltage feedforward to generate an inverter output voltage reference; and generating a pulse width modulation signal based on the inverter output voltage reference to drive the grid-connected inverter to output the compensation current.

[0023] This invention also provides a multi-harmonic compensation control system for a grid-connected inverter, comprising: a state acquisition module configured to acquire multi-dimensional state characteristics of each target harmonic in a target harmonic set during the current control cycle; a priority evaluation module configured to evaluate the update priority of the harmonic compensation control channel corresponding to each target harmonic based on the multi-dimensional state characteristics; an asynchronous update module configured to select at least one target harmonic from the target harmonic set as an update object according to the update priority, execute compensation command updates on the harmonic compensation control channel corresponding to the update object, and maintain the historical compensation commands of the harmonic compensation control channels corresponding to the unselected target harmonics; and a reference synthesis module configured to synthesize a total compensation current reference based on the current compensation commands of each harmonic compensation control channel to drive the grid-connected inverter to output compensation current.

[0024] The present invention also provides a grid-connected inverter, comprising: an inverter main circuit; and a multi-harmonic compensation control system as described above, wherein the multi-harmonic compensation control system is connected to the inverter main circuit and is used to generate a drive signal to control the inverter main circuit to output a compensation current.

[0025] This invention discloses a multi-harmonic compensation control method and system for grid-connected inverters. By constructing a priority evaluation and asynchronous update mechanism based on multi-dimensional state characteristics, it accurately identifies the real-time mitigation requirements of each harmonic channel by comprehensively weighting amplitude, trend, and waiting time, avoiding invalid calculations in fully parallel updates and significantly reducing the computational burden on the controller. On the other hand, by maintaining the historical instructions of unselected channels and cooperating with the underlying PR current inner loop tracking, it ensures the continuity and accuracy of multi-objective harmonic compensation, achieving efficient utilization of computing resources without sacrificing the mitigation effect. At the same time, the combination of SDFT recursive extraction and linear weighted evaluation further reduces the complexity of the algorithm itself, making it easy to implement in low-cost embedded controllers, and has good engineering application value and promotion prospects. Attached Figure Description

[0026] Figure 1This is the overall flowchart of the asynchronous PI compensation control method based on condition-driven harmonic state priority;

[0027] Figure 2 This is the target harmonic SDFT state extraction structure diagram;

[0028] Figure 3 This is a flowchart of the condition-driven target harmonic priority calculation and update flag generation process;

[0029] Figure 4 This is a diagram of the asynchronous harmonic PI compensation and grid-connected inverter execution structure.

[0030] Figure 5 This is a comparison chart of the target harmonic amplitude under three control modes.

[0031] Figure 6 This is a comparison chart of the number of PI updates and governance effects between fully parallel updates and condition-driven asynchronous updates.

[0032] Figure 7 This is a comparison chart of the cumulative number of PI channel updates between fully parallel updates and condition-driven asynchronous updates. Detailed Implementation

[0033] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0035] like Figure 1 As shown, this embodiment provides a multi-harmonic compensation control method for a grid-connected inverter. This method achieves differentiated management of multiple target harmonics by constructing a condition-driven asynchronous scheduling mechanism. Specifically, the control method includes the following steps:

[0036] Step S100: Obtain the multidimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle.

[0037] The controller operates with a fixed control cycle Ts. Within each control cycle k, the controller acquires the three-phase current at the grid-side measurement points. And collect the three-phase voltage at the grid-connected inverter connection point. Among them, three-phase current Used for target harmonic state extraction and subsequent harmonic priority determination, three-phase voltage Used in phase-locked loops to obtain grid synchronization angle, and as a voltage feedforward in the inner current loop of grid-connected inverters. Also used for harmonic state extraction. The preferred current is either the grid-side current or the upstream current of the PCC, which reflects the residual harmonics on the grid side after harmonic mitigation, rather than the load branch current or the inverter output current. Therefore, subsequent compensation control is based on the remaining target harmonic residuals on the grid side, thus forming a closed-loop harmonic mitigation logic.

[0038] The controller pre-sets a target harmonic set according to the requirements for grid harmonic mitigation. This target harmonic set is not limited to a fixed set of harmonics but can be selected based on the grid background harmonic distribution, nonlinear load characteristics, grid connection standards, compensation system capacity, and the controller's computing power. The target harmonic set is represented as follows: ;

[0039] in, Represents the target harmonic set. Indicates the first One target harmonic order, This represents the number of target harmonics that need to be controlled. For any harmonic in the target harmonic set... This invention employs a sliding discrete Fourier transform to extract its harmonic states. Let the number of sampling points within the sliding window be... Then the first The rotation factor corresponding to the subharmonic is: ;

[0040] In the The first control cycle, the... The SDFT state recursive update formula for the sub-target harmonic is: ;

[0041] in, Indicates the first The complex state of the sub-target harmonic in the current control cycle. This represents the complex state of the previous control cycle. This represents the three-phase current sample value currently entering the sliding window. This represents the three-phase current sample value removed from the sliding window. Through the above recursive form, the controller does not need to perform a complete Fourier calculation in each control cycle; it only needs to use the current sample value and the window-out value to update the target harmonic state. Therefore, it has a low online computational load and is suitable for implementation in high-sampling-frequency grid-connected converter control systems. Based on the SDFT state corresponding to the three-phase current, the ... Comprehensive amplitude estimate of the subtarget harmonic: ;

[0042] in, Indicates target harmonics The comprehensive amplitude estimate within the current control cycle uses coefficient 2 / N as the DFT amplitude normalization coefficient, used to restore the frequency domain complex state obtained from the SDFT to the actual harmonic amplitude; coefficient 1 / 3 is used to average the three-phase harmonic amplitudes. In addition to the amplitude, the controller can also reconstruct the three-phase instantaneous estimated current of the target harmonic based on the SDFT state: ;

[0043] in, Indicates the first The estimated three-phase current of the target harmonic is then input into the synchronous rotating coordinate transformation and PI compensation channel of the corresponding harmonic. Through the above process, the real-time amplitude of each harmonic in the target harmonic set is obtained in the first step. Previous cycle amplitude and three-phase instantaneous estimated current It provides a real-time data foundation for condition-driven priority construction, updating object selection, and asynchronous PI compensation.

[0044] Step S200: Based on the multi-dimensional state characteristics, evaluate the update priority of the harmonic compensation control channel corresponding to each target harmonic.

[0045] After obtaining the real-time status of each target harmonic, the controller executes a condition-driven asynchronous scheduling algorithm for target harmonic priorities. The condition-driven approach proposed in this invention uses the amplitude status, amplitude change trend status, and waiting update time status of the target harmonics as dynamic driving conditions. Based on these state conditions, the comprehensive priority of each target harmonic channel is calculated, and a PI channel update flag is generated based on the priority comparison results. The amplitude status item, amplitude change trend status item, and waiting update time status item are dynamic driving conditions, while the harmonic weights and the weights of each status item are preset adjustment parameters.

[0046] First, the target harmonic amplitude is normalized to construct an amplitude state term. For the target harmonic... Its amplitude state term is defined as: ;

[0047] in, Indicates the number of times within the current control cycle. Amplitude estimator of the target harmonic, This represents the normalized reference value for the target harmonic. Normalization avoids the impact of different target harmonic magnitudes on priority determination. When a target harmonic has a large amplitude, it indicates that the harmonic is prominent in the current grid-connected current, and its amplitude status item... The corresponding increase increases the likelihood that the harmonic will be selected for renewal.

[0048] Secondly, construct the state term for the target harmonic amplitude variation trend. For the target harmonic... Its amplitude change trend state term is defined as: ;

[0049] in, This indicates the change in the target harmonic amplitude between adjacent control cycles. When the background harmonics of the power grid, nonlinear loads, or grid-connected operating conditions change, the amplitude of some target harmonics may fluctuate significantly. In this case, the amplitude change trend state item... This will increase the controller's ability to identify harmonics with higher disturbance levels more quickly and prioritize updating the PI compensation channel corresponding to that harmonic, thereby improving the dynamic harmonic mitigation capability.

[0050] Next, a waiting time status item is constructed. If the update target is determined solely based on amplitude and trend, some target harmonics with smaller amplitudes but still requiring treatment may not be updated for a long time. To avoid this problem, this invention sets a waiting counter for each target harmonic. This is used to record the number of control cycles that have elapsed since the target harmonic distance was last selected for update. The wait-for-update-time status item is defined as follows: ;

[0051] in, This represents the normalized parameter for the waiting time. When a target harmonic has not been updated for a long period of time... The waiting time status item gradually increases. This also increases accordingly, thus enabling the target harmonic to regain a higher priority in subsequent control cycles, avoiding a situation where a certain target harmonic is not updated for a long time during asynchronous update.

[0052] By combining the harmonic amplitude state term, amplitude change trend state term, waiting update time state term, and harmonic weights, the target harmonic is constructed. In the Priority function within each control cycle: ;

[0053] in, Indicates target harmonics Priority rating, This indicates the weight of the target harmonic. , , These represent the weighting coefficients for the amplitude state term, the amplitude change trend state term, and the waiting time state term, respectively. If the control system is more concerned with the steady-state harmonic amplitude, these coefficients can be appropriately increased. If the control system is more concerned with a rapid response after a disturbance, the speed can be appropriately increased. If a more balanced renewal opportunity is desired for each target harmonic, the [renewal rate] can be appropriately increased. . It is used to reflect the importance of different target harmonics in specific engineering scenarios, and can be set according to the power grid harmonic distribution, equipment capacity, standard requirements or engineering experience.

[0054] Within each control cycle, the controller calculates the target harmonic set. The priority of each harmonic is scored, and the update target is selected based on the score. When only one target harmonic is allowed to be updated per control cycle, the update target is: ;

[0055] in, This indicates the target harmonic selected in the current control cycle. In other words, within the current cycle, the controller compares the priority scores of all target harmonics and prioritizes updating the PI compensation channel corresponding to the target harmonic with the highest overall priority score.

[0056] When the controller's computing resources allow, the highest priority option can also be selected. The target harmonics form an updated set: ;

[0057] in, M represents the target harmonic update set for the current control cycle. u This indicates the number of target harmonics that can be updated in the current period. This indicates that the highest priority score is selected. Multiple target harmonics can be set to be updated every cycle when computing resources are sufficient or harmonic disturbances are severe, in order to improve dynamic governance capabilities.

[0058] After determining the target harmonic update set for the current control cycle, the controller generates an update flag for the corresponding PI channel based on whether each target harmonic belongs to the update set. For the target harmonic h... r Its PI channel update flag is defined as: ;

[0059] in, Indicates target harmonics The corresponding PI channel is in the first Update flag within each control cycle. When When =1, it indicates that the target harmonic belongs to the current update set, and the controller recalculates and updates the compensation current output of the corresponding PI channel; when When =0, it indicates that the target harmonic is not selected, and the corresponding PI channel does not re-execute the PI calculation, but instead maintains the compensation current output saved in the previous control cycle. When only one target harmonic is selected in each control cycle, the set is updated to... At this point, only the target harmonic PI channel with the highest priority is updated.

[0060] The wait counters for each target harmonic are updated based on the PI channel update flag. When When =1, it indicates the target harmonic. When the current control cycle is selected, its wait counter is cleared; when When the value is 0, it indicates that the target harmonic has not been selected, and its wait counter is incremented by one based on the value of the previous cycle. The update rule for the wait counter is as follows: ;

[0061] Through the above mechanism, target harmonics with larger current amplitudes will receive higher priority due to the increase in amplitude status terms; target harmonics experiencing significant disturbances will be quickly identified due to the increase in amplitude change trend status terms; target harmonics that have not been updated for a long time will regain update opportunities due to the accumulation of status terms during the waiting time; and target harmonics that are more important in engineering can have their governance priority increased through weight terms. Therefore, this invention does not simply reduce the number of PI channel updates in a fixed order, but rather dynamically allocates PI update computing resources based on the real-time status of each target harmonic, enabling the controller to prioritize updating the target harmonic channel with the highest current overall priority.

[0062] Step S300: Based on the update priority, select at least one target harmonic from the target harmonic set as the update object, execute the compensation instruction update on the harmonic compensation control channel corresponding to the update object, and retain the historical compensation instructions of the harmonic compensation control channel corresponding to the unselected target harmonic.

[0063] After determining the target harmonic update target for the current control cycle, the controller enters the asynchronous harmonic PI compensation generation stage. Each harmonic channel in the target harmonic set retains its own compensation current output, but within each control cycle, only the target harmonic channels selected by the priority mechanism are recalculated for PI compensation; unselected target harmonic channels do not re-execute PI calculations, but instead retain the compensation output saved from the previous control cycle. This maintains the ability to compensate for multiple target harmonics simultaneously while reducing the number of PI channels that need to be updated in real time within each control cycle, thereby reducing the controller's computational burden.

[0064] First, the controller utilizes the voltage at the grid-connected inverter connection point. The fundamental synchronization angle of the power grid is obtained through a phase-locked loop. The output of the phase-locked loop This represents the synchronous phase angle of the fundamental positive-sequence voltage, not the true complete phase angle of each target harmonic. For the target harmonic... The controller constructs the corresponding harmonic synchronous rotation angle based on its sequence component characteristics: ;

[0065] in, Indicates target harmonics The angle of the synchronous rotating coordinate system, This represents the rotation direction coefficient corresponding to the target harmonic. For positive-sequence target harmonics, it can be taken as... =1; for negative sequence target harmonics, we can take... =−1. This angle does not assume that the true phase angle of the target harmonic is fixed. Instead, it is used to construct a synchronous coordinate system rotating at the angular velocity of the target harmonic. The true initial phase difference of the target harmonic will be reflected in the transformed dq components.

[0066] Subsequently, the target harmonic three-phase estimated current obtained in the first step is used... Transforming to the corresponding harmonic synchronous rotating coordinate system, the dq-axis components of the target harmonic are obtained. Since this coordinate system rotates with the angular velocity of the target harmonic, the target harmonic appears as an approximately DC quantity in the corresponding coordinate system. The control objective is to make the residual target harmonic on the network side approach zero; therefore, the dq-axis error is defined as: ;

[0067] in and They represent the target harmonics respectively. The d-axis and q-axis components are in the corresponding synchronous rotating coordinate system. The above error definition indicates that the target value is zero, that is, the controller aims to suppress the d and q components of the residual target harmonics on the network side through compensation. For the selected target harmonic channel, its d and q-axis PI controller recalculates the compensation amount: ;

[0068] in, Indicates target harmonics Compensation current reference in synchronously rotating dq coordinate system and These represent the proportional and integral coefficients of the target harmonic channel, respectively. The proportional element is used to quickly respond to the current residual harmonic error, while the integral element is used to continuously correct the compensation amount when the residual harmonics persist for a long time, thereby reducing the compensation deviation caused by sampling delay, filter phase lag, inverter tracking error, and grid impedance changes. This PI element is not used to control the fundamental current, nor does it directly generate a PWM signal. Instead, it serves as a target harmonic closed-loop regulator to dynamically generate reference compensation currents for each target harmonic based on the grid-side residual harmonics.

[0069] For target harmonic channels that are not selected, the PI output is not recalculated in this cycle; instead, the compensation amount saved from the previous cycle is retained. Its asynchronous hold rule can be expressed as: ;

[0070] in, Indicates target harmonics The corresponding PI compensation calculation. This formula embodies the asynchronous update mechanism of this invention: the selected channel is updated, while the unselected channel remains unchanged. The unselected channel does not exit compensation, nor is its output cleared; instead, it continues to use the compensation amount saved in the previous cycle. Therefore, within any control cycle, each target harmonic channel can participate in the generation of the total compensation current, but not all channels re-execute the PI calculation.

[0071] After generating the compensation quantities in the dq coordinate system, the controller converts the harmonic compensation quantities of each target back to the abc three-phase coordinate system using the corresponding synchronous rotation inverse transformation. Subsequently, the currently stored compensation currents of all channels within the target harmonic set are summed to obtain the total harmonic compensation current reference: ;

[0072] in, This serves as the reference for the total compensation current that the grid-connected inverter needs to track. This total reference current is fed into the current tracking execution stage of the grid-connected inverter. The grid-connected inverter uses a multi-resonant PR current inner loop in a stationary αβ coordinate system and PWM modulation to achieve compensation current injection. Specifically, the total compensation current reference... and the actual output current of the inverter Perform Clarke transform to obtain the reference current and feedback current in αβ coordinates, and construct the current error: ;

[0073] The PR current controller adjusts for this error and, in conjunction with the PCC voltage feedforward, generates a reference for the inverter output voltage. Its control relationship can be expressed as: ;

[0074] in, This represents the component of the PCC voltage in the αβ coordinate system, which serves as a voltage feedforward term to offset the influence of the grid voltage on the inverter current control. This refers to a multi-resonant PR current controller, used to improve current tracking capability at a specified frequency. The PR controller belongs to the execution layer of the grid-connected inverter, and its function is to ensure that the actual output current of the inverter tracks the total compensation current reference generated by the preceding stage. The preceding harmonic PI controller belongs to the harmonic mitigation decision layer, and its function is to determine how much compensation is needed for each target harmonic based on the residual target harmonics on the grid side. The two have different functions and cannot be simply substituted for each other.

[0075] Finally, inverse transformation to And based on the DC bus voltage Generate PWM modulation wave: ;

[0076] PWM modulation wave The input PWM generator module produces the switching drive signal for the three-phase grid-connected inverter. The grid-connected inverter injects compensation current into the PCC via an L filter, reducing residual target harmonics on the grid side. Through this process, the present invention achieves a complete control flow of "real-time extraction of target harmonic state—dynamic priority judgment—asynchronous update of some PI channels—synthesis of multi-target compensation current—execution of grid-connected inverter current tracking." Compared with the method of updating all target harmonic PI channels in each control cycle, this method reduces the actual number of PI updates performed in each control cycle while maintaining the ability to simultaneously compensate for multiple target harmonics. Compared with simple feedforward inversion compensation, this method utilizes residual harmonics on the grid side to form a closed-loop correction, which can improve the compensation deviation caused by inverter tracking error, PWM delay, filter phase lag, and parameter mismatch, making it more suitable for practical grid-connected inverter harmonic mitigation scenarios.

[0077] This embodiment provides a multi-harmonic compensation control system for a grid-connected inverter. This system, as the core decision-making unit of the grid-connected inverter control system, is used to execute the multi-harmonic compensation control method described above. In terms of specific hardware implementation, this system can be embodied as an embedded control platform composed of a digital signal processor, a field-programmable gate array, a microcontroller, or a combination thereof. It achieves the coordinated operation of the following functional modules by running program instructions stored in memory or configuring dedicated hardware logic circuits.

[0078] Specifically, the multi-harmonic compensation control system includes a state acquisition module, a priority evaluation module, an asynchronous update module, and a reference synthesis module. The state acquisition module is configured to acquire the multi-dimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle. At the data flow level, this module is typically connected to the sampling circuit of the grid-connected inverter, receiving raw signals such as the three-phase current on the grid side and the voltage at the grid connection point. Internally, it integrates signal processing algorithm units, such as a sliding discrete Fourier transform unit and a synchronous coordinate transformation unit, capable of extracting in real time from the raw sampled data the amplitude state reflecting the urgency of harmonic mitigation, the amplitude change trend state, and the instantaneous components used to generate compensation commands. It should be understood that the specific implementation of the state acquisition module is not limited to a specific algorithm chip or code segment, as long as it can parse the preset multi-dimensional state information from the electrical signals.

[0079] The priority evaluation module is configured to assess the update priority of harmonic compensation control channels corresponding to each target harmonic based on multi-dimensional state characteristics. This module is connected to the data output of the state acquisition module and receives real-time state data of each target harmonic. Internally, it has a pre-defined priority calculation model, such as a linear weighted fusion algorithm or other equivalent evaluation functions. By mapping state variables such as amplitude, trend, and waiting time to comparable numerical indicators, this module can dynamically generate a priority sequence reflecting the strength of update needs for each channel within each control cycle. This evaluation mechanism enables the system to intelligently identify the channel that most needs compensation parameter correction based on the real-time distribution characteristics of power grid harmonics, rather than mechanically polling all channels.

[0080] The asynchronous update module is configured to select at least one target harmonic from the target harmonic set as the update object based on update priority, execute compensation instructions to update the harmonic compensation control channel corresponding to the update object, and maintain the historical compensation instructions of the harmonic compensation control channel corresponding to the unselected target harmonic. This is a key functional unit that distinguishes the system in this embodiment from traditional fully parallel control systems. This module internally includes a selection logic unit, a flag generator, and an instruction cache register group. The selection logic unit evaluates the results of the priority evaluation module output to determine the channel number that needs to be activated for calculation in the current cycle; the flag generator generates the corresponding update enable signal accordingly; and the instruction cache register group is responsible for storing the historical compensation instructions for each channel. When a channel is not selected, the module directly reads the historical value in the register as the current output, thereby skipping the time-consuming controller calculation step. This hardware-level data retention and selective refresh mechanism fundamentally ensures the execution efficiency of the asynchronous scheduling strategy, avoids the additional overhead caused by software branch judgments, and also ensures the continuity of the output of unselected channels.

[0081] The reference synthesis module is configured to synthesize a total compensation current reference based on the current compensation commands of each harmonic compensation control channel to drive the grid-connected inverter to output the compensation current. This module aggregates all channel outputs from the asynchronous update module, regardless of whether these outputs have just been updated in real-time or use historical values ​​from the previous cycle. Internally, it typically includes a coordinate inverse transformation unit and a vector superposition unit, which convert the compensation components of each channel in the synchronous rotating coordinate system back to the stationary coordinate system and perform algebraic summation to generate the final total compensation current reference signal. This signal is then sent to the underlying current tracking controller of the grid-connected inverter, such as a multi-resonance proportional resonant controller, to drive the power devices. Through this hierarchical architecture, the reference synthesis module achieves seamless integration between upper-level asynchronous decision-making and lower-level continuous execution, ensuring the integrity of the multi-harmonic compensation function.

[0082] Through the coordinated operation of the aforementioned modules, the multi-harmonic compensation control system provided in this embodiment transforms the abstract asynchronous scheduling method into a concrete functional architecture. This modular design not only clearly defines the technical boundaries of each part, facilitating feature comparison in infringement determination, but also possesses excellent scalability. For example, when it is necessary to add new target harmonics or adjust the priority evaluation strategy, only the internal configuration or parameters of the corresponding module need to be modified, without reconstructing the entire control system. Simultaneously, because the asynchronous update module effectively reduces the computational density per unit time, the system can support a larger number of harmonic mitigation channels on a hardware platform with equivalent computing power, or reduce the processor clock speed requirement while maintaining the same mitigation capability, thereby significantly improving the product's cost-effectiveness and engineering adaptability.

[0083] like Figure 4 As shown, this embodiment provides a grid-connected inverter, which includes an inverter main circuit and a multi-harmonic compensation control system. The multi-harmonic compensation control system is connected to the inverter main circuit and is used to generate a drive signal to control the inverter main circuit to output a compensation current.

[0084] Specifically, the inverter main circuit is the physical entity that performs power conversion and output, and its topology can be flexibly configured according to the needs of the actual application scenario. For example, the inverter main circuit can adopt a two-level or three-level voltage source inverter topology, including power switching bridge arms composed of insulated-gate bipolar transistors (IGBTs) or silicon carbide metal-oxide-semiconductor field-effect transistors (SiC MOSFETs), DC bus support capacitors, and AC-side filter inductors. In a preferred embodiment, the AC-side filter can be an L-type filter or an LCL-type filter to filter out high-frequency ripple near the switching frequency, ensuring that the current injected into the grid meets power quality standards. It should be understood that although this embodiment uses a common three-phase full-bridge topology as an example, in other embodiments, the inverter main circuit can also adopt a cascaded H-bridge, modular multilevel, or other suitable power electronic conversion topology, as long as it has the ability to control output compensation current.

[0085] As the core decision-making unit of the grid-connected inverter, the multi-harmonic compensation control system has had its specific functional modules and data flow logic described in detail. In this embodiment, the system typically uses a digital signal processor (DSP), field-programmable gate array (FPGA), or microcontroller (MCU) as its carrier, and implements functions such as state acquisition, priority evaluation, asynchronous update, and reference synthesis by running program instructions stored in memory. In practical engineering applications, the multi-harmonic compensation control system and the inverter main circuit are physically connected through a sampling conditioning circuit and a drive isolation circuit. On the one hand, the sampling conditioning circuit collects analog signals such as the three-phase current, grid connection point voltage, and DC bus voltage on the AC side of the inverter main circuit in real time, and transmits them to the multi-harmonic compensation control system after analog-to-digital conversion, serving as feedback input for multi-dimensional state feature extraction and closed-loop regulation. On the other hand, the multi-harmonic compensation control system generates a pulse width modulation signal based on its internal algorithm, which is amplified and electrically isolated by the drive isolation circuit before being sent to the gate of the power switching device in the inverter main circuit, thereby precisely controlling the output amplitude and phase of the compensation current.

[0086] Through the deep integration of the aforementioned hardware architecture and control strategy, the grid-connected inverter provided in this embodiment possesses condition-driven asynchronous harmonic mitigation capabilities. Compared to traditional inverter products employing a fully parallel update strategy, this grid-connected inverter, when facing multiple harmonic pollution conditions, can dynamically allocate computing resources based on the real-time status of each harmonic, significantly reducing the computational load on the control system without increasing hardware costs or processor clock speed. This improvement in computational efficiency not only reserves more computing power margin for the system to support advanced protection, communication, or optimization algorithms, but also effectively avoids the risk of sampling delay or control instability caused by controller overload. Simultaneously, thanks to the synergistic cooperation between the asynchronous update mechanism and the underlying multi-resonance proportional resonant controller, this grid-connected inverter can maintain high-precision tracking and suppression of target harmonics while significantly reducing redundant calculations, ensuring that the total harmonic distortion (THD) of the grid-connected current continuously meets relevant standard requirements, thereby improving the overall power quality management performance and market application value of the unit.

[0087] To further verify the effectiveness and engineering applicability of the technical solution of this application, this embodiment provides a specific application scenario and effect verification example. It should be understood that the following simulation parameters and comparison results are only used to explain and verify the technical principles of this application and do not constitute a limitation on the scope of protection of this application. In practical applications, the relevant parameters can be adjusted according to specific working conditions.

[0088] In this verification example, a multi-objective harmonic mitigation simulation model of a grid-connected inverter with active filtering function was built. This embodiment uses MATLAB / Simulink to build the multi-objective harmonic mitigation model of a grid-connected inverter with active filtering function. The system mainly consists of a three-phase power grid, line impedance, nonlinear load, grid-connected inverter, and L-type filter. The simulation environment parameters are set as follows: the fundamental frequency of the power grid is 50Hz, the controller sampling and control period Ts is set to 25μs, and the sliding window length N of the sliding discrete Fourier transform (SDFT) is set to 800 points, corresponding to one complete fundamental cycle. The target harmonic set contains four target harmonics, namely the 5th, 7th, 11th, and 13th harmonics. In the condition-driven asynchronous update mode, only the target harmonic channel with the highest comprehensive priority is selected for compensation command update in each control cycle, i.e., the number of update objects Mu=1. For comparison, three operating conditions were set for testing: no compensation mode, fully parallel update mode (updating all four target harmonic channels in each control cycle), and the condition-driven asynchronous update mode proposed in this application.

[0089] like Figure 5 The figure shows a comparison of the steady-state amplitudes of the target harmonics under different control modes. As can be seen from the figure, in the uncompensated mode, the amplitude of the 5th harmonic is approximately 1.65A, the amplitude of the 7th harmonic is approximately 0.6A, and the harmonic amplitudes under the 11th and 13th harmonics are also at a high level, indicating severe harmonic distortion in the grid current. When the fully parallel update mode is adopted, the amplitudes of all harmonics are significantly suppressed, with the 5th harmonic reduced to approximately 0.2A, the 7th harmonic reduced to approximately 0.25A, and the 11th and 13th harmonics both below 0.1A, demonstrating the effectiveness of multi-harmonic compensation control. It is worth noting that when using the condition-driven asynchronous update mode of this application, the steady-state amplitudes of each harmonic are very close to those of the fully parallel update mode, with the 5th harmonic also maintained at approximately 0.2A, the 7th harmonic at approximately 0.3A, and higher harmonics also remaining at extremely low levels. This result intuitively demonstrates that although the asynchronous update mode only updates one-quarter of the compensation channels in each control cycle, the system can still maintain a steady-state harmonic mitigation capability comparable to that of the fully parallel update because the unselected channels retain the valid compensation instructions from the previous cycle, and the underlying multi-resonance proportional resonant (PR) controller can continuously and accurately track the synthesized total compensation current reference.

[0090] like Figure 6As shown, the performance metrics of fully parallel updates and condition-driven asynchronous updates are further compared. Regarding the percentage of PI channel updates, the fully parallel update mode is defined as 100% as the baseline, while the condition-driven asynchronous update mode accounts for only 25%. This means that within the same time span, the controller's compensation instruction computation is reduced by 75%. This significant computational saving directly stems from the priority evaluation and selective update mechanism based on multi-dimensional state characteristics, avoiding ineffective repetitive computation of low-demand channels when the harmonic state is stable. Meanwhile, in terms of governance effect retention, the condition-driven asynchronous update mode achieves 98.65% of the full parallel update mode. This demonstrates that the significant reduction in computational load does not come at the expense of governance performance, but rather achieves an excellent balance between efficiency and effectiveness through intelligent resource allocation. This non-linear high efficiency ratio is the core advantage of this application, distinguishing it from traditional time-sharing polling or simple downsampling strategies.

[0091] like Figure 7 As shown, the above conclusions are further verified from the perspective of the cumulative number of PI channel updates. Within the same simulation runtime, the cumulative number of updates in the fully parallel update mode reaches 76,800, while the condition-driven asynchronous update mode only reaches 19,200. For embedded controllers, this reduction of 57,600 operations means that a significant amount of processor time slices can be freed up for executing more complex protection logic, communication protocols, or optimization algorithms, or allowing for the support of a larger number of harmonic mitigation channels on hardware with equivalent computing power. In summary, this verification example fully demonstrates that the multi-harmonic compensation control method provided in this application can significantly improve the utilization rate of computing resources in the control system while ensuring the effectiveness of power quality mitigation, and has good engineering application prospects and promotional value.

[0092] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A multi-harmonic compensation control method for a grid-connected inverter, characterized in that, include: Obtain the multidimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle; Based on the multidimensional state characteristics, the update priority of the harmonic compensation control channel corresponding to each target harmonic is evaluated. According to the update priority, at least one target harmonic is selected from the target harmonic set as the update object, and the compensation instruction is updated for the harmonic compensation control channel corresponding to the update object, while the historical compensation instructions for the harmonic compensation control channel corresponding to the unselected target harmonic are maintained. Based on the current compensation command of each harmonic compensation control channel, a total compensation current reference is synthesized to drive the grid-connected inverter to output compensation current.

2. The method according to claim 1, characterized in that, The multidimensional state features include: Amplitude state, used to characterize the steady-state amplitude of the target harmonic in the current control cycle; The amplitude change trend is used to characterize the amplitude fluctuation of the target harmonic between adjacent control cycles; The waiting update time status is used to characterize the number of control cycles that have elapsed since the harmonic compensation control channel corresponding to the target harmonic was last selected to execute the compensation command update.

3. The method according to claim 2, characterized in that, The step of evaluating the update priority of the harmonic compensation control channel corresponding to each target harmonic based on the multidimensional state characteristics includes: The amplitude state, the amplitude change trend state, and the waiting update time state are multiplied by their respective weighting coefficients and then linearly weighted and fused to obtain a comprehensive priority score for each target harmonic. The update priority is determined based on the comprehensive priority score.

4. The method according to claim 3, characterized in that, The formula for calculating the comprehensive priority score is as follows: ; in, Indicates the first individual harmonics In the Comprehensive priority score for each control cycle; Indicates the first Weighting coefficients for each target harmonic; , , These represent the weighting coefficients for amplitude state, amplitude change trend state, and waiting time for update state, respectively. The amplitude state term is calculated as the square of the ratio of the harmonic amplitude estimate to the normalized reference value for the current control cycle. The state term representing the trend of amplitude change is calculated as the square of the ratio of the absolute value of the difference between the estimated harmonic amplitude of the current control cycle and the previous control cycle to the normalized reference value. This represents the waiting time status item, which is calculated as the ratio of the waiting counter value of the current control cycle to the waiting time normalization parameter.

5. The method according to claim 4, characterized in that, The step of selecting at least one target harmonic from the target harmonic set as the update object according to the update priority, executing compensation instruction updates on the harmonic compensation control channel corresponding to the update object, and maintaining the historical compensation instructions of the harmonic compensation control channel corresponding to the unselected target harmonic includes: The top Mu target harmonics with the highest comprehensive priority scores are selected to form an update set, where Mu is an integer greater than or equal to 1; For a target harmonic belonging to the update set, a first update flag is generated, the compensation command of its corresponding harmonic compensation control channel is recalculated, and its waiting counter is cleared. For target harmonics that do not belong to the update set, a second update flag is generated, the compensation instruction of the corresponding harmonic compensation control channel in the previous control cycle is maintained, and its waiting counter is incremented by one.

6. The method according to claim 1, characterized in that, The acquisition of the multidimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle includes: The instantaneous components and amplitudes of each target harmonic are extracted using the sliding discrete Fourier transform. The instantaneous components of each target harmonic are transformed into a synchronous coordinate system rotating at the corresponding target harmonic angular velocity to obtain a DC error signal, which is used to generate the compensation command.

7. The method according to claim 6, characterized in that, The recursive update formula for the sliding discrete Fourier transform is as follows: ; in, and They represent the first individual harmonics Complex states in the current and previous control cycles; Indicates the corresponding rotation factor; and These represent the three-phase current sampling values ​​that are currently entering and exiting the sliding window, respectively. The number of sampling points within the sliding window; the formula for constructing the rotation angle of the synchronous coordinate system is: ; in, Indicates target harmonics The angle of the synchronous rotating coordinate system; This represents the rotation direction coefficient, with 1 for positive sequence harmonics and -1 for negative sequence harmonics; It represents the synchronous phase angle of the fundamental positive sequence voltage of the power grid.

8. The method according to claim 1, characterized in that, The process of synthesizing a total compensation current reference based on the current compensation commands of each harmonic compensation control channel to drive the grid-connected inverter to output compensation current includes: The current compensation commands of each harmonic compensation control channel are converted to the three-phase stationary coordinate system and superimposed to obtain the total compensation current reference. The error between the total compensation current reference and the actual output current of the grid-connected inverter is input into the multi-resonance proportional resonant controller for adjustment, and combined with the grid connection point voltage feedforward to generate the inverter output voltage reference. A pulse width modulation signal is generated based on the inverter output voltage reference to drive the grid-connected inverter to output the compensation current.

9. A multi-harmonic compensation control system for a grid-connected inverter, characterized in that, include: The state acquisition module is configured to acquire the multi-dimensional state characteristics of each target harmonic in the target harmonic set during the current control cycle. The priority evaluation module is configured to evaluate the update priority of the harmonic compensation control channel corresponding to each target harmonic based on the multi-dimensional state characteristics. The asynchronous update module is configured to select at least one target harmonic as an update object from the target harmonic set according to the update priority, execute compensation instruction update on the harmonic compensation control channel corresponding to the update object, and maintain the historical compensation instructions of the harmonic compensation control channel corresponding to the unselected target harmonic. The reference synthesis module is configured to synthesize a total compensation current reference based on the current compensation command of each harmonic compensation control channel, so as to drive the grid-connected inverter to output compensation current.

10. A grid-connected inverter, characterized in that, include: Inverter main circuit; as well as The multi-harmonic compensation control system as described in claim 9 is connected to the inverter main circuit and is used to generate a drive signal to control the output compensation current of the inverter main circuit.