# Adaptive Sliding Mode Control of Single-Phase Shunt Active Power Filter

Authors: Juntao Fei; Shenglei Zhang; Jian Zhou
Journal: Mathematical Problems in Engineering
 (2012)

---

## Abstract

This paper presents a thorough study of the adaptive sliding mode technique with application to single-phase shunt active power filter (APF). Based on the basic principle of single-phase shunt APF, the approximate dynamic model is derived. A model reference adaptive sliding mode control algorithm is proposed to implement the harmonic compensation for the single-phase shunt APF. This method will use the tracking error of harmonic and APF current as the control input and adopt the tracking error of reference model and APF output as the control objects of adaptive sliding mode. In the reference current track loop, a novel adaptive sliding mode controller is implemented to tracking the reference currents, thus improving harmonic treating performance. Simulation results demonstrate the satisfactory control performance and rapid compensation ability of the proposed control approach under different conditions of the nonlinear load current distortion and the mutation load, respectively.


---

## Body

## 1. Introduction

With the widely used single-phase electric devices and increased high power electric appliance, it becomes more and more obvious that the quality of power supply drops and power factor reduces because of nonlinear factors. Since power electronic device and nonlinear load seriously damage the power quality, they have become the main harmonic pollution source of power network. APF could compensate the harmonics generated by the load current through injecting compensation current to the grid, having the advantages of high controllability and fast response. It not only can compensate harmonics, but also can inhibit the flicker and compensate reactive power; therefore, it is an effective approach to suppress the harmonic pollution.In recent years, the research and design of APF have made great progress, and a large number of successful APF products have been put into market. Along with the rapid development of precision, the speed and reliability in hardware equipment, high performance algorithm, and real time control can be realized. The models of APF have been established using various methods, and the behavior of reference signal tracking has been improved using advanced control approaches. Rahmani et al. [1] presented a nonlinear control technique with experimental design for three-phase shunt APF. Singh et al. [2] designed a simple fuzzy logic-based robust APF to minimize the harmonics for wide range of variation of load current under stochastic conditions. Bhende et al. [3] proposed TS-fuzzy-controlled APF for load compensation.  Montero et al. [4] compared some control strategies for shunt APFs in three-phase four-wire systems. Matas et al. [5] succeeded in linearizing the mathematical model of APF with feedback linearization method. Hua et al. [6] and Komucugil and Kukrer [7] used Lyapunov function to design some new control strategies for single-phase shunt APFs. Chang and Shee [8] proposed novel reference compensation current strategy for shunt APF control. Pereira et al. [9] derived new strategies with adaptive filters in APFs. Marconi et al. [10] proposed robust nonlinear control of shunt active filters for harmonic current compensation. APF control methods based on the adaptive algorithm have been proposed by some researchers [11–15]. Asiminoaei et al. [11] derived adaptive compensation scheme of reactive power for APF.  Luo et al. [12] developed hybrid APF based on the adaptive fuzzy dividing frequency control method. Ribeiro et al. [13] presented a robust adaptive control strategy for power factor correction, harmonic compensation, and balancing of nonlinear loads in APFs. Valdez et al. [14] designed an adaptive controller for shunt active filter in the presence of a dynamic load and the line impedance. Shyu et al. [15] proposed a model reference adaptive controller to control the circuit and improve the current and reduce the current harmonics by using the approximate dynamic model of single phase shunt APF. Different control methods and harmonic suppression approaches for APF have been investigated [16, 17].In the presence of model uncertainties and external disturbance, sliding mode control is necessary to incorporate into the adaptive control system since sliding mode control is a robust control technique which has many attractive features such as robustness to parameter variations and insensitivity to disturbance. Adaptive sliding mode control has the advantages of combining the robustness of variable structure methods with the tracking capability of adaptive control. However, systematic stability analysis and controller design of the adaptive sliding mode control with application to single-phase shunt APF have not been found in the literature; therefore, it is necessary to adopt adaptive sliding mode control that can on-line adjust the control parameter vector combined with the great robustness of sliding mode control for the harmonic suppression of single-phase shunt APF.This paper will expand the model reference adaptive control (MRAC) and incorporate the sliding mode control into the adaptive system to design the adaptive sliding mode control algorithm and apply to the single-phase shunt APF. The contribution of this paper can be summarized as the following.(1)
A novel adaptive sliding mode control is proposed in reference current tracking to reduce the tracking error. The designed APF has superior harmonic treating performance and minimizes the harmonics for wide range of variation of load current under different nonlinear load; therefore, an improved THD performance can be achieved with the proposed control scheme.(2)
It is the first time that adaptive sliding mode control is applied to the APF. The advantage of using adaptive controller for the shunt APF with sliding mode technique is that it has better harmonic treating performance and will improve the robustness of the APF under the nonlinear loads.(3)
This paper systematically and deeply studies the adaptive control and sliding mode technique with application to APF, comprehensively uses the adaptive control, sliding mode control with the APF, thereby significantly reducing the APF’s sensitivity to the nonlinear load and disturbance, and improving the robust performance. The APF control system is designed to make the compensation current track the command signal in real time, thereby eliminating the harmonics, improving the electric energy quality, and enhancing  the security of  the power transmission and distribution and power grid. Therefore, this research has great theoretical value and application potentials.The paper is organized as follows. In Section2, the basic principle of single-phase shunt APF and the approximate dynamic model are introduced. In Section 3, an adaptive sliding mode controller for shunt APF is designed and Lyapunov stability is established. Simulation results are presented in Section 4. Concluding remarks are summarized in Section 5.


