I propose a comprehensive harmonic mitigation framework for modern distribution networks in which the remaining capacity of solar inverters is used as a fast, local, and distributed actuation resource. The central idea of my method is that global harmonic coordination does not need to be performed at the speed of power-electronics control. Instead, I divide the problem into three coordinated layers: an offline or slow-timescale configuration layer, a minute-level centralized optimization layer, and a real-time local control layer inside each solar inverter. This structure allows me to avoid the most serious practical barriers of existing multi-converter harmonic mitigation schemes, including inaccurate harmonic phasor synchronization, heavy real-time computation, communication latency, current-limit violations, and loss of stability caused by excessive virtual harmonic conductance.
In my framework, a solar inverter is not treated only as a renewable generation device. I treat it as a multi-functional grid interface that can deliver active power, provide reactive support, and simultaneously inject carefully shaped harmonic currents. The harmonic mitigation function is achieved by two local control modes. The first mode is local harmonic current compensation, in which the solar inverter measures the local load harmonic current and injects a scaled replica to cancel the harmonic current near its source. The second mode is harmonic virtual conductance control, in which the solar inverter measures the point-of-common-coupling harmonic voltage and draws or injects a harmonic current proportional to that voltage through a virtual conductance. I combine these two modes so that the distribution network benefits both from local harmonic current cancellation and from global harmonic admittance reshaping.

