A Collaborative Governance Strategy for Power Quality in AC/DC Distribution Networks Considering the Coupling Characteristics of Both Sides

The interactions between power quality in the AC-DC distribution network segments contribute to the distributed propagation of power quality anomalies throughout the entire network. Focusing on the photovoltaic multifunctional grid-connected inverter (PVMFGCI), this study deeply explores a collaborative governance strategy for optimizing regional power quality. Initially, the analysis dissects the DC ripple generation mechanism corresponding to harmonics and asymmetry in AC subnetwork voltages. Subsequently, a strategy is proposed for partitioning comprehensive control regions for AC-side power quality, taking into account photovoltaic governance resources based on insights from photovoltaic control realms and power quality classifications. Further, a collaborative allocation model for governance resources incorporating active optimization potentials of grid-connected converters is established based on the governance capabilities and residual capacities of PVMFGCI. Finally, the effectiveness of the proposed approach is validated through a MATLAB-based example analysis.


Introduction
With the increasing integration of distributed energy resources and demand-side inputs, the traditional unidirectional energy flow paradigm of distribution networks has evolved, giving rise to a dynamic landscape characterized by the coordinated orchestration of diverse energy streams [1]. As a result, the conventional structural framework of distribution networks is gradually transitioning towards the dynamic realm of AC and DC distribution networks [2]. Anchored in the concept of DC interconnection, the AC-DC distribution network assumes a pivotal role, serving not only as a conduit for the direct integration of wind and solar power to facilitate widespread utilization of distributed renewable energy, but also as an enabler of dynamic substation expansion and rapid fault remediation through the flexible medium of DC interconnection. This transformative shift represents an inevitable trajectory for the future development of distribution network infrastructure [3,4]. Within this evolving landscape, the inherent variability of photovoltaic active output, combined with the uncertainties inherent in single-phase grid-connected lowpower distributed energy discharge, presents a propensity for power quality challenges. These challenges manifest in the form of AC-side harmonic injection, voltage oscillations, and tripartite imbalances, further escalating the stakes to encompass potential voltage excursions, system oscillations, and other safety concerns that have a tangible impact on the daily lives of the majority of users [5]. Moreover, the widespread proliferation of distributed power sources and power electronic devices amplifies the pervasiveness of power quality consideration its collaborative treatment in the whole grid power quality problem. Therefore, it is of great significance to study the active optimization and collaborative governance strategies of photovoltaic grid-connected inverters for the power quality of distribution networks.
According to the existing research, based on the typical grid structure of the AC-DC distribution network, this paper proposes a collaborative governance strategy for the power quality of the AC-DC distribution network based on the coupling characteristics of both sides. Its main potential has two points: (i) Consider the photovoltaic grid-connected inverters in the distribution network to divide the power quality comprehensive management area of the AC and DC distribution network, which is conducive to the regionalization of power quality management. (ii) Use the remaining capacity of the grid-connected inverter to manage the power quality of the whole network, and realize the reasonable and effective allocation of its governance resources so as to realize the global coordinated management of power quality.

Mechanism of DC Ripple Generation Based on AC-DC Coupling Characteristics
Illustrated in Figure 1 is an exemplar of the typical AC-DC distribution network architecture. The comprehensive system is systematically categorized into discrete AC subnetworks, DC subnetworks, and converters. The AC subnetwork encompasses an array of AC loads and dispersed photovoltaic installations. In conjunction, the DC subnetwork and Voltage Source Converters (VSCs) collaboratively facilitate the dynamic integration of low-voltage AC and DC distribution networks. This adaptable interplay underscores the efficacy of accessing DC loads and engaging in photovoltaic energy storage in a manner that is both streamlined and efficient. In the realm of the AC-DC distribution network, the presence of grid voltage harmonics or asymmetry on the AC side triggers a consequential interplay of unbalanced power components within the AC-DC interconnection power. This intricate interplay gives rise to the propagation of ripples onto the DC side, subsequently inducing fluctuations in voltage and current along the DC bus. The repercussions of these perturbations exert a pronounced impact on the overall power quality of the distribution network. Leveraging the coupling effect interdependence inherent to the power quality dynamics within the AC-DC distribution network, there emerges a compelling impetus to delve deeper into the mechanics underpinning the generation of ripples on the DC side. To address this imperative, the present paper undertakes a meticulous analysis of the In the realm of the AC-DC distribution network, the presence of grid voltage harmonics or asymmetry on the AC side triggers a consequential interplay of unbalanced power components within the AC-DC interconnection power. This intricate interplay gives rise to the propagation of ripples onto the DC side, subsequently inducing fluctuations in voltage and current along the DC bus. The repercussions of these perturbations exert a pronounced impact on the overall power quality of the distribution network. Leveraging the coupling effect interdependence inherent to the power quality dynamics within the AC-DC distribution network, there emerges a compelling impetus to delve deeper into the mechanics underpinning the generation of ripples on the DC side. To address this imperative, the present paper undertakes a meticulous analysis of the mechanism, scrutinizing it through the lens of voltage harmonics and asymmetry embedded within the AC subnetwork [10].

