Optimal control method and device for unified power quality conditioner capacity

By collecting electrical signals from all sides of the UPQC, performing voltage drop detection and load current spectrum analysis, establishing a capacity optimization model, and optimizing the compensation parameters of the series and parallel sides, the problems of low UPQC capacity utilization and insufficient real-time dynamic adjustment capability are solved, and the total capacity of the UPQC and adaptive compensation under complex operating conditions are realized.

CN123184045APending Publication Date: 2026-11-27STATE GRID BEIJING ELECTRIC POWER CO
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing unified power quality conditioner (UPQC) capacity optimization methods fail to effectively consider harmonic spectrum distribution characteristics, resulting in low capacity utilization. Furthermore, voltage compensation and harmonic suppression are optimized independently, lacking the ability to dynamically adjust in real-time operating conditions, leading to improper capacity allocation under extreme operating conditions.

Method used

By collecting electrical signals from all sides of the UPQC, voltage dips and rises are detected and load current spectrum is analyzed. A capacity optimization model is established, with voltage dip depth and harmonic frequency distortion rate as constraints. The compensation parameters of the series and parallel sides are optimized to achieve synergistic optimization of capacity minimization and harmonic mitigation.

Benefits of technology

While ensuring the effectiveness of power quality compensation, the total UPQC capacity is effectively reduced, the capacity utilization rate of the device is improved, and the adaptability to complex operating conditions is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184045A_ABST
    Figure CN123184045A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of power quality optimization, and discloses a unified power quality conditioner capacity optimization control method and device. The method comprises the following steps: collecting electrical signals on each side of a unified power quality conditioner; detecting voltage drop and voltage rise of a power grid based on a power grid voltage signal of the power grid side, and determining voltage drop depth or voltage rise depth; performing frequency spectrum analysis on a load current signal of the load side, dividing harmonic frequency bands, and determining harmonic distortion rates corresponding to the harmonic frequency bands; establishing a capacity optimization model of the unified power quality conditioner; solving the capacity optimization model to determine optimal compensation parameters; determining compensation voltage control parameters of the series side and compensation current control parameters of the parallel side based on the optimal compensation parameters, and performing compensation control on the capacity of the unified power quality conditioner based on the compensation voltage control parameters and the compensation current control parameters. The application can improve the capacity optimization effect, and improve the capacity utilization rate and the self-adaptive capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power quality optimization technology, and more specifically, to an optimized control method and apparatus for a unified power quality regulator capacity. Background Technology

[0002] The Unified Power Quality Conditioner (UPQC) consists of a series converter and a parallel converter coupled through a common DC bus. It can simultaneously compensate for various power quality problems such as voltage dips, load harmonic currents, and reactive power. Its capacity cost accounts for a high proportion of the total cost. Therefore, how to reduce the device capacity and improve the capacity utilization rate while ensuring the compensation effect has become one of the core issues in UPQC technology research.

[0003] Existing UPQC capacity optimization methods mainly fall into three categories: voltage compensation methods based on deriving the optimal injection angle from the fundamental steady-state circuit, control methods based on series-parallel power coordination and allocation, and optimization methods that construct multi-objective models and use intelligent algorithms for solving. However, these methods all use Total Harmonic Distortion (THD) as the sole harmonic quantification index, neglecting the fundamental impact of spectral distribution on compensation requirements. Under the same THD, low-order harmonics (such as 5th / 7th / 11th / 13th harmonics in rectifiers) and high-order harmonics (such as above 25th harmonics in switching power supplies) have significantly different effects on IGBT losses and capacity consumption. Furthermore, existing methods optimize voltage sag compensation and harmonic suppression as independent objectives, failing to establish joint constraints between sag depth and THD in each frequency band. This leads to improper capacity allocation under extreme operating conditions, and the methods mostly employ offline optimization or fixed strategies, lacking the ability to dynamically adjust according to real-time operating conditions, making it difficult to achieve optimal capacity utilization across the entire operating range.

[0004] There is currently no effective solution to the aforementioned technical problems. Summary of the Invention

[0005] This application provides an optimized control method and apparatus for the capacity of a unified power quality regulator, which at least solves the technical problems of the unified power quality regulator capacity optimization method, which only uses total harmonic distortion as a harmonic evaluation index, ignores the harmonic spectrum distribution characteristics, and optimizes voltage compensation and harmonic compensation independently, resulting in low capacity utilization.

[0006] According to one aspect of the embodiments of this application, an optimized control method for the capacity of a unified power quality regulator is provided, comprising:

[0007] The electrical signals of each side of the unified power quality regulator are collected, wherein each side of the unified power quality regulator includes the grid side, the load side, the series side, and the parallel side;

[0008] Based on the grid voltage signal on the grid side, voltage dips and rises are detected in the grid, and the depth of voltage dips or rises is determined.

[0009] Spectral analysis is performed on the load current signal on the load side to divide it into harmonic frequency bands and determine the harmonic distortion rate corresponding to each harmonic frequency band.

[0010] A capacity optimization model for a unified power quality regulator is established, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective, and uses the voltage drop depth or voltage rise depth and the harmonic distortion rate of each harmonic frequency band as constraints.

[0011] The capacity optimization model is solved to determine the optimal compensation parameters;

[0012] The compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side are determined based on the optimal compensation parameters, and the capacity of the unified power quality regulator is compensated and controlled based on the compensation voltage control parameters and the compensation current control parameters.

[0013] In some embodiments, the step of detecting voltage dips and rises in the power grid based on the grid voltage signal on the grid side, and determining the depth of voltage dips or voltage rises, includes:

[0014] The grid voltage signal is compared with a preset rated voltage reference value to determine whether the grid voltage has dropped or risen.

