Reactive compensation method and system, electronic equipment and storage medium

By calculating the power factor of the three-phase power grid in real time, and switching from a separate compensation strategy to a common compensation strategy, the problems of slow reactive power compensation and insufficient accuracy of the three-phase power grid are solved, and faster and more accurate reactive power compensation is achieved.

CN121566535APending Publication Date: 2026-02-24DELIXI ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511968154.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

In existing reactive power compensation systems, the reactive power compensation speed of three-phase power grids is slow and it is impossible to accurately compensate for a single phase, resulting in poor compensation effect.

Method used

By calculating the power factor of the three-phase power grid in real time, a separate compensation strategy is adopted to first put in matching separate compensation capacitors. When the three phases are synchronized, the strategy is switched to a common compensation strategy, which uses common compensation capacitors for reactive power compensation. The compensation logic is optimized to improve speed and accuracy.

Benefits of technology

It improves the reactive power compensation speed, optimizes the reactive power compensation effect of three-phase power grids, and solves the problem of separate compensation caused by the time difference of three-phase power factor changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121566535A_ABST
    Figure CN121566535A_ABST
Patent Text Reader

Abstract

The invention provides a reactive compensation method and system, electronic equipment and a storage medium, and relates to the technical field of reactive compensation, and the method comprises the steps: calculating the power factor of each phase in a power grid, and obtaining a three-phase power factor; calculating the duration when the power factor of each phase is less than a preset input threshold power factor; when the duration time reaches a preset input delay time, searching a target matching split compensation type capacitor according to a split compensation strategy, and inputting the target matching split compensation type capacitor to perform reactive compensation; respectively recording the moment when the target matching separate compensation type capacitor is put into each phase and the current power factor to obtain a three-phase separate compensation input moment and a three-phase previous power factor; and when the maximum input time difference in the three-phase separate compensation input moments is smaller than the preset proportion of the preset input delay time, switching to a common compensation strategy, taking the latest moment in the three-phase separate compensation input moments as a starting point, and searching a target matching common compensation type capacitor for reactive compensation based on the three-phase pre-power factor after the preset input delay time is up. Therefore, the reactive compensation effect is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of reactive power compensation technology for power grids, and in particular to a reactive power compensation method, system, electronic device and storage medium. Background Technology

[0002] See Figure 1 , Figure 1 This is a schematic diagram of a reactive power compensation system, such as... Figure 1 As shown, a reactive power compensation system typically includes a reactive power compensation controller, multiple common-type capacitors, and multiple separate-type capacitors (e.g., common-type capacitor 1, common-type capacitor 2, separate-type capacitor N-1, and separate-type capacitor N). The reactive power compensation controller is used to collect the voltage signal (i.e., A-phase voltage (i.e., the voltage between UA and UN), B-phase voltage (i.e., the voltage between UB and UN), C-phase voltage (i.e., the voltage between UC and UN), A-phase voltage UA, B-phase voltage UB, C-phase voltage UC, and N-phase voltage UN) and current signal of each phase in the three-phase power grid. The current signal can be obtained by collecting the A-phase current (IA+ and IA-), B-phase current (IB+ and IB-), and C-phase current (IC+ and IC-) through a primary current transformer. The reactive power compensation controller calculates the power factor of each phase based on the voltage and current signals of each phase, compares the power factor of each phase with the preset power factor threshold set by the user, and issues an input command based on the comparison result through the communication interface (e.g., RJ485-A, RJ485-B) to control multiple common compensation capacitors and multiple separate compensation capacitors to be connected to the three-phase power grid for reactive power compensation.

[0003] See Figure 2 , Figure 2 The topology diagram of a common-complement capacitor is as follows: Figure 2 As shown, a common-compensation capacitor is a three-phase, three-wire capacitor capable of simultaneously compensating for reactive power in a three-phase power grid. Internally, the common-compensation capacitor includes two relays and a three-phase capacitor bank. Each time the common-compensation capacitor is connected to the three-phase power grid for reactive power compensation, both relays are energized, and the three-phase capacitor bank is electrically connected to the three-phase power grid, thus achieving the purpose of simultaneously compensating for reactive power in the three-phase power grid. See also... Figure 3 , Figure 3 The topology diagram of a compensating capacitor is shown below. Figure 3As shown, a split-compensation capacitor is a three-phase four-wire capacitor. It can provide reactive power compensation for each phase of a three-phase power grid individually, or simultaneously for all three phases. Internally, the split-compensation capacitor includes three relays and three independent single-phase capacitors. These three independent single-phase capacitors can respectively compensate for the reactive power of each phase voltage in the three-phase power grid. For example, controlling the relay of the corresponding phase to activate allows that single-phase capacitor to compensate for the reactive power of that phase in the three-phase power grid across all N phases. Alternatively, the split-compensation capacitor can simultaneously control the activation of all three phase relays to achieve reactive power compensation for the entire three-phase power grid.

[0004] In reactive power compensation systems, to effectively compensate for the power factor on the grid side, multiple common-compensation capacitors and individual-compensation capacitors of different capacities are typically configured simultaneously. The compensation strategy involves first using common-compensation capacitors for three-phase synchronous compensation, and then using individual-compensation capacitors to compensate a single phase of the three-phase grid individually. Because the reactive power changes in each phase of the three-phase grid are not completely synchronized and there is a time difference, but the reactive power compensation controller has high time accuracy, it can accurately collect the time difference between each phase when calculating the power factor for each phase of the three-phase grid. When all three phases have significant deficits, when executing the compensation strategy, based on the time difference in the three-phase power factor changes, a single-phase capacitor from the individual-compensation capacitors will be preferentially connected to the corresponding phase. Based on this compensation strategy, all individual-compensation capacitors in the entire system will be connected to the grid before using common-compensation capacitors for reactive power compensation. This reactive power compensation method has two drawbacks. First, it reduces the speed of reactive power compensation from three-phase synchronous compensation to single-phase individual compensation. Second, after all the individual compensation capacitors are connected to the grid, when only the common compensation capacitor remains, it is impossible to accurately compensate a single phase of the grid, resulting in poor compensation performance. Therefore, optimizing the reactive power compensation effect for three-phase power grids is an important problem that needs to be solved. Summary of the Invention