Ripple Analysis Caused by Voltage Harmonics
In the presence of harmonic components within the voltage of the AC subnetwork, the voltage and current therein may be characterized as follows: where k signifies the harmonic order, while θ ka = 0, θ kb = −2kπ/3 + θ, and θ kb = −2kπ/3 + θ denote the respective phases of distinct harmonic voltages.
Subsequently, the three-phase active power of the AC subnetwork can be deduced as follows: P AC = P a + P b + P c = P d + P where P a , P b , and P c symbolize the three-phase powers of AC subnets A, B, and C, respectively. Meanwhile, Pd denotes the steady-state power quantity, and P represents the power fluctuation engendered by harmonics. The power within the DC subnet can be equationed as follows: where R dc signifies the resistance on the DC side, U dc represents the steady-state DC voltage, signifies the fluctuation quantity within the DC voltage, and C dc denotes the capacitance value pertaining to the DC side. The steady-state quantity and fluctuation quantity of power on both sides of the AC-DC distribution network are inherently equivalent. Thus, the ripples on the DC side can be calculated by utilizing the fluctuation quantity: cos((k − 1)ωt + 2hπ 3 + θ + ϕ))dt + ∑ k U km I km ( ∑ h=0,±(k+1) cos((k + 1)ωt + 2hπ 3 + θ − ϕ))dt (5) With reference to the preceding equation, it is discernible that the presence of a k-order harmonic in the AC subnetwork voltage gives rise to an (k ± 1)-order ripple within the DC subnetwork voltage.

Ripple Analysis Caused by Voltage Asymmetry
The imbalanced operation of the AC power distribution system engenders three-phase disparities in the grid voltage. Within the AC-DC distribution network, imbalanced loads on the AC side result in the generation of uneven components of voltage and current. This paper employs the symmetrical component method, wherein the composition of phase A current, comprising diverse sequence components, is expressed as follows: i a = I m1 cos(ωt − ϕ 1 ) + I m2 cos(ωt − ϕ 2 ) + I m0 cos(ωt − ϕ 0 ) (6) where I m1 and ϕ 1 denote the amplitude and phase, respectively, of the positive sequence component of the current. Similarly, I m2 and ϕ 2 represent the amplitude and phase of the i dc = 1 2 (S a i a + S b i b + S c i c ) = 3 4 FI m1 cos(ϕ 1 ) + 3 4 FI m2 cos(2ωt − ϕ 2 ) Equation (7) reveals a direct correlation between the current and variables F, I m1 , I m2 , ϕ 1 , and ϕ 2 . Under circumstances of symmetrical three-phase load on the AC side, the absence of negative sequence component I m2 obviates any secondary ripple, maintaining a constant DC side current. Conversely, in cases of asymmetrical load, the DC side current encompasses not only the DC current but also twice the power frequency component. The introduction of a negative sequence component within the AC distribution network induces power oscillations, and it is noteworthy that the extent of load imbalance directly corresponds to the amplitude of the ripple on the DC side.
In summary, voltage harmonics and three-phase voltage imbalance within the AC subnetwork of the AC-DC distribution network instigate ripples within the DC bus, ultimately compromising the overall power quality and system reliability, particularly under critical conditions. Capitalizing on the DC ripple generation mechanism rooted in the AC-DC coupling characteristics, a collaborative governance strategy for the AC subnet emerges as a potent means to enhance active power stability, augment the quality of current entering the DC subnet, and effectively mitigate DC voltage ripple.

AC Side Power Quality Zoning Strategy Considering Distributed Photovoltaic Governance Resources
Photovoltaic grid-connected inverters exhibit the capacity to concurrently accomplish tasks such as grid-connected power generation, filtering, and reactive power compensation. Within the context of preserving active power generation, the surplus potential inherent in widely dispersed inverters can be effectively channeled towards power quality control. This entails a thoughtful incorporation of distributed photovoltaic management resources, leading to the establishment of distinct control zones. Such an approach fully capitalizes on the power quality management capabilities inherent in inverters within the distribution network.

Comprehensive Model for Voltage Sensitivity
Based on the presence or absence of photovoltaic grid connections at each node within the AC-DC distribution network, two distinct categories of grid nodes emerge: controllable source nodes and load nodes. Notably, controllable source nodes predominantly encompass the PV grid connection points. The prioritized segmentation of controllable source nodes results in each one forming an independent area. Subsequently, the control degree of controllable source nodes over all load nodes across the power grid is calculated, and load nodes exhibiting a substantial degree of control that surpasses the predetermined threshold are allocated to the respective controllable source area. This allocation method determines the control area for each photovoltaic unit, optimizing the influence of controllable source nodes on load nodes and ensuring effective management of photovoltaic units across the region. This study introduces a comprehensive voltage sensitivity model grounded in harmonic, reactive power, and three-phase imbalance sensitivities. Through this model, a partitioning strategy for photovoltaic control areas is devised which aptly considers the three primary power quality indicators.