[0015] If the grid-side voltage drops or rises, determine the depth of the voltage drop or the depth of the voltage rise.

[0016] The voltage sag level or voltage rise level is determined based on the voltage sag depth or voltage rise depth.

[0017] In some embodiments, performing spectral analysis on the load current signal on the load side, dividing it into harmonic frequency bands, and determining the harmonic distortion rate corresponding to each harmonic frequency band includes:

[0018] The load-side current signal is subjected to fast Fourier transform analysis to extract the amplitude and phase information of each harmonic current;

[0019] The harmonics are divided into multiple harmonic frequency bands according to the harmonic order, wherein the multiple harmonic frequency bands include low frequency band, mid frequency band and high frequency band;

[0020] Based on the amplitude and phase information of each harmonic current, the harmonic distortion rate of each harmonic frequency band is determined.

[0021] In some embodiments, establishing a capacity optimization model for a unified power quality regulator includes:

[0022] The capacity optimization evaluation index of the capacity optimization model is determined to be the total apparent power of the unified power quality regulator, wherein the total apparent power includes the sum of the apparent power on the series side and the apparent power on the parallel side;

[0023] Using the voltage sag depth or voltage rise depth, and the harmonic distortion rate of each harmonic frequency band as operating parameters, the constraints of the capacity optimization model are determined to include voltage sag compensation depth constraints, harmonic distortion rate constraints of each harmonic frequency band, and inverter capacity constraints.

[0024] The capacity optimization model is established using the series-side compensation voltage injection angle, voltage compensation adjustment coefficient, low-frequency harmonic compensation degree, mid-frequency harmonic compensation degree, and high-frequency harmonic compensation degree as decision variables.

[0025] In some embodiments, the voltage sag compensation depth constraint includes the compensated load-side voltage satisfying:

[0026] ;

[0027] in, The compensated load-side voltage, This is the reference value for the rated voltage.

[0028] The harmonic distortion rate constraint for each harmonic frequency band includes that the harmonic distortion rate of each harmonic frequency band after compensation is less than or equal to a preset harmonic distortion rate limit:

[0029] ;

[0030] in, , , These are the harmonic distortion rate limits for the low-frequency, mid-frequency, and high-frequency bands, respectively.

[0031] The inverter capacity constraint includes ensuring that the output of both the series-side inverter and the parallel-side inverter does not exceed their rated capacity:

[0032] ;

[0033] in, The series-side rated capacity of the unified power quality regulator. This refers to the rated capacity of the parallel side of the unified power quality regulator.

[0034] In some embodiments, solving the capacity optimization model to determine the optimal compensation parameters includes:

[0035] Using the series-side compensation voltage injection angle, voltage compensation adjustment coefficient, and harmonic compensation coefficient of each harmonic frequency band as optimization variables, the apparent power of the corresponding series and parallel sides is determined by adjusting different combinations of compensation parameters, and the total apparent power of the unified power quality regulator is determined.

[0036] Under the constraints, iterative optimization is performed on different voltage drops and harmonic spectrum distributions to determine the minimum capacity and optimal compensation parameter combination of the unified power quality regulator under the corresponding operating conditions.

[0037] In some embodiments, the iterative optimization under the constraints for different voltage drops and harmonic spectrum distributions to determine the minimum capacity and optimal compensation parameter combination of the unified power quality regulator under the corresponding operating conditions includes:

[0038] Under the voltage drop or voltage rise conditions determined based on the voltage drop depth or voltage rise depth, the voltage compensation adjustment coefficient is kept constant. The capacity of the series converter is calculated by adjusting the series side compensation voltage injection angle. The minimum series capacity and corresponding parameters that satisfy the voltage compensation constraint are recorded to form a series converter capacity set.

[0039] Using the harmonic compensation coefficient of each harmonic frequency band as the optimization variable, the harmonic compensation coefficient is adjusted within a preset range to calculate the capacity of the parallel converter, and the minimum parallel capacity and corresponding parameters that satisfy the harmonic distortion rate constraints of each harmonic frequency band are recorded to form a set of parallel converter capacities.

[0040] Using the optimal compensation parameters in the series converter capacity set and the parallel converter capacity set as the initial solution, a joint optimization variable is constructed. The joint iteration is performed with the goal of minimizing the total apparent power until the preset convergence condition is met or the maximum number of iterations is reached. The parameter combination corresponding to the minimum global capacity is selected as the optimal solution for the voltage drop or voltage rise condition, as well as the harmonic distortion condition determined based on the harmonic distortion rate.

[0041] In some embodiments, determining the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side based on the optimal compensation parameters includes:

[0042] The amplitude and phase of the three-phase power grid voltage command value are determined based on the optimal voltage offset angle and the optimal voltage compensation adjustment coefficient.

[0043] Based on the harmonic detection results and optimal harmonic compensation coefficients of each harmonic frequency band, the reference value of the compensation current for each harmonic frequency band is determined, and the reference values ​​of the compensation current for each harmonic frequency band are superimposed to obtain the total compensation current command value on the parallel side.

[0044] In some embodiments, the compensation control of the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters includes:

[0045] Voltage feedforward or feedback control is used on the series side to output compensation voltage;

[0046] On the parallel side, current tracking control is used to output a corresponding compensation current to suppress harmonics in each harmonic frequency band.

[0047] According to another aspect of the embodiments of this application, an optimized control device for uniform power quality regulator capacity is also provided, comprising:

[0048] The acquisition module is configured to acquire electrical signals from each side of the unified power quality regulator, wherein each side of the unified power quality regulator includes the grid side, the load side, the series side, and the parallel side.