[0005] This application provides a reactive power compensation method, system, electronic device, and storage medium to optimize the reactive power compensation effect of a three-phase power grid.

[0006] Firstly, this application provides a reactive power compensation method, wherein the reactive power compensation method applies a reactive power compensation system, the reactive power compensation system including multiple common-compensation capacitors and multiple separate-compensation capacitors, and the reactive power compensation method includes: The power factor of each phase in the three-phase power grid is calculated in real time to obtain the three-phase power factor, which corresponds one-to-one with the three-phase voltage in the three-phase power grid; the three-phase power factor includes: A-phase power factor, B-phase power factor and C-phase power factor; When the target phase power factor is less than the preset input threshold power factor, timing begins, and the duration for which the target phase power factor is less than the preset input threshold power factor is calculated to obtain the target delay time; wherein, the target phase power factor is any one of the three phase power factors; When the target delay time reaches the preset input delay time, according to the split compensation strategy, a target matching split compensation capacitor is found from the plurality of split compensation capacitors and put into the phase voltage of the three-phase power grid corresponding to the target phase power factor for reactive power compensation; and the time when the target matching split compensation capacitor is put into the phase voltage of each phase in the three-phase power grid and the current power factor of each phase voltage are recorded respectively to obtain the three-phase split compensation input time and the current power factor of the three phases; Based on the three-phase separate compensation activation times, the maximum activation time difference is calculated. When the maximum activation time difference is less than a preset proportion of the preset activation delay time, the separate compensation strategy is switched to a common compensation strategy. Starting from the latest activation time among the three-phase separate compensation times, after the preset activation delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, a target matching common compensation capacitor is found from the plurality of common compensation capacitors and activated into the three-phase power grid for reactive power compensation.

[0007] In one possible design, a conversion flag is activated when the split compensation strategy is switched to the co-compensation strategy; Starting from the latest time among the three-phase power factor activation times, if any one of the three-phase power factors is greater than or equal to the preset activation threshold power factor before the preset activation delay time arrives, the conversion flag is cleared, and the common compensation strategy is switched to the separate compensation strategy. When the preset activation delay time arrives, according to the separate compensation strategy, the target matching separate compensation capacitor is found from the plurality of separate compensation capacitors and activated to the phase voltage corresponding to the three-phase power factor that is less than the preset activation threshold power factor for reactive power compensation.

[0008] In one possible design, starting from the latest time among the three-phase separate compensation activation times, after the preset activation delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, the target matching common compensation capacitor is searched from the plurality of common compensation capacitors. If the target matching common compensation capacitor is found, the target matching common compensation capacitor is connected to the three-phase power grid for compensation; If the target matching common compensation capacitor is not found, the reactive power capacity to be compensated for each phase in the three-phase power grid is calculated according to the three-phase power factor. Based on the reactive power capacity to be compensated for each phase in the three-phase power grid, the target matching sub-compensation capacitor is searched from the plurality of sub-compensation capacitors. If the target matching sub-compensation capacitor is found, the conversion flag is cleared, the common compensation strategy is switched to the sub-compensation strategy, and the target matching sub-compensation capacitor is put into the corresponding phase voltage in the three-phase power grid for reactive power compensation.

[0009] In one possible design, the conversion failure count is incremented by one when the conversion flag is cleared; If the number of conversion failures exceeds a preset number within a preset time period, then starting from the moment the conversion identifier is cleared, the separate compensation strategy and the co-compensation strategy will not switch before the preset lock time is reached; after the preset lock time is reached, the separate compensation strategy and the co-compensation strategy will switch.

[0010] In one possible design, if the number of conversion failures is less than or equal to the preset number, and if the target matching common-complement capacitor is connected to the three-phase power grid, then the number of conversion failures is set to zero, and the moment when the conversion flag is cleared is removed.

[0011] In one possible design, if the target phase power factor is greater than or equal to the preset power factor threshold within the target delay time, the timing is reset to zero; if the target phase power factor is again less than the preset power factor threshold, the timing restarts. When the target delay time reaches the preset input delay time, according to the distributed compensation strategy, a target matching distributed compensation capacitor is found from the plurality of distributed compensation capacitors and put into the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation, including: Obtain the maximum target phase power factor within the target delay time to obtain the maximum target phase power factor; When the target delay time reaches the preset input delay time, the reactive power capacity to be compensated is calculated based on the maximum target phase power factor. The target matching capacitor is identified from the plurality of sub-compensating capacitors whose capacitance is less than the reactive power to be compensated and which is the largest capacitance among the plurality of sub-compensating capacitors. The target matching compensation capacitor is connected to the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation.

[0012] In one possible design, if the target delay time of each phase in the three-phase power grid simultaneously reaches the preset input delay time, after the preset input delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, a target matching common compensation capacitor is found from the plurality of common compensation capacitors and put into the three-phase power grid for reactive power compensation. The step of, after the preset input delay time has elapsed, searching for a target matching common-compensation capacitor from the plurality of common-compensation capacitors according to the common-compensation strategy and based on the current power factor of the three-phase grid, and inputting it into the three-phase grid for reactive power compensation, includes: After the preset input delay time is reached, the maximum phase power factor is obtained based on the three phase power factors. Calculate the total reactive power capacity based on the maximum phase power factor; The target matching common-complementary capacitor is identified from the plurality of common-complementary capacitors whose capacitance is less than the total reactive power capacity and is the largest among the plurality of common-complementary capacitors. The target matching common-complement capacitor is connected to the three-phase power grid for reactive power compensation.

[0013] Secondly, this application provides a reactive power compensation system, which includes: a plurality of common-compensation capacitors, a plurality of separate-compensation capacitor control circuits, and a reactive power compensation controller as described in the first aspect. The reactive power compensation controller is used to implement the steps of the method described in the first aspect.

