Mathematical Problems in Engineering

Volume 2012 (2012), Article ID 809187, 22 pages

http://dx.doi.org/10.1155/2012/809187

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

Jiangsu Key Laboratory of Power Transmission and Distribution Equipment Technology, College of Computer and Information, Hohai University, Changzhou 213022, China

Received 22 August 2012; Revised 23 September 2012; Accepted 24 September 2012

Academic Editor: Piermarco Cannarsa

Copyright © 2012 Juntao Fei et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### 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.

#### 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 Section 2, 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.

As shown in Figure 2, APF connected in parallel with the load could cancel the harmonic components in the line current () 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 () is injected into the line to force the line current () to become sinusoidal wave and to achieve a unity power factor.

The current of the shunt APF can be expressed as where is the nonlinear load current.

The operation of the APF can be divided into two modes, and its four switches have a switching frequency of . In mode 1, and are turned ON, while and are turned OFF when , where is the switching period and is the duty ratio. In mode 2, the switching states of four switches in mode 1 are reversed when .

By observing the equivalent circuits that are shown in Figure 3, one circuit shows the inductor voltage and current during one switching cycle when , which are expressed by the following: Figures 3(a) and 3(b) show the equivalent circuits at one switching cycle. Define the switching function of each switch as where is denoted as the switch number.

Therefore, the state equations of the inductor current and the capacitor voltage are written by Kirchhoff’s laws where . In the following expressions, and represent the state variables of the average values of the inductor current and the capacitor voltage over a switching period, respectively. Substituting and into (2.4) yields The average state-space model of the converter can be written as where is the duty ratio, which can take any value between 0 and 1. Rearranging (2.6) yields Consequently, the dynamic behavior of the APF can be described by the following state-space model: where Now, consider the bilinear state equation (2.8). If and suffice to is called its equilibrium or operating point. Let We can expand the right-hand side of (2.11) into a Taylor series about and then neglect the high-order terms so that Moreover, since our interest is on the trajectories near , let , , and we have the following: where and .

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 where and are the equilibrium values of and , respectively. The average value of the duty ratio can be obtained from (2.15) as 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 Figure 4.

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: Consider the system (3.1) with parametric uncertainties, that is, the linearization errors such as high-order terms in Taylor series (2.12), where is the unknown parameter uncertainties of the matrix , is the unknown parameter uncertainties of the matrix , and is external disturbances such as nonlinear loads in the APF.

The reference model is defined as where , are known constant matrices of a reference model and is reference input.

We make the following assumptions.

*Assumption 3.1. * There exist unknown matrices of appropriate dimensions , such that , , where and are matched uncertainty, and are unmatched uncertainty. From this assumptions, (3.2) can be rewritten as
where represents the matched lumped uncertainty and represents the unmatched lumped uncertainty, respectively, which is given by

*Assumption 3.2. *The matched and unmatched lumped uncertainty and are bounded such as and , where , are known positive constants.

*Assumption 3.3. *There exist constant matrices and such that the following matching conditions and can always be satisfied.

Then, the adaptive sliding mode controller will be designed.

The tracking error and its derivative are

The proportional sliding surface is defined as where is a constant matrix satisfying that is a nonsingular diagonal matrix.

The derivative of the sliding surface is

Setting to solve equivalent control gives

From Assumption 3.3 and (3.9) can be rewritten as

Since the equivalent control (3.10) gives the controller structure of what we should propose and the unknown disturbance term and can be dealt with the sliding mode terms, the control signal can be proposed as where is constant, is the sliding mode unit control signal.

The adaptive sliding mode version of control input is where is the estimate of , is the estimate of .

Define the estimation error as Substituting (3.13) into (3.12) yields From (3.14) and Assumption 3.3, rewrite (3.3) as follows Then, we have the derivative of the tracking error equation: and the derivative of is Define a Lyapunov function where , are positive definite matrix, denoting the trace of a square matrix.

Differentiating with respect to time yields For and are scalar, from the properties of matrix trace , there have To make , we choose the adaptive laws as This adaptive sliding law yields with , where is a positive constant and becomes negative semi-definite, that is, . According to Barbalat’s lemma [18], it can be proved that will asymptotically converge to zero, . Consequently, will asymptotically converge to zero, .

#### 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, Ω, . 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 Hz, square wave s, pulse width 50%, parallel disturbance load H, and Ω), 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: , , , , , , , and . As DC voltage V, it can be calculated that , . According to the APF circuit model, it is calculated that , .

Because the rectifier bridge and nonlinear load result in harmonic and reactive currents, serious distortions of the circuit current show up. Figure 5 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.

From the adaptive harmonic detection output and the APF current obtained from measuring module, we can get the input signal of adaptive sliding mode controller (which is also the reference model input signal) , where 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 contains the harmonic and reactive current.

According to the approximation process of APF dynamic model, near the equilibrium point , the simulation variables , , so we can get , from , , respectively.

The input waveform of adaptive sliding mode controller (i.e., input waveform of the reference model) is drawn in Figure 6. 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.

The output of the adaptive sliding mode controller is shown in Figure 7. The output of the controller compares with triangular waves which have similar amplitude with , 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.

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 capacitor , thereby producing the inductor current , that is, APF compensating current. The parameters of APF main circuit: H inductor, capacitor F, KΩ, thyristors using the IGBT/Diode module, a default parameter.

Figure 8 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.

Simulation of the PI control signal is shown in Figure 9. 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 10 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 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.

Through the FFT Analysis tools of SIMLINK powergui module, the load current and the power current are acquired.

Figure 12 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 14 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.

The control parameters , 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 and can converge to constant and stay in stable state within 0.1 s, that is, within 4-5 circuit cycles.

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 Figures 18 and 19, respectively. The tracking error 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.

It can be observed from Figures 20 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.

Compared the waveforms before and after APF works, it can be seen from Table 1 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.

#### 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 Figure 9, 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.

#### Acknowledgments

The authors thank the anonymous reviewer for useful comments that improved the quality of the paper. This work is partially supported by National Science Foundation of China under Grant no. 61074056, Natural Science Foundation of Jiangsu Province under Grant no. BK2010201, Scientific Research Foundation of High-Level Innovation, and Entrepreneurship Plan of Jiangsu Province. They also would like to thank the Fundamental Research Funds for the Central Universities under Grant no. 2012B06714.

#### References

- S. Rahmani, N. Mendalek, and K. Al-Haddad, “Experimental design of a nonlinear control technique for three-phase shunt active power filter,”
*IEEE Transactions on Industrial Electronics*, vol. 57, no. 10, p. 3375, 2010. View at Google Scholar - G. K. Singh, A. K. Singh, and R. Mitra, “A simple fuzzy logic based robust active power filter for harmonics minimization under random load variation,”
*Electric Power Systems Research*, vol. 77, no. 8, pp. 1101–1111, 2007. View at Publisher · View at Google Scholar · View at Scopus - C. N. Bhende, S. Mishra, and S. K. Jain, “TS-fuzzy-controlled active power filter for load compensation,”
*IEEE Transactions on Power Delivery*, vol. 21, no. 3, pp. 1459–1465, 2006. View at Publisher · View at Google Scholar · View at Scopus - M. I. M. Montero, E. R. Cadaval, and F. B. González, “Comparison of control strategies for shunt active power filters in three-phase four-wire systems,”
*IEEE Transactions on Power Electronics*, vol. 22, no. 1, pp. 229–236, 2007. View at Publisher · View at Google Scholar · View at Scopus - J. Matas, L. Garcia de Vicuna, J. Miret, J. M. Guerrero, and M. Castilla, “Feedback linearization of a single-phase active power filter via sliding mode control,”
*IEEE Transactions on Power Electronics*, vol. 23, no. 1, pp. 116–125, 2008. View at Publisher · View at Google Scholar · View at Scopus - C. C. Hua, C. H. Li, and C. S. Lee, “Control analysis of an active power filter using Lyapunov candidate,”
*IET Power Electronics*, vol. 2, no. 4, pp. 325–334, 2009. View at Publisher · View at Google Scholar · View at Scopus - H. Komucugil and O. Kukrer, “A new control strategy for single-phase shunt active power filters using a Lyapunov function,”
*IEEE Transactions on Industrial Electronics*, vol. 53, no. 1, pp. 305–312, 2006. View at Publisher · View at Google Scholar · View at Scopus - G. W. Chang and T. C. Shee, “A novel reference compensation current strategy for shunt active power filter control,”
*IEEE Transactions on Power Delivery*, vol. 19, no. 4, pp. 1751–1758, 2004. View at Publisher · View at Google Scholar · View at Scopus - R. R. Pereira, C. H. Da Silva, L. E. B. Da Silva, G. Lambert-Torres, and J. O. P. Pinto, “New strategies for application of adaptive filters in active power filters,”
*IEEE Transactions on Industry Applications*, vol. 47, no. 3, pp. 1136–1141, 2011. View at Publisher · View at Google Scholar · View at Scopus - L. Marconi, F. Ronchi, and A. Tilli, “Robust nonlinear control of shunt active filters for harmonic current compensation,”
*Automatica*, vol. 43, no. 2, pp. 252–263, 2007. View at Publisher · View at Google Scholar · View at Scopus - L. Asiminoaei, F. Blaabjerg, S. Hansen, and P. Thøgersen, “Adaptive compensation of reactive power with shunt active power filters,”
*IEEE Transactions on Industry Applications*, vol. 44, no. 3, pp. 867–877, 2008. View at Publisher · View at Google Scholar · View at Scopus - A. Luo, Z. Shuai, W. Zhu, R. Fan, and C. Tu, “Development of hybrid active power filter based on the adaptive fuzzy dividing frequency-control method,”
*IEEE Transactions on Power Delivery*, vol. 24, no. 1, pp. 424–432, 2009. View at Publisher · View at Google Scholar · View at Scopus - D. Ribeiro, R. Azevedo, and C. Sousa, “A robust adaptive control strategy of active power filters for power-factor correction, harmonic compensation, and balancing of nonlinear loads,”
*IEEE Transactions on Power Electronics*, vol. 27, no. 2, pp. 718–730, 2012. View at Google Scholar - A. A. Valdez, G. Escobar, and R. Ortega, “An adaptive controller for the shunt active filter considering a dynamic load and the line impedance,”
*IEEE Transactions on Control Systems Technology*, vol. 17, no. 2, pp. 458–464, 2009. View at Publisher · View at Google Scholar · View at Scopus - K. K. Shyu, M. J. Yang, Y. M. Chen, and Y. F. Lin, “Model reference adaptive control design for a shunt active-power-filter system,”
*IEEE Transactions on Industrial Electronics*, vol. 55, no. 1, pp. 97–106, 2008. View at Publisher · View at Google Scholar · View at Scopus - H. L. Jou, J. C. Wu, Y. J. Chang, and Y. T. Feng, “A novel active power filter for harmonic suppression,”
*IEEE Transactions on Power Delivery*, vol. 20, no. 2, pp. 1507–1513, 2005. View at Publisher · View at Google Scholar · View at Scopus - H. A. Ramos-Carranza, A. Medina, and G. W. Chang, “Real-time shunt active power filter compensation,”
*IEEE Transactions on Power Delivery*, vol. 23, no. 4, pp. 2623–2625, 2008. View at Publisher · View at Google Scholar · View at Scopus - P. A. Ioannou and J. Sun,
*Robust Adaptive Control*, Prentice Hall, Englewood Cliffs, NJ, USA, 1995.