[0049] The voltage detection module is configured to detect voltage dips and rises in the power grid based on the power grid voltage signal on the power grid side, and determine the voltage dip depth or voltage rise depth, wherein the voltage dip depth is used to characterize the degree of voltage dip.

[0050] The harmonic analysis module is configured to perform spectral analysis on the load current signal on the load side, divide the harmonic frequency bands, and determine the harmonic distortion rate corresponding to each harmonic frequency band.

[0051] The model building module is configured to build a capacity optimization model for a unified power quality regulator, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective and the voltage drop depth and the harmonic distortion rate of each harmonic frequency band as constraints.

[0052] The model solving module is configured to solve the capacity optimization model and determine the optimal compensation parameters;

[0053] The optimized control module is configured to determine the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side based on the optimal compensation parameters, and to perform compensation control on the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters.

[0054] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the optimized control method for the capacity of the unified power quality regulator as described above.

[0055] According to another aspect of the embodiments of this application, a computer device is also provided, the computer device including a processor, the processor being configured to run a program, wherein the program executes the above-described method for optimizing the capacity of a unified power quality regulator during runtime.

[0056] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the above-described method for optimizing the control of the capacity of a unified power quality regulator.

[0057] The method and apparatus for optimizing the capacity of a unified power quality regulator provided in this application embodiment collect electrical signals from each side of the unified power quality regulator; detect voltage dips and rises in the grid based on the grid voltage signal on the grid side, and determine the voltage dip depth or voltage rise depth; perform spectral analysis on the load current signal on the load side, divide harmonic frequency bands, and determine the harmonic distortion rate corresponding to each harmonic frequency band; establish a capacity optimization model for the unified power quality regulator, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective, and uses the voltage dip depth or voltage rise depth, and the harmonic distortion rate of each harmonic frequency band as constraints; solve the capacity optimization model to determine the optimal compensation parameters; and based on the optimal compensation... The compensation parameters determine the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side. Based on these parameters, the capacity of the unified power quality regulator (UPQC) is compensated and controlled. Harmonics are divided into different frequency bands, THD constraints are established for each band, and a unified capacity optimization model is constructed by combining voltage drop characteristics. Simultaneously, the compensation voltage injection angle, voltage compensation coefficient, and harmonic compensation coefficients on the series side are adaptively adjusted according to real-time operating conditions. Through joint optimization, the optimal combination of compensation parameters that meets the requirements of voltage recovery and harmonic mitigation is obtained, achieving coordinated optimization of the capacity on the series and parallel sides. This effectively reduces the total UPQC capacity while ensuring power quality compensation, improving device capacity utilization and adaptability to complex operating conditions. Attached Figure Description

[0058] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0059] Figure 1 A hardware block diagram of a computer terminal for implementing an optimized control method for the capacity of a uniform power quality regulator is shown.

[0060] Figure 2 A topology diagram of a unified power quality regulator is shown;

[0061] Figure 3 This is a first flowchart illustrating the optimized control method for the capacity of a unified power quality regulator provided in the embodiments of this application;

[0062] Figure 4 This is a second flowchart illustrating the optimized control method for the capacity of a unified power quality regulator provided in the embodiments of this application.

[0063] Figure 5 This is a schematic diagram of the series-side control strategy of the optimized control method for the capacity of the unified power quality regulator provided in the embodiments of this application;

[0064] Figure 6 This is a schematic diagram of the parallel-side control strategy of the optimized control method for the capacity of the unified power quality regulator provided in the embodiments of this application;

[0065] Figure 7 This is a structural block diagram of an optimized control device for a unified power quality regulator capacity provided according to an embodiment of this application. Detailed Implementation

[0066] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0067] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0068] According to an embodiment of this application, a method embodiment for optimizing control of the capacity of a unified power quality regulator is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0069] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal for implementing an optimized control method for uniform power quality regulator capacity is shown. Figure 1 As shown, the computer terminal 10 may include one or more processors (shown as 102a, 102b, ..., 102n in the figure) (the processor may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0070] It should be noted that the aforementioned one or more processors and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10. As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0071] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the unified power quality regulator capacity optimization control method in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the unified power quality regulator capacity optimization control method of the above-mentioned application. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor, and these remote memories can be connected to the computer terminal 10 via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0072] The Unified Power Quality Conditioner (UPQC) is a comprehensive power quality management device that integrates series and parallel active power filters. It can simultaneously compensate for voltage and current disturbances. Its topology is as follows: Figure 2 As shown in the diagram, the series side is mainly used to compensate for voltage sags, voltage rises, voltage imbalances, and other voltage quality issues, while the parallel side is mainly used to suppress current harmonics, compensate for reactive power, and balance load current. Since the compensation capability of UPQC is limited by the capacity of the series and parallel converters, its capacity configuration directly affects the manufacturing cost, operating efficiency, and compensation performance of the device. However, most existing UPQC capacity optimization methods use total harmonic distortion (THD) as the harmonic evaluation index, failing to fully consider the impact of harmonic spectrum distribution on compensation capacity requirements and lacking the ability to dynamically adjust capacity allocation based on real-time operating conditions, resulting in low capacity utilization under complex operating conditions.

[0073] In response to the fact that many UPQC capacity optimization methods in related technologies use total harmonic distortion (THD) and ignore the impact of harmonic spectrum distribution on compensation requirements, and usually optimize voltage drop compensation and harmonic suppression separately, lacking joint constraints on voltage disturbances and frequency band harmonics, resulting in unreasonable capacity configuration under complex operating conditions, and that existing methods mostly rely on offline optimization or fixed control strategies, making it difficult to dynamically adjust according to real-time operating conditions and achieve capacity optimization under all operating conditions, this application proposes a unified power quality regulator capacity optimization control method and device.