Harmonic Voltage Sensitivity
The harmonic voltage at each node in the distribution network is the aggregate of the harmonic voltage produced by individual harmonic sources at that node, alongside the Sensors 2023, 23, 7868 6 of 18 harmonic compensation voltage generated by the photovoltaic grid-connected inverter. This relationship is expressed as follows: where U h represents the h-order harmonic voltage vector of the distribution network; U XIE.h signifies the h-order harmonic voltage vector originated from the harmonic source; U APF.h denotes the h-order harmonic compensation voltage vector produced by the photovoltaic grid-connected inverter; Y −1 represents the inverse matrix of the h-order harmonic admittance matrix of the distribution network; and I APF.h indicates the h-order harmonic compensation current vector generated by the photovoltaic grid-connected inverter. The harmonic control sensitivity calculation equation of the photovoltaic grid-connected inverter from node j to node i is obtained by determining and superimposing the corresponding weight factors based on the proportion of each harmonic voltage in the node voltage of the distribution network. The equation is expressed as follows: hj (9) where m ij represents the harmonic control sensitivity of the photovoltaic grid-connected inverter from node j to node i. The parameter α hi signifies the weight associated with the h-order harmonic voltage in node i.

Reactive Sensitivity
The reactive power sensitivity involves the partial derivatives of the fundamental voltage amplitude with respect to reactive power. These derivatives can be derived by utilizing the Newton-Raphson power flow calculation method in polar coordinates, as outlined in the reference. Suppose the system encompasses n nodes, comprising m PQ nodes, one balanced node, and n -m − 1 PV nodes. The power equation of the system can be represented in the form of polar coordinates.
Through linearization, the corrected equation can be expressed as follows: Furthermore, the sensitivity of fundamental voltage to reactive power can be determined as follows: where V i and Q i are the fundamental voltage of node I and the reactive power of node j, respectively.

Three-Phase Imbalance Sensitivity
Imbalanced loads within low-voltage distribution networks can lead to the generation of negative sequence currents, subsequently resulting in imbalanced three-phase voltages. The sensitivity analysis for three-phase imbalance initially involves evaluating the extent of imbalance in three-phase current or voltage. Subsequently, the sensitivity of the three-phase voltage imbalance to compensation current is computed.
where VUF i and VUF i represent the voltage imbalance degree of node i before compensation and after compensation, respectively. To achieve a comprehensive approach towards addressing harmonic voltage, voltage deviation, and three-phase voltage imbalance, a method is devised based on harmonic sensitivity E n h ,ij , reactive power sensitivity S ij , and three-phase imbalance sensitivity B ij . The standardization of each index value is applied to mitigate the impact of varying magnitudes. The comprehensive voltage sensitivity index, denoted as W ij , is established through a weighting method. The expression for this index is presented below: where E n h ,ij , S ij , B ij represent the normalized calculation of the sensitivity index, respectively, τ e , τ s , τ b represent the corresponding degree of importance, and the specific calculation is as follows: where D THi , D VDi , and D TBi symbolize the total harmonic distortion rate of voltage at node i, the absolute value of voltage deviation, and the absolute value of three-phase voltage imbalance, respectively. The variable ∆D THi/VDi/TBi is indicative of instances where the three indicators at node i surpass the predetermined limit prior to the distribution network governance intervention.

