In this work, I focus on the study of three-phase solar inverters that are designed not only to inject photovoltaic power into the grid but also to actively mitigate harmonic distortions and improve power quality. The research addresses two key technical challenges: maximum power point tracking (MPPT) under varying irradiance and partial shading, and the unified control strategy for active power filtering in solar inverters. Throughout this thesis, I propose an improved maximum power point tracking algorithm and a composite current control method, both validated through simulation studies. The findings demonstrate that the proposed methods significantly enhance the efficiency and grid-current quality of three-phase solar inverters.
1. Introduction
Renewable energy sources have become increasingly important due to the depletion of fossil fuels and the aggravation of environmental issues. Among various renewable options, solar photovoltaic (PV) energy is considered one of the most promising sources because of its cleanliness, abundance, and low maintenance. However, the integration of solar inverters into the grid faces two main obstacles: the low energy conversion efficiency of PV panels and the harmonic pollution caused by nonlinear loads. The output characteristics of PV panels are nonlinear and strongly affected by temperature and irradiance. Under partial shading conditions, the power-voltage curve exhibits multiple peaks, making it difficult for conventional MPPT methods to locate the global maximum power point (GMPP). Moreover, when solar inverters are connected to the grid, the presence of nonlinear loads introduces harmonic currents, which degrade the power quality of the utility grid.
In this context, my research aims to develop an advanced MPPT algorithm and a unified control strategy for three-phase solar inverters with active power filtering capability. I first establish a mathematical model of PV cells and analyze their output characteristics under uniform and partial shading conditions. Then, I propose a chaotic Harris Hawk optimization combined with incremental conductance (IHHO-INC) to achieve fast and accurate global maximum power tracking. For the grid-connected inverter, I present a composite control strategy that integrates harmonic detection with the preset compensation angle and a fuzzy PI plus repetitive current controller. This unified approach enables the same solar inverter to operate in three modes: standalone PV grid-connection, standalone active power filtering, and combined PV-APF operation. The simulation results confirm that the proposed methods achieve high efficiency and low total harmonic distortion (THD), thereby satisfying the IEEE grid interconnection requirements.
2. Photovoltaic Cell Modeling and Output Characteristics
The operation of a PV cell is based on the photovoltaic effect, where sunlight is converted directly into electricity. To accurately simulate the behavior of solar inverters, I build a mathematical model of the PV cell equivalent circuit, which includes a current source, a diode, a series resistance, and a parallel resistance. The output current of a PV array can be expressed by the following equation:
$$ I = I_{ph} – I_0 \left[ \exp\left( \frac{V + I R_s}{a N_s V_t} \right) – 1 \right] – \frac{V + I R_s}{R_{sh}} $$
where \(I_{ph}\) is the photocurrent, \(I_0\) is the reverse saturation current, \(V\) is the output voltage, \(R_s\) and \(R_{sh}\) are the series and shunt resistances, \(a\) is the diode ideality factor, \(N_s\) is the number of series-connected cells, and \(V_t = kT/q\) is the thermal voltage. The photocurrent and saturation current are functions of irradiance and temperature:
$$ I_{ph} = \frac{S}{S_{STC}} \left[ I_{sc,STC} + K_i (T – T_{STC}) \right] $$
$$ I_0 = \frac{I_{sc,STC} + K_i \Delta T}{\exp\left( \frac{V_{oc,STC} + K_v \Delta T}{N_s a V_t} \right) – 1} $$
Using MATLAB/Simulink, I established a PV array model with four series-connected panels, each bypassed by a diode to prevent hot-spot effects. The output power-voltage (P-V) and current-voltage (I-V) characteristics were studied under different irradiance and temperature levels. Under uniform irradiance, the P-V curve has a single peak, and the power increases with irradiance. As temperature rises, the maximum power point decreases slightly, while the open-circuit voltage shifts to lower values. Under partial shading, the P-V curve exhibits multiple local peaks. For example, when the irradiances on the four panels are 0.8, 0.8, 0.6, and 0.3 kW/m², the global maximum power point is 391.4 W at 75.54 V, whereas the local maxima are significantly lower. These observations highlight the necessity of a robust global MPPT algorithm.
3. Improved MPPT Algorithm Based on Chaotic Harris Hawk Method
In order to improve the tracking performance of solar inverters, I studied several traditional MPPT methods, including incremental conductance (INC). The INC method is based on the derivative of power with respect to voltage:
$$ \frac{dP}{dV} = I + V \frac{dI}{dV} $$
At the maximum power point, \(dP/dV = 0\), which leads to the condition \(dI/dV = -I/V\). The INC algorithm adjusts the voltage reference based on the sign of \(dI/dV + I/V\). Although INC provides stable tracking under uniform conditions, it may fail under partial shading or rapid irradiance changes because it can converge to a local maximum. To overcome this limitation, I propose a hybrid algorithm that combines a Harris Hawk optimization with chaotic mapping, optimal individual guidance, and Levy flight. The improved Harris Hawk algorithm searches the entire solution space to locate the GMPP, while the INC method is used to fine-tune the operating point and reduce steady-state oscillation. The mathematical formulation of the Harris Hawk algorithm involves a search phase and a hunting phase. The prey escape energy is modeled as:
$$ E = 2 E_0 \left( 1 – \frac{t}{T} \right) $$
where \(E_0\) is a random initial value in [-1,1], \(t\) is the current iteration, and \(T\) is the maximum iteration. When \(|E| \geq 1\), the algorithm performs global exploration; when \(|E| < 1\), it enters the exploitation phase. The position update equations for soft and hard besiege are given by:
$$ X(t+1) = X_{rabbit}(t) – E \left| \Delta X(t) \right| $$
$$ X(t+1) = X_{rabbit}(t) – E \left| J X_{rabbit}(t) – X(t) \right| $$
where \(J\) is a random jump strength between 0 and 2, and \(\Delta X\) is the difference between the rabbit position and the current position. To enhance the diversity of the population and avoid premature convergence, I use Henon chaotic mapping to generate uniformly distributed random numbers in the exploration phase. Additionally, the Levy flight mechanism is introduced to improve the global search capability:
$$ X(t+1) = X_{rand}(t) – LF(D) \cdot \left| X_{rand}(t) – 2 X(t) \right| $$
where \(LF(D)\) is the Levy flight distribution. The overall flowchart of the proposed IHHO-INC algorithm is as follows:
- Initialize the population parameters, escape energy \(E\), and jump strength \(J\).
- Calculate the fitness (output power) for each individual and sort them.
- Update \(E\) and \(J\) using the escape energy formula.
- If \(|E| \geq 1\), update positions using Levy flight and optimal individual guidance; otherwise, enter the exploitation phase.
- During exploitation, select soft/hard besiege strategies according to the random value \(r\).
- Apply Henon chaotic mapping to generate new populations.
- If \(t < T\), continue iteration; otherwise, use the INC method to refine the solution and reach the exact MPP.
I built the MPPT simulation model in MATLAB/Simulink, which consists of a PV array, a Boost converter, a PWM generator, and an energy storage battery. The simulation parameters are listed below:
| Parameter | Value |
|---|---|
| Inductance in Boost converter | 3 μH |
| DC-link capacitance | 20 μF |
| Load-side capacitance | 0.2 mF |
| Battery voltage | 12 V |
| Battery capacity | 100 kAh |
| Simulation time | 0.3 s |
The performance of the proposed IHHO-INC algorithm was evaluated under three scenarios: uniform irradiance, partial shading, and time-varying irradiance. Under uniform irradiance (1000 W/m², 25°C), the IHHO-INC method converged to the GMPP of 794.6 W in 0.031 s, while the standard HHO converged in 0.0723 s with a power of 780.8 W and the INC method converged in 0.0965 s with 794.1 W. The conversion efficiency of IHHO-INC is 99.33%, which is higher than that of HHO (97.6%) and INC (99.3%). The comparison is summarized in the following table:
| Algorithm | Settling Time (s) | Maximum Power (W) | Efficiency (%) |
|---|---|---|---|
| HHO | 0.0723 | 780.8 | 97.6 |
| INC | 0.0965 | 794.1 | 99.3 |
| IHHO-INC | 0.031 | 794.6 | 99.33 |
Under partial shading (irradiance levels: 0.8, 0.8, 0.6, 0.3 kW/m²), the GMPP is 391.4 W. The proposed IHHO-INC method tracked this point in 0.031 s with an efficiency of 97.9%. In contrast, the standard HHO converged to 371.65 W in 0.073 s, and the INC method converged to 310.2 W in 0.09 s, demonstrating that INC fails to find the global maximum under shading. The results are shown below:
| Algorithm | Settling Time (s) | Maximum Power (W) | Efficiency (%) |
|---|---|---|---|
| HHO | 0.073 | 371.65 | 93.0 |
| INC | 0.09 | 310.2 | 77.6 |
| IHHO-INC | 0.031 | 391.4 | 97.9 |
For the time-varying irradiance scenario, the irradiance changed at t=0.2 s and t=0.4 s. The IHHO-INC method was able to re-converge to the new GMPP within approximately 0.04 s, maintaining an efficiency above 97% throughout the entire simulation. The tracking results for the three intervals are summarized in the following tables:
| Algorithm | 0-0.2 s Power (W) | Efficiency (%) |
|---|---|---|
| HHO | 779.3 | 97.5 |
| INC | 794.6 | 99.4 |
| IHHO-INC | 794.7 | 99.5 |
| Algorithm | 0.2-0.4 s Power (W) | Efficiency (%) |
|---|---|---|
| HHO | 520.4 | 94.6 |
| INC | 520.6 | 94.6 |
| IHHO-INC | 534.4 | 97.2 |
| Algorithm | 0.4-0.6 s Power (W) | Efficiency (%) |
|---|---|---|
| HHO | 382.7 | 95.7 |
| INC | 275.4 | 68.9 |
| IHHO-INC | 390.2 | 97.6 |
These results demonstrate that the proposed IHHO-INC algorithm significantly enhances the tracking speed and accuracy of solar inverters, especially under partial shading and rapidly changing environmental conditions.