[0014] Thirdly, this application provides an electronic device, including: a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that the processor executes the program to implement the steps of the method described in the first aspect.

[0015] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0016] The beneficial effects of the embodiments of this application are as follows: In this embodiment, the power factor of each phase in the three-phase power grid is calculated in real time to obtain the three-phase power factor. Any one of the three-phase power factors is compared with a preset threshold power factor. When the target phase power factor is less than the preset threshold power factor, timing begins. The duration for which the target phase power factor is less than the preset threshold power factor is calculated to obtain the target delay time. When the target delay time reaches the preset delay time, a target matching capacitor is found from multiple matching capacitors according to the distributed compensation strategy and connected to the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation. Simultaneously... Record the time when the target matching split-type capacitor is connected to the voltage of each phase in the three-phase power grid and the current power factor of each phase voltage to obtain the three-phase split-type capacitor connection time and the current power factor of the three phases. Based on the three-phase split-type capacitor connection time, calculate the maximum connection time difference. When the maximum connection time difference is less than a preset proportion of the preset connection delay time, switch the split-type compensation strategy to the common-type compensation strategy. Taking the latest time among the three-phase split-type capacitor connection times as the starting point, after the preset connection delay time is reached, according to the common-type compensation strategy, based on the current power factor of the three phases, find the target matching common-type capacitor from multiple common-type capacitors and connect it to the three-phase power grid for reactive power compensation. This application first performs reactive power compensation on each phase according to the separate compensation strategy. If the time difference between the activation of the three-phase separate compensation is small, it is considered that the three phases are synchronized. Then, the separate compensation strategy is switched to the common compensation strategy, and reactive power compensation is performed according to the common compensation strategy. This can solve the problem in the prior art that when the time difference of the three-phase power factor changes causes continuous use of separate compensation capacitors for reactive power compensation, and when all separate compensation capacitors are put into the grid, only common compensation capacitors remain in the system, it is impossible to accurately compensate a single phase in the grid. The reactive power compensation logic is adjusted to common compensation priority, which can improve the reactive power compensation speed and optimize the reactive power compensation effect of the three-phase grid. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.

[0018] Figure 1 This is a schematic diagram of a reactive power compensation system. Figure 2 This is the topology diagram of a common-complement capacitor. Figure 3 This is the topology diagram of a compensating capacitor; Figure 4 A flowchart illustrating the first reactive power compensation method provided in this application; Figure 5A flowchart of a compensation strategy provided in this application embodiment; Figure 6 A flowchart illustrating a co-compensation strategy provided in this application embodiment; Figure 7 A flowchart of a second reactive power compensation method provided in an embodiment of this application; Figure 8 A flowchart of the third reactive power compensation method provided in the embodiments of this application; Figure 9 The flowchart illustrates the fourth reactive power compensation method provided in this application embodiment. Detailed Implementation

[0019] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c alone can mean: a alone, b alone, c alone, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0020] The terms “center,” “longitudinal,” “lateral,” “up,” “down,” “left,” “right,” “front,” and “rear,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0021] The terms "connected" and "connected" should be interpreted broadly. For example, in circuit structures, "connected" or "connected" can refer not only to physical connections but also to electrical or signal connections. This could be a direct connection (physical connection) or an indirect connection via at least one intermediate component, as long as the circuit is connected. It could also refer to the internal connection between two components. Similarly, a signal connection can refer to a connection via a circuit or a medium, such as radio waves. Those skilled in the art will understand the specific meaning of these terms in this application based on the specific circumstances.

[0022] To optimize the reactive power compensation effect of a three-phase power grid, this application provides a reactive power compensation method. This method is applied to a reactive power compensation system, which includes multiple common-compensation capacitors and multiple individual-compensation capacitors. See [link to relevant documentation] Figure 4 , Figure 4 A flowchart of the first reactive power compensation method provided in this application is shown below. Figure 4 As shown, the method includes: S1 calculates the power factor of each phase in the three-phase power grid in real time to obtain the three-phase power factor. The three-phase power factor corresponds one-to-one with the three-phase voltage in the three-phase power grid. The three-phase power factor includes: A-phase power factor, B-phase power factor and C-phase power factor.

[0023] See Figure 1 A reactive power compensation system typically includes a reactive power compensation controller, multiple common-compensation capacitors, and multiple individual-compensation capacitors. The reactive power compensation controller is used to acquire the voltage and current signals of each phase in the three-phase power grid in real time. Based on the voltage signal U and current signal I of each phase, it calculates the power factor of each phase in real time, obtaining the three-phase power factor, which includes the A-phase power factor, B-phase power factor, and C-phase power factor. The calculation of the power factor is an existing technology. For example, based on the voltage signal U and current signal I, the apparent power S can be calculated, i.e., S = U × I; the active power P can also be calculated, i.e., P = U × I × cosφ, where φ is the phase angle of the current phase; and the reactive power Q can also be calculated, i.e., Q = U × I × sinφ, where φ is the phase angle of the current phase.

[0024] The three-phase voltages in a three-phase power grid are phase A voltage, phase B voltage, and phase C voltage. The three-phase power factor corresponds one-to-one with the three-phase voltages in the three-phase power grid, that is, the phase A power factor corresponds to the phase A voltage, the phase B power factor corresponds to the phase B voltage, and the phase C power factor corresponds to the phase C voltage.

[0025] S2, when the target phase power factor is less than the preset input threshold power factor, start timing, calculate the duration for which the target phase power factor is less than the preset input threshold power factor, and obtain the target delay time; where the target phase power factor is any one of the three phase power factors.

[0026] In a three-phase power grid, the power factor of each phase is calculated once, which is defined as one cycle. For each cycle, the power factor of each of the three phases needs to be compared with the preset threshold power factor. Based on the comparison result, it is determined whether that phase needs reactive power compensation. The preset threshold power factor is set by the user according to their needs.

[0027] For any one of the three-phase power factors (i.e., the target phase power factor), it is compared with a power factor that is less than a preset threshold. When the target phase power factor is less than the preset threshold power factor, timing begins, and the duration for which the target phase power factor is less than the preset threshold power factor is calculated to obtain the target delay time.