Division of Power Quality Zones in AC Subnetworks
The fundamental principle of regional power quality management lies in utilizing the correlation between nodes to delineate distinct regions, thereby facilitating comprehensive and decentralized control within intricate networks. The distribution network is segmented into multiple power quality control zones, distinguished by strong interconnectivity between nodes. Owing to the robust interdependence among nodes within each zone, a pivotal control node emerges naturally. By addressing power quality issues at this central node, the mitigation of analogous problems across other nodes within the same region is notably enhanced. This approach enables a more significant impact on regional governance with optimized resource utilization.
While Dynamic Time Warping (DTW) provides the capability to align sequences of unequal dimensions, akin to Edit Distance (ED), it does not distinctly depict the interplay between shape attributes and the directional evolution of the sequences. Additionally, it may exhibit a "sick bending" phenomenon characterized by substantial misalignments. This phenomenon pertains to the alignment of sequences with significant disparities. The Dynamic Derivative Time Warping (DDTW) algorithm is introduced to address these limitations and presents itself as a more apt choice for delineating power quality pollution governance with optimized resource utilization.
While Dynamic Time Warping (DTW) provides the capability to align sequences of unequal dimensions, akin to Edit Distance (ED), it does not distinctly depict the interplay between shape attributes and the directional evolution of the sequences. Additionally, it may exhibit a "sick bending" phenomenon characterized by substantial misalignments. This phenomenon pertains to the alignment of sequences with significant disparities. The Dynamic Derivative Time Warping (DDTW) algorithm is introduced to address these limitations and presents itself as a more apt choice for delineating power quality pollution zones compared to the DTW algorithm. The alignment diagrams for both methods are illustrated in Figure 2. DDTW employs the directional change information inherent in the sequences for alignment matching, with the change trend being encapsulated by the first-order derivative. Consequently, within the DDTW matching algorithm, the comparison entails evaluating the squared difference of derivatives between each pair of points [24]. The procedural sequence is delineated as follows: To preprocess the initial time series Normalize the element values ′ X and ′ Y within sequences i x′ and j y′ : The FCM (Fuzzy C-Means) algorithm incorporates the notion of membership, assessing the degree of affiliation of each sample to different categories through the DDTW employs the directional change information inherent in the sequences for alignment matching, with the change trend being encapsulated by the first-order derivative. Consequently, within the DDTW matching algorithm, the comparison entails evaluating the squared difference of derivatives between each pair of points [24]. The procedural sequence is delineated as follows: To preprocess the initial time series X = {x 1 , x 2 , · · · , x m } and Y = {y 1 , y 2 , · · · , y n }, the differential technique is applied to transform their values, yielding X and Y : Normalize the element values X and Y within sequences x i and y j : where µ X and µ Y are the mean values of X and Y , respectively; σ X and σ Y are the variances of X and Y , respectively. After this preprocessing, the transformed sequences X * = {x 1 * , x 2 * , · · · , x m * } and Y * = {y 1 * , y 2 * , · · · , y n * } are obtained, following which the DTW calculation is conducted to derive the DDTW distance.
The FCM (Fuzzy C-Means) algorithm incorporates the notion of membership, assessing the degree of affiliation of each sample to different categories through the membership matrix. The likelihood of a sample belonging to each category exists within the range of [0, 1]. Consequently, the FCM clustering algorithm represents a form of fuzzy soft clustering. The central concept revolves around iteratively refining the membership matrix and cluster centroids until the objective function achieves its minimum, ultimately yielding the definitive cluster centers.
Consider a sample dataset denoted as X = x 1 , · · · , x j , · · · , x n , where n signifies the total count of sample data, and j represents the subscript associated with each sample datum.
The objective function of the FCM clustering algorithm is expressed as follows: where c represents the total number of cluster categories, i represents the subscript of the cluster category; U = µ ij represents the c × n-order membership degree matrix, and µ ij represents the membership degree of the j-th sample data belonging to the i-th class; V = {v i } represents the cluster center matrix of order c × d, and v i represents the cluster center of the i-th class; m ∈ [1, +∞) is the fuzzy index, m = 2; d ij = d DDTW (x j , v i ) represents the DDTW distance from the sample x j to the cluster center v i of the i-th class. The relationship linking the Euclidean distance between individual elements and the cluster center to the membership degree matrix is established through the utilization of Lagrange multiplication. This relationship, in turn, facilitates the derivation of an iterative link between the membership degree matrix and the cluster center. FCM, classified as an unsupervised algorithm, operates on sample data for which categorization is typically unknown. For effective application of the FCM algorithm, a specific cluster count c must be designated to segment the sample data set into c distinct categories. The foundational principle governing clustering algorithms underscores the goal of minimizing intra-class distances while concurrently maximizing inter-class distances. Within this principle, the number of clusters denoted by c holds significant influence. Thus, a function that employs the number of clusters c as an independent variable is essential to characterize clustering performance. This function is aptly termed the clustering validity function. This function serves to evaluate the efficacy of clustering by considering the ratio of inter-class distance to intra-class distance, quantified through the functional evaluation index P [25]. Notably, a higher value of P signifies a more favorable outcome in terms of clustering effectiveness, reflecting improved data separation and quality of categorization.
where c represents the total number of cluster categories, i represents the subscript of the cluster category; { } ij U μ = represents the c n × -order membership degree matrix, and ij μ represents the membership degree of the j-th sample data belonging to the i-th class; represents the cluster center matrix of order c d × , and i v represents the cluster center of the i-th class; [1, ) m∈ +∞ is the fuzzy index, m = 2; represents the DDTW distance from the sample j x to the cluster center i v of the i-th class.
The relationship linking the Euclidean distance between individual elements and the cluster center to the membership degree matrix is established through the utilization of Lagrange multiplication. This relationship, in turn, facilitates the derivation of an iterative link between the membership degree matrix and the cluster center. FCM, classified as an unsupervised algorithm, operates on sample data for which categorization is typically unknown. For effective application of the FCM algorithm, a specific cluster count c must be designated to segment the sample data set into c distinct categories. The foundational principle governing clustering algorithms underscores the goal of minimizing intra-class distances while concurrently maximizing inter-class distances. Within this principle, the number of clusters denoted by c holds significant influence. Thus, a function that employs the number of clusters c as an independent variable is essential to characterize clustering performance. This function is aptly termed the clustering validity function. This function serves to evaluate the efficacy of clustering by considering the ratio of inter-class distance to intra-class distance, quantified through the functional evaluation index P [25]. Notably, a higher value of P signifies a more favorable outcome in terms of clustering effectiveness, reflecting improved data separation and quality of categorization.
where ( ) k j x signifies the j-th sample data that belong to the k-th class. The numerator in the expression represents the inter-class distance, while the denominator signifies the intra-class distance. Upon reaching its maximum value, the clustering validity index P aids in determining the optimal number of clusters, denoted as c, for the given sample data set.
Building upon the foundation laid out in Equations (16) and (17), the tripartite power quality indices encompassing harmonics, voltage deviation, and three-phase imbalance are meticulously weighted and amalgamated for every node situated within the expansive AC and DC distribution network. This intricate synthesis yields a unified power quality j signifies the j-th sample data that belong to the k-th class. The numerator in the expression represents the inter-class distance, while the denominator signifies the intraclass distance. Upon reaching its maximum value, the clustering validity index P aids in determining the optimal number of clusters, denoted as c, for the given sample data set.
Building upon the foundation laid out in Equations (16) and (17), the tripartite power quality indices encompassing harmonics, voltage deviation, and three-phase imbalance are meticulously weighted and amalgamated for every node situated within the expansive AC and DC distribution network. This intricate synthesis yields a unified power quality time series, which emerges as a potent tool for crafting an AC regional division strategy. This strategy, rooted in the fusion of power quality data, becomes the linchpin for orchestrating a comprehensive approach to managing power quality within subnetworks, ensuring their harmonious and effective operation.

