Adaptive Fuzzy Control with Supervisory Compensator for Three-Phase Active Power Filter

An adaptive fuzzy control system with supervisory controller is proposed to improve dynamic performance of three-phase active power ﬁlter (cid:2) APF (cid:3) . The proposed adaptive fuzzy controller for APF does not build an accurate mathematical model but approximates the nonlinear characteristics of APF using fuzzy approximation. The adaptive law based on the Lyapunov analysis can adaptively adjust the fuzzy rules; therefore the asymptotical stability of the adaptive fuzzy control system can be guaranteed. Simulation results demonstrate that the APF control system has excellent dynamic performance such as small current tracking error, reduced total harmonic distortion (cid:2) THD (cid:3) index, strong robustness in the presence of parameters variation, and nonlinear load.


Introduction
A variety of nonlinear and time-varying electronic devices bring power quality problems to the power system such as low power factor, waveform distortion, surges, and phase distortion problems.Active power filter can be used for power system harmonic suppression and reactive current compensation.The basic principle of APF is to produce compensation current that is of the same amplitude and opposite phase with the harmonic currents to eliminate the unexpected harmonic currents.Therefore active power filters are widely used in many applications to compensate the harmful harmonic currents produced by nonlinear loads on industrial, commercial, and residential equipment.
In the last few years, fuzzy control has been extensively applied in a wide variety of industrial systems and consumer products because of its model-free approach.Wang 1 proposed universal approximation theorem and demonstrated that an arbitrary function of a certain set of functions can be approximated with arbitrary accuracy using fuzzy system 1 The proposed control strategy does not build accurate mathematical model of APF, which is difficult to obtain and may not give satisfactory performance under parameter variations.In order to eliminate nonzero problem of the fuzzy approximation errors, a supervisory compensator is incorporated into the adaptive fuzzy control scheme in the Lyapunov framework, so the asymptotical stability of closed-loop system can be guaranteed.
2 An adaptive fuzzy control with supervisory compensator is proposed to deal with system nonlinearities and nonlinear load in order to improve the current tracking and robustness of the control system compared with conventional control method.The robust adaptive fuzzy control method has been extended to the control of APF in this paper.This is a successful application using adaptive control, fuzzy control, and robust compensator with application to the APF.Both of these features are the innovative development of intelligent adaptive control methods incorporated with conventional control for the APF.
3 The proposed adaptive fuzzy controller has good application prospects such that it can improve harmonic current tracking and total harmonic distortion THD .
APF system nonlinearities such as nonlinear loads and parameter variations can be compensated, and power dynamic performance and power quality can be improved.
This paper investigates fuzzy control with application to APF; future research directions include neural network control and adaptive fuzzy neural network control which can be utilized to eliminate harmonic current.The paper is organized as follows.Firstly, the principle of SAPF is introduced.Then, adaptive fuzzy controller based on fuzzy logic and Lyapunov method is proposed.Finally, simulations show that the proposed adaptive fuzzy controller not only has good dynamic performance but also improves the robustness of the APF under parameters variation.

Principle of Active Power Filter
The shunt APF can be considered to be the most basic structure of APF.This paper mainly studies the most widely used parallel voltage type of APF.In the practical application, the three-phase is the most widely used shunt APF because of its excellent performance characteristics and simplicity in implementation; therefore three-phase three-wire system will be investigated in this section.
In practical operation, APF is equivalent to a flow control current source.The whole APF system consists of three sections, harmonic current detection module, current tracking control module, and compensation current generating circuit.Harmonic current detection module usually uses instantaneous reactive power theory based on rapid detection of harmonic current.Three-phase three-wire APF produces compensation currents with three bridge-arm circuits.In order to eliminate the harmonic components in the currents froms power supply, compensation circuit produces compensation currents that have same amplitude and opposite phase to the harmonic currents.
The block diagram of the three-phase three-wire active power system is given in Figure 1.The principle of APF is to detect voltage and current of compensation object, get command signal i * c of compensation current by using operation circuit for instruction current, and then obtain compensation current i c by PWM generator in order to offset harmonic current and achieve ideal source current.
The mathematical model of APF is described in the next steps.According to circuit theory and Kirchhoff's theorem, the following state equations can be obtained: where s is the switching function, denoting the on/off status of the devices in the two legs of the IGBT bridge.We can define s as The main voltage of v sa , v sb , and v sc supplies the power for the APF and the nonlinear loads.The parameters of L and r are the inductance and resistance of the APF, respectively.