[0028] S3, when the target delay time reaches the preset input delay time, according to the split compensation strategy, find the target matching split compensation capacitor from multiple split compensation capacitors and put it into the phase voltage of the three-phase power grid corresponding to the target phase power factor for reactive power compensation; and record the time when the target matching split compensation capacitor is put into the phase voltage of each phase in the three-phase power grid and the current power factor of each phase voltage, so as to obtain the three-phase split compensation input time and the current power factor of the three phases.

[0029] The preset activation delay time is set by the user according to their needs. When the duration for which the target phase power factor is less than the preset activation threshold power factor (i.e., the target delay time) reaches the preset activation delay time, the target matching sub-compensation capacitor is selected from multiple sub-compensation capacitors according to the sub-compensation strategy, and the target matching sub-compensation capacitor is activated into the three-phase power grid to perform reactive power compensation for the phase voltage corresponding to the target phase power factor. For example, if the preset activation delay time is set to 10 seconds and the preset activation threshold power factor is set to 0.95, and the calculated power factor of phase A is 0.90, then phase A's power factor is less than the activation threshold power factor. When the duration for which phase A's power factor is less than the activation threshold power factor reaches 10 seconds, the target matching sub-compensation capacitor is selected from multiple sub-compensation capacitors according to the sub-compensation strategy, and the target matching sub-compensation capacitor is activated into phase A of the three-phase power grid to perform reactive power compensation.

[0030] When performing power factor calculation and reactive power compensation for the first time, there may be a time difference in the arrival time of the preset input delay time of each phase in the three-phase power grid. Therefore, the reactive power compensation method provided in this application requires first comparing each power factor in a cycle with the preset input threshold power factor. When it is less than the preset input threshold power factor and the duration reaches the preset input delay time, the target matching sub-compensation capacitor is first found from multiple sub-compensation capacitors according to the sub-compensation strategy, and the target matching sub-compensation capacitor is put into the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation.

[0031] At this point, it is also necessary to record the time when the target matching capacitor is connected to the voltage of each phase in the three-phase power grid and the current power factor of each phase voltage, so as to obtain the connection time of the three-phase capacitor and the current power factor of the three phases. For example, in one cycle, the power factor of phase A is compared with the preset threshold power factor. If the power factor of phase A is less than the preset threshold power factor and the duration reaches the preset delay time, reactive power compensation needs to be performed on phase A according to the distributed compensation strategy. The time Ta when the distributed compensation capacitor is put into phase A and the current power factor PFa of phase A are recorded. Similarly, the power factor of phase B is compared with the preset threshold power factor. If the power factor of phase B is less than the preset threshold power factor and the duration reaches the preset delay time, reactive power compensation needs to be performed on phase B according to the distributed compensation strategy. The time Tb when the distributed compensation capacitor is put into phase B and the current power factor PFb of phase B are recorded. Likewise, the power factor of phase C is compared with the preset threshold power factor. If the power factor of phase C is less than the preset threshold power factor and the duration reaches the preset delay time, reactive power compensation needs to be performed on phase C according to the distributed compensation strategy. The time Tc when the distributed compensation capacitor is put into phase C and the current power factor PFc of phase C are recorded.

[0032] By recording the times when each phase of the complementary capacitor is connected, the connection times of the three-phase complementary capacitors can be obtained (for example, the time when the complementary capacitor is connected to phase A is Ta, the time when the complementary capacitor is connected to phase B is Tb, and the time when the complementary capacitor is connected to phase C is Tc). By recording the power factor at the time when each phase of the complementary capacitor is connected, the current power factor of the three phases can be obtained (for example, the power factor of phase A when the complementary capacitor is connected to phase A is PFa, the power factor of phase B when the complementary capacitor is connected to phase B is PFb, and the power factor of phase C when the complementary capacitor is connected to phase C is PFc).

[0033] S4. Calculate the maximum input time difference based on the three-phase separate compensation input time. When the maximum input time difference is less than a preset proportion of the preset input delay time, switch the separate compensation strategy to the common compensation strategy. Starting from the latest time among the three-phase separate compensation input times, after the preset input delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, find the target matching common compensation capacitor from multiple common compensation capacitors and put it into the three-phase power grid for reactive power compensation.

[0034] Based on the three-phase compensation activation time, calculate the difference between the three-phase compensation activation times, and select the maximum value to obtain the maximum activation time difference ΔT. For example, based on Ta, Tb, and Tc, calculate the difference between Ta, Tb, and Tc to obtain the maximum activation time difference ΔT.

[0035] The preset ratio is set by the user according to their needs. When the maximum input time difference ΔT is less than the preset ratio of the preset input delay time, the separate compensation strategy will be switched to the joint compensation strategy. For example, if the preset input delay time is set to 10 seconds and the preset ratio is set to 20%, and the maximum input time difference ΔT is 1 second, then the maximum input time difference (i.e., 1 second) is less than the preset ratio (i.e., 20%) of the preset input delay time (i.e., 10 seconds). At this time, the separate compensation strategy will be switched to the joint compensation strategy.

[0036] For example, in one cycle, reactive power compensation has been performed sequentially on phases A, B, and C according to the separate compensation strategy. If the time difference between the moment when the separate compensation capacitor is put into phase A and the moment when the separate compensation capacitor is put into phase C is the maximum input time difference ΔT, and the maximum input time difference ΔT is less than the preset proportion of the preset input delay time, it is determined that the three phases are synchronized. At this time, the separate compensation strategy is switched to the common compensation strategy. Taking the latest moment among the three phase separate compensation input moments as the starting point (i.e., the moment when the separate compensation capacitor is put into phase C as the starting point), after the preset input delay time is reached, according to the common compensation strategy, based on the current power factors of the three phases (i.e., PFa, PFb, PFc), a target matching common compensation capacitor is found from multiple common compensation capacitors and put into the three-phase power grid for reactive power compensation.