Process of AC-Side Power Quality Zoning Strategy Considering Distributed Photovoltaic Governance Resources
This paper presents a comprehensive regional division strategy for managing power quality in AC and DC distribution networks. The process is illustrated in Figure 3, with detailed steps outlined as follows: (i) A comprehensive voltage sensitivity model is equationed by integrating harmonic sensitivity, reactive power sensitivity, and three-phase imbalance sensitivity. This model takes into consideration the presence of distributed photovoltaic governance resources within the distribution network. It delineates photovoltaic control areas that effectively address the three primary power quality indicators.
(ii) The DDTW-FCM clustering and partitioning algorithm is harnessed to analyze time series data. This approach determines the optimal number of clusters through the maximization of the clustering validity function. Subsequently, it assigns nodes to respective classes, thereby facilitating the delineation of power quality areas. Each area's central node, closest to the cluster center, is identified as the pilot node for regional governance. (iii) The comprehensive management area of power quality is defined based on the spatial relationship between the two types of areas through the following methods: if the photovoltaic control area is entirely encompassed within the power quality area, the comprehensive management area is set to be the extent of the photovoltaic control area. In cases where the regions overlap, the approach involves amalgamating the PV control region with the corresponding power quality region of the predominant node it encompasses.
quality in AC and DC distribution networks. The process is illustrated in Figure 3, with detailed steps outlined as follows: (i) A comprehensive voltage sensitivity model is equationed by integrating harmonic sensitivity, reactive power sensitivity, and three-phase imbalance sensitivity. This model takes into consideration the presence of distributed photovoltaic governance resources within the distribution network. It delineates photovoltaic control areas that effectively address the three primary power quality indicators. (ii) The DDTW-FCM clustering and partitioning algorithm is harnessed to analyze time series data. This approach determines the optimal number of clusters through the maximization of the clustering validity function. Subsequently, it assigns nodes to respective classes, thereby facilitating the delineation of power quality areas. Each area's central node, closest to the cluster center, is identified as the pilot node for regional governance. (iii) The comprehensive management area of power quality is defined based on the spatial relationship between the two types of areas through the following methods: if the photovoltaic control area is entirely encompassed within the power quality area, the comprehensive management area is set to be the extent of the photovoltaic control area. In cases where the regions overlap, the approach involves amalgamating the PV control region with the corresponding power quality region of the predominant node it encompasses.