The first local mode can be written as a current injection law. For a solar inverter connected at node i and compensating harmonic order h, I define
$$\dot{i}_{PVi,h}=k_{i,h}\dot{i}_{Li,h}$$
where \(\dot{i}_{PVi,h}\) is the harmonic current phasor injected by the solar inverter, \(\dot{i}_{Li,h}\) is the measured local load harmonic current phasor, and \(k_{i,h}\) is the harmonic current compensation coefficient. I constrain this coefficient according to
$$0\le k_{i,h}\le 1$$
so that the solar inverter never deliberately over-compensates a local harmonic source in the steady-state optimization. In the real-time layer I allow limited adjustment of the effective coefficient, but I always keep the total current inside the solar inverter rating. The second local mode can be written as
$$\dot{i}_{PVi,h}=g_{i,h}\dot{u}_{i,h}$$
where \(g_{i,h}\) is the harmonic virtual conductance and \(\dot{u}_{i,h}\) is the local harmonic voltage phasor at the solar inverter terminals. This mode makes the solar inverter behave as a controlled harmonic admittance connected to the network. A larger \(g_{i,h}\) usually gives stronger harmonic voltage suppression, but an arbitrarily large \(g_{i,h}\) can cause instability, especially at higher harmonic orders and weak grid conditions. Therefore, I explicitly include stability-oriented constraints in the central optimization and current-limit adjustment in the local control.
| Symbol | Meaning |
|---|---|
| \(h\) | Harmonic order, selected from \(\mathcal{H}=\{5,7,11,13,17,19\}\) |
| \(n\) | Number of distribution network nodes |
| \(\dot{u}_{i,h}\) | Harmonic voltage phasor at node i and order h |
| \(\dot{i}_{i,h}\) | Harmonic current source phasor at node i and order h |
| \(\dot{i}_{Li,h}\) | Local load harmonic current phasor measured by the solar inverter |
| \(\dot{i}_{PVi,h}\) | Harmonic current injected by the solar inverter at node i and order h |
| \(k_{i,h}\) | Harmonic current compensation coefficient of a solar inverter |
| \(g_{i,h}\) | Harmonic virtual conductance of a solar inverter |
| \(\mathbf{Y}_{h}\) | Harmonic nodal admittance matrix |
| \(u_{i,1}\) | Fundamental voltage magnitude at node i |
| \(i_{id},i_{iq}\) | Fundamental active and reactive current components of the solar inverter |
| \(i_{ilim}\) | Maximum phase current of the solar inverter |
| \(u_{low}\) | Minimum harmonic voltage allowed for virtual conductance control |
I use a harmonic power-flow model as the physical backbone of my optimization. For every harmonic order h, the network satisfies
$$\mathbf{I}_{h}=\mathbf{Y}_{h}\mathbf{U}_{h}$$
where \(\mathbf{I}_{h}\) is the vector of nodal harmonic current injections, \(\mathbf{U}_{h}\) is the vector of nodal harmonic voltages, and \(\mathbf{Y}_{h}\) is the harmonic nodal admittance matrix. When a solar inverter uses virtual conductance control, its conductance appears on the diagonal of \(\mathbf{Y}_{h}\). When a solar inverter uses local current compensation, its effect appears as a reduction of the local harmonic current injection. Therefore, I can write the coupled equation in the following expanded form:
$$\begin{bmatrix} \dot{i}_{1,h} \\ \vdots \\ \dot{i}_{i,h} \\ \vdots \\ (1-k_{j,h})\dot{i}_{j,h} \\ \vdots \\ \dot{i}_{n,h} \end{bmatrix} = \begin{bmatrix} y_{11,h}+g_{1,h} & \cdots & y_{1n,h} \\ \vdots & \ddots & \vdots \\ y_{n1,h} & \cdots & y_{nn,h}+g_{n,h} \end{bmatrix} \begin{bmatrix} \dot{u}_{1,h} \\ \vdots \\ \dot{u}_{n,h} \end{bmatrix}$$
This equation is central to my method because it allows me to represent both local control modes inside a single optimization model. The virtual conductance of a solar inverter changes the network admittance, while the compensation coefficient of a solar inverter changes the effective harmonic current source at its node. In this way, I can coordinate multiple solar inverters without requiring them to exchange fast harmonic phasors in real time.
| Local control mode | Measured local quantity | Injected harmonic current | Main benefit | Main risk | My typical use |
|---|---|---|---|---|---|
| Harmonic current compensation | Local load harmonic current \(\dot{i}_{Li,h}\) | \(\dot{i}_{PVi,h}=k_{i,h}\dot{i}_{Li,h}\) | Cancels harmonic current close to its source and prevents propagation | Compensation capacity may be wasted if the local harmonic source changes | Applied to solar inverters near dominant nonlinear loads |
| Harmonic virtual conductance | Local harmonic voltage \(\dot{u}_{i,h}\) | \(\dot{i}_{PVi,h}=g_{i,h}\dot{u}_{i,h}\) | Reshapes network harmonic admittance and reduces voltage distortion over a wider area | Large conductance can cause instability and is sensitive to low harmonic voltage measurement | Applied to selected solar inverters with strong network influence |
My three-layer architecture is designed around the practical characteristics of power quality monitoring systems. According to IEC measurement practice, online power quality monitoring systems compute harmonic phasors over short windows and aggregate them over a longer interval. In many systems, the aggregated harmonic data are available every three minutes. Directly using raw phase information for real-time harmonic current commands is risky because a small fundamental phase error is amplified by the harmonic order h. Therefore, I do not attempt to synchronize every solar inverter with a high-speed central harmonic state estimator. Instead, I use the three-minute harmonic state estimation result only to solve slow control commands, and each solar inverter performs its own fast local harmonic control.
| Layer | Time scale | Data source | Decision variable | Communication direction | Main purpose |
|---|---|---|---|---|---|
| Configuration layer | Offline or seasonal | Historical operation data and typical scenarios | Assignment of local control mode to each solar inverter | Engineering configuration | Determine whether a solar inverter uses current compensation or virtual conductance |
| Central optimization layer | Minutes, typically 3 min | Harmonic state estimation from power quality monitoring | \(k_{i,h}\) or \(g_{i,h}\) commands | One-way downlink to solar inverters | Minimize global voltage harmonic distortion while respecting capacity and stability |
| Local real-time layer | Milliseconds to control cycles | Local voltage and current measurements | Actual harmonic current reference | No fast centralized coordination required | Enforce current limit and maximize remaining solar inverter capacity |
In the configuration layer, I do not assume that all solar inverters should use the same local harmonic control mode. This is one of the main differences between my method and several existing approaches that assign virtual conductance control to every participating converter. If every solar inverter uses virtual conductance control, the network may become more vulnerable to instability, especially when many converters inject harmonic current in proportion to local harmonic voltage. In contrast, I use current compensation for some solar inverters and virtual conductance for others. This mixed configuration gives me both local cancellation and network admittance improvement while reducing the number of virtual conductance loops that can interact dynamically.
To select the configuration, I use historical operation data. I normalize or standardize the operating-state variables, including node power, solar inverter output, harmonic voltages, harmonic source currents, harmonic impedances, and background harmonic voltages. Each sample represents a possible operating scenario. I then use a distance-based K-means clustering method to extract representative typical scenarios. The objective of clustering is to minimize the within-cluster sum of squared distances:
$$d_{WCSS}=\sum_{m=1}^{K}\sum_{\sigma\in C_m}\|\sigma-\mu_m\|^2$$
where \(K\) is the number of clusters, \(\sigma\) is a sample, \(C_m\) is the set of samples in cluster m, and \(\mu_m\) is the centroid of cluster m. I select the number of clusters by evaluating compactness and separation, so that a small number of typical scenarios still captures the main harmonic operating conditions of the distribution network. For each typical scenario, I test different assignments of local control modes to solar inverters and simulate the harmonic mitigation performance. I then choose the assignment that gives the best weighted average performance across the typical scenarios.
For harmonic source modeling, I use a Norton equivalent circuit at each node with a harmonic source. For node i and harmonic order h, the Norton equivalent contains a harmonic current source \(\dot{i}_{i,h}\) and a harmonic impedance \(z_{i,h}\). I estimate these parameters by a fluctuation-based method. When the harmonic source power remains approximately constant for a short period, I use at least two different harmonic voltage conditions, for example by changing the solar inverter harmonic injection. If the harmonic voltage difference is large enough to cause a clear change in the load harmonic current, I compute the Norton parameters as
$$z_{i,h}=-\frac{\dot{u}_{i,h}^{(1)}-\dot{u}_{i,h}^{(2)}}{\dot{i}_{Li,h}^{(1)}-\dot{i}_{Li,h}^{(2)}}$$
and
$$\dot{i}_{i,h}=\dot{i}_{i,h}^{(1)}-\frac{\dot{u}_{i,h}^{(1)}}{z_{i,h}}$$
where the superscripts \((1)\) and \((2)\) denote two different measurement conditions. This modeling step is important because my central optimization needs a harmonic network model, but I do not want to rely on fully synchronized fast phasor measurements for the local harmonic control itself. The slow model can tolerate estimation errors because the local layer adjusts the final current command using real-time local measurements.
In the central optimization layer, my control objective is to minimize the weighted sum of node voltage total harmonic distortion. I define the objective as
$$F_{THD}=\min \sum_{i=1}^{n} c_i f_{THD,i}$$
where \(c_i\) is the weight of node i and \(f_{THD,i}\) is the voltage total harmonic distortion at node i. I compute \(f_{THD,i}\) from the fundamental voltage and the selected harmonic voltage components:
$$f_{THD,i}=\frac{\sqrt{\sum_{h\in\mathcal{H}}u_{i,h}^2}}{u_{i,1}}$$
with
$$\mathcal{H}=\{5,7,11,13,17,19\}$$
The harmonic orders are selected according to the typical six-pulse nonlinear load spectrum. In three-phase balanced distribution networks, the dominant harmonics are usually of orders \(6k\pm 1\). Higher-order harmonics above 1 kHz are often small and are difficult to compensate through the current control bandwidth of a solar inverter. Therefore, I focus the optimization and local compensation on the most relevant low-order and medium-order harmonics.
The optimization is subject to harmonic power-flow constraints, solar inverter harmonic capacity constraints, and virtual conductance stability constraints. The harmonic power-flow constraints are given by the harmonic nodal admittance equations described above. For every harmonic order h, I enforce
$$\mathbf{I}_{h}=\mathbf{Y}_{h}\mathbf{U}_{h}$$
For a node with a solar inverter using virtual conductance control, the diagonal admittance entry includes \(g_{i,h}\). For a node with a solar inverter using current compensation, the nodal harmonic current injection is multiplied by \((1-k_{i,h})\). These two effects can be combined in one optimization model, but the resulting problem contains bilinear terms because the conductance multiplies the harmonic voltage and the compensation coefficient multiplies the load harmonic current.
| Constraint type | Mathematical expression | Physical meaning | Role in my method |
|---|---|---|---|
| Harmonic power flow | \(\mathbf{I}_{h}=\mathbf{Y}_{h}\mathbf{U}_{h}\) | Harmonic network voltage and current must satisfy nodal admittance laws | Couples all nodes and all solar inverters |
| Current compensation range | \(0\le k_{i,h}\le 1\) | A solar inverter cannot compensate more than the local harmonic current in the slow optimization | Prevents steady-state over-compensation |
| Virtual conductance range | \(g_{i,h}\ge 0\) | A solar inverter can only behave as a passive-like harmonic admittance in the slow command | Keeps command physically meaningful |
| Solar inverter capacity | \(i_{PVi,h}^2+i_{id}^2+i_{iq}^2\le i_{ilim}^2\) | Total phase current must remain below the solar inverter limit | Protects the solar inverter hardware |
| Virtual conductance stability | \((u_{i,h}-u_{low})g_{i,h}\ge 0\) | If harmonic voltage is too low, virtual conductance must be zero; if conductance is positive, voltage must be above the lower bound | Avoids instability and poor measurement conditions |
For a solar inverter using virtual conductance control, the harmonic current magnitude is
$$i_{PVi,h}=\sqrt{\sum_{h\in\mathcal{H}}(g_{i,h}u_{i,h})^2}$$
For a solar inverter using current compensation, the harmonic current magnitude is
$$i_{PVi,h}=\sqrt{\sum_{h\in\mathcal{H}}(k_{i,h}i_{i,h})^2}$$
The total current constraint of the solar inverter is
$$i_{PVi,h}^2+i_{id}^2+i_{iq}^2\le i_{ilim}^2$$
where \(i_{id}\) and \(i_{iq}\) are the fundamental active and reactive current components. Because the solar inverter normally operates at maximum available power, \(i_{id}\) is determined by the available solar power and the grid voltage. The reactive current \(i_{iq}\) may be determined by a centralized reactive power command or by a local voltage-reactive power control. Since both \(i_{id}\) and \(i_{iq}\) are known or bounded at the optimization instant, the harmonic current capacity constraint can be handled in the central optimization.
The capacity constraints contain products of decision variables and voltage or current magnitudes. To make the optimization tractable, I introduce auxiliary variables:
$$x_{gi,h}=g_{i,h}u_{i,h}$$
and
$$x_{ki,h}=k_{i,h}i_{i,h}$$
With these auxiliary variables, the bilinear terms in the harmonic power-flow equation are replaced by \(x_{gi,h}\) and \(x_{ki,h}\). The capacity constraints then become convex quadratic constraints in the auxiliary variables and the underlying decision variables. This transformation does not remove all non-convexity from the original problem, but it allows me to use standard mixed-integer quadratic programming solvers and branch-and-bound methods with a practical computational budget.
For virtual conductance control, I also enforce a stability-oriented constraint:
$$(u_{i,h}-u_{low})g_{i,h}\ge 0$$
This constraint has a simple but important interpretation. If the harmonic voltage at a node is below \(u_{low}\), then the virtual conductance for that harmonic order must be zero. If the virtual conductance is positive, then the harmonic voltage after mitigation must be at least \(u_{low}\). This prevents the virtual conductance from becoming extremely large when the harmonic voltage approaches zero. It also avoids using virtual conductance control when the harmonic voltage is too small to be measured reliably. I set \(u_{low}\) according to stability analysis and measurement conditions. In my simulation and experimental work, typical values are in the range of 0.2 percent to 0.5 percent per unit, depending on harmonic order and network strength.
The resulting optimization problem is a non-convex quadratic program with linear, quadratic, and bilinear constraints. I solve it by converting it into a mixed-integer program using a commercial solver. The solver applies preprocessing, branch-and-bound, and heuristic search. In my test system, the optimization completes within approximately one minute for the selected harmonic set. The solved commands \(g_{i,h}\) and \(k_{i,h}\) are then sent to the solar inverters through one-way communication. The central controller does not need to receive fast feedback from the solar inverters for every control cycle, which greatly reduces communication and computation pressure.
In the real-time layer, each participating solar inverter converts the slow command into an actual harmonic current reference. This step is essential because the distribution network is not static. Solar power changes, load changes, and harmonic sources change. A slow command that is optimal at one instant may cause over-current or unnecessary capacity waste at another instant. Therefore, I design a local current-limit correction method that runs inside each solar inverter at its own control rate.
For a solar inverter using virtual conductance control, the initial harmonic current reference for harmonic order h is
$$\dot{i}_{PVi,h}^{[0]}=g_{i,h}\dot{u}_{i,h}$$
I compute the available harmonic current margin after reserving the fundamental active and reactive currents:
$$i_{harm,avail}=\sqrt{i_{ilim}^2-i_{id}^2-i_{iq}^2}$$
If all harmonic voltages of the controlled orders are above \(u_{low}\), I scale the initial harmonic current references by a common multiplier:
$$m=\frac{i_{harm,avail}}{\sqrt{\sum_{h\in\mathcal{H}}|\dot{i}_{PVi,h}^{[0]}|^2}}$$
Then the actual reference becomes
$$\dot{i}_{PVi,h}=m\dot{i}_{PVi,h}^{[0]}$$
This scaling uses the full remaining capacity of the solar inverter while preserving the harmonic current proportions determined by the central optimization. If some harmonic voltages are below \(u_{low}\), I adjust the corresponding multipliers individually. For those low-voltage harmonics, I reduce the virtual conductance gradually by an integral adjustment until the conductance reaches zero or the harmonic voltage rises above \(u_{low}\). For the remaining harmonics, I allocate the rest of the available capacity in proportion to their initial references. This rule prevents instability caused by virtual conductance control when the harmonic voltage is too small and also prevents the solar inverter from exceeding its current limit.
For a solar inverter using harmonic current compensation, the initial reference is
$$\dot{i}_{PVi,h}^{[0]}=k_{i,h}\dot{i}_{Li,h}$$
I compute the root-mean-square value of the initial harmonic references. If this value is greater than the available harmonic current margin, I scale all compensation coefficients down proportionally so that the total harmonic current does not exceed the limit. If the initial value is smaller than the available margin, I scale the coefficients up to use more of the remaining capacity. During this upward adjustment, I enforce \(k_{i,h}\le 1\). If any coefficient reaches one, I fix it at one and redistribute the remaining capacity among the other harmonic orders. This process repeats until either all coefficients are one or the total harmonic current reaches the available margin.
| Real-time condition | Solar inverter action | Purpose |
|---|---|---|
| All controlled harmonic voltages are above \(u_{low}\) | Scale all initial harmonic references by a common multiplier | Use remaining capacity in the proportions chosen by central optimization |
| Some harmonic voltages are below \(u_{low}\) | Reduce the virtual conductance for those orders and reallocate capacity to other orders | Avoid instability and measurement noise |
| Total harmonic current exceeds the available margin | Scale references down proportionally | Prevent solar inverter over-current |
| Total harmonic current is below the available margin | Scale references up until \(k_{i,h}=1\) or the current limit is reached | Maximize harmonic mitigation without reducing active power |
| Local harmonic source changes | Update current compensation references from local measurements | Track the actual harmonic current and avoid over-compensation |
The local control structure of my solar inverter includes the usual MPPT stage on the DC side and a grid-side inverter stage. The DC-DC converter regulates the solar array to its maximum power point. The DC-AC inverter regulates the DC-link voltage and controls the grid current. I add a harmonic mitigation current generation module. This module receives the slow command from the central controller, calculates the initial harmonic current references, applies the real-time current-limit correction, and adds the resulting harmonic references to the fundamental active and reactive current references. The current controller uses multiple proportional-resonant regulators in the fundamental and harmonic reference frames. A phase-locked loop based on a second-order generalized integrator provides synchronization, and a sliding-window discrete Fourier transform extracts the selected harmonic voltage and current components. An LCL filter attenuates switching harmonics, and a damping resistor in the capacitor branch suppresses resonance peaks.
I evaluate my method through both simulation and hardware experiments. In the simulation study, I build a radial distribution network with fourteen nodes, three solar inverters, and several nonlinear loads. The nonlinear loads are three-phase uncontrolled rectifiers connected at multiple nodes. I consider harmonic orders 5, 7, 11, 13, 17, and 19. The solar inverters are three-phase units with a maximum available power of 10 kW, a switching frequency of 20 kHz, and an LCL filter. When the solar inverter delivers maximum available power, the rated phase current is 15 A. The available harmonic compensation capacity in the default operating condition is about 5 A per solar inverter.
| Simulation parameter | Value used in my study |
|---|---|
| Test network | Fourteen-node radial distribution network |
| Solar inverter count | Three solar inverters |
| Solar inverter maximum power | 10 kW each |
| Solar inverter rated phase current | 15 A each |
| Switching frequency | 20 kHz |
| LCL filter | 2 mH, 3 microfarad with 6 ohm damping, 0.2 mH |
| Harmonic orders | 5, 7, 11, 13, 17, 19 |
| Nonlinear load nodes | 3, 4, 5, 8, 10, 12, 14 |
| Virtual conductance voltage lower bound | 0.3 percent per unit |
| Optimization tolerance | MIPGap 0.1 percent |
After clustering the historical operating scenarios and simulating different control-mode assignments, I choose the following configuration for the simulation test. The solar inverter at node 14 uses harmonic virtual conductance control. The solar inverters at nodes 3 and 12 use harmonic current compensation control. This mixed assignment gives the best weighted harmonic mitigation performance across the typical scenarios. It also reduces the number of virtual conductance loops compared with an all-virtual-conductance configuration.
| Node | Solar inverter control mode | Reason for selection |
|---|---|---|
| Node 3 | Harmonic current compensation | Close to a dominant nonlinear load, so local cancellation is effective |
| Node 12 | Harmonic current compensation | Strong local harmonic current source and limited network-wide influence |
| Node 14 | Harmonic virtual conductance | Location gives strong influence on network harmonic voltage distribution |
I compare my method with two alternatives. The first alternative is point-to-point harmonic mitigation, in which each solar inverter only compensates its local harmonic load without network-wide coordination. The second alternative is an existing comprehensive method in which all participating solar inverters use harmonic virtual conductance control. In all cases, I use the same real-time current-limit correction so that the comparison focuses on the coordination and local control-mode assignment.
| Method | Average node THD after mitigation | Maximum node THD after mitigation | Nodes below 5 percent THD | Main limitation |
|---|---|---|---|---|
| No harmonic mitigation | 6.945 percent | Above 8 percent at some nodes | No | Severe voltage distortion |
| Point-to-point solar inverter mitigation | 4.766 percent | Still above 5 percent at many nodes | No | Local action alone cannot solve network-wide distortion |
| All solar inverters using virtual conductance | 4.059 percent | Below 5 percent at most nodes | Most but not all | Higher risk of instability and less use of local current cancellation |
| My mixed local-control method | 3.863 percent | Below 5 percent at all nodes | Yes | Requires careful configuration and slow command optimization |
The simulation results show that my method reduces the average node THD from 6.945 percent before mitigation to 3.863 percent after mitigation. The point-to-point method reduces the average to 4.766 percent, and the all-virtual-conductance method reduces it to 4.059 percent. My method gives the lowest average THD and is the only method in this comparison that brings all nodes below the 5 percent limit. This confirms that combining local harmonic current compensation with harmonic virtual conductance control provides better network-wide performance than using either local cancellation alone or a single centralized virtual conductance strategy.
I also examine the behavior of my method when the grid operating condition changes. In the simulation, the solar inverter at node 3 outputs harmonic currents according to the slow command and then adjusts them in real time. When the harmonic compensation capacity decreases, the local controller reduces the harmonic current references proportionally so that the solar inverter does not exceed its current limit. When the harmonic load increases, the local controller increases the compensation references until the current limit is reached. When a harmonic source is switched out, the local controller reduces the compensation current to avoid over-compensation. In all cases, the node harmonic voltages transition to a new steady state within a short time, and the solar inverter current remains within its rating.
Additional simulation tests focus on the virtual conductance current-limit correction. I consider a solar inverter that controls only the 17th and 19th harmonic voltages. The harmonic capacity is set to 1 A. I change \(u_{low}\) during operation and then apply a step increase in harmonic load. The local controller adjusts the harmonic multiplier \(m_h\) for each harmonic order. When the harmonic voltage reaches the lower bound \(u_{low}\), the controller limits the multiplier to avoid excessive virtual conductance. When the solar inverter capacity is sufficient, the controller increases the multiplier to use more of the remaining capacity. When the harmonic load step causes the initial command to exceed the current limit, the multiplier decreases to prevent over-current. A short transient may occur because the current controller needs time to track the new reference, but the steady-state current remains within the limit. This demonstrates that my local real-time layer can protect the solar inverter while still using its remaining capacity effectively.
I further validate the method with a hardware experiment. The experimental system is a low-voltage microgrid with a rated frequency of 50 Hz and a voltage level of 110/190 V. It includes an ideal voltage source, two solar inverters, two nonlinear harmonic sources, and line impedances formed by resistors and inductors. The microgrid has three nodes. Node 1 connects to harmonic source 1. Node 2 connects to solar inverter 1. Node 3 connects to harmonic source 2 and solar inverter 2. Both solar inverters output 1 kW active power and operate at a switching frequency of 10 kHz. The harmonic compensation capacity is 0.9 A for solar inverter 1 and 1.1 A for solar inverter 2. Harmonic source 2 initially has a 22 ohm resistance and later changes to 20 ohm, which represents a 10 percent increase in harmonic load. I use a power quality analyzer for harmonic analysis and consider the 5th, 7th, 11th, and 13th harmonics.
| Experimental parameter | Value |
|---|---|
| Microgrid frequency | 50 Hz |
| Voltage level | 110/190 V |
| Node count | 3 |
| Solar inverter count | 2 |
| Solar inverter active power | 1 kW each |
| Switching frequency | 10 kHz |
| Solar inverter 1 harmonic capacity | 0.9 A |
| Solar inverter 2 harmonic capacity | 1.1 A |
| Harmonic sources | Two uncontrolled rectifier loads |
| Harmonic orders considered | 5, 7, 11, 13 |
In the experimental comparison, the existing method assigns virtual conductance control to both solar inverters. My method assigns virtual conductance control to solar inverter 1 and harmonic current compensation to solar inverter 2, based on the centralized optimization result. I measure the harmonic voltage at all three nodes before mitigation, after the existing method, and after my method. The results are shown in the following table. The values are percentages of the fundamental voltage.
| Node and harmonic | Before mitigation | Existing all-virtual-conductance method | My mixed local-control method |
|---|---|---|---|
| Node 1, 5th harmonic | 2.801 percent | 1.543 percent | 1.199 percent |
| Node 1, 7th harmonic | 1.640 percent | 0.533 percent | 0.595 percent |
| Node 1, 11th harmonic | 1.661 percent | 0.644 percent | 0.597 percent |
| Node 1, 13th harmonic | 1.196 percent | 0.417 percent | 0.521 percent |
| Node 2, 5th harmonic | 2.813 percent | 1.392 percent | 0.912 percent |
| Node 2, 7th harmonic | 1.646 percent | 0.294 percent | 0.364 percent |
| Node 2, 11th harmonic | 1.670 percent | 0.436 percent | 0.445 percent |
| Node 2, 13th harmonic | 1.198 percent | 0.298 percent | 0.435 percent |
| Node 3, 5th harmonic | 3.231 percent | 1.822 percent | 1.638 percent |
| Node 3, 7th harmonic | 1.839 percent | 0.663 percent | 0.721 percent |
| Node 3, 11th harmonic | 1.801 percent | 0.726 percent | 0.701 percent |
| Node 3, 13th harmonic | 1.312 percent | 0.460 percent | 0.532 percent |
The total harmonic distortion at each node confirms the same trend. Before mitigation, node 1 has a THD of 3.991 percent, node 2 has 4.007 percent, and node 3 has 4.507 percent. With the existing all-virtual-conductance method, the THDs become 1.804 percent, 1.517 percent, and 2.121 percent, respectively, giving an average of 1.814 percent. With my method, the THDs become 1.556 percent, 1.163 percent, and 1.994 percent, respectively, giving an average of 1.571 percent. My method therefore achieves a lower average THD than the existing method.
| Node | Before mitigation THD | Existing method THD | My method THD |
|---|---|---|---|
| Node 1 | 3.991 percent | 1.804 percent | 1.556 percent |
| Node 2 | 4.007 percent | 1.517 percent | 1.163 percent |
| Node 3 | 4.507 percent | 2.121 percent | 1.994 percent |
| Average | 4.168 percent | 1.814 percent | 1.571 percent |
When the harmonic load at node 3 increases by 10 percent, the solar inverter harmonic virtual conductance or current compensation coefficient is reduced in real time according to the available capacity. The existing method results in a node 3 THD of 2.460 percent after the load change. My method results in a node 3 THD of 2.313 percent. The solar inverter current remains within its limit, and the output current waveform shows the expected harmonic injection. This experimental result confirms that my method can coordinate multiple solar inverters through slow commands and local fast control, while also adapting to load changes.
| Condition after load change | Node 3 THD with existing method | Node 3 THD with my method |
|---|---|---|
| Harmonic load increased by 10 percent | 2.460 percent | 2.313 percent |
The experimental waveforms and harmonic spectra support the numerical results. Before mitigation, the node voltages contain noticeable 5th and 7th harmonic components. After mitigation, the harmonic components are reduced. With my method, the solar inverter current is no longer a purely sinusoidal current; it contains the harmonic components required for compensation. The current remains balanced and within the hardware rating. The power quality analyzer records lower harmonic voltage ratios at all three nodes compared with the existing all-virtual-conductance method.
I attribute the improved performance of my method to three factors. First, by combining local harmonic current compensation with harmonic virtual conductance control, I address harmonic problems from two directions: I cancel harmonic current near its source and I improve the network harmonic admittance distribution. Second, by using a slow central optimization and fast local control, I avoid the unrealistic requirement of synchronized real-time harmonic phasors for every solar inverter. Third, by explicitly considering solar inverter remaining capacity and virtual conductance stability, I prevent over-current and instability while still using the available harmonic mitigation capacity.
| Aspect | Typical existing comprehensive method | My proposed method |
|---|---|---|
| Local control mode | Usually all participating solar inverters use virtual conductance | Mixed use of current compensation and virtual conductance |
| Harmonic phasor requirement | Often relies on accurate synchronized harmonic phasors | Uses slow harmonic state estimation and local real-time measurements |
| Central computation | May need repeated global optimization | Central optimization at minute-level, local adjustment at control-level |
| Current limit handling | Often not fully integrated with local real-time operation | Explicit local current-limit correction inside each solar inverter |
| Stability risk | Higher when many virtual conductance loops interact | Reduced by limiting virtual conductance and using current compensation where appropriate |
| Use of solar inverter capacity | May waste capacity when local conditions change | Maximizes remaining capacity while preserving active power output |
My method also has practical implementation advantages. It requires only one-way communication from the central controller to the solar inverters. The solar inverters do not need to send fast harmonic phasors back to the central controller. The central optimization can be performed every few minutes using existing power quality monitoring data. The local control layer runs inside the solar inverter and uses only local measurements, so it is robust to communication delay and data loss. The slow command provides a coordinated starting point, while the local layer ensures safe and effective operation under actual conditions.
From a mathematical perspective, the central optimization remains challenging because it includes bilinear terms and non-convex constraints. I manage this complexity by selecting a limited harmonic set, introducing auxiliary variables, and using a mixed-integer quadratic programming solver. The slow time scale gives enough time for the solver to find a good solution. The local layer then compensates for modeling errors and fast disturbances. This division of labor is the key reason my method is both practical and effective.
For the solar inverter control design, I keep the active power function independent from the harmonic mitigation function. The MPPT stage continues to extract maximum available solar power. The DC-link voltage control and fundamental current control maintain active power balance. The harmonic mitigation module only uses the remaining current capacity after the fundamental active and reactive currents are reserved. This means that harmonic mitigation does not intentionally curtail solar energy. When the solar inverter has little remaining capacity, the harmonic references are scaled down. When the solar inverter has more remaining capacity, the harmonic references are scaled up. In this way, I coordinate renewable energy accommodation and power quality improvement.
The virtual conductance stability constraint is especially important. In principle, a larger virtual conductance gives a lower harmonic voltage. However, if the harmonic voltage becomes very small, the measured phasor becomes unreliable, and the virtual conductance control can become ill-conditioned. In addition, multiple solar inverters using virtual conductance control can interact with the network impedance and with each other. My constraint forces the virtual conductance to zero when the harmonic voltage is below \(u_{low}\). It also prevents the post-mitigation harmonic voltage from falling below \(u_{low}\) when the virtual conductance is positive. This simple rule significantly reduces the risk of instability without requiring a full state-space stability analysis in every optimization run. I determine \(u_{low}\) from offline stability studies and measurement tests, and I use conservative values that work across the typical operating scenarios.
The real-time adjustment rule for virtual conductance control also handles multiple harmonic orders. If all controlled harmonic voltages are healthy, I use a common multiplier so that the harmonic current proportions remain as optimized. If one or more harmonic voltages are too low, I reduce the conductance for those orders and redistribute the available capacity to the other orders. This prevents the solar inverter from wasting capacity on harmonic orders that cannot be measured reliably or that would cause instability. If the total harmonic current exceeds the available margin, I scale all references down proportionally. If the total harmonic current is below the available margin, I scale references up until the current limit or the compensation coefficient limit is reached. This logic is simple enough to implement in a digital signal processor and fast enough for real-time control.
For harmonic current compensation, the local controller tracks the local load harmonic current directly. This mode is naturally robust to changes in the local harmonic source. If the local load harmonic current increases, the compensation current increases proportionally, subject to the solar inverter current limit. If the local load harmonic current decreases, the compensation current decreases, which avoids over-compensation. Because this mode does not rely on a network-wide harmonic voltage measurement, it can operate even when the local harmonic voltage is small. This is why I assign current compensation to solar inverters that are close to dominant nonlinear loads.
My simulation and experimental results consistently show that the mixed local-control strategy outperforms the all-virtual-conductance strategy in terms of average THD. The improvement comes from two mechanisms. First, current compensation reduces the harmonic current injected into the network, which lowers the harmonic voltage at the source and nearby nodes. Second, virtual conductance control provides a low-impedance path for harmonic current and improves the voltage profile over a wider area. When these two mechanisms are coordinated by the slow central optimization, the distribution network achieves a better global harmonic performance than when only one mechanism is used.
The method also improves robustness against grid condition changes. In the simulation, when the harmonic compensation capacity changes, the local controller adjusts the harmonic current references. When the harmonic load changes, the local controller tracks the new condition. When a harmonic source is switched out, the local controller reduces or eliminates unnecessary compensation. In the experiment, when the harmonic load increases by 10 percent, the node 3 THD remains lower with my method than with the existing method. These results show that the combination of slow centralized optimization and fast local correction is effective under practical disturbances.
I also note that my method does not require the central controller to solve the full nonlinear optimization at every control cycle. The central controller only needs to update the slow commands at the minute-level time scale. The solar inverters handle the fast time scale locally. This reduces the computational burden on the central controller and the communication burden on the network. It also makes the method scalable to a larger number of solar inverters, because the local controllers do not need to exchange fast data with each other. The slow optimization still scales with the number of nodes and harmonic orders, but it can be performed offline or in a centralized server with sufficient time.
In terms of practical deployment, I would configure each solar inverter with the required harmonic measurement and current control capability. Some solar inverters would be assigned to harmonic current compensation, and others would be assigned to harmonic virtual conductance control. The assignment is based on historical data and typical scenario simulations. During operation, the central controller sends the slow commands to the solar inverters. Each solar inverter then runs its local harmonic control algorithm. The local algorithm uses only local voltage and current measurements, so it is not affected by communication latency. If the central communication is temporarily lost, the solar inverter can continue to operate with its last received command and local current-limit correction. This fail-safe behavior is important for practical power quality management.
My method can also be extended to multiple solar inverters at the same node. If multiple solar inverters use virtual conductance control at the same node, their conductances add together in the nodal admittance matrix. They can operate independently while collectively providing a larger virtual conductance. If multiple solar inverters use current compensation at the same node, their compensation coefficients can be coordinated so that the total compensation does not exceed the local harmonic current. In the slow optimization, I can set upper bounds on the sum of compensation coefficients according to the total available capacity. If some solar inverters use virtual conductance and others use current compensation at the same node, the virtual conductance part modifies the diagonal admittance, while the current compensation part modifies the effective harmonic current injection. These two effects can be represented in the same harmonic power-flow model. This flexibility makes my method suitable for practical distribution networks with heterogeneous solar inverter ownership and control capabilities.
I conclude that local harmonic control of solar inverters, coordinated by a slow centralized optimization, is a practical and effective solution for distribution network harmonic mitigation. My method combines harmonic current compensation and harmonic virtual conductance control, minimizes global voltage harmonic distortion, respects solar inverter current limits, and includes stability-oriented constraints. It uses existing power quality monitoring data, requires only one-way slow communication, and performs fast current-limit correction inside each solar inverter. Simulation and experimental results show that it achieves lower average THD than existing comprehensive methods and maintains safe operation under changing grid conditions. The key contribution of my work is the integration of two local harmonic control modes into a single coordinated framework for solar inverters, enabling better use of renewable generation capacity while improving power quality across the distribution network.