[0037] In this embodiment, the power factor of each phase in the three-phase power grid is calculated in real time to obtain the three-phase power factor. Any one of the three-phase power factors is compared with a preset threshold power factor. When the target phase power factor is less than the preset threshold power factor, timing begins. The duration for which the target phase power factor is less than the preset threshold power factor is calculated to obtain the target delay time. When the target delay time reaches the preset delay time, a target matching capacitor is found from multiple matching capacitors according to the distributed compensation strategy and connected to the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation. Simultaneously... Record the time when the target matching split-type capacitor is connected to the voltage of each phase in the three-phase power grid and the current power factor of each phase voltage to obtain the three-phase split-type capacitor connection time and the current power factor of the three phases. Based on the three-phase split-type capacitor connection time, calculate the maximum connection time difference. When the maximum connection time difference is less than a preset proportion of the preset connection delay time, switch the split-type compensation strategy to the common-type compensation strategy. Taking the latest time among the three-phase split-type capacitor connection times as the starting point, after the preset connection delay time is reached, according to the common-type compensation strategy, based on the current power factor of the three phases, find the target matching common-type capacitor from multiple common-type capacitors and connect it to the three-phase power grid for reactive power compensation. This application first performs reactive power compensation on each phase according to the separate compensation strategy. If the time difference between the activation of the three-phase separate compensation is small, it is considered that the three phases are synchronized. Then, the separate compensation strategy is switched to the common compensation strategy, and reactive power compensation is performed according to the common compensation strategy. This can solve the problem in the prior art that when the time difference of the three-phase power factor changes causes continuous use of separate compensation capacitors for reactive power compensation, and when all separate compensation capacitors are put into the grid, only common compensation capacitors remain in the system, it is impossible to accurately compensate a single phase in the grid. The reactive power compensation logic is adjusted to common compensation priority, which can improve the reactive power compensation speed and optimize the reactive power compensation effect of the three-phase grid.

[0038] In one possible embodiment, when the separate compensation strategy is switched to the common compensation strategy, a conversion flag is activated; taking the latest time among the three-phase separate compensation activation times as the starting point, before the preset activation delay time arrives, if the power factor of any one of the three-phase power factors is greater than or equal to the preset activation threshold power factor, the conversion flag is cleared, and the common compensation strategy is switched to the separate compensation strategy; and when the preset activation delay time arrives, according to the separate compensation strategy, the target matching separate compensation capacitor is searched from multiple separate compensation capacitors and activated to the phase voltage corresponding to the three-phase power factor that is less than the preset activation threshold power factor for reactive power compensation.

[0039] When switching from a separate compensation strategy to a shared compensation strategy, a conversion flag needs to be activated simultaneously. During this period, the power factor of each phase in the three-phase power grid still needs to be calculated in real time. Taking the latest time among the three-phase separate compensation activation times as the starting point, before the preset activation delay time arrives, i.e. before the target matching shared compensation capacitor is activated into the three-phase power grid for reactive power compensation, if the power factor of any one of the three-phase power factors is greater than or equal to the preset activation threshold power factor, the conversion flag is cleared, and the conversion strategy is determined to be invalid. At this time, the shared compensation strategy is switched to a separate compensation strategy. As in the above embodiment, when the preset activation delay time arrives, according to the separate compensation strategy, the target matching separate compensation capacitor is searched from multiple separate compensation capacitors and activated into the phase voltage corresponding to the three-phase power factor that is less than the preset activation threshold power factor for reactive power compensation.

[0040] In one possible embodiment, step S4 above, which starts from the latest time among the three-phase separate compensation activation times, and after the preset activation delay time has elapsed, searches for a target matching common compensation capacitor from multiple common compensation capacitors based on the current power factor of the three phases according to the common compensation strategy, further includes: S41, if a target matching common compensation capacitor is found, the target matching common compensation capacitor is connected to the three-phase power grid for compensation.

[0041] If a target matching common-compensation capacitor can be found among multiple common-compensation capacitors, then the found target matching common-compensation capacitor will be connected to the three-phase power grid for compensation.

[0042] S42. If no target matching common compensation capacitor is found, calculate the reactive power capacity to be compensated for each phase in the three-phase power grid according to the three-phase power factor. Based on the reactive power capacity to be compensated for each phase in the three-phase power grid, search for the target matching sub-compensation capacitor from multiple sub-compensation capacitors. If the target matching sub-compensation capacitor is found, clear the conversion flag, switch the common compensation strategy to the sub-compensation strategy, and put the target matching sub-compensation capacitor into the corresponding phase voltage in the three-phase power grid for reactive power compensation.

[0043] If no matching common-compensation capacitor is found among multiple common-compensation capacitors, then a separate-compensation strategy must be adopted. Specifically, based on the three-phase power factor, the reactive power capacity to be compensated for each phase of the three-phase grid is calculated. Based on the reactive power capacity to be compensated for each phase of the three-phase grid, a matching separate-compensation capacitor is searched among multiple separate-compensation capacitors. If a matching separate-compensation capacitor is found, the conversion flag is cleared, and the conversion strategy is deemed invalid. The common-compensation strategy is switched to a separate-compensation strategy, and the matching separate-compensation capacitor is simultaneously connected to the corresponding phase voltage in the three-phase grid for reactive power compensation.

[0044] In one possible implementation, the conversion failure count is incremented by one when the conversion flag is cleared.

[0045] If the number of conversion failures exceeds the preset number within a preset time, the switching between the split compensation strategy and the co-compensation strategy will not occur until the preset lock time has elapsed, starting from the moment the conversion flag is cleared. After the preset lock time has elapsed, the switching between the split compensation strategy and the co-compensation strategy will occur.

[0046] The conversion failure is recorded as one instance from the start to the clearing of the conversion flag. When the conversion flag is cleared, the conversion failure count is incremented by one, and the time when the conversion flag is cleared is recorded.