Functional Analysis of Power Quality Control in Photovoltaic Grid-Connected Inverters
In the low-voltage distribution network of my country, the prevalent power supply method often employs three-phase four-wire configurations [26,27]. The four-leg photovoltaic grid-connected inverter equipped with active filtering capabilities encompasses various technologies, such as grid-connected power generation, active filtering, Maximum Power Point Tracking (MPPT), command current calculation, and tracking control. The system's structural diagram is illustrated in Figure 4. The primary circuit comprises components such as a photovoltaic array, a three-phase four-leg converter, filter inductors, parallel loads, and the three-phase four-wire power grid. The control loop integrates elements such as the signal detection unit, Maximum Power Point Tracking (MPPT) control unit, command current calculation unit, and the main control unit.
Power Point Tracking (MPPT), command current calculation, and tracking control. The system's structural diagram is illustrated in Figure 4. The primary circuit comprises components such as a photovoltaic array, a three-phase four-leg converter, filter inductors, parallel loads, and the three-phase four-wire power grid. The control loop integrates elements such as the signal detection unit, Maximum Power Point Tracking (MPPT) control unit, command current calculation unit, and the main control unit. The control loop of the Photovoltaic Grid-Connected Inverter (PVMFGCI) continuously monitors the load current within the distribution network. It extracts harmonic, reactive power, and imbalanced current components, subsequently generating a reference value for compensation current. This compensation current reference is then integrated with the active current from photovoltaic power generation to establish the final gridconnected command current. This approach ensures cohesive regulation of power generation and active filtering functions during grid connection. The present study places emphasis on the synergistic utilization of photovoltaic grid connection and parallel-connected Active Power Filters (APF). This integrated approach is particularly effective in addressing power-related issues such as grid imbalances, all the while contributing active power to the grid. Due to the scope of this paper, detailed discussion on the Maximum Power Point Tracking (MPPT) technique is not provided.
The Photovoltaic Grid-Connected Inverter (PVMFGCI) has a total capacity denoted as SN. Among this capacity, a portion is allocated to DG grid connection, represented as SDG, leaving the remaining capacity designated as SRE.
where U is the distribution network voltage, and I1 is the active current output by the inverter.
The interplay between the harmonic control and reactive power compensation capacity of the photovoltaic grid-connected inverter and its remaining capacity can be equationed as follows: The control loop of the Photovoltaic Grid-Connected Inverter (PVMFGCI) continuously monitors the load current within the distribution network. It extracts harmonic, reactive power, and imbalanced current components, subsequently generating a reference value for compensation current. This compensation current reference is then integrated with the active current from photovoltaic power generation to establish the final grid-connected command current. This approach ensures cohesive regulation of power generation and active filtering functions during grid connection. The present study places emphasis on the synergistic utilization of photovoltaic grid connection and parallel-connected Active Power Filters (APF). This integrated approach is particularly effective in addressing power-related issues such as grid imbalances, all the while contributing active power to the grid. Due to the scope of this paper, detailed discussion on the Maximum Power Point Tracking (MPPT) technique is not provided.
The Photovoltaic Grid-Connected Inverter (PVMFGCI) has a total capacity denoted as S N . Among this capacity, a portion is allocated to DG grid connection, represented as S DG , leaving the remaining capacity designated as S RE .
where U is the distribution network voltage, and I 1 is the active current output by the inverter. The interplay between the harmonic control and reactive power compensation capacity of the photovoltaic grid-connected inverter and its remaining capacity can be equationed as follows: where S h , S q , and S 2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and three-phase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively. Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows:  are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively.
Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively.
tion (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively.

Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. q = I q /I 1

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
( ) where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. 0 = I 0 /I 1 (26) where I 1 , I h , I q , and I 0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as ε h , ε q and ε 2 , respectively. In this context, the power quality coefficient after compensation can be derived as follows:    where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. 20 (27) where IEW 12 of 19 where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively.
2 are the harmonics, reactive power and three-phase imbalance coefficients before compensation and after compensation, respectively.
Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29]. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: are the harmonics, reactive power and threephase imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29].
where Ip1, Iph, Ipq, and Ip2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively.
where I p1 , I ph , I pq , and I p2 are PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current, respectively. Considering the simplicity of the Lagrange multiplier method, this study employs this approach to solve the optimal coefficient problem related to the comprehensive power quality control of the remaining capacity of PVMFGCI [30]. Let λ represent the Lagrangian multiplier, and equation the Lagrangian function as follows: where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compensation can be derived as follows: Compute using the Lagrange multiplier method in order to solve: where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compen- where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after compen- where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter monic control, reactive power compensation, and three-phase imbalance contro tively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltai Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed tion (DG) grid-connected inverters within the distribution network, a prudent a of residual inverter capacity can yield tailored governance outcomes, thereby tially influencing power quality across distinct distribution network regions. Thr meticulous optimization of compensation strategies, the efficacy of the photovol tifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, a phase imbalances can be rendered more cost-effective and logically coherent. proach fosters an efficient distribution of governance resources, thereby ach heightened level of power quality enhancement across various sectors of the net elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framewo vised to determine the optimal compensation coefficients for harmonics, reactiv and three-phase imbalances using its residual capacity. The subsequent equatio to articulate these coefficients individually: Ih, Iq, and I0 represent the fundamental current, harmonic current, reac rent, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensat three-phase imbalance control of the remaining capacity of PVMFGCI are repres h ε , q ε and 2 ε , respectively. In this context, the power quality coefficient after The comprehensive management strategy of power quality of PVMFGCI remaining capacity is as follows: (i) A comprehensive voltage sensitivity model is equationed by integrating harmonic sensitivity, reactive power sensitivity, and three-phase imbalance sensitivity. This model takes into consideration the presence of distributed photovoltaic governance resources within the distribution network. It delineates photovoltaic control areas that effectively address the three primary power quality indicators.
(ii) If S RE ≥ Q N0 , and satisfies Subsequently, full compensation can be executed directly when the value of ε h = ε q = ε 0 = 1 is met. Conversely, if this criterion is not fulfilled, calculate the compensation coefficients using Equation (30) prior to implementing the compensation.
(iii) If S RE ≤ Q N0 , and satisfy, then no compensation will be invested.