[0074] Figure 3 and Figure 4 This is a flowchart illustrating the optimized control method for the capacity of a unified power quality regulator provided in an embodiment of this application, as shown below. Figure 3 and Figure 4 As shown, the method includes the following steps:

[0075] S301, Collect electrical signals from each side of the unified power quality regulator, wherein each side of the unified power quality regulator includes the grid side, the load side, the series side, and the parallel side.

[0076] In this step, the three-phase voltage signal on the grid side of UPQC, the three-phase voltage and current signal on the load side, the three-phase output voltage and current signal on the series side of UPQC, and the three-phase output voltage and current signal on the parallel side of UPQC are acquired in real time.

[0077] The three-phase voltage on the grid side acquired in real time by UPQC is defined as... The load-side three-phase voltage is defined as The load-side three-phase current is defined as The three-phase output voltage signal on the series side of the UPQC is defined as follows: The three-phase output current signal on the series side of the UPQC is defined as follows: The three-phase output voltage signal on the parallel side of the UPQC is defined as follows: The three-phase output voltage and current signals on the parallel side of the UPQC are defined as follows: .

[0078] S302, based on the grid voltage signal on the grid side, the grid voltage drop and rise are detected, and the voltage drop depth or voltage rise depth is determined.

[0079] In this step, voltage dips and rises are detected on the power grid based on the grid voltage signal on the grid side, and the voltage dip depth or voltage rise depth is determined. The voltage dip depth refers to the proportion of the power system voltage amplitude decrease relative to the rated voltage, which is used to quantify the severity of the voltage dip event.

[0080] S303, Perform spectrum analysis on the load current signal on the load side, divide the harmonic frequency bands, and determine the harmonic distortion rate corresponding to each harmonic frequency band.

[0081] The load-side current signal acquired in step S301 is analyzed by Fast Fourier Transform (FFT) to extract the amplitude and phase information of each harmonic current. The harmonics are divided into multiple frequency bands according to the harmonic order, and the THD value of each frequency band is calculated.

[0082] S304, Establish a capacity optimization model for a unified power quality regulator, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective, and uses the voltage drop depth or voltage rise depth, and the harmonic distortion rate of each harmonic frequency band as constraints.

[0083] S305, Solve the capacity optimization model to determine the optimal compensation parameters.

[0084] In this step, the optimal compensation voltage injection angle is obtained by solving the capacity optimization model. and voltage compensation adjustment coefficient Low-frequency harmonic compensation degree Intermediate frequency harmonic compensation degree High-frequency harmonic compensation degree .

[0085] S306, Based on the optimal compensation parameters, determine the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side, and perform compensation control on the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters.

[0086] In this step, the obtained optimal parameters are combined to obtain the optimal parameter combination. Then, the series side compensation voltage command value and the parallel side compensation current command value are calculated based on the optimal parameter combination, and compensation control is performed.

[0087] The method for optimizing the capacity of a unified power quality regulator provided in this application involves: collecting electrical signals from each side of the unified power quality regulator; detecting voltage dips and rises in the grid based on the grid voltage signal on the grid side, and determining the voltage dip depth or voltage rise depth; performing spectral analysis on the load current signal on the load side, dividing it into harmonic frequency bands, and determining the harmonic distortion rate corresponding to each harmonic frequency band; establishing a capacity optimization model for the unified power quality regulator, wherein the capacity optimization model aims to minimize the capacity of the unified power quality regulator, and uses the voltage dip depth or voltage rise depth, as well as the harmonic distortion rate of each harmonic frequency band, as constraints; solving the capacity optimization model to determine the optimal compensation parameters; and determining the series connection based on the optimal compensation parameters. The system calculates the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side, and performs compensation control on the capacity of the unified power quality regulator based on these parameters. Harmonics are divided into different frequency bands, THD constraints are established for each band, and a unified capacity optimization model is constructed by combining voltage drop characteristics. Simultaneously, the system adaptively adjusts the series-side compensation voltage injection angle, voltage compensation coefficient, and harmonic compensation coefficients for each frequency band according to real-time operating conditions. Through joint optimization, the optimal combination of compensation parameters that meets the requirements of voltage recovery and harmonic mitigation is obtained, achieving coordinated optimization of the capacity on both the series and parallel sides. This effectively reduces the total UPQC capacity (minimizing the total UPQC capacity) while ensuring power quality compensation, improving device capacity utilization and adaptability to complex operating conditions.

[0088] As an optional embodiment, in step S302, the step of detecting voltage dips and rises in the power grid based on the grid voltage signal on the grid side, and determining the voltage dip depth or voltage rise depth, includes:

[0089] S3021, compare the grid voltage signal with a preset rated voltage reference value to determine whether the grid voltage has dropped or risen;

[0090] S3022, if the grid-side voltage drops or rises, determine the voltage drop depth or voltage rise depth;

[0091] S3023, determine the voltage drop level or voltage rise level based on the voltage drop depth or voltage rise depth.

[0092] Based on the grid-side voltage and load voltage signals acquired in step S301, compare them with the rated voltage reference value. To determine whether the detected UPQC grid voltage has dropped or increased.

[0093] when At that time, the grid voltage is in a boosted state. At that time, the grid voltage is in a slump state. At that time, the grid voltage was the rated voltage.

[0094] If a voltage deviation from a preset threshold is detected, the voltage drop depth or voltage rise depth is calculated according to the following formula:

[0095] (1)

[0096] This depth metric will serve as a key input parameter for the capacity constraint of the series converter in the subsequent multi-objective optimization model.