[0047] If the number of conversion failures exceeds a preset number within a preset time period, starting from the moment the conversion flag is cleared, the separate compensation strategy and the co-compensation strategy will not switch until the preset lock time has elapsed; after the preset lock time has elapsed, the separate compensation strategy and the co-compensation strategy will switch. The preset time, preset number of failures, and preset lock time can be set according to the user's needs. For example, if the preset time is set to 1 hour, the preset number of failures is set to 5, and the preset lock time is 10 hours, then when the number of conversion failures reaches 6 (i.e., within 1 hour, the number of conversion failures exceeds the preset number), starting from the moment the conversion flag is cleared, the separate compensation strategy and the co-compensation strategy will not switch within 10 hours; after 10 hours, the separate compensation strategy and the co-compensation strategy will switch. The switching between the separate compensation strategy and the co-compensation strategy is performed according to the implementation method described in the above embodiments.

[0048] In one possible embodiment, if the number of conversion failures is less than or equal to a preset number, and if the target matching common-complement capacitor is connected to the three-phase power grid, the number of conversion failures is set to zero, and the moment when the conversion flag is cleared is cleared.

[0049] If the number of conversion failures is less than or equal to the preset number, there is a record of conversion failure. If a target matching common compensation capacitor is connected to the three-phase power grid, it is determined that the conversion between the separate compensation strategy and the common compensation strategy is successful. At this time, the number of conversion failures is set to zero, the number of conversion failures is recorded again, and the time when the conversion flag is cleared is cleared.

[0050] In one possible embodiment, if the target phase power factor is greater than or equal to the preset input threshold power factor within the target delay time, the timing is reset to zero; if the target phase power factor is again less than the preset input threshold power factor, the timing restarts.

[0051] When the target phase power factor is less than the preset threshold power factor, timing begins. During the duration of the calculation that the target phase power factor is less than the preset threshold power factor, the power factor of each phase in the three-phase power grid also needs to be continuously calculated. If any one of the three phase power factors (i.e., the target phase power factor) is greater than or equal to the preset threshold power factor, the timing is reset to zero until the target phase power factor is less than the preset threshold power factor again, at which point timing restarts.

[0052] The following will describe the reactive power compensation step in step S3 of the above embodiments, which involves performing reactive power compensation according to the distributed compensation strategy. Step S3 in the above embodiments includes: S31, obtain the maximum target phase power factor within the target delay time, and get the maximum target phase power factor.

[0053] When the target phase power factor is less than the preset input threshold power factor, the target phase power factor at this moment is recorded as the maximum target phase power factor. If, within the target delay time, there is a target phase power factor greater than the recorded maximum target phase power factor, the maximum target phase power factor is updated to obtain the maximum target phase power factor within the target delay time, i.e., the maximum target phase power factor.

[0054] S32, when the target delay time reaches the preset input delay time, calculate the reactive power capacity to be compensated based on the maximum target phase power factor.

[0055] When the preset input delay time is reached, the reactive power capacity to be compensated is calculated based on the maximum target phase power factor.

[0056] S33: Find the capacitor whose capacitance is less than the reactive power to be compensated from multiple sub-compensation capacitors, and whose capacitance is the largest among the multiple sub-compensation capacitors, and determine it as the target matching sub-compensation capacitor.

[0057] Finding a capacitor with a capacitance smaller than the reactive power to be compensated from among multiple sub-compensation capacitors ensures that overcompensation will not occur; and selecting the largest capacitance among the multiple sub-compensation capacitors provides the fastest compensation speed, thus identifying it as the target matching sub-compensation capacitor.

[0058] S34, the target matching compensation capacitor is connected to the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation.

[0059] In one possible embodiment, if the target delay time of each phase in the three-phase power grid reaches the preset input delay time simultaneously, after the preset input delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, a target matching common compensation capacitor is found from multiple common compensation capacitors and put into the three-phase power grid for reactive power compensation.

[0060] If the target delay time of each phase in the three-phase power grid simultaneously reaches the preset input delay time, reactive power compensation is performed according to the common compensation strategy. The following will describe the reactive power compensation step S4 in the above embodiment, which includes the following steps: S43, after the preset input delay time has elapsed, obtains the maximum phase power factor based on the three phases' current power factor.

[0061] In the co-compensation strategy, after the preset input delay time is reached, the power factor with the largest power factor among the three phases (PFa, PFb, PFc) is determined by comparing the three phase power factors and is taken as the maximum phase power factor PFmax.

[0062] S44, calculate the total reactive power capacity based on the maximum phase power factor.

[0063] The total reactive power capacity is calculated by multiplying the maximum phase power factor PFmax by 3 and then using 3 times the maximum phase power factor.

[0064] S45: Find the target matching common-complement capacitor among multiple common-complement capacitors whose capacitance is less than the total reactive power and is the largest among the multiple common-complement capacitors.

[0065] S46, the target matching common compensation capacitor is connected to the three-phase power grid for reactive power compensation.

[0066] Calculating the required capacitor capacity based on the power factor is existing technology. This application provides a calculation method: set a voltage signal U and a current signal I, and a power factor PF. In the calculation process, the power factor PF is equated to cosφ, where φ is the phase angle of the current phase. Then, the preset input threshold power factor PFin is equated to cosφin.

[0067] At this point, calculate the apparent power S, i.e., S = U × I; calculate the active power P, i.e., P = U × I × cosφ = U × I × PF = S × PF; calculate the reactive power Q, i.e., Q = U × I × sinφ = U × I × = U×I× .

[0068] The power factor PF is compensated to the preset threshold power factor PFin through reactive power compensation. In this process, the active power P needs to remain unchanged. Therefore, the apparent power S changes to Sin, the reactive power Q changes to Qin, and φ changes to φin.

[0069] That is, it is necessary to achieve PFin=cosφin= = ; The reactive power corresponding to the preset threshold power factor is: Qin=P× =P× =P× ; The required compensation capacitance is ΔQ = Q - Qin.

[0070] See Figure 5 , Figure 5 A flowchart of a compensation strategy provided in this application embodiment is shown below. Figure 5 As shown in the flowchart of the reactive power compensation strategy, the reactive power compensation of phase A is used as an example for illustration. The reactive power compensation process of phases B and C is the same as that of phase A, and will not be repeated here.