Case Analysis
To validate the efficacy of the zoning management approach outlined in this study, we employ the AC/DC distribution network depicted in Figure 1 as a reference model. This network encompasses a 16-node 220 V AC subnet and a five-node ±375 V DC subnet, interconnected in the distribution system. The VSC (Voltage Source Converter) capacity is established at 200 kV·A, with photovoltaic (PV) integration accomplished through AC threephase and DC connections. Notably, the analysis disregards the influence of harmonic absorption by system capacitors and assumes ideal transformers. The comprehensive management of power quality is exclusively undertaken using the PVMFGCI. At the gridconnected node, the PVMFGCI capacity is set at 18 kVA, and the solar cell array output is optimized for maximum power, attaining 15 kW. Despite allocating the full PVMFGCI capacity for grid connection and harmonic control, a certain surplus capacity remains untapped, which is neither utilized for active grid connection nor harmonic control. For calculation purposes, this available capacity is deemed to be 17 kVA in the ensuing example. Drawing from the typical daily active power output curve of photovoltaics, the designed harmonic control optimization strategy is substantiated through an illustrative case study.
Adhering to the harmonic standards applicable in my country, this section establishes a permissible upper threshold of 4% for the Total Harmonic Distortion Rate of harmonic voltage. The harmonic distribution among the system nodes, pertinent to the calculation example, is outlined in Table 1. Additionally, the harmonic current is taken into account at frequencies corresponding to the 5th, 7th, 11th, and 13th harmonics. Specifically, nodes 3, 7, 13, and 15 are associated with 20 kW imbalanced loads individually. Utilizing the comprehensive voltage sensitivity model, it becomes possible to delineate photovoltaic control areas within the AC subnet, factoring in the three power quality indicators. These areas are established for each of the four photovoltaic sources, with their corresponding controllable source nodes and the nodes under their control outlined in Table 2.
As observed in the table, the four controllable source nodes align with distinct photovoltaic control areas. Given that power quality compensation takes the form of current, each control area predominantly encompasses nodes situated along the same branch. Under the function of photovoltaic power quality management, enhancements in power quality can be anticipated within the photovoltaic control area. Fundamentally, the compensation processes for harmonics, reactive power, and imbalance within the system all revolve around controlling the current waveform. The application of uniform compensation results in a system current that is both symmetrical and sinusoidal in nature. The power quality time series data from the 16 nodes undergo dimension reduction, followed by the application of the DDTW-FCM method for power quality partitioning. Within each partition, the node nearest to the cluster center is designated as the dominant node. The achieved clustering effectiveness is depicted in Figure 5, while the specific partition outcomes are presented in Table 3.
corresponding controllable source nodes and the nodes under their control outlined in Table 2. As observed in the table, the four controllable source nodes align with distinct photovoltaic control areas. Given that power quality compensation takes the form of current, each control area predominantly encompasses nodes situated along the same branch. Under the function of photovoltaic power quality management, enhancements in power quality can be anticipated within the photovoltaic control area. Fundamentally, the compensation processes for harmonics, reactive power, and imbalance within the system all revolve around controlling the current waveform. The application of uniform compensation results in a system current that is both symmetrical and sinusoidal in nature.
The power quality time series data from the 16 nodes undergo dimension reduction, followed by the application of the DDTW-FCM method for power quality partitioning. Within each partition, the node nearest to the cluster center is designated as the dominant node. The achieved clustering effectiveness is depicted in Figure 5, while the specific partition outcomes are presented in Table 3.   From the clustering validity function, it is evident that the optimal division of regions is achieved when the number of regions is four. At this point, the power quality coupling between regions is minimized, while the coupling within each region is maximized. Referring to the table, the dominant control nodes for regions I, II, IV, and V are identified as 3, 7, 15, and 11, respectively. Based on this regional division strategy for comprehensive power quality management in the AC and DC distribution network, a refined power quality division on the AC side, considering distributed photovoltaic management resources, can be further established.
Drawing upon the spatial relationship between these two area types, the comprehensive power quality control areas are precisely delineated. Specifically, the AC subnetwork of the AC-DC distribution network is partitioned into four comprehensive power quality control areas, as illustrated in Figure 6. This approach aids in efficiently consolidating the governance resources of distributed photovoltaics, guaranteeing that photovoltaic control is harmonized to enhance power quality. Ultimately, it facilitates the optimal execution of comprehensive governance strategies.
Drawing upon the spatial relationship between these two area types, the comprehensive power quality control areas are precisely delineated. Specifically, the AC subnetwork of the AC-DC distribution network is partitioned into four comprehensive power quality control areas, as illustrated in Figure 6. This approach aids in efficiently consolidating the governance resources of distributed photovoltaics, guaranteeing that photovoltaic control is harmonized to enhance power quality. Ultimately, it facilitates the optimal execution of comprehensive governance strategies. Derived from the power quality optimization strategy involving the adaptable capacity of the photovoltaic grid-connected system, the optimal coefficients for compensating harmonics, reactive power, and three-phase imbalance are deduced. The resulting capacity allocation and compensation coefficients are illustrated in Table 4. Derived from the power quality optimization strategy involving the adaptable capacity of the photovoltaic grid-connected system, the optimal coefficients for compensating harmonics, reactive power, and three-phase imbalance are deduced. The resulting capacity allocation and compensation coefficients are illustrated in Table 4. As indicated in Table 4, the choice of 12:00 results in a maximum PV output power of 15 kW, and the computed power quality compensation capacity remains well within the confines of the remaining capacity. This enables a full and unabated active grid connection. The figures below, specifically Figures 7 and 8, present a visual representation of the outcomes pertaining to harmonics and three-phase imbalance before and after the comprehensive power quality control for each node within the AC subnet of the AC and DC distribution network. As indicated in Table 4, the choice of 12:00 results in a maximum PV output power of 15 kW, and the computed power quality compensation capacity remains well within the confines of the remaining capacity. This enables a full and unabated active grid connection. The figures below, specifically Figures 7 and 8, present a visual representation of the outcomes pertaining to harmonics and three-phase imbalance before and after the comprehensive power quality control for each node within the AC subnet of the AC and DC distribution network.    From the figure, it is evident that following the comprehensive treatment of the AC subnet, the harmonics at each node are consistently below 2%. Moreover, the degree of three-phase imbalance experiences a noticeable reduction, and the calculated ripple coefficient of the DC bus decreases from 1.75% to 0.5%. The implementation of power quality control measures within the AC subnet proves effective in diminishing the introduced ripple, enhancing the power quality of the DC subnet, and ensuring the stable operation of the DC subnet.

Conclusions
In order to improve the power quality of the AC-DC distribution network and give full play to the advantages of flexible and controllable output power of photovoltaic power generation, this paper proposes a collaborative governance strategy for the power quality of the AC-DC distribution network based on the coupling characteristics of both From the figure, it is evident that following the comprehensive treatment of the AC subnet, the harmonics at each node are consistently below 2%. Moreover, the degree of three-phase imbalance experiences a noticeable reduction, and the calculated ripple coefficient of the DC bus decreases from 1.75% to 0.5%. The implementation of power quality control measures within the AC subnet proves effective in diminishing the introduced ripple, enhancing the power quality of the DC subnet, and ensuring the stable operation of the DC subnet.