[0097] Furthermore, this application determines the voltage sag level or voltage rise level based on the voltage sag depth or voltage rise depth. For example, in this embodiment, the voltage sag depth D is divided into three levels according to the degree of voltage sag: when D < 10%, it is a mild sag; when 10% ≤ D < 30%, it is a moderate sag; and when 30% ≤ D < 50%, it is a severe sag. Different voltage sag levels or voltage rise levels correspond to different voltage sag or voltage rise conditions.

[0098] As an optional embodiment, in step S303, performing spectral analysis on the load current signal on the load side, dividing it into harmonic frequency bands, and determining the harmonic distortion rate corresponding to each harmonic frequency band includes:

[0099] S3031, Perform fast Fourier transform analysis on the load-side current signal to extract the amplitude and phase information of each harmonic current;

[0100] S3032, the harmonics are divided into multiple harmonic frequency bands according to the harmonic order, wherein the multiple harmonic frequency bands include a low frequency band, a mid frequency band, and a high frequency band;

[0101] S3033, Based on the amplitude and phase information of each harmonic current, determine the harmonic distortion rate of each harmonic frequency band.

[0102] Specifically, the load-side current signal acquired in step S201 is analyzed using Fast Fourier Transform (FFT) to extract the amplitude and phase information of each harmonic current. The harmonics are then divided into multiple frequency bands based on their harmonic order, and the THD value of each band is calculated. The specific division method is as follows: Low-frequency band (L band): containing harmonics from the 2nd to the 9th order, denoted as... Mid-frequency band (M band): Contains harmonics from the 10th to the 25th order, denoted as... High-frequency band (H-band): contains harmonics of the 25th order and above, denoted as... The ratio of the harmonic frequency to the fundamental frequency is the harmonic order.

[0103] Based on the amplitude of each harmonic within each frequency band, the harmonic distortion rate of each frequency band can be obtained using calculation formulas. .

[0104] (2)

[0105] Where X represents the corresponding frequency band. The effective value of the h-th harmonic current. This represents the effective value of the fundamental current.

[0106] As an optional embodiment, step S304, establishing the capacity optimization model of the unified power quality regulator, includes:

[0107] S3041, The capacity optimization evaluation index of the capacity optimization model is determined to be the total apparent power of the unified power quality regulator, wherein the total apparent power includes the sum of the apparent power on the series side and the apparent power on the parallel side.

[0108] S3042, using the voltage drop depth or voltage rise depth, and the harmonic distortion rate of each harmonic frequency band as operating parameters, determine the constraints of the capacity optimization model, including voltage drop compensation depth constraints, harmonic distortion rate constraints of each harmonic frequency band, and inverter capacity constraints.

[0109] S3043, the capacity optimization model is established using the series-side compensation voltage injection angle, voltage compensation adjustment coefficient, low-frequency harmonic compensation degree, medium-frequency harmonic compensation degree, and high-frequency harmonic compensation degree as decision variables.

[0110] UPQC total apparent power Minimizing the apparent power is the optimization objective. The sum of the apparent power on the series and parallel sides of the UPQC is used as the evaluation index for capacity optimization. The calculation formula is as follows:

[0111] (3)

[0112] (4)

[0113] in, For UPQC series side view in power, The power is considered in parallel with UPQC.

[0114] The voltage drop depth D and THD values ​​of each frequency band obtained in real time are used as known operating parameters, and the compensated load-side voltage requirements and THD limits of each frequency band are used as constraints.

[0115] Optionally, A) the voltage sag compensation depth constraint includes the compensated load-side voltage satisfying:

[0116] (5)

[0117] in, The compensated load-side voltage, This is the reference value for the rated voltage.

[0118] B) The harmonic distortion rate constraint for each harmonic frequency band includes the condition that the harmonic distortion rate of each harmonic frequency band after compensation is less than or equal to a preset harmonic distortion rate limit:

[0119] (6)

[0120] in, , , These are the harmonic distortion rate limits for the low-frequency, mid-frequency, and high-frequency bands, respectively.

[0121] C) The inverter capacity constraint includes ensuring that the output of both the series-side inverter and the parallel-side inverter does not exceed their rated capacity:

[0122] (7)

[0123] in, The series-side rated capacity of the unified power quality regulator. This refers to the rated capacity of the parallel side of the unified power quality regulator.

[0124] In step S3043, the series-side compensation voltage injection angle is used. and voltage compensation adjustment coefficient Low-frequency harmonic compensation degree Intermediate frequency harmonic compensation degree High-frequency harmonic compensation degree For the decision variables, a UPQC capacity optimization model is established, and the calculation formula is as follows:

[0125] (8)

[0126] (9)

[0127] (10)

[0128] (11)

[0129] (12)

[0130] in, For low-frequency harmonic compensation current, This refers to the total low-frequency harmonic current. For intermediate frequency harmonic compensation current, This is the total mid-frequency harmonic current. For high-frequency harmonic compensation current, This represents the total high-frequency harmonic current.

[0131] As an optional embodiment, in step S305, solving the capacity optimization model to determine the optimal compensation parameters includes:

[0132] S3051, using the series-side compensation voltage injection angle, voltage compensation adjustment coefficient, and harmonic compensation coefficient of each harmonic frequency band as optimization variables, by adjusting different combinations of compensation parameters, the apparent power of the corresponding series side and parallel side is determined, and the total apparent power of the unified power quality regulator is determined.

[0133] S3052, under the constraints, iterative optimization is performed on different voltage drop and harmonic spectrum distribution conditions to determine the minimum capacity and optimal compensation parameter combination of the unified power quality regulator under the corresponding conditions.