[0071] See Figure 5 First, the power factor of phase A is calculated and compared with the preset threshold power factor. It is then determined whether the phase A power factor is less than the preset threshold power factor. If not, the timer is reset to zero. If so, the current phase A power factor is recorded as the maximum target phase power factor. It is then determined whether there is a phase A power factor greater than the recorded maximum phase A power factor. If so, the maximum phase A power factor is updated, thus obtaining the maximum phase A power factor within the target delay time, i.e., the maximum phase A power factor. The process then waits for the preset delay time to be reached. If not, it waits for the preset delay time to be reached.

[0072] If the preset input delay time has not been reached, the power factor of phase A continues to be calculated; if the preset input delay time is reached, the reactive power capacity to be compensated for phase A is calculated based on the power factor of phase A; based on the reactive power capacity to be compensated for phase A, the target matching sub-compensation capacitor for phase A is found from multiple sub-compensation capacitors and put into phase A voltage for reactive power compensation.

[0073] See Figure 6 , Figure 6 A flowchart of a co-compensation strategy provided in this application embodiment is shown below. Figure 6 As shown, it is determined whether the target delay time of the three phases in the three-phase power grid has reached the preset input delay time at the same time. If not, the process ends and the co-compensation strategy is exited. If so, the maximum phase power factor is obtained based on the current power factor of the three phases, and the total reactive power capacity is calculated based on the maximum phase power factor. The target matching co-compensation capacitor is then found from multiple co-compensation capacitors and put into the three-phase power grid for reactive power compensation.

[0074] See Figure 7 , Figure 7 A flowchart of the second reactive power compensation method provided in the embodiments of this application is shown below. Figure 7As shown, the times when the target matching compensation capacitor is connected to the voltage of each phase in the three-phase power grid are recorded respectively, namely, the time Ta when the target matching compensation capacitor is connected to phase A, the time Tb when the target matching compensation capacitor is connected to phase B, and the time Tc when the target matching compensation capacitor is connected to phase C. Based on Ta, Tb, and Tc, the maximum connection time difference ΔT is calculated. It is determined whether the maximum connection time difference ΔT is less than a preset proportion of the preset connection delay time. If not, the conversion flag is cleared; if so, the compensation strategy is switched to the co-compensation strategy. Based on the current power factor of the three phases, the maximum phase power factor is obtained, and the total reactive power capacity is calculated based on the maximum phase power factor. It is determined whether the target matching co-compensation capacitor can be found among the multiple co-compensation capacitors. If it can be found, the conversion flag is activated; if it cannot be found, the conversion flag is cleared.

[0075] By analyzing the timing of the target matching capacitor being connected to the voltage of each phase in the three-phase power grid and the current power factor of each phase voltage, the timing of the three-phase capacitor connection and the current power factor of the three phases can be obtained.

[0076] If the reactive power compensation sequence during the distributed compensation process is phase A, phase B, and phase C, a switching flag is activated when the distributed compensation strategy switches to a shared compensation strategy. The three-phase power factor is then calculated. If all three phase power factors remain below the preset threshold power factor, the preset activation delay time for phase A is reached first, followed by phase B, and finally phase C. (See also...) Figure 8 , Figure 8 A flowchart of the third reactive power compensation method provided in the embodiments of this application is shown below. Figure 8 As shown, when the separate compensation strategy is switched to the common compensation strategy, the conversion flag is activated, the three-phase power factor is calculated again, and it is determined whether the latest time among the three-phase separate compensation activation times has been reached. If so, compensation is performed according to the common compensation strategy. Based on the current three-phase power factor, the maximum phase power factor is obtained, and the total reactive power capacity is calculated based on the maximum phase power factor. It is determined whether a target matching common compensation capacitor can be found from multiple common compensation capacitors. If it can be found, the target matching common compensation capacitor is activated for reactive power compensation, the conversion failure count is set to zero, and the time when the conversion flag is cleared is cleared.

[0077] See Figure 8 If the latest time of the three-phase power factor conversion has not been reached, it is necessary to determine whether the three-phase power factor is less than the preset power factor threshold. If so, the three-phase power factor is calculated again; if not, the conversion flag is cleared, the number of conversion failures is increased by one, and the time when the conversion flag is cleared is recorded.

[0078] See Figure 8If no target matching common-compensation capacitor is found among multiple common-compensation capacitors, the reactive power capacity to be compensated for each phase in the three-phase power grid is calculated based on the three-phase power factor. Based on the reactive power capacity to be compensated for each phase in the three-phase power grid, the target matching sub-compensation capacitor for each phase is searched among multiple sub-compensation capacitors. If no target matching sub-compensation capacitor is found for any phase, the process ends. If a target matching sub-compensation capacitor is found, the conversion flag is cleared, the conversion strategy is determined to be ineffective, the conversion failure count is increased by one, and the time when the conversion flag is cleared is recorded.

[0079] See Figure 9 , Figure 9 The flowchart of the fourth reactive power compensation method provided in the embodiments of this application is as follows: Figure 9 As shown, if the number of conversion failures exceeds a preset number within a preset time (i.e., the number of conversion failures exceeds the preset number but the conversion failure time is less than the preset time), the conversion logic is locked (i.e., no switching occurs between the distributed compensation strategy and the shared compensation strategy). The lock time is started from the moment the conversion flag is cleared. After the preset lock time is reached (i.e., the lock time is greater than the preset lock time), the conversion logic is activated, i.e., switching occurs between the distributed compensation strategy and the shared compensation strategy. The reactive power compensation method provided in this application continues.

[0080] This application also provides a reactive power compensation system, which includes: the above-mentioned multiple common-type capacitors, multiple separate-type capacitor control circuits, and a reactive power compensation controller.

[0081] The reactive power compensation controller is used to implement the reactive power compensation method and steps described above.

[0082] This application also provides a control device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement the above-described reactive power compensation method steps.

[0083] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0084] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0085] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements any of the methods described in the above embodiments.