4. Unified Control Strategy for Grid-Connected Solar Inverters with Active Filtering
To realize power quality management in three-phase solar inverters, I propose a unified control strategy that combines the functions of PV grid-connection and active power filtering. The overall system comprises a photovoltaic array, a Boost converter, a three-phase voltage source inverter, an L filter, and a nonlinear load. The control block diagram is shown below (not depicted; described here for clarity). The key idea is to generate a composite current that includes both the active power reference component and the harmonic compensation component. By tracking this composite current with a high-performance controller, the inverter can simultaneously inject clean power into the grid and compensate for load-induced harmonics.
The active power reference current is obtained from the DC-link voltage controller. A PI controller regulates the DC-link voltage \(u_{dc}\) to its reference value \(u_{dc}^*\), and the output is scaled to produce the active current reference \(i_{pv}\). The relationship is given by:
$$ i_{pv} = K_p (u_{dc}^* – u_{dc}) + K_i \int (u_{dc}^* – u_{dc}) dt $$
The harmonic current component is detected using the instantaneous reactive power theory. I compared two detection methods: the \(p-q\) method and the \(p_i – q_i\) method. The \(p-q\) method directly uses the grid voltages in the calculation, which can lead to errors when the grid voltage is distorted. The \(p_i – q_i\) method, on the other hand, uses a phase-locked loop (PLL) to generate sine and cosine functions, and the currents are transformed into the \(\alpha-\beta\) coordinate system via the Clarke transformation:
$$ \begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix} = C_{32} \begin{bmatrix} i_a \\ i_b \\ i_c \end{bmatrix}, \quad C_{32} = \begin{bmatrix} 1 & -\frac{1}{2} & -\frac{1}{2} \\ 0 & \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2} \end{bmatrix} $$
The instantaneous active and reactive currents \(i_p\) and \(i_q\) are then calculated as:
$$ \begin{bmatrix} i_p \\ i_q \end{bmatrix} = C \begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix}, \quad C = \begin{bmatrix} \sin \omega t & -\cos \omega t \\ -\cos \omega t & \sin \omega t \end{bmatrix} $$
After low-pass filtering, the DC components of \(i_p\) and \(i_q\) correspond to the fundamental active and reactive currents. The harmonic components are obtained by subtracting the fundamental components from the original currents. To compensate for the time delay introduced by the filters and the digital control system, I add a preset compensation angle \(\theta_c\) to the inverse transformation matrix:
$$ C^{-1} = \begin{bmatrix} \sin(\omega t + \theta_c) & \cos(\omega t + \theta_c) \\ -\cos(\omega t + \theta_c) & -\sin(\omega t + \theta_c) \end{bmatrix} $$
This preset angle effectively reduces the phase lag and improves the real-time tracking capability of the harmonic compensation. The simulation results show that the \(p_i – q_i\) method without the preset angle results in a THD of 2.75%, whereas after adding the preset compensation angle (with a delay time of 0.02 s), the THD of the extracted fundamental current is reduced to 0.11%. In contrast, the \(p-q\) method, when the grid voltage is distorted, produces a THD of 15.96% before compensation and 0.12% after compensation, but it relies on accurate voltage readings. Therefore, I selected the \(p_i – q_i\) method with the preset angle as the harmonic detection scheme for the unified control strategy.
The composite current reference is formed by adding the active power reference current and the harmonic compensation current. For the current tracking loop, I propose a composite controller that combines a fuzzy PI controller with a repetitive controller. The transfer function of the conventional PI controller is:
$$ G_{PI}(s) = K_p + \frac{K_i}{s} $$
In the synchronous reference frame, the PI controller has a limited gain at non-DC frequencies, so it cannot achieve zero steady-state error for harmonic currents. The repetitive controller is based on the internal model principle and provides high gain at multiples of the fundamental frequency. Its transfer function is:
$$ G_{rc}(z) = \frac{k_r z^{-N}}{1 – Q(z) z^{-N}} C(z) $$
where \(N\) is the number of samples per fundamental period, \(Q(z)\) is a low-pass filter (typically 0.98), and \(C(z)\) is a compensator. The repetitive controller can significantly suppress periodic disturbances, making it ideal for harmonic compensation. However, its dynamic response is relatively slow. To improve the transient performance, I use a fuzzy PI controller in parallel. The fuzzy PI controller adjusts \(K_p\) and \(K_i\) in real time based on the error and its derivative. The fuzzy rules are designed using a seven-level linguistic variable (NB, NM, NS, ZO, PS, PM, PB) with input and output domains normalized to [-6, 6]. The resulting controller achieves both fast dynamic response and high steady-state accuracy.
The overall control block diagram of the unified strategy is shown in the figure below (omitted for brevity but described here). The DC-link voltage loop generates the active current reference \(i_q^* = 0\) for reactive power compensation. The harmonic detection block computes the compensation currents. The composite current reference is then transformed to the \(abc\) frame and fed to the fuzzy PI + repetitive controller. The controller outputs the PWM signals for the inverter switches. This architecture allows the same solar inverter to operate in three different modes:
- PV only mode: The harmonic detection block is disabled, and the inverter tracks the active power reference to inject PV power into the grid.
- APF only mode: The PV source is disconnected, and the inverter only compensates harmonics and reactive power.
- PV + APF mode: Both functions are active simultaneously.
5. Simulation Results and Discussion
I built a complete simulation model in MATLAB/Simulink for a three-phase solar inverter with power quality management. The system parameters are listed in the following table:
| Parameter | Value |
|---|---|
| Temperature | 25°C |
| Irradiance | 1000 W/m² |
| Switching frequency | 12 kHz |
| Fundamental frequency | 50 Hz |
| Grid line-to-line voltage | 380 V |
| DC-link voltage | 800 V |
| DC-link capacitance | 1 mF |
| AC-side inductance | 1 mH |
| Load resistance | 25 Ω |
| Load inductance | 5 mH |
| Preset angle delay time | 0.02 s |
5.1 Single PV Grid-Connected Mode
In this mode, the inverter operates with only the PV grid-connection function. The irradiance is set at 1000 W/m², and the temperature is 25°C. The A-phase grid voltage and current waveforms are shown in the simulation results. The current and voltage are in phase, indicating unity power factor. The RMS value of the grid current is approximately 89 A, while the peak voltage is about 311 V. The FFT analysis of the A-phase current reveals a THD of 0.91%, which is well below the 5% limit specified by the IEEE 519 standard. When the irradiance changes from 500 W/m² to 1000 W/m² at t=0.16 s, the output current increases from 43 A to 89 A. The active power delivered by the PV system reaches 22 kW. These results confirm that the proposed control strategy works effectively for solar inverters in the grid-connected mode.
5.2 Single Active Power Filter Mode
When the irradiance is insufficient or the environment is highly overcast, the PV system cannot generate sufficient power. In this case, the inverter is configured as a standalone active power filter (APF). Figure 5.1 shows the grid voltage and load current when the APF is not active. The load current waveform is highly distorted due to the nonlinear load. The FFT analysis yields a THD of 30.48%. After enabling the APF function, the current waveform becomes sinusoidal. The FFT analysis of the compensated grid current gives a THD of only 0.61%. This demonstrates that the proposed fuzzy PI + repetitive controller with the preset compensation angle is capable of effectively eliminating harmonics in three-phase solar inverters when operating solely as an active filter.
5.3 Combined PV Grid-Connection and APF Mode
In the combined mode, the inverter simultaneously delivers PV power to the grid and compensates for load harmonics. The composite current reference includes both the active current and the harmonic compensation components. The simulation results show that the grid current is nearly sinusoidal with an amplitude of 100 A. The FFT analysis of the grid current yields a THD of 0.49%, which is lower than that of the single PV mode (0.91%) and the single APF mode (0.61%). The PV array output power is 56.3 kW, and the installed PV capacity is 41.4 kW. The inverter successfully maintains the DC-link voltage at its reference value while injecting power and compensating harmonics.
To further investigate the dynamic performance of the proposed control strategy, I applied a sudden load change at t=0.2 s. The load resistance was changed from 25 Ω to 12.5 Ω. The three-phase grid voltages and load currents are shown in the simulations. As expected, the load current and grid current increase rapidly from 25 A to 45 A. The FFT analysis of the grid current before and after the load change gives THD values of 0.51% and 0.59%, respectively. Both values are well within the acceptable limits. These results confirm that the unified control strategy can maintain excellent power quality even under severe load transients.
The following table summarizes the THD values for the three operating modes under the proposed control strategy:
| Operating Mode | THD of Grid Current (%) |
|---|---|
| Single PV grid-connected | 0.91 |
| Single Active Power Filter | 0.61 |
| Combined PV + APF | 0.49 |
From the above results, it is evident that the combined operation of solar inverters with active power filtering yields the best power quality. The integration of the preset compensation angle significantly improves the harmonic detection accuracy, and the fuzzy PI + repetitive controller provides a fast and precise current tracking capability. The dynamic responses under irradiance changes and load steps further validate the robustness of the proposed strategy.
6. Conclusion
In this thesis, I have presented a comprehensive study on three-phase solar inverters with power quality management capabilities. The main contributions are summarized as follows:
1. A chaotic Harris Hawk optimization algorithm combined with incremental conductance (IHHO-INC) was proposed for maximum power point tracking. The algorithm incorporates Henon chaotic mapping, optimal individual guidance, and Levy flight to enhance global search and avoid local optima. Simulation results under uniform irradiance, partial shading, and time-varying irradiance demonstrated that the proposed algorithm achieves a tracking efficiency of above 97% and converges to the global maximum power point significantly faster than conventional INC or the original HHO method.
2. A unified control strategy was developed for solar inverters to operate in both grid-connection and active power filtering modes. The strategy uses a \(p_i – q_i\) harmonic detection method with a preset compensation angle to reduce time delays and improve harmonic extraction accuracy. For current control, a composite controller combining fuzzy PI and repetitive control was designed to achieve zero steady-state error and fast dynamic response.
3. Extensive simulations were carried out for three operating modes: standalone PV grid-connected, standalone active power filter, and combined PV + APF. The grid current THD values were 0.91%, 0.61%, and 0.49% for the three modes, respectively. The combined mode yields the best power quality, with a THD far below the 5% limit prescribed by the IEEE standard. The control strategy also demonstrated excellent dynamic performance under sudden irradiance changes and load variations.
In conclusion, the proposed methods effectively enhance the efficiency and power quality of three-phase solar inverters. The research provides a practical solution for integrating active filtering functions into solar inverters, which is particularly beneficial for modern distribution networks where harmonic pollution and renewable energy integration are growing concerns.
