© 2026 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).
OPEN ACCESS
Conventional Active Power Filters (APFs) depend on a harmonic detection stage that carries a heavy computational burden, delays the dynamic response and complicates system implementation. To avoid these problems, this paper studies an APF based on an indirect current control strategy that requires no explicit harmonic detection. Rather than detecting the load harmonic currents, the method samples the grid-side current directly and uses a controller to shape it into a standard sine wave, thereby compensating the harmonics. For reference current extraction, a positive-sequence fundamental voltage phase detection method based on a Sinusoidal Amplitude Integrator (SAI) is proposed. It separates the positive-sequence component accurately and provides the phase information, limiting the phase detection errors caused by three-phase grid voltage unbalance. The control system has a dual closed-loop structure. In the outer DC voltage loop, a PI regulator keeps the DC-link voltage constant and indirectly reflects the active power demand, while the inner grid current loop uses a PI-VPI controller. Through its Vector Proportional-Integral (VPI) part, the controller provides high gain at specific harmonic frequencies in the fundamental-frequency rotating reference frame, which overcomes both the narrow bandwidth of conventional PI controllers and the poor stability of PR controllers. MATLAB/Simulink simulations show that the proposed strategy operates stably under three-phase voltage unbalance and sudden load changes. After compensation, the Total Harmonic Distortion (THD) of the grid current falls from 21.62% to 1.65%, and the harmonic suppression is clearly better than that of conventional PI and PI-R controllers. These results confirm the feasibility and effectiveness of the proposed harmonic-detection-free APF control strategy.
Active Power Filter, harmonic detection, three-phase voltage unbalance, indirect current control
Active Power Filters (APFs) are an effective means of improving power quality and have been widely adopted in developed countries such as the United States, Japan, and Germany [1-4].
In the conventional APF control strategy, the harmonic reference current is first extracted by a harmonic detection stage and then tracked by a current controller [4-13]. Under this traditional scheme, harmonic compensation requires the harmonic components of the load current to be detected accurately and quickly, because this step directly determines the final compensation performance. For this reason, harmonic current detection has long been regarded as an indispensable step [14, 15].
However, conventional harmonic detection relies on low-pass filters, which complicate system implementation and impose a considerable computational burden [16, 17]. Although optimized detection algorithms are often used to speed up the dynamic response of APFs [17-20], the time delays and errors inherent in harmonic detection cannot be avoided and inevitably degrade the compensation performance [2, 5, 21].
This paper proposes a harmonic-detection-free APF based on an indirect current control strategy. The basic structure of the APF and the principle of reference current extraction are presented first, followed by a method for extracting the reference current under three-phase grid voltage unbalance. The design of the outer DC voltage loop and the inner grid current loop is then described, together with the selection of controller parameters. Finally, simulations are carried out to verify the feasibility and effectiveness of the proposed APF control system, which has no dedicated harmonic detection stage.
Figure 1 shows the basic structure of the harmonicdetection-free APF. Unlike conventional topologies, this APF has no load current detection module. It measures the grid-side current directly and uses a controller to shape it into a standard sine wave, which achieves harmonic compensation. With this control strategy, the load current $i_{L, a b c}$ does not need to be detected. The grid-side current $i_{s, a b c}$ is measured directly by current sensors and transformed into the fundamental-frequency rotating reference frame $\left(i_{s, d q}\right)$ through the Clarke and Park transformations. The current control loop then generates the control signals for the APF, which determine the voltage space vectors of the converter. The desired compensation is obtained by injecting the converter output current $i_{F, a b c}$ into the grid.
In the configuration of Figure 1, the grid is assumed to be an infinite source with a standard sinusoidal voltage, and the line impedance is neglected. The nonlinear load is a three-phase uncontrolled rectifier, and $L$ denotes the output inductance on the AC side of the APF. The APF needs only two current transformers (CTs) and two voltage transformers (VTs). The two CTs sample the grid-side currents of phases a and b ($i_{s a}$ and $i_{s b}$), from which the phase-c current is calculated. Likewise, the two VTs measure the grid line voltages $u_{a b}$ and $u_{b c}$, from which $u_{c a}$ is derived. In addition, a DC voltage sensor samples the DC-link voltage of the APF, $u_{d c}$.
With indirect current control, the control performance of the APF no longer depends on the harmonic detection technique. The control structure is also simpler, and the system cost is lower because only two current sensors are needed.
Figure 1. Block diagram of the harmonic-detection-free Active Power Filter (APF)
From Figure 1, the instantaneous grid current is:
$i_s(t)=i_L(t)-i_F(t)$ (1)
where, $i_s(t), i_L(t)$, and $i_F(t)$ denote the instantaneous values of the grid current, load current, and APF output current, respectively.
Assuming that the voltage at the point of common coupling (PCC) contains only the positive-sequence fundamental component, we have:
$u_{P C C}(t)=U_{M, 1} \sin (\omega t)$ (2)
where, $u_{\mathrm{PCC}}(t)$ is the instantaneous voltage at the PCC, $U_{M, 1}$ is the peak value of the positive-sequence fundamental voltage at the PCC, and $\omega$ is the grid angular frequency.
The instantaneous load current is given by:
$\begin{gathered}i_L(t)=\sum_{n=1}^{\infty} I_{M, n} \sin \left(n \omega t+\phi_n\right) =I_{M, 1} \sin \left(\omega t+\phi_1\right)+\sum_{n=2}^{\infty} I_{M, n} \sin \left(n \omega t+\phi_n\right)\end{gathered}$ (3)
where, $I_{M, n}$ and $\phi_n$ denote the peak value and initial phase angle of the $n$-th harmonic current, respectively.
According to Eqs. (2) and (3), the instantaneous power flowing into the load, $p_L(t)$, can be expressed as:
$\begin{gathered}p_L(t)=u_{P C C}(t) \cdot i_L(t)=U_{M, 1} I_{M, 1} \sin ^2(\omega t) \cos \phi_1 +U_{M, 1} I_{M, 1} \sin (\omega t) \cos (\omega t) \sin \phi_1 +U_{M, 1} \sin (\omega t) \sum_{n=2}^{\infty} I_{M, n} \sin \left(n \omega t+\phi_n\right)\end{gathered}$ (4)
The first term in Eq. (4) is the instantaneous active power absorbed by the load, which is supplied entirely by the grid:
$p_l(t)=U_{M, 1} I_{M, 1} \sin ^2(\omega t) \cos \phi_1$ (5)
Because the fundamental active power of the load is supplied by the grid, while the negative-sequence and harmonic currents and the reactive power are supplied by the APF, the grid current after compensation can be derived from Eqs. (2) and (5) as:
$\begin{gathered}i_s(t)=\frac{p_l(t)}{u_{P C C}(t)}=I_{M, 1} \sin (\omega t) \cos \phi_1 =I_{s 1, \text { ref }} \sin (\omega t)\end{gathered}$ (6)
On this basis, Eq. (6) can be used to construct the positive-sequence fundamental grid current signal, which serves as the reference signal for the APF.
Ideally, the compensated grid current is a sine wave in phase with the positive-sequence fundamental grid voltage. Eq. (6) shows that the positive-sequence fundamental grid current is fully determined by its amplitude and phase. Since this current is in phase with the positive-sequence fundamental grid voltage, its phase can be taken directly from that voltage.
According to the operating principle of the harmonic-detection-free APF, in steady state the active power delivered by the grid does not accumulate on the DC side but is entirely absorbed by the load, so the average DC-side voltage equals its preset reference. During transients, however, the active power on the grid side no longer matches that on the load side, and energy is exchanged between them. The DC side of the APF then acts as an energy storage and buffer element.
The APF reference current can be obtained by regulating the DC-link capacitor voltage. The amplitude of the positive-sequence fundamental grid current is related to the average DC-side voltage by:
$I_{s 1, \text {ref}}=k_P \Delta u_{d c}+k_I \int \Delta u_{d c} d t$ (7)
where, $\Delta u_{d c}=u_{d c}^*-u_{d c}$ is the error between the reference and measured DC-side voltages, and $k_P$ and $k_I$ are the proportional and integral gains, respectively.
Figure 2. Determination method of APF reference current
From the above analysis, the APF reference current based on DC-side voltage regulation is obtained as shown in Figure 2.
The phase of the positive-sequence fundamental grid current can be obtained by detecting the phase of the positive-sequence fundamental grid voltage. Conventional voltage phase detection methods include the following. (1) The improved synchronous reference frame method. The grid voltage is first transformed from the abc frame to the αβ frame to obtain u_sα and u_sβ, and the angle of the resulting vector is used as the fundamental rotation angle. Its drawback is that, when the grid voltage is unbalanced and contains negative-sequence components, the vector in the αβ frame does not rotate at constant speed. This affects the extraction of the positive-sequence voltage amplitude and also introduces phase detection errors. (2) The open-loop positive-sequence fundamental voltage phase detection method based on low-pass filters. This method ignores both the effect of the low-pass filter on phase detection and the grid voltage unbalance. In practice, grid voltages are asymmetric to some degree in most cases. Narrowing the low-pass filter bandwidth reduces the influence of high-frequency components, but it inevitably slows the dynamic response of signal detection. (3) The adaptive notch filter method. Notch filters are applied in the abc or αβ frame to isolate the fundamental component. However, the extracted fundamental contains both positive- and negative-sequence parts, which cannot be distinguished, so this method is also unsuitable.
This paper proposes a phase detection method for the positive-sequence fundamental grid voltage based on a Sinusoidal Amplitude Integrator (SAI). The method separates the positive-sequence fundamental component of the grid voltage directly, removes the influence of grid frequency variations and has a simple structure. Accurate phase detection depends on obtaining the positive-sequence fundamental grid voltage precisely. Positive- and negative-sequence SAI circuits are used to extract this voltage, so that its phase angle can be detected accurately.
First, the symmetrical component method is used to decompose the unbalanced three-phase grid voltages $u_{s a}, u_{s b}$, and $u_{s c}$ into positive-sequence, negative-sequence, and zerosequence components. Because zero-sequence components do not exist in three-phase three-wire systems, they are neglected, which gives:
$\begin{gathered}{\left[\begin{array}{l}u_{s a} \\ u_{s b} \\ u_{s c}\end{array}\right]=\left[\begin{array}{c}U_{s p} \cos (\omega t) \\ U_{s p} \cos \left(\omega t-\frac{2 \pi}{3}\right) \\ U_{s p} \cos \left(\omega t+\frac{2 \pi}{3}\right)\end{array}\right]} \\ +U_{s n}\left[\begin{array}{c}U_{s n} \sin \left(-\omega t+\varphi_n\right) \\ U_{s n} \sin \left(-\omega t-\frac{2 \pi}{3}+\varphi_n\right) \\ U_{s n} \sin \left(-\omega t+\frac{2 \pi}{3}+\varphi_n\right)\end{array}\right]\end{gathered}$ (8)
where, $U_{s p}$ and $U_{s n}$ denote the amplitudes of the positive- and negative-sequence components of the grid voltage, respectively; $\varphi_n$ is the phase angle of the negative-sequence component; and $\omega$ is the grid angular frequency. Through the abc $-\alpha \beta$ transformation, the grid voltages $u_{s a}, u_{s b}$, and $u_{s c}$ are converted from the stationary abc frame to the $\alpha \beta$ frame, giving $u_{s \alpha}$ and $u_{s \beta}$:
$\left[\begin{array}{l}u_{s \alpha} \\ u_{s \beta}\end{array}\right]=C_{a b c-\alpha \beta}\left[\begin{array}{l}u_{s a} \\ u_{s b} \\ u_{s c}\end{array}\right]=\left[\begin{array}{l}u_{s \alpha p} \\ u_{s \beta p}\end{array}\right]+\left[\begin{array}{l}u_{s \alpha n} \\ u_{s \beta n}\end{array}\right]$
where, $C_{a b c-\alpha \beta}=\sqrt{\frac{2}{3}}\left[\begin{array}{ccc}1 & -\frac{1}{2} & -\frac{1}{2} \\ 0 & \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2}\end{array}\right]$. Here, $u_{s \alpha p}, u_{s \beta p}, u_{s \alpha n}$, and $u_{s \beta n}$ are the positive- and negative-sequence components of the grid voltage in the $\alpha \beta$ frame, respectively, which can be written as:
$\left\{\begin{array}{l}{\left[\begin{array}{l}u_{s \alpha p} \\ u_{s \beta p}\end{array}\right]=U_{s p}\left[\begin{array}{l}\cos (\omega t) \\ \sin (\omega t)\end{array}\right]} \\ {\left[\begin{array}{l}u_{s \alpha n} \\ u_{s \beta n}\end{array}\right]=U_{s n}\left[\begin{array}{l}\cos \left(-\omega t+\varphi_n\right) \\ \sin \left(-\omega t+\varphi_n\right)\end{array}\right]}\end{array}\right.$ (9)
Eq. (9) shows that, in the αβ frame, the positive-sequence component is a sinusoidal signal with an angular frequency of ω, whereas the negative-sequence component is a sinusoidal signal with an angular frequency of -ω. The two components can therefore be distinguished by a filter that is selective with respect to positive and negative frequencies, and the SAI has this property.
The positive-sequence input signal is expressed in complex exponential form as:
$x(t)=\cos (\omega t)+j \sin (\omega t)$ (10)
The transfer function of the positive-sequence SAI is defined as:
$H(s)=\frac{\omega}{s-j \omega}$ (11)
When the positive-sequence input signal x(t) passes through Eq. (11), the time-domain output is:
$y(t)=\omega \cos (\omega t) t+j \omega \sin (\omega t) t$ (12)
The transfer function in Eq. (11) can be realized with the positive-sequence SAI circuit shown in Figure 3.
When $\omega=2 \pi f \ \mathrm{rad} / \mathrm{s} \cdot$ with $\cdot f=50 \ \mathrm{~Hz}$, Figure 4 shows the magnitude and phase frequency responses of Eq. (11). The magnitude response has a resonant peak at $f=50 \mathrm{~Hz}$, while signals at other frequencies are attenuated to different degrees. The phase response also shows clear selectivity between positive and negative frequencies. Together, these characteristics show that the SAI circuit is inherently frequency selective.
Figure 3. Circuit of positive-sequence Sinusoidal Amplitude Integrator (SAI)
Figure 4. Frequency response of positive-sequence Sinusoidal Amplitude Integrator (SAI)
Similarly, the transfer function of the negative-sequence SAI is defined as:
$H(s)=\frac{\omega}{s+j \omega}$ (13)
Figure 5 shows the negative-sequence SAI circuit, which is selective to negative frequencies.
The three-phase grid voltages $u_{s a}, u_{s b}$, and $u_{s c}$ are first transformed into the $\alpha \beta$ coordinate system via the abc- $\alpha \beta$ transformation to obtain $u_{s \alpha}$ and $u_{s \beta}$ as inputs. With a positive-sequence $\operatorname{SAI}(\omega)$ block and a negative-sequence $\operatorname{SAI}(-\omega)$ block, the positive- and negative-sequence components of the unbalanced three-phase grid voltage are extracted as $u_{s \alpha p}$ and $u_{s \beta p}$, as shown in Figure 6. The extraction requires only simple arithmetic operations and four integrators. In the figure, $k$ is the feedback coefficient, usually set to 0.707, and the signals $u_{s \alpha p}, u_{s \beta p}$ and $u_{s \alpha n}, u_{s \beta n}$ are the detected fundamental positive- and negative-sequence voltage components, respectively.
Figure 5. Circuit of negative-sequence Sinusoidal Amplitude Integrator (SAI)
Figure 6. Sinusoidal Amplitude Integrator (SAI)-based positive-sequence signal extraction
The phase angle of the fundamental grid voltage is then obtained from the positive-sequence components as:
$\left\{\begin{array}{l}\sin \theta=\frac{u_{s \alpha p}}{\sqrt{u_{s \alpha p}^2+u_{s \beta p^2}}} \\ \cos \theta=\frac{u_{s \beta p}}{\sqrt{u_{s \alpha p^2}{ }^2+u_{s \beta p^2}}}\end{array}\right.$ (14)
Figure 7 shows the complete phase detection scheme for the positive-sequence fundamental grid voltage. The APF reference current is then determined from the amplitude and phase of the positive-sequence fundamental current.
Figure 7. Design of positive-sequence fundamental grid voltage phase detection
The APF based on indirect current control has two control loops, a DC voltage outer loop and a grid current inner loop, as shown in Figure 8. The voltage outer loop usually uses a PI controller to hold the APF DC-side voltage $u_{d c}$ at its reference value $u_{d c}^*$. Besides regulating the DC-link voltage, this loop suppresses voltage fluctuations caused by sudden load changes. Its output is the reference active current command $i_{s d}^*$ in the fundamental rotating coordinate system. When the load reactive power must be compensated to achieve unity power factor on the grid side, the reference reactive current command $i_{s q}^*$ is simply set to zero. The grid current inner loop uses a PI-VPI controller to regulate the grid current, and its output is the fundamental voltage space vector of the APF. Figure 8 presents the overall block diagram of the APF without harmonic detection. Because the indirect current control strategy involves no explicit harmonic detection, the control performance of the APF depends largely on controller design.
Figure 8. Overall block diagram of Active Power Filter (APF) without harmonic detection
4.1 PI-VPI Current inner loop controller
Under ideal conditions with an undistorted current, the current becomes a DC quantity in the fundamental rotating coordinate system, and a conventional PI controller can track it with zero steady-state error. In real power grids, however, the grid current is not a pure sinusoid but a distorted waveform containing harmonics. Because the control bandwidth of a PI controller is limited, it cannot adequately regulate high-frequency harmonic currents. A PI controller in the fundamental rotating frame alone therefore cannot control the grid current precisely or shape it into a standard sine wave.
Resonant controllers can overcome this shortcoming of PI controllers by providing high gain at specific harmonic frequencies, and several resonant controllers tuned to different harmonic frequencies can be superimposed to compensate multiple harmonics. The transfer function of the Proportional-Resonant (PR) controller is given in Eq. (15).
$G_{\mathrm{PR}}=\sum_{h=1,5,7,11,13 \ldots} K_{p h}+\frac{2 K_{r h} s}{s^2+\left(h \omega_s\right)^2}$ (15)
where, $K_{p h}$ and $K_{r h}$ are the proportional and resonant gains of the PR controller, respectively; $h$ represents the harmonic order; and $\omega_s$ is the fundamental angular frequency of the grid voltage.
Eq. (15) shows that a single resonant controller regulates only one harmonic frequency. Compensating several harmonics at once therefore makes both system design and digital implementation more complex.
In practice, the harmonics produced by typical harmonic sources are mainly odd-order, with frequencies of $h=6 n \pm 1$ ($n=1,2,3, \ldots$) times the fundamental frequency. Harmonics of order $h=6 n+1$ are positive-sequence, and those of order $h=6 n-1$ are negative-sequence. In the fundamental rotating reference frame, each pair of $h=6 n \pm 1$ harmonics becomes a single component at the frequency corresponding to $6 n$. Each pair of positive- and negative-sequence harmonics can therefore be regulated by a single controller. Once the harmonics are transformed into the fundamental rotating frame and the resonant frequency of the controller is set to $6 n \omega_s$, the $h=6 n \pm 1$ harmonics can be compensated effectively. On this basis, a Proportional-Integral-Resonant (PI-R) controller is adopted, with the transfer function:
$G_{\mathrm{PI}-\mathrm{R}}=K_{P 1}+\frac{K_{i 1}}{s}+\sum_{h=6,12,18 \ldots} K_{p h}+\frac{2 K_{r h} s}{s^2+\left(h \omega_s\right)^2}$ (16)
where, $K_{P 1}$ and $K_{i 1}$ represent the proportional gain and integral gain of the PI controller, respectively; $h=6 n$ denotes the harmonic order in the fundamental rotating reference frame, with $n=1,2,3, \ldots$.
Figure 9 shows the Bode plot of the closed-loop transfer function of the PI-R controller. The stability margin of the system drops considerably at higher-order harmonics, and sharp resonant peaks appear in the closed-loop frequency response, which may impair system stability.
Figure 9. Closed-loop Bode diagram of PI-R controller
To solve these problems, this paper adopts a Vector Proportional-Integral (VPI) controller. In essence, the VPI controller shifts the positive-sequence harmonic components by $+h \omega_s$ and the negative-sequence harmonic components by$-h \omega_s$ in the fundamental rotating reference frame. Because positive- and negative-sequence harmonics must be compensated at the same time, its transfer function is given by Eq. (17):
$\begin{gather*}
G_{\mathrm{VPI}}=\sum_{h=6,12,18 \ldots} \frac{K_{p h} s+K_{r h}}{s-j h \omega_s}+ \\
\sum_{h=6,12,18 \ldots} \frac{K_{p h} s+K_{r h}}{s+j h \omega_s}=\sum_{h=6,12,18 \ldots} 2 \frac{K_{p h} s^2+K_{r h} s}{s^2+\left(h \omega_s\right)^2} \tag{17}
\end{gather*}$
where, $K_{p h}$ and $K_{r h}$ are the proportional and resonant gains of the VPI controller, respectively.
The transfer function of the resistive-inductive (RL) plant of the system is given by Eq. (18):
$G_{L_F}=\frac{1}{s L_F+R_F}$ (18)
where, $L_F$ and $R_F$ are the equivalent inductance and resistance of the APF output filter, respectively.
By setting $K_{r h}=\left(K_{p h} R_F\right) / L_F$ in the VPI controller, the numerator of $G_{V P I}$ cancels the RL plant transfer function $G_{L_F}$ of the APF. As a result, the VPI controller removes the sharp resonant peaks from the closed-loop frequency response without any delay compensation. Replacing the resonant part of Eq. (16) with the VPI controller gives the PI-VPI controller, whose transfer function is:
$G_{\mathrm{PI}-\mathrm{VPI}}=K_{P 1}+\frac{K_{i 1}}{s}+\sum_{h=6, \ldots, 30} 2 \frac{K_{p h} s^2+K_{r h} s}{s^2+\left(h \omega_s\right)^2}$ (19)
Figure 10 compares the open-loop Bode plots of the PI-VPI and PI controllers. Both achieve high gain in the lowfrequency region. At the frequencies of $6 \omega_s, 12 \omega_s, 18 \omega_s, 24 \omega_s$, and $30 \omega_s$, however, the PI-VPI controller still maintains high gain, while the gain of the PI controller falls sharply. The PI-VPI controller therefore tracks harmonics more accurately thathe PI controller.
Figure 10. Open-loop Bode plot comparison of PI and PI-VPI controllers
Figure 11 shows the complete block diagram of the PI-VPI current control. Because the PI-VPI controller works in the fundamental rotating reference frame, the three-phase grid currents $i_{s, a b c}$ measured by the current sensors are first transformed from the $a b c$ stationary frame to the fundamental rotating reference frame, giving $i_{s, d q}$. The PI-VPI controller regulates the grid currents $i_{s, d q}$ according to the reference currents $i_{s, d q}^*$, and its output $u_{F, d q}^*$ is added to the grid voltages $u_{s, d q}$ to generate the APF control signals in the fundamental rotating reference frame.
Figure 11. PI-VPI controller structure
4.2 DC-link voltage outer loop controller
The DC-link voltage outer loop controller keeps the DC-side voltage of the APF constant. It is usually a simple PI regulator, and its output is the reference active current in the fundamental rotating reference frame:
$i_{s d}^*=\left(K_{p d c}+\frac{K_{i d c}}{s}\right)\left(u_{d c}^*-u_{d c}\right)$ (20)
where, $K_{p d c}$ and $K_{i d c}$ are the proportional and integral gains of the PI controller, respectively.
Because indirect current control does not detect the load current, the effect of load variations on APF performance is suppressed indirectly by measuring and regulating the DC-link voltage.
In general, the APF is also expected to provide suitable reactive power compensation while compensating harmonics. The output of the PI controller that regulates the DC-link voltage is used as the reference active current component, and the reference reactive current component is set to zero, which improves the grid-side power factor.
Controller Parameter Design
To study how the PI-VPI controller parameters should be designed and how they affect system performance, the closedloop transfer function is derived from the open-loop transfer function of the PI-VPI controller. Setting $K_{r h}=\left(K_{p h} R_F\right) / L_F$ and $K_{i 1}=\left(K_{p 1} R_F\right) / L_F$, gives Eq. (21):
$\begin{gathered}G_C=\frac{G_{P I-V P I} G_{L_F}}{1+G_{P I-V P I} G_{L_F}} \\ =\sum_{h=6, \ldots, 30} \frac{\left(K_{p 1} L_F+2 K_{p h}\right) s^2}{+2 K_{p h} K_{p 1} s+K_{p 1} L_F\left(h \omega_s\right)^2} \\ +\left(2 K_{p h} K_{p 1}+L_F\left(h \omega_s\right)^2\right) s+K_{p 1} L_F\left(h \omega_s\right)^2\end{gathered}$ (21)
In Eq. (21), only the proportional gain $K_{p h}$ and resonant gain $K_{p 1}$ of the VPI controller need to be tuned. Here, $K_{p 1}$ is the proportional gain within the VPI structure and does not affect its harmonic compensation performance. With $K_{p 1}$ held constant, the effect of $K_{p h}$ on the performance of the VPI controller is examined by varying its value. The Bode plots obtained with $K_{p h}$ set to 0.5, 2, and 5 are shown in Figure 12.
The figure shows that, whatever the value of $K_{p h}$, the VPI controller provides unity gain and zero phase shift at every compensation frequency. When $K_{p h}=0.5$, the bandwidth is narrowest, indicating that a smaller $K_{p h}$ gives better selectivity and stability. Considering the dynamic response speed of the APF, however, $K_{p h}$ should not be too small and is usually chosen to be about 1 .
Figure 12. Closed-loop Bode plot comparison of PI-VPI controller for Kph = 0.5, 2, and 5
Moreover, the controller parameters are set before the system starts and stay fixed during operation. If the output filter inductance changes during actual APF operation, for example because of thermal effects, the relationship $K_{r h}=$ $\left(K_{p h} R_F\right) / L_F$ no longer holds.
To examine whether the response speed of the VPI controller is affected by inductance variations, the nominal inductance before operation is assumed to be $L_f$, and the actual inductance $L_F$ is set to $L_f / 3, L_f$, and $1.5 L_f$, respectively. Figure 13 shows the corresponding closed-loop Bode plots of the PI-VPI controller. When the inductance varies, the VPI controller still maintains zero phase shift and unity gain at the compensation frequencies. Inductance variations during operation therefore do not impair the stability or dynamic response of the APF.
Figure 13. Closed-loop Bode plot comparison of PI-VPI controller for $L_F=L_f / 3, L_f$, and $1.5 L_f$
To verify the feasibility of the APF without harmonic detection based on indirect current control, the proposed APF was modeled on the MATLAB/Simulink platform and simulated with a three-phase six-switch topology.
Table 1 lists the parameters of the simulation system.
The parameters of the PI-VPI current controller are listed in Table 2.
Table 1. Simulation parameters of the Active Power Filter (APF) without harmonic detection
|
Variable |
Parameter |
|
Grid Line Voltage |
380 V |
|
Grid Frequency |
50 Hz |
|
APF Output Inductance |
1.5 mH |
|
APF Output Resistance |
37.5 mΩ |
|
DC-Link Capacitance |
4.8 mF |
|
Nonlinear Load Resistance |
8 Ω |
|
DC Bus Reference Voltage |
900 V |
|
IGBT Switching Frequency |
12.5 kHz |
Table 2. Parameters of the PI-VPI current controller
|
Compensated Harmonic Order |
$K_p$ |
$K_i$ |
|
Fundamental |
$K_{p 1}=4$ |
$K_{i 1}=100$ |
|
5th, 7th |
$K_{p 6}=1.6$ |
$K_{i 6}=40$ |
|
11th, 13th |
$K_{p 12}=1.2$ |
$K_{i 12}=30$ |
|
17th, 19th |
$K_{p 18}=0.6$ |
$K_{i 18}=15$ |
|
23rd, 25th |
$K_{p 24}=0.4$ |
$K_{i 24}=10$ |
|
29th, 31st |
$K_{p 30}=0.2$ |
$K_{i 30}=5$ |
5.1 Verification of compensation effectiveness
Figure 14 shows the phase-A current waveform before the APF without harmonic detection is connected, and Figure 15 shows the waveform after the proposed APF is connected. Figure 16 shows the load-side harmonic current and the APF output current, and Figure 17 compares the current total harmonic distortion (THD) before and after compensation.
The figures show that the grid-side current has a saddle-shaped waveform before compensation. Once the APF is connected, the grid current becomes a fairly regular sine wave, which confirms the effectiveness of the proposed APF. Comparing Figures 17(a) and (b), the THD of the grid current falls from 21.62% to 1.65% after compensation. The THD is thus well below 5%, meeting the limits of the national standard.
Figure 14. Grid current of phase a before adding Active Power Filter (APF)
Figure 15. Grid current of phase a after adding Active Power Filter (APF)
Figure 16. Load-side harmonic current and Active Power Filter (APF) output current waveforms
(a) Before compensation
(b) After compensation
Figure 17. Comparison of current distortion rate before and after adding harmonic-detection-free Active Power Filter (APF)
5.2 Verification of the PI-VPI controller
Figure 15 shows the performance obtained with the PI-VPI controller. For comparison, simulations were also run with a PI controller alone and with a PI-R controller. The resulting phase-A current waveforms are shown in Figures 18 and 19, respectively, and the corresponding THD values in Figure 20. The grid current THD is 5.47% with the PI controller alone and 3.81% with the PI-R controller; in both cases the compensation is worse than with the PI-VPI controller.
To verify how well the proposed APF compensates specific harmonic orders, only the 5th and 7th harmonic controllers were included in the PI-VPI controller. The simulation results are shown in Figures 21 and 22.
Figure 17 shows that, before compensation, the 5th and 7th harmonics on the grid side account for 20% and 7% of the total harmonics, respectively. After frequency-selective compensation, they drop to 1.2% and 1.4%, respectively (Figure 22), demonstrating the clear effectiveness of the PI-VPI control strategy.
Figure 18. Waveform of grid phase-A current using only PI controller
Figure 19. Grid current waveform of phase A under PI-R control
Figure 20. Harmonic distortion rates of grid current under PI and PI-R control
Figure 21. Grid current waveform of phase A with 5th and 7th harmonic controllers
Figure 22. Grid current THD with 5th and 7th harmonic compensation
5.3 Dynamic response verification
To examine the dynamic response of the VPI controller under load variations, the load resistance was stepped from 8 Ω to 5 Ω at t = 0.2 s. Figure 23 shows the transient response of the APF during this step, including the grid-side current, the load harmonic current and the APF output current. When the load changes, the APF output current responds rapidly and adjusts to compensate the harmonic currents. Because the DC-link voltage loop includes a low-pass filter, it inevitably slows the response of the grid current to some extent; nevertheless, the settling time generally does not exceed one fundamental cycle.
5.4 Verification under unbalanced three-phase grid voltage
(1) To verify whether the reference current can be extracted correctly under unbalanced grid voltage, a 50% voltage sag was first applied to phase C. Figure 24 shows the three-phase grid voltages and the compensated three-phase grid currents, and Figure 25 shows the load harmonic current and the APF output current. During the single-phase sag, the three-phase grid currents become unbalanced and the harmonic source current is severely distorted.
Figure 23. Grid-side current, load harmonic current, and Active Power Filter (APF) output current waveforms during load step change
Figure 24. Three-phase grid voltages and post-compensation grid current waveforms with 50% phase-C voltage dip
Figure 25. Load harmonic current and Active Power Filter (APF) output current with 50% phase-C voltage sag
Figure 26. Positive-sequence component of grid voltage with 50% phase-C voltage sag
Figure 27. Grid current, load harmonic current, and Active Power Filter (APF) output current waveforms during 50% phase-C voltage dip
Figure 28. Three-phase grid voltages and post-compensation grid current waveforms with 50% voltage dip in phases B and C
Figure 29. Load harmonic current and Active Power Filter (APF) output current with 50% voltage sag in phases B and C
Figure 30. Positive-sequence voltage under 50% voltage sag in phases B and C
Figure 31. Grid current, load harmonic current, and Active Power Filter (APF) output current waveforms during 50% voltage dip in phases B and C
The positive- and negative-sequence components of the unbalanced grid voltage, extracted with the SAIs, are shown in Figure 26. With the proposed reference current extraction method, the resulting grid current, load harmonic current and APF output current are shown in Figure 27. The three-phase currents supplied by the source remain balanced.
(2) A 50% voltage sag was then applied to both phases B and C. Figure 28 shows the three-phase grid voltages and the compensated three-phase grid currents, and Figure 29 shows the load harmonic current and the APF output current. During the two-phase sag, the three-phase grid currents become unbalanced and the harmonic source current is severely distorted.
The positive- and negative-sequence components of the unbalanced grid voltage, extracted with the SAIs, are shown in Figure 30. With the proposed reference current extraction method, the resulting grid current, load harmonic current and APF output current are shown in Figure 31. The three-phase currents supplied by the source remain balanced.
Conventional APFs suffer from complex harmonic detection, slow dynamic response and degraded control performance under unbalanced three-phase voltages. To address these problems, this paper has studied an APF control strategy based on indirect current control without harmonic detection. From the theoretical analysis, controller design and simulations, the main conclusions are as follows:
(1) An indirect current control architecture without harmonic detection is proposed. It removes the conventional load harmonic current detection stage and, through dual closed-loop control, directly regulates the grid-side current into a standard sine wave. The method simplifies the system structure, lowers the computational burden, avoids the delays and errors introduced by harmonic detection algorithms, and improves both the dynamic response and the robustness of the system.
(2) An SAI-based phase detection method for the positive-sequence fundamental voltage is designed. Under unbalanced three-phase grid voltages, a SAI extracts the positive-sequence fundamental voltage component and provides its accurate phase angle. The method effectively rejects negative-sequence and harmonic disturbances during phase locking, gives a precise phase reference for current control in the rotating frame, and ensures stable APF operation under unbalanced voltages.
(3) A composite PI-VPI inner current loop controller is constructed. The outer DC voltage loop uses PI control, and the inner current loop uses a PI-VPI controller. The VPI part provides high gain at specific harmonic frequencies in the fundamental rotating frame, overcoming the limited bandwidth of conventional PI controllers and the poor stability of PR controllers in digital implementation. While tracking the fundamental accurately, the controller precisely suppresses characteristic harmonics such as the 5th, 7th, 11th, and 13th.
(4) Simulation results confirm the effectiveness and superiority of the proposed strategy. MATLAB/Simulink simulations show that it operates stably under both unbalanced three-phase voltages and sudden load changes. After compensation, the THD of the grid current drops from 21.62% to 1.65%, and the individual harmonic contents meet the national standard. Compared with conventional PI and PI-R controllers, the PI-VPI controller performs clearly better in steady-state accuracy, dynamic response and harmonic suppression, confirming the engineering applicability of the proposed harmonic-detection-free APF control strategy.
This work was supported by University-Level Research Project (JYA322-05) of Jiangsu University of Architectural Technology.
[1] Bezerra, T.M., Rocha, N., Maciel, A.D.M., et al. (2025). Optimized predictive control applied to three-phase four-wire shunt active power filters. IEEE Access, 13: 218010-218024. https://doi.org/10.1109/access.2025.3648133
[2] Usman, Z., Azmi, M.H., Mohammad Noor, S.Z., et al. (2025). Performance improvement of harmonic detection algorithm in three phase three wire shunt active power filter under balance voltage condition. International Journal of Power Electronics and Drive Systems (IJPEDS), 16(1): 380-388. https://doi.org/10.11591/ijpeds.v16.i1.pp380-388
[3] Kiruthiga, B., Om Prakash, A., Manoranjanitham, G.E., et al. (2025). Implementation of shunt active power filter in three phase inverter for fault detection and mitigation of harmonics. International Research Journal of Multidisciplinary Scope, 6(2): 1454-1469. https://doi.org/10.47857/irjms.2025.v06i02.03956
[4] Amini, B., Rastegar, H., Pichan, M. (2026). Fuzzy moving surface second-order super twisting sliding mode control for direct power control of shunt active power filter. IET Power Electronics, 19(1): e70260. https://doi.org/10.1049/pel2.70260
[5] Rudi, F.S., Hashemnia, M.N. (2025). Compensation of active filter using p-q theory in photovoltaic systems. Memories - Materials, Devices, Circuits and Systems, 9: 100122. https://doi.org/10.1016/j.memori.2025.100122
[6] Abdel-Aziz, A.A., Elgenedy, M.A., Williams, B.W. (2023). Model predictive current control for low-cost shunt active power filter. CSEE Journal of Power and Energy Systems, 10(4): 1589-1598. https://doi.org/10.17775/cseejpes.2023.00570
[7] Hajjej, M., Sbita, L., Mandal, K., et al. (2026). Power quality improvement in nonlinear lighting load applications using shunt active power filter control. IEEE Access, 14: 45600-45617. https://doi.org/10.1109/access.2026.3676706
[8] Bouza, M.D., Errouissi, R., Shareef, H. (2026). Composite disturbance observer-based control and h ∞ control framework for enhanced performance of three-phase shunt active power filters. IEEE Journal of Emerging and Selected Topics in Power Electronics, 14: 3782-3795. https://doi.org/10.1109/jestpe.2026.3651807
[9] Lakshminarayana, G., Arunachalam, K.P., Chavan, P., et al. (2026). Power quality enhancement using shunt active power filter with adaptive inductor step-up converter. ITEGAM- Journal of Engineering and Technology for Industrial Applications (ITEGAM-JETIA), 12(59): 1476-1492. https://doi.org/10.5935/jetia.v12i59.3540
[10] Mishra, P.K., Samal, S., Jena, C., et al. (2026). Advanced control strategy with SPV integrated shunt active power filter for power quality improvement. Energy Exploration & Exploitation, 44: 1513-1542. https://doi.org/10.1177/01445987251409536
[11] Wang, D., Yang, L., Ni, L. (2024). Performance and harmonic detection algorithm of phase locked Loop for parallel APF. Energy Informatics, 7(1): 25. https://doi.org/10.1186/s42162-024-00325-3
[12] Assaffat, L., Surjono, H.D., Arifin, F. (2025). Harmonic detection of electric current using machine learning: A literature review. Journal of Advanced Research Design, 132(1): 140-151. https://doi.org/10.37934/ard.132.1.140151
[13] Daniel, Kamran, Kütt, K., et al. (2024). A review of harmonic detection, suppression, aggregation, and estimation techniques. Applied Sciences, 14: 10966. https://doi.org/10.3390/app142310966
[14] Popescu, M., Bitoleanu, A., Suru, C.V., et al. (2024). Shunt active power filters in three-phase, three-wire systems: A topical review. Energies, 17(12): 2867. https://doi.org/10.3390/en17122867
[15] Hassani, N.K., Bagayogo, A., Markhi, H.E., et al. (2026). Evolution of control and optimization strategies for shunt active power filters in photovoltaic systems: A systematic review. Clean Energy Science and Technology, 4(4): 773. https://doi.org/10.18686/cest773
[16] Hajjej, M., Sbita, L. (2024). A new design and implementation of a three-phase four-wire shunt active power filter for mitigating harmonic problems caused by compact fluorescent lamps. Engineering, Technology & Applied Science Research, 14: 14619-14627. https://doi.org/10.48084/etasr.7251
[17] Popescu, M., Bitoleanu, A., Linca, M., et al. (2021). Improving power quality by a four-wire shunt active power filter: A case study. Energies, 14(7): 1951. https://doi.org/10.3390/en14071951
[18] D, K., K, B., Kumar, A. (2026). Performance enhancement of shunt active power filter using advanced multilevel inverter driven by intelligent control strategy. Electric Power Systems Research, 256: 112849. https://doi.org/10.1016/j.epsr.2026.112849
[19] Gaiceanu, M., Epure, S., Solea, R.C., et al. (2025). Power quality improvement with three-phase shunt active power filter prototype based on harmonic component separation method with low-pass filter. Energies, 18(3): 556. https://doi.org/10.3390/en18030556
[20] Heguig, L., Mesbahi, N., Guettaf, Y. (2025). Control of shunt active power filter for power quality improvements with PV system using MPC approach. International Journal of Power Electronics and Drive Systems (IJPEDS), 16(1): 278-286. https://doi.org/10.11591/ijpeds.v16.i1.pp278-286
[21] Zhou, X., Chen, Q., Zhang, L., et al. (2026). A unified transformer-based harmonic detection network for distorted power systems. Energies, 19(3): 650. https://doi.org/10.3390/en19030650