[0134] Specifically, using the series compensation voltage injection angle, voltage compensation coefficient, and harmonic compensation coefficients for each frequency band as optimization variables, the corresponding series and parallel compensation capacities are calculated by adjusting different combinations of compensation parameters, and the sum of the two is used as the total apparent power evaluation index of UPQC. Under the conditions of meeting the load-side voltage recovery requirements and THD limits for each frequency band, iterative optimization is performed for different voltage drop and harmonic spectrum distribution conditions to obtain the minimum UPQC capacity and the optimal compensation parameter combination under the corresponding conditions, thus achieving adaptive optimization of UPQC capacity considering voltage disturbance and harmonic spectrum distribution characteristics.

[0135] As an optional embodiment, in step S3052, the iterative optimization under the constraints for different voltage drops and harmonic spectrum distributions to determine the minimum capacity and optimal compensation parameter combination of the unified power quality regulator under the corresponding operating conditions includes:

[0136] S401, under the voltage drop or voltage rise condition determined based on the voltage drop depth or voltage rise depth, keep the voltage compensation adjustment coefficient unchanged, calculate the series converter capacity by adjusting the series side compensation voltage injection angle, record the minimum series capacity and corresponding parameters that satisfy the voltage compensation constraint, and form a series converter capacity set.

[0137] S402, using the harmonic compensation coefficient of each harmonic frequency band as the optimization variable, adjust the harmonic compensation coefficient within a preset range, calculate the capacity of the parallel converter, record the minimum parallel capacity and corresponding parameters that satisfy the harmonic distortion rate constraints of each harmonic frequency band, and form a set of parallel converter capacities.

[0138] S403, using the optimal compensation parameters in the series converter capacity set and the parallel converter capacity set as the initial solution, construct joint optimization variables, and perform joint iteration with the goal of minimizing the total apparent power until the preset convergence condition is met or the maximum number of iterations is reached. Select the parameter combination corresponding to the minimum global capacity as the optimal solution for the voltage drop or voltage rise condition, and the harmonic distortion condition determined based on the harmonic distortion rate.

[0139] In step S401, based on the voltage drop depth D (the voltage drop level corresponding to voltage drop depth D) determined above, the first voltage compensation coefficient is used. and the first series compensation voltage injection angle As the initial value, first maintain the first voltage compensation coefficient. Keep it unchanged, and gradually adjust the compensation voltage injection angle. The size of the series converter is calculated using the capacity calculation formula. Record the minimum series-side capacity and corresponding parameter combinations that meet the voltage recovery constraint condition. The calculation formula is as follows:

[0140] (13)

[0141] (14)

[0142] (15)

[0143] (16)

[0144] (17)

[0145] in, This is a reference value for the three-phase power grid voltage. This refers to the rated voltage of the three-phase power grid. This is the series compensation voltage injected via a series transformer. This refers to the turns ratio of the transformer on the series side.

[0146] By changing the voltage compensation coefficient Repeat the above steps to obtain different voltage compensation coefficients. The capacity set of the series converters.

[0147] In step S402, low-frequency, mid-frequency, and high-frequency harmonic compensation coefficients are used. , and To optimize the variables, the initial value of the harmonic compensation coefficient on the parallel side is set to... Within a preset range, the compensation coefficients for each frequency band are gradually adjusted, and the capacity of the parallel converters is calculated. Record the minimum parallel-side capacity and corresponding compensation parameters that meet the THD constraints of each frequency band, and finally obtain the capacity set of the parallel converters. The calculation formula is as follows:

[0148] (18)

[0149] (19)

[0150] (20)

[0151] In step S403, the optimal compensation parameters for each working condition obtained in steps S301 and S302 are used as the initial solution to construct joint optimization variables. With the goal of minimizing the total apparent power of UPQC, and under the conditions of meeting the load-side voltage recovery requirements, THD limits for each frequency band, and equipment capacity constraints, the optimization variables are jointly iterated to calculate the total UPQC capacity corresponding to each set of compensation parameters. The total UPQC capacity set corresponding to different compensation parameters is obtained. This continues until the set convergence condition is met or the maximum number of iterations is reached.

[0152] Furthermore, the minimum total UPQC capacity is selected from all feasible solutions as the optimal capacity configuration. It outputs the corresponding optimal series compensation capacity. Optimal parallel compensation capacity and optimal compensation parameters As the final parameter for UPQC compensation control.

[0153] By changing the voltage drop depth D and the degree of load-side current distortion, steps S401 to S403 are repeated to obtain the optimal compensation parameters under different operating conditions. Minimum capacity of UPQC.

[0154] In this embodiment, changing the voltage sag depth D can be done within the same voltage sag level to determine the optimal compensation parameter under the voltage sag condition of that level; or it can be done by changing the voltage sag depth D so that the voltage sag depth D belongs to different voltage sag levels, thereby obtaining different voltage sag conditions.

[0155] As an optional embodiment, in step S306, determining the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side based on the optimal compensation parameters includes:

[0156] S3061, determines the amplitude and phase of the three-phase power grid voltage command value based on the optimal voltage offset angle and the optimal voltage compensation adjustment coefficient;

[0157] S3062, based on the harmonic detection results and optimal harmonic compensation coefficient of each harmonic frequency band, determine the compensation current reference value of each harmonic frequency band, and superimpose the compensation current reference values ​​of each harmonic frequency band to obtain the total compensation current command value on the parallel side.

[0158] Based on the optimal voltage offset angle in the optimal compensation parameters and voltage compensation adjustment coefficient Calculate the three-phase power grid voltage command value:

[0159] . (twenty one)

[0160] The UPQC parallel side calculates reference values ​​for low-frequency, mid-frequency, and high-frequency harmonic compensation currents based on harmonic detection results for each frequency band and the optimal harmonic compensation coefficient for each frequency band. The compensation currents for each frequency band are then superimposed to obtain the parallel side compensation current command, controlling the parallel converter to output the corresponding compensation current for targeted compensation of harmonic currents in each frequency band. The control strategy on the series side is as follows: Figure 5 As shown, the control strategy on the parallel side Figure 6 As shown, the specific current compensation formula is as follows:

[0161] . (twenty two)

[0162] As can be seen from the above, the series side compensation voltage command value is calculated based on the optimal voltage compensation adjustment coefficient and the optimal voltage injection angle, combined with the three-phase voltage signal of the grid side; the parallel side compensation current command value is the sum of the optimal harmonic compensation degree of each frequency band and the corresponding harmonic current reference value.

[0163] As an optional embodiment, in step S306, the compensation control of the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters includes:

[0164] S3063, voltage feedforward or feedback control is used on the series side to output compensation voltage;

[0165] S3064, on the parallel side, current tracking control is used to output a corresponding compensation current to suppress harmonics in each harmonic frequency band.

[0166] like Figure 5 and Figure 6 As shown, the series side uses voltage feedforward or feedback control to output compensation voltage, and the parallel side uses current tracking control to output compensation current, thereby achieving targeted suppression of harmonics in each frequency band.

[0167] According to an embodiment of this application, an optimization control device for the capacity of a unified power quality regulator is also provided for implementing the above-described optimization control method for the capacity of a unified power quality regulator. Figure 7 This is a structural block diagram of an optimized control device for the capacity of a unified power quality regulator provided according to an embodiment of this application, such as... Figure 7 As shown, the optimized control device for the capacity of the unified power quality regulator includes:

[0168] The acquisition module 100 is configured to acquire electrical signals from each side of the unified power quality regulator, wherein each side of the unified power quality regulator includes the grid side, the load side, the series side, and the parallel side.

[0169] The voltage detection module 200 is configured to detect voltage dips and rises in the power grid based on the power grid voltage signal on the power grid side, and determine the voltage dip depth or voltage rise depth, wherein the voltage dip depth is used to characterize the degree of voltage dip.

[0170] The harmonic analysis module 300 is configured to perform spectral analysis on the load current signal on the load side, divide the harmonic frequency bands, and determine the harmonic distortion rate corresponding to each harmonic frequency band.

[0171] The model building module 400 is configured to build a capacity optimization model for a unified power quality regulator, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective and the voltage drop depth and the harmonic distortion rate of each harmonic frequency band as constraints.

[0172] The model solving module 500 is configured to solve the capacity optimization model and determine the optimal compensation parameters;

[0173] The optimized control module 600 is configured to determine the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side based on the optimal compensation parameters, and to perform compensation control on the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters.

[0174] It should be noted that the aforementioned acquisition module 100, voltage detection module 200, harmonic analysis module 300, model building module 400, model solving module 500, and optimization control module 600 correspond to steps S301 to S306 in the embodiments. Multiple modules and their corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in the above embodiments. It should also be noted that the aforementioned modules, as part of the device, can run on the computer terminal 10 provided in the embodiments.

[0175] Embodiments of this application may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one of a plurality of network devices in a computer network. The computer device includes a memory and a processor.

[0176] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the unified power quality regulator capacity optimization control method and device in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned unified power quality regulator capacity optimization control method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0177] The processor can access the information and application programs stored in the memory via the transmission device to execute the steps of the above-mentioned optimized control method for the capacity of the unified power quality regulator.

[0178] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. This program can be stored in a computer-readable storage medium, which can be either a non-volatile or volatile storage medium. Non-volatile storage media may include flash drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc. Embodiments of this application also provide a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the optimized control method for the capacity of the unified power quality regulator provided in the above embodiments.

[0179] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0180] Embodiments of this application also provide a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, it can implement the above-described method for optimizing the capacity control of a unified power quality regulator.

[0181] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0182] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0183] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0184] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0185] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0186] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0187] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. An optimized control method for the capacity of a unified power quality regulator, characterized in that, include: The electrical signals of each side of the unified power quality regulator are collected, wherein each side of the unified power quality regulator includes the grid side, the load side, the series side, and the parallel side; Based on the grid voltage signal on the grid side, voltage dips and rises are detected in the grid, and the depth of voltage dips or rises is determined. Spectral analysis is performed on the load current signal on the load side to divide it into harmonic frequency bands and determine the harmonic distortion rate corresponding to each harmonic frequency band. A capacity optimization model for a unified power quality regulator is established, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective, and uses the voltage drop depth or voltage rise depth and the harmonic distortion rate of each harmonic frequency band as constraints. The capacity optimization model is solved to determine the optimal compensation parameters; The compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side are determined based on the optimal compensation parameters, and the capacity of the unified power quality regulator is compensated and controlled based on the compensation voltage control parameters and the compensation current control parameters.

2. The method according to claim 1, characterized in that, The method of detecting voltage dips and rises in the power grid based on the grid voltage signal on the grid side, and determining the depth of voltage dips or rises, includes: The grid voltage signal is compared with a preset rated voltage reference value to determine whether the grid voltage has dropped or risen. If the grid-side voltage drops or rises, determine the depth of the voltage drop or the depth of the voltage rise. The voltage sag level or voltage rise level is determined based on the voltage sag depth or voltage rise depth.

3. The method according to claim 1, characterized in that, The step of performing spectral analysis on the load current signal on the load side, dividing it into harmonic frequency bands, and determining the harmonic distortion rate corresponding to each harmonic frequency band includes: The load-side current signal is subjected to fast Fourier transform analysis to extract the amplitude and phase information of each harmonic current; The harmonics are divided into multiple harmonic frequency bands according to the harmonic order, wherein the multiple harmonic frequency bands include low frequency band, mid frequency band and high frequency band; Based on the amplitude and phase information of each harmonic current, the harmonic distortion rate of each harmonic frequency band is determined.