[0086] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0087] Finally, it should be noted that the above embodiments are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A reactive power compensation method, characterized in that, The reactive power compensation method utilizes a reactive power compensation system, which includes multiple common-compensation capacitors and multiple separate-compensation capacitors. The reactive power compensation method includes: The power factor of each phase in the three-phase power grid is calculated in real time to obtain the three-phase power factor, which corresponds one-to-one with the three-phase voltage in the three-phase power grid; the three-phase power factor includes: A-phase power factor, B-phase power factor and C-phase power factor; When the target phase power factor is less than the preset input threshold power factor, timing begins, and the duration for which the target phase power factor is less than the preset input threshold power factor is calculated to obtain the target delay time; wherein, the target phase power factor is any one of the three phase power factors; When the target delay time reaches the preset input delay time, according to the split compensation strategy, a target matching split compensation capacitor is found from the plurality of split compensation capacitors and put into the phase voltage of the three-phase power grid corresponding to the target phase power factor for reactive power compensation; and the time when the target matching split compensation capacitor is put into the phase voltage of each phase in the three-phase power grid and the current power factor of each phase voltage are recorded respectively to obtain the three-phase split compensation input time and the current power factor of the three phases; Based on the three-phase separate compensation activation times, the maximum activation time difference is calculated. When the maximum activation time difference is less than a preset proportion of the preset activation delay time, the separate compensation strategy is switched to a common compensation strategy. Starting from the latest activation time among the three-phase separate compensation times, after the preset activation delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, a target matching common compensation capacitor is found from the plurality of common compensation capacitors and activated into the three-phase power grid for reactive power compensation.

2. The reactive power compensation method according to claim 1, characterized in that, When the split compensation strategy is switched to the co-compensation compensation strategy, the conversion flag is activated; Starting from the latest time among the three-phase power factor activation times, if any one of the three-phase power factors is greater than or equal to the preset activation threshold power factor before the preset activation delay time arrives, the conversion flag is cleared, and the common compensation strategy is switched to the separate compensation strategy. When the preset activation delay time arrives, according to the separate compensation strategy, the target matching separate compensation capacitor is found from the plurality of separate compensation capacitors and activated to the phase voltage corresponding to the three-phase power factor that is less than the preset activation threshold power factor for reactive power compensation.

3. The reactive power compensation method according to claim 2, characterized in that, Starting from the latest time among the three-phase separate compensation activation times, after the preset activation delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, the target matching common compensation capacitor is searched from the plurality of common compensation capacitors. If the target matching common compensation capacitor is found, the target matching common compensation capacitor is connected to the three-phase power grid for compensation; If the target matching common compensation capacitor is not found, the reactive power capacity to be compensated for each phase in the three-phase power grid is calculated according to the three-phase power factor. Based on the reactive power capacity to be compensated for each phase in the three-phase power grid, the target matching sub-compensation capacitor is searched from the plurality of sub-compensation capacitors. If the target matching sub-compensation capacitor is found, the conversion flag is cleared, the common compensation strategy is switched to the sub-compensation strategy, and the target matching sub-compensation capacitor is put into the corresponding phase voltage in the three-phase power grid for reactive power compensation.

4. The reactive power compensation method according to claim 3, characterized in that, When the conversion flag is cleared, the conversion failure count increases by one; If the number of conversion failures exceeds the preset number within a preset time, then starting from the moment the conversion identifier is cleared, the split compensation strategy and the co-compensation compensation strategy will not be switched until the preset locking time has elapsed. After the preset locking time is reached, the separate compensation strategy and the joint compensation strategy are switched.

5. The reactive power compensation method according to claim 4, characterized in that, If the number of conversion failures is less than or equal to the preset number, and if the target matching common-complement capacitor is connected to the three-phase power grid, then the number of conversion failures is set to zero, and the time when the conversion flag is cleared is removed.

6. The reactive power compensation method according to claim 3, characterized in that, If the target phase power factor is greater than or equal to the preset power threshold factor within the target delay time, the timing is reset to zero; if the target phase power factor is again less than the preset power threshold factor, the timing restarts. When the target delay time reaches the preset input delay time, according to the distributed compensation strategy, a target matching distributed compensation capacitor is found from the plurality of distributed compensation capacitors and put into the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation, including: Obtain the maximum target phase power factor within the target delay time to obtain the maximum target phase power factor; When the target delay time reaches the preset input delay time, the reactive power capacity to be compensated is calculated based on the maximum target phase power factor. The target matching capacitor is identified from the plurality of sub-compensating capacitors whose capacitance is less than the reactive power to be compensated and which is the largest capacitance among the plurality of sub-compensating capacitors. The target matching compensation capacitor is connected to the phase voltage corresponding to the target phase power factor in the three-phase power grid for reactive power compensation.

7. The reactive power compensation method according to claim 1, characterized in that, If the target delay time of each phase in the three-phase power grid reaches the preset input delay time simultaneously, after the preset input delay time is reached, according to the common compensation strategy, based on the current power factor of the three phases, a target matching common compensation capacitor is found from the plurality of common compensation capacitors and put into the three-phase power grid for reactive power compensation. The step of, after the preset input delay time has elapsed, searching for a target matching common-compensation capacitor from the plurality of common-compensation capacitors according to the common-compensation strategy and based on the current power factor of the three-phase grid, and inputting it into the three-phase grid for reactive power compensation, includes: After the preset input delay time is reached, the maximum phase power factor is obtained based on the three phase power factors. Calculate the total reactive power capacity based on the maximum phase power factor; The target matching common-complementary capacitor is identified from the plurality of common-complementary capacitors whose capacitance is less than the total reactive power capacity and is the largest among the plurality of common-complementary capacitors. The target matching common-complement capacitor is connected to the three-phase power grid for reactive power compensation.

8. A reactive power compensation system, characterized in that, The reactive power compensation system includes: multiple common-compensation capacitors, multiple separate-compensation capacitor control circuits as described in claim 1, and a reactive power compensation controller; The reactive power compensation controller is used to implement the steps of the method as described in any one of claims 1-7.

9. An electronic device, comprising: A memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor, when executing the program, implements the steps of the method according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-7.