Conclusions
In order to improve the power quality of the AC-DC distribution network and give full play to the advantages of flexible and controllable output power of photovoltaic power generation, this paper proposes a collaborative governance strategy for the power quality of the AC-DC distribution network based on the coupling characteristics of both sides, and comprehensively considers the coupling characteristics of power quality, rationally allocates photovoltaic governance resources, and realizes the comprehensive optimization of power quality.
(i) In the problem of power quality on both sides of AC and DC, the DC ripple generation mechanism corresponding to the harmonics and asymmetry of the AC subnetwork voltage is derived and analyzed. With the help of the inverter's fast response and high-precision adjustment capabilities, it can quickly identify and respond to current distortions and imbalances and achieve effective control. (ii) Based on the comprehensive voltage sensitivity model to determine the photovoltaic control area, the DDTW-FCM cluster partition algorithm is used to divide the power quality area and its dominant node, and four comprehensive power quality control areas of the AC and DC distribution network are determined. (iii) Considering the power quality management function of PVMFGCI, the optimal compensation coefficients of power quality indicators in the four regions are solved based on its remaining capacity, which effectively improves the harmonics, reactive power, and imbalance of the AC side, and reduces the ripple of the DC bus wave, to achieve a more reasonable and economical AC and DC distribution network power quality collaborative governance. h-order harmonic compensation voltage/current vector produced by the photovoltaic grid-connected inverter m ij the harmonic control sensitivity of the photovoltaic grid-connected inverter from node j to node i α hi weight associated with the h-order harmonic voltage in node i E n h ,ij , S ij , B ij harmonic/reactive power/three-phase imbalance sensitivity W ij comprehensive voltage sensitivity VUF i , VUF i the voltage imbalance degree of node i before/after compensation P the optimal number of clusters S h , S q , S 2 capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control ε h , ε q , ε 2 coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI I p1 , I ph , I pq , I p2 PVMFGCI output active current, harmonic wave control, reactive power compensation, and three-phase imbalance control current 12 of 19 re Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for haric control, reactive power compensation, and three-phase imbalance control, respecy.

ower Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic -Connected Systems
Taking into account the geographical placement and capacity of distributed genera-(DG) grid-connected inverters within the distribution network, a prudent allocation sidual inverter capacity can yield tailored governance outcomes, thereby differeninfluencing power quality across distinct distribution network regions. Through the culous optimization of compensation strategies, the efficacy of the photovoltaic mulctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threee imbalances can be rendered more cost-effective and logically coherent. This apch fosters an efficient distribution of governance resources, thereby achieving a htened level of power quality enhancement across various sectors of the network, as idated in reference [28]. Building upon the allocated capacity of PVMFGCI, a mathematical framework is deto determine the optimal compensation coefficients for harmonics, reactive power, three-phase imbalances using its residual capacity. The subsequent equations serve ticulate these coefficients individually: re I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive curand three-phase imbalanced current on the grid side, respectively. Suppose the coefficients for harmonic control, reactive power compensation, and -phase imbalance control of the remaining capacity of PVMFGCI are represented as q ε and 2 ε , respectively. In this context, the power quality coefficient after compenn can be derived as follows:  are the harmonics, reactive power and threee imbalance coefficients before compensation and after compensation, respectively. Developing a comprehensive evaluation model for power quality under various opng scenarios involves solving for PVMFGCI [29]. where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually: where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively. Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as  where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as  where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as  where Sh, Sq, and S2 represent the capacities of the DG grid-connected inverter for harmonic control, reactive power compensation, and three-phase imbalance control, respectively.

Power Quality Optimization Strategy Utilizing Adjustable Capacity in Photovoltaic Grid-Connected Systems
Taking into account the geographical placement and capacity of distributed generation (DG) grid-connected inverters within the distribution network, a prudent allocation of residual inverter capacity can yield tailored governance outcomes, thereby differentially influencing power quality across distinct distribution network regions. Through the meticulous optimization of compensation strategies, the efficacy of the photovoltaic multifunctional grid inverter (PVMFGCI) in mitigating harmonics, reactive power, and threephase imbalances can be rendered more cost-effective and logically coherent. This approach fosters an efficient distribution of governance resources, thereby achieving a heightened level of power quality enhancement across various sectors of the network, as elucidated in reference [28].
Building upon the allocated capacity of PVMFGCI, a mathematical framework is devised to determine the optimal compensation coefficients for harmonics, reactive power, and three-phase imbalances using its residual capacity. The subsequent equations serve to articulate these coefficients individually:  (26) where I1, Ih, Iq, and I0 represent the fundamental current, harmonic current, reactive current, and three-phase imbalanced current on the grid side, respectively.
Suppose the coefficients for harmonic control, reactive power compensation, and three-phase imbalance control of the remaining capacity of PVMFGCI are represented as Developing a comprehensive evaluation model for power quality under various operating scenarios involves solving for PVMFGCI [29]. min  + +    2 harmonics, reactive power, and three-phase imbalance coefficients before compensation and after compensation