4. The method according to claim 3, characterized in that, The establishment of a unified capacity optimization model for power quality regulators includes: The capacity optimization evaluation index of the capacity optimization model is determined to be the total apparent power of the unified power quality regulator, wherein the total apparent power includes the sum of the apparent power on the series side and the apparent power on the parallel side; Using the voltage sag depth or voltage rise depth, and the harmonic distortion rate of each harmonic frequency band as operating parameters, the constraints of the capacity optimization model are determined to include voltage sag compensation depth constraints, harmonic distortion rate constraints of each harmonic frequency band, and inverter capacity constraints. The capacity optimization model is established using the series-side compensation voltage injection angle, voltage compensation adjustment coefficient, low-frequency harmonic compensation degree, mid-frequency harmonic compensation degree, and high-frequency harmonic compensation degree as decision variables.

5. The method according to claim 4, characterized in that, The voltage sag compensation depth constraint includes the following: the compensated load-side voltage must satisfy: ; in, The compensated load-side voltage, This is the reference value for the rated voltage. The harmonic distortion rate constraint for each harmonic frequency band includes that the harmonic distortion rate of each harmonic frequency band after compensation is less than or equal to a preset harmonic distortion rate limit: ; in, , , These are the harmonic distortion rate limits for the low-frequency, mid-frequency, and high-frequency bands, respectively. The inverter capacity constraint includes ensuring that the output of both the series-side inverter and the parallel-side inverter does not exceed their rated capacity: ; in, The series-side rated capacity of the unified power quality regulator. This refers to the rated capacity of the parallel side of the unified power quality regulator.

6. The method according to claim 4, characterized in that, Solving the capacity optimization model to determine the optimal compensation parameters includes: Using the series-side compensation voltage injection angle, voltage compensation adjustment coefficient, and harmonic compensation coefficient of each harmonic frequency band as optimization variables, the apparent power of the corresponding series and parallel sides is determined by adjusting different combinations of compensation parameters, and the total apparent power of the unified power quality regulator is determined. Under the constraints, iterative optimization is performed on different voltage drops and harmonic spectrum distributions to determine the minimum capacity and optimal compensation parameter combination of the unified power quality regulator under the corresponding operating conditions.

7. The method according to claim 6, characterized in that, Under the aforementioned constraints, iterative optimization is performed on different voltage drops and harmonic spectrum distributions to determine the minimum capacity and optimal compensation parameter combination of the unified power quality regulator under the corresponding operating conditions, including: Under the voltage drop or voltage rise conditions determined based on the voltage drop depth or voltage rise depth, the voltage compensation adjustment coefficient is kept constant. The capacity of the series converter is calculated by adjusting the series side compensation voltage injection angle. The minimum series capacity and corresponding parameters that satisfy the voltage compensation constraint are recorded to form a series converter capacity set. Using the harmonic compensation coefficient of each harmonic frequency band as the optimization variable, the harmonic compensation coefficient is adjusted within a preset range to calculate the capacity of the parallel converter, and the minimum parallel capacity and corresponding parameters that satisfy the harmonic distortion rate constraints of each harmonic frequency band are recorded to form a set of parallel converter capacities. Using the optimal compensation parameters in the series converter capacity set and the parallel converter capacity set as the initial solution, a joint optimization variable is constructed. The joint iteration is performed with the goal of minimizing the total apparent power until the preset convergence condition is met or the maximum number of iterations is reached. The parameter combination corresponding to the minimum global capacity is selected as the optimal solution for the voltage drop or voltage rise condition, as well as the harmonic distortion condition determined based on the harmonic distortion rate.

8. The method according to claim 7, characterized in that, The step of determining the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side based on the optimal compensation parameters includes: The amplitude and phase of the three-phase power grid voltage command value are determined based on the optimal voltage offset angle and the optimal voltage compensation adjustment coefficient. Based on the harmonic detection results and optimal harmonic compensation coefficients of each harmonic frequency band, the reference value of the compensation current for each harmonic frequency band is determined, and the reference values ​​of the compensation current for each harmonic frequency band are superimposed to obtain the total compensation current command value on the parallel side.

9. The method according to claim 8, characterized in that, The compensation control of the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters includes: Voltage feedforward or feedback control is used on the series side to output compensation voltage; On the parallel side, current tracking control is used to output a corresponding compensation current to suppress harmonics in each harmonic frequency band.

10. An optimized control device for uniform power quality regulator capacity, characterized in that, include: The acquisition module is configured to acquire electrical signals from each side of the unified power quality regulator, wherein each side of the unified power quality regulator includes the grid side, the load side, the series side, and the parallel side. The voltage detection module is configured to detect voltage dips and rises in the power grid based on the power grid voltage signal on the power grid side, and determine the voltage dip depth or voltage rise depth, wherein the voltage dip depth is used to characterize the degree of voltage dip. The harmonic analysis module is configured to perform spectral analysis on the load current signal on the load side, divide the harmonic frequency bands, and determine the harmonic distortion rate corresponding to each harmonic frequency band. The model building module is configured to build a capacity optimization model for a unified power quality regulator, wherein the capacity optimization model takes minimizing the capacity of the unified power quality regulator as the optimization objective and the voltage drop depth and the harmonic distortion rate of each harmonic frequency band as constraints. The model solving module is configured to solve the capacity optimization model and determine the optimal compensation parameters; The optimized control module is configured to determine the compensation voltage control parameters on the series side and the compensation current control parameters on the parallel side based on the optimal compensation parameters, and to perform compensation control on the capacity of the unified power quality regulator based on the compensation voltage control parameters and the compensation current control parameters.