## 2. Dynamic Model of APF

In this section, the basic principle of single-phase shunt APF and the approximate dynamic model are introduced [15]. Main circuit of shunt APF in parallel with the load connected to the network is shown in Figure 1. Currently, this is the most basic form of APF and the most widely used. In this way, the APF is equivalent to current generator, and the current value is the compensation current.Figure 1
Principle diagram of SAPF.As shown in Figure2, APF connected in parallel with the load could cancel the harmonic components in the line current (iS) so that the current flowing into and from the power line is sinusoidal and in phase with the power line voltage. In other words, the compensating current (iL) is injected into the line to force the line current (iS) to become sinusoidal wave and to achieve a unity power factor.Figure 2
Single phase SAPF and nonlinear loads in parallel.The current of the shunt APF can be expressed as(2.1)iS=iO+iL,
where iO is the nonlinear load current.The operation of the APF can be divided into two modes, and its four switches have a switching frequency offS. In mode 1, Q2 and Q3 are turned ON, while Q1 and Q4 are turned OFF when 0<t<DTS, where TS=1/fS is the switching period and D=TON/TS is the duty ratio. In mode 2, the switching states of four switches in mode 1 are reversed when DTS<t<TS.By observing the equivalent circuits that are shown in Figure3, one circuit shows the inductor voltage and current during one switching cycle when vS>0, which are expressed by the following:
(2.2)vL(t)=vS+vCiL(t)=iL(0)+1L∫0DTS(vS+vC)dtfor0≤t≤DTS,vL(t)=vS-vCiL(t)=iL(DTS)+1L∫DTSTS(vS-vC)dtforDTS≤t≤TS.
Figures 3(a) and 3(b) show the equivalent circuits at one switching cycle. Define the switching function Sn of each switch as
(2.3)Sn={1whenQnisturnedON,0whenQnisturnedOFF,
where n=1-4 is denoted as the switch number.Equivalent circuit of APF (a) equivalent circuit when0<t<DTS and (b) equivalent circuit when DTS<t<TS.
(a)
(b)Therefore, the state equations of the inductor current and the capacitor voltage are written by Kirchhoff’s laws(2.4)iL·=1L[vS-SvC],vC·=1C[SiL-vCRL],
where S=(S1-S2). In the following expressions, x1(t) and x2(t) represent the state variables of the average values of the inductor current and the capacitor voltage over a switching period, respectively. Substituting S=1 and S=-1 into (2.4) yields
(2.5)x1(t)=1TS∫tt+TSiL(τ)dτ,x2(t)=1TS∫tt+TSvC(τ)dτ.
The average state-space model of the converter can be written as
(2.6)dx1dt=(vS+vCL)u+(vS-vCL)(1-u),dx2dt=(-iLC-vCRLC)u+(iLC-vCRLC)(1-u),
where u is the duty ratio, which can take any value between 0 and 1. Rearranging (2.6) yields
(2.7)dx1dt=(2u-1)x2L+vSL,dx2dt=(1-2u)x1C-x2RLC.
Consequently, the dynamic behavior of the APF can be described by the following state-space model:
(2.8)x˙=Fx+Gxu+Ew,
where
(2.9)x=[iLvC]T,F=[0-1L1C-1RLC],G=[02L-2C0],E=[1L0]T,w=vS.
Now, consider the bilinear state equation (2.8). If x=x0 and u=u0 suffice to
(2.10)f(x0,u0)=Fx0+Gx0u0+Ew(t)=0,(x0,u0) is called its equilibrium or operating point. Let
(2.11)0=f(x0,u0,w,t)=Fx0+Gx0u0+Ew(t).
We can expand the right-hand side of (2.11) into a Taylor series about (x0,u0) and then neglect the high-order terms so that
(2.12)x˙=f(x0,u0)+∂f∂x|x=x0u=u0(x-x0)+∂f∂u|x=x0u=u0(u-u0).
Moreover, since our interest is on the trajectories near (x0,u0), let xδ=x-x0, uδ=u-u0, and we have the following:
(2.13)x·δ=(F+Gu0)xδ+(Gx0)uδ≡Apxδ+Bpuδ,
where Ap=F+Gu0 and Bp=Gx0.The bilinear state equation (2.10) can be approximately described by a linear state equation of the form (2.13).Considering the equilibrium of bilinear state equation (2.13), the equilibrium values of the inductor current and the capacitor voltage can be obtained as
(2.14)x02=vS1-2u0,x01=x02RL(1-2u0),
where x02 and x01 are the equilibrium values of vC and iL, respectively. The average value of the duty ratio u0 can be obtained from (2.15) as
(2.15)u0=12(1-vSx02).
It should be noted that by setting the DC voltage and controlling the duty ratio, we could control the inductor current, and thus the APF can work.


## 3. Design of Adaptive Sliding Mode Controller

In this section, a detailed study of the shunt APF with parameter uncertainties is proposed. A new adaptive sliding mode control strategy for shunt APF using a proportional sliding surface is proposed, and an adaptive sliding law to overcome the parameter uncertainties is also derived. The block diagram of the designed adaptive sliding mode controller for APF is shown in Figure4.Figure 4
block diagram of adaptive sliding mode control approach.The goal of APF control is to design an adaptive sliding mode controller so that the APF output trajectory can track the reference model.Rewriting the linear state equation (2.13), we will obtain the following:
(3.1)Xδ•=APXδ+BPuδ.
Consider the system (3.1) with parametric uncertainties, that is, the linearization errors such as high-order terms in Taylor series (2.12),
(3.2)Xδ•=(AP+ΔAP)Xδ(t)+(BP+ΔBP)uδ+fd,
where ΔAP is the unknown parameter uncertainties of the matrix AP, ΔBP is the unknown parameter uncertainties of the matrix BP, and fd is external disturbances such as nonlinear loads in the APF.The reference model is defined as(3.3)Xm•=AmXm+Bmr,
where Am, Bm are known constant matrices of a reference model and r is reference input.We make the following assumptions.Assumption 3.1.
There exist unknown matrices of appropriate dimensionsD, G such that ΔAP(t)=BPD(t)+ΔA~P(t), ΔBP(t)=BPG(t)+ΔB~P(t), where BPD(t) and BPG(t) are matched uncertainty, ΔA~P(t) and ΔB~P(t) are unmatched uncertainty. From this assumptions, (3.2) can be rewritten as
(3.4)Xδ•=APXδ(t)+BPuδ+BPfm+fu,
where fm(t,Xδ,uδ) represents the matched lumped uncertainty and fu(t,Xδ,uδ) represents the unmatched lumped uncertainty, respectively, which is given by
(3.5)fm(t,Xδ,uδ)=D(t)Xδ(t)+G(t)uδ,fu(t,Xδ,uδ)=ΔA~P(t)Xδ(t)+ΔB~P(t)uδ.Assumption 3.2.
The matched and unmatched lumped uncertaintyfm and fu are bounded such as ∥fm(t,Xδ,uδ)∥≤αm and ∥fu(t,Xδ,uδ)∥≤αu, where αm, αu are known positive constants.Assumption 3.3.
There exist constant matricesK* and θ* such that the following matching conditions AP+BPK*T=Am and BPθ*T=Bm can always be satisfied.
Then, the adaptive sliding mode controller will be designed.The tracking error and its derivative are(3.6)e=Xδ-Xm,e•=Ame+(AP-Am)Xδ+BPuδ-Bmr+BPfm+fu.The proportional sliding surface is defined as(3.7)s(t)=λe,
where λ is a constant matrix satisfying that λBP is a nonsingular diagonal matrix.The derivative of the sliding surface is(3.8)s•=λe•=λAme+λ(AP-Am)Xδ+λBPuδ-λBmr+λBPfm+λfu.Settings•=0 to solve equivalent control ueq gives
(3.9)ueq=-(λBP)-1λAme-(λBP)-1λ(AP-Am)Xδ+(λBP)-1λBmr-fm-(λBP)-1λf.From Assumption3.3 and (3.9) can be rewritten as
(3.10)ueq=-(λBP)-1λAme+K*TXδ+θ*Tr-fm-(λBP)-1λf.Since the equivalent controlueq (3.10) gives the controller structure of what we should propose and the unknown disturbance term fm and fu can be dealt with the sliding mode terms, the control signal uδ can be proposed as
(3.11)uδ=-(λBP)-1λAme+K*TXδ+θ*Tr-ρ(λBP)-1s∥s∥,
where ρ is constant, s/∥s∥ is the sliding mode unit control signal.The adaptive sliding mode version of control input is(3.12)uδ(t)=-(λBP)-1λAme(t)+KT(t)Xδ(t)+θT(t)r(t)-ρ(λBP)-1s∥s∥,
where K(t) is the estimate of K*, θ(t) is the estimate of θ*.Define the estimation error as(3.13)K~(t)=K(t)-K*,θ~(t)=θ(t)-θ*.
Substituting (3.13) into (3.12) yields
(3.14)uδ(t)=-(λBP)-1λAme(t)+[K~T(t)+K*T]Xδ(t)+[θ~T(t)+θ*T]r(t)-ρ(λBP)-1s∥s∥.
From (3.14)  and Assumption 3.3, rewrite (3.3) as follows
(3.15)Xδ•(t)=-BP(λBP)1λAme(t)+BPK~T(t)Xδ(t)+AmXδ(t)+BPθ~T(t)r(t)+Bmr(t)-BPρ(λBP)-1s∥s∥+BPfm+fu.
Then, we have the derivative of the tracking error equation:
(3.16)e•(t)=-BP(λBP)-1λAme(t)+BPK~T(t)Xδ(t)+BPθ~T(t)r(t)+Ame(t)-BPρ(λBP)-1s∥s∥+BPfm+fu=[I-BP(λBP)-1λ]Ame(t)+BPK~T(t)Xδ(t)+BPθ~T(t)r(t)-BPρ(λBP)-1s∥s∥+BPfm+fu,
and the derivative of s(t) is
(3.17)s•(t)=λBPK~T(t)Xδ(t)+λBPθ~T(t)r(t)-ρs∥s∥+λBPfm+λfu.
Define a Lyapunov function
(3.18)V=12sTs+12tr[K~M-1K~T]+12tr[θ~N-1θ~T],
where M, N are positive definite matrix, tr denoting the trace of a square matrix.DifferentiatingV with respect to time yields
(3.19)V•=sTs•+tr[K~M-1K~•T]+tr[θ~N-1θ~•T]=-ρ∥s∥+sTλBPfm+sTλfu+sTλBPK~T(t)Xδ(t)+tr[K~M-1K~•T]+sTλBPθ~T(t)r(t)+tr[θ~N-1θ~•T].
For sTλBPK~T(t)Xδ(t) and sTλBPθ~T(t)r(t)  are scalar, from the properties of matrix trace xTAx=tr(xxTA), tr(A)=tr(AT) there have
(3.20)sTλBPK~T(t)Xδ(t)=tr[Xδ(t)sTλBPK~T(t)]=tr[K~(t)BPTλTsXδT(t)],sTλBPθ~T(t)r(t)=tr[r(t)sTλBPθ~T(t)]=tr[θ~(t)BPTλTsrT(t)].
To make V•≤0, we choose the adaptive laws as
(3.21)K~•T(t)=K•T(t)=-MBPTλTsXδT(t),θ~•T(t)=θ•T(t)=-NBPTλTsrT(t).
This adaptive sliding law yields
(3.22)V˙=-ρ∥s∥+sTλBPfm+sTλfu≤-ρ∥s∥+∥s∥∥λBP∥∥fm∥+∥s∥∥λ∥∥fu∥≤-ρ∥s∥+∥s∥∥λBP∥αm+∥s∥∥λ∥αu≤-∥s∥(ρ-∥λBP∥αm-∥λ∥αu)≤0,
with ρ≥∥λBP∥αm+∥λ∥αu+η, where η is a positive constant and V· becomes negative semi-definite, that is, V·≤-η∥s∥.  According to Barbalat’s lemma [18], it can be proved that s(t) will asymptotically converge to zero, limt→∞s(t)=0. Consequently, e(t) will asymptotically converge to zero, limt→∞e(t)=0.


## 4. Simulation Analysis

In this section, the single-phase shunt APF using adaptive sliding mode control is implemented with MATLAB/SIMPOWER Toolbox. The goal of adaptive sliding mode control is to make the APF output current track the detected harmonic current. Simulations on APF system will verify the control effects of the proposed adaptive sliding approach.First of all, the nonlinear load of simulation model is described. Nonlinear load: a load branch is rectifier bridge connecting parallel RC load,R=15 Ω, C=5e-3F. When 0–0.4 s, a load works, the total harmonic distortion (THD) of  nonlinear load current is 45.82%; When 0.4–0.8 s, the breaker is switched on and another load branch which is the same as first one is injected, accompanied by a disturbance load (interference frequency f=1000 Hz, square wave T=0.001 s, pulse width 50%, parallel disturbance load L=0.2 H, and R=20 Ω), and the total harmonic distortion (THD) of  nonlinear load current is 40.12%. The current mainly contains 3rd and 7th times, odd harmonic. The parameters of the proposed adaptive sliding mode controller are chosen as follows: AM=[-49.6-351.8;5190.21], BM=[7400;-8.6], CM=[10;01], DM=[0;0], M=5e-7, N=5e-5, ρ=200, and λ=[0.040.05]. As DC voltage VC=600 V, it can be calculated that x0=[0.11573;600], u0=0.24077. According to the APF circuit model, it is calculated that Ap=[0-86.4;518.5-0.1], Bp=[200000;-231.5].Because the rectifier bridge and nonlinear load result in harmonic and reactive currents, serious distortions of the circuit current show up. Figure5 draws the current waveform before and after the nonlinear load change. Mutation distortions of current have serious effects on the power system and other electrical equipments that should be compensated and eliminated.Figure 5
Nonlinear load current (before and after load change).From the adaptive harmonic detection outputih and the APF current iL obtained from measuring module, we can get the input signal of adaptive sliding mode controller (which is also the reference model input signal) r=ih-iL+iPI, where iPI is the compensation current of voltage PI control for APF DC side. Single-phase harmonic detection method is used, where the input has only sine wave signal, implying that the detection result ih contains the harmonic and reactive current.According to the approximation process of APF dynamic model, near the equilibrium point(x0,u0), the simulation variables xδ=x-x0, uδ=u-u0, so we can get xδ, u from xδ=x-x0, u=uδ+u0, respectively.The input waveform of adaptive sliding mode controller (i.e., input waveform of the reference model) is drawn in Figure6. The controller not only can compensate and eliminate the harmonic, but also can compensate the DC voltage and make it stay stable in /near a predetermined value to improve the compensation effect.Figure 6
Input of adaptive sliding mode controller.The output of the adaptive sliding mode controller is shown in Figure7. The output u of the controller compares with triangular waves which have similar amplitude with u, then PWM generator output is the standard of four-phase control pulse and can fully reflect the control function of controller output to the APF. PWM signal is generated using triangular wave comparison method, where the triangular wave amplitude is ±1 and frequency is 1000 Hz.Figure 7
Output of adaptive sliding mode controller.By controlling on or off of the four thyristors in the full-controlled bridge, four phase PWM pulse control signal will control the charging and discharging process of the DC side capacitorC, thereby producing the inductor current iL, that is, APF compensating current. The parameters of APF main circuit: L=0.006 H inductor, capacitor C=0.001 F, R=10 KΩ, thyristors using the IGBT/Diode module, a default parameter.Figure8 compares between the harmonic and APF current, where the red curve represents APF output current (inductor current) and blue curve represents detected harmonic current. Compared with the detected harmonic current, the APF output current has equal amplitude but opposite direction. The APF output current is injected into the nonlinear load current, then the harmonics and reactive current caused by nonlinear loads can be eliminated, thus the harmonic current compensation can be achieved. After 0.4 s, the load and interference are increased, and the APF current still can quickly track the harmonic current although there may have some errors between harmonic current and the APF output current even if the APF works stable. The errors mainly contain compensation current from PI control circuit of the DC voltage for the DC voltage compensation of APF.Figure 8
Harmonic and APF current.Simulation of the PI control signal is shown in Figure9. The initial moment due to the DC voltage is zero, and the output of PI controller is a big compensation signal, so that the DC voltage can quickly arrive at the setting value. After 0.4 s, the load and interference are increased, the harmonic is increased, and the DC voltage is reduced; the PI control output could adjust in time, then quickly recover normal working state.Figure 9
Output of DC voltage PI control.Figure10 shows that, after the circuit starts to work, the APF capacitor voltage quickly rises to more than 500 V and basically stays at a setting value near 600 V, rapidly adjusted by the PI control of DC voltage. The load changed at 0.4 s, and the DC voltage could be quickly stabilized to the set value also.Figure 10
APF DC voltage.Figure10 plots the power current after APF has been compensated, where the Figure 11(b) zooms in on 0.4 s when the loads change. It can be seen from Figure 11 that the current waveform has been improved and adjusted rapidly to approximate standard sine wave within 0.08 s after the circuit started to work and load changed. Compared with the nonlinear load current waveform in Figure 5, it can be seen that before compensation the load current has serious distortion and after compensation the current quality has been obviously improved. Thus, the proposed purposes of nonlinear load current compensation through APF can be successfully achieved.(a) Power current (0–0.8 s). (b) Power current (0.35–0.55 s) (nonlinear load changes in 0.4 seconds).
(a)
(b)Through the FFT Analysis tools of SIMLINK powergui module, the load current and the power current are acquired.Figure12 is the nonlinear load current waveform and its harmonic analysis. The serious waveform distortions can be observed. FFT analysis shows that nonlinear harmonic current is mainly 3rd and 7th harmonic interference and with a certain degree of 5th and higher harmonic interference. Power current waveform after APF is shown in Figure 13. After compensation, the 3rd harmonic is greatly reduced, the 7th harmonic is almost eliminated, all other higher harmonics are reduced, and the power current is approximate to sine wave. The compensated current THD is 3.5%, more than the national standard level of 5%. After load changed, nonlinear load current THD changed from 45.81% to 40.12% this is due to the percentage of nonlinear part load (bridge, capacitance, and inductance) relative to the linear portion (resistance) decreased. But we can still see the obvious distortion of nonlinear load current.Figure 12
Nonlinear load current analysis (before load change).Figure 13
Power current after APF compensation (before load changes).Figure14 shows the current after load changed, the same bridge and nonlinear load (with certain high frequency interference) paralleled in the circuit. It can be seen that although the nonlinear load and the load current increase, the current waveform distortion is relatively minor as of 40.12% THD. The current waveform after APF compensation is shown in Figure 15. After compensation, the quality of power current is greatly improved with THD reaching at 3.28%; it demonstrates good compensation capability of APF using adaptive sliding mode controller. Because of the increase of load disturbance and the changes of currents, the compensated current has some minor glitches, but the power current quality remains within the national standard.Figure 14
Nonlinear load current (after load change).Figure 15
Power Current after APF Compensation (after load changes).The control parametersK, e in the adaptive sliding mode controller are analyzed in the following steps. From Figures 16 and 17, it can be seen that the parameters can be adjusted to a stable value soon and the stability of the control system can be maintained, and the parameters K and θ can converge to constant and stay in stable state within 0.1 s, that is, within 4-5 circuit cycles.Controller parametersK.
(a)
(b)Figure 17
Controller parameter theta.The current error between model reference current item and APF inductance current and the voltage error between model reference voltage item and APF DC voltage are drawn in Figures18 and 19, respectively. The tracking error e=[eieu]T as parameters of adjustment process exist within the adaptive sliding mode process. It will decrease in a certain way and maintain in a certain range finally. The simulation is based on the actual APF model with nonlinear load and model uncertainties. Because of the complexity of the circuits and the approximation of the APF model, the parameters of APF model have some uncertainties. The tracking error can be quickly adjusted to dozens of magnitude of dimensionless parameters and to be maintained in a certain range.Figure 18
Current error between model reference current item and APF inductance current.Figure 19
Voltage error between model reference voltage item and APF DC voltage.It can be observed from Figures20 and 21 that adaptive sliding mode control has better harmonic compensation performance that adaptive control, the index of THD, has been reduced with the adaptive sliding control.Figure 20
APF DC voltage using adaptive control.Figure 21
APF DC voltage using adaptive sliding mode control.Compared the waveforms before and after APF works, it can be seen from Table1 that the adaptive sliding mode control not only has good compensation effect, but also has quick compensation ability. At the same time, the controller could optimize the adaptive parameters to make it more reasonable and make it possible for the investigation of the intelligent control. Simulation and analysis verified the feasibility of adaptive sliding mode control theory and showed good control effect in single-phase SAPF application.Table 1
Comparison of THD after compensation.
Controller type
Current type
Time period/THD of current
0–0.4 s
0.4–0.8 s
Without controller
Nonlinear load current
45.81%
40.12%
Adaptive controller
Power current after compensation
4.16%
3.54%
Adaptive sliding mode controller
3.49%
3.29%


## 5. Conclusion

This paper studied the principle and dynamic model of single-phase shunt APF and proposed a new adaptive sliding mode control algorithm. The simulation results proved that for nonlinear load current the adaptive sliding mode controller has successful compensation effect; that is, it can compensate the most harmonic current and eliminate certain reactive current, which can recover sine wave from severely detuned current waveform and improve the power factor. From Figure9, we can see that the APF current can quickly track the harmonic current, thus to achieve the harmonic compensation. The reference currents tracking behavior has been improved, and the power supply harmonic current has been reduced with novel adaptive sliding mode control. The proposed control system has the satisfactory adaptive and robust ability in the presence of the changing disturbances and nonlinear loads.



---

*Source: 809187-2012-10-24.xml*