Adaptive Fuzzy Control with Supervisory Compensator
In this section, an adaptive fuzzy control is derived based on Lyapunov analysis to guarantee the asymptotical stability of the closed-loop system.The adaptive control will be approximated by adjusting the parameters of an adequate fuzzy logic system.

Fuzzy Controller
A fuzzy controller is composed of the following four elements: fuzzier, some fuzzy if-then rules, a fuzzy inference engine, and a defuzzifier.The fuzzy rule basically consists of a collection of fuzzy if-then rules that can be expressed as where A l i and B l are fuzzy sets and l 1, . . ., M, M denotes the number of fuzzy if-then rules.In this paper, the Singleton fuzzifier mapping is adopted, x i and y have the same kind of member functions that are all Gaussian membership functions defined as where c i and σ i are the centre and width of the ith fuzzy set A l i , respectively.From the knowledge of the fuzzy systems, the output of the fuzzy system can be expressed using center-average defuzzifier, product inference, and Singleton fuzzifier.Consider where μ A l i x i is the membership function value of the fuzzy variable x i , d l is the point at which the membership function of B l achieves its maximum value, θ T h 1 , h 2 , . . ., h M is adaptive parameter vector, and ξ x ξ 1 x , ξ 2 x , . . ., ξ M x T is the vector of the fuzzy basis functions.

Adaptive Fuzzy Control with Supervisory Compensator
We will show how to construct adaptive fuzzy-sliding control in next steps.The block diagram of adaptive fuzzy control system with supervisory controller for APF is shown in Figure 2. Systematic stability analysis is performed in the design of proposed adaptive fuzzy control with supervisory controller.
We can transform the dynamic model of 2.1 into the following form: where x i ca i cb i cc , f x − ri ck v sk /L, k a, b, c, b v dc /L, and control target is to make current x track the given reference current signal x m .
The controller is designed as

3.9
Theorem 3.1.A feedback control u u D x | θ and adaptive law for adjusting parameters vector θ t are designed to satisfy that the closed-loop system must be asymptotically stable in the sense that all variables, x t , θ t , and u D x | θ must be uniformly stable and the current tracking error e t should be as small as possible.
Proof.Define Lyapunov function candidate where γ is a positive constant, θ θ * −θ, and p is the positive constant satisfying the following condition: 3.11 Then we can obtain 2pk q.Differentiating V with respect to time yields Then the adaptive law can be chosen as θ γepξ x , 3.13 where γ is the adaptive gain.Substituting 3.13 into 3.12 yields

3.14
Choosing k s ≥ sup t≥0 |ω|, 3.14 becomes Then we can obtain V ≤ 0; V is negative definite which implies that V, s, and ω converge to zero.The fact that V is negative semidefinite ensures that V, e, and θ are all bounded.ė is also bounded.Inequality 3.15 implies that e is integrable as t 0 e 2 dt ≤ 1/q V 0 − V t .Since V 0 is bounded and V t is nonincreasing and bounded, it can be concluded that lim t → ∞ t 0 e 2 dt is bounded.Since lim t → ∞ t 0 e 2 dt is bounded and ė is also bounded, according to the Barbalat lemma, e t will asymptotically converge to zero, lim t → ∞ e t 0.
Remark 3.2.From the universal approximation theorem, ω can be made to be arbitrarily small using fuzzy system on a compact domain.Because of fuzzy approximation error, ω cannot always be equal to zero.The fact that ω is equal to zero can only be realized in the ideal situation.This will result that the stability of the control system cannot be guaranteed.In order to solve such problem, a supervisory controller u s is added with u D as in 3.5 to eliminate the negative influence of the fuzzy approximation errors and guarantee the stability.

Simulation Study
The performance of the proposed adaptive fuzzy control will be tested using Matlab/Simulink package with SimPower Toolbox.Simulation results are presented to verify the effectiveness of the proposed adaptive fuzzy control.Membership functions of fuzzy controller are chosen as We define membership function of sliding function s as

4.2
The parameters in the simulation of adaptive fuzzy control of APF are chosen as follows: k 2, q 50 in 3.11 , adaptive gain γ 500 in 3.13 , k s 2.5 in 3.14 , PI control is adopted for DC voltage in active power filter and the parameters of PI controller are chosen as k p 0.05 and k i 0.01 to achieve satisfactory performance, the inductance in the circuit of APF is 10 mh, and the capacitance is 100 μF.
A phase-source current before and after APF works is shown in Figure 3. Current harmonic analysis for the first two circles and last two cycles are depicted in Figures 4-5.The APF begins to work at 0.04 s when the break is closed.It can be seen that the waves of source current distort because of 5th, 7th, 11th, and 13th harmonics before 0.04 s and the source currents recover steady state after half cycle about 0.01 s, then it can be observed that 5th, 7th, 11th, and 13th harmonics are fully eliminated as expected after 0.04 s.The THD is 24.71% before harmonic compensation and 1.72% after harmonic compensation that is within the limit of the harmonic standard of IEEE of 5%.It can be observed that the supply current is close to sinusoidal wave and it remains in phase with the supply voltage, demonstrating that APF can eliminate the harmonic current generated by the nonlinear loads and perform well in the steady state operation.It can be concluded that the proposed adaptive fuzzy control with supervisory controller has an excellent dynamic performance, such as satisfactory and quick responses.
Instruction current and compensation current are drawn in Figure 6, showing that the tracking error is large from 0.04 s to 0.045 s, but after 0.045 s the tracking error is almost zero, so compensation current can track the setting current very well.This means that the proposed adaptive fuzzy control with supervisory controller can guarantee asymptotic output tracking, so it is obvious that the proposed adaptive fuzzy control with supervisory controller can track the ideal current.Therefore the harmonic current can be effectively compensated, and harmonic distortion of source current can be reduced.The adaptation values of θ1, θ2, and θ3 of adaptive fuzzy controller in 3.13 are depicted in Figure 7, showing that the parameters   respond fast after 0.04 s and most of the parameters can tend to be stable at 0.05 s.It is demonstrated that the parameters of the proposed adaptive fuzzy controller converge to stable constant values.Therefore the adaptive fuzzy control with supervisory compensator can guarantee that the closed-loop system is asymptotically stable.As can be seen from Figure 8, DC capacitor voltage is stable after 0.06 s by using PI controller.It can be seen that DC capacitor voltage is not constant, and it has ripples.But since it is approximately stable, it is acceptable in fact.In order to demonstrate that the proposed adaptive fuzzy control with supervisory controller has strong robustness in the presence of parameters variation, we will test the APF with the parameters variation.Current waveforms are not presented, but the performance is listed in Table 1.The THD values are measured in the time range from 0.06 s to 0.1 s.It can also be seen that THD values are still in the normal range with the parameters variation.Therefore the proposed adaptive fuzzy control with supervisory controller has good robustness to the parameter uncertainties.
It can be concluded that the current tracking and THD performance can be improved by using the proposed adaptive fuzzy control with supervisor compensator.Thus the control performance and robustness to external disturbance can be improved, and the asymptotical stability of the APF control system can be guaranteed.

Conclusion
An improved direct adaptive fuzzy control system with supervisory controller has been applied to the three-phase APF.The proposed adaptive fuzzy controller can effectively eliminate the reactive and harmonic component of the load current.The designed controller can guarantee the asymptotic output tracking of the closed-loop system, and the compensation current can follow the tracks of instruction current.The designed active power filter has superior harmonic treating performance and minimizes the harmonics for wide range of variation of load current under different nonlinear loads; therefore the  proposed control scheme yields improved THD values.Simulation results demonstrated the excellent dynamic performance, stability, and strong robustness with the proposed controller.However, real-time experiment should be investigated to verify the performance of the harmonic suppression.Other intelligent control strategies such ad neural network control and adaptive fuzzy neural network control for the APF can be investigated to eliminate harmonic current.

Figure 3 :Fundamental
Figure 3: A phase source current.

Figure 4 :
Figure 4: Current harmonic analysis for the first two circles.

FundamentalFigure 5 :
Figure 5: Current harmonic analysis for the last two circles.

Figure 6 :
Figure 6: Instructions current and compensation current.

Table 1 :
Performance for variation in filter inductance and DC capacitor.