# ANN Current Controller Based on PI-Fuzzy Adaptive System for Shunt Power Active Filter

Authors: Moulay Tahar Lamchich
Journal: Advances in Power Electronics
 (2012)

---

## Abstract

This paper deals with the use of triphase shunt active filter which is able to compensate current harmonics, reactive power, and current unbalance produced by nonlinear loads. To perform the identification of disturbing currents, a very simple control method is introduced. It’s formed by a DC voltage regulator and a balance between the average power of load and the active power supplied by the grid. The output current of the voltage source inverter (VSI) must track the reference current. This is done by a neural controller based on a PI-Fuzzy adaptive system as reference corrector. Also to regulate the DC link capacitor voltage a fuzzy logic adaptive PI controller is used.


---

## Body

## 1. Introduction

Due to the increased use of nonlinear electrical loads, such as power electronics supplies, harmonics currents are generated in the level of these loads and injected back to the grid causing its voltage distortion at harmonics currents’ frequencies. The distorted voltage generates distorted currents which will be absorbed by sensitive loads and causing losses in the lines. Also, the most consuming electrical power loads are almost inductive, and then they contribute to the degradation of grid power factor at the point of common connection (PCC).Conventionally, passive filters were adopted for the reduction of harmonics and to improve power factor; therefore, they have the disadvantages such as fixed frequency compensation, resonance, and large size. These limitations were avoided by the use of active filters which utilized a switch-mode power electronic converter to supply harmonic currents equal to those in the load currents.The main objective of the power active filter (PAF) is to compensate reactive power, current harmonics, neutral current, and unbalancing of nonlinear loads by injecting compensating currents.Almost, the method-based instantaneous active and reactive power (pq method) [1] is currently performed for disturbing current identification. The major disadvantages of a bloc identification-based pq method are essentially as follows:(i)
it is not effective under distorted and unbalanced mains voltages conditions;(ii)
the time delays introduced by pass filters, which are used to separate the average and oscillating parts of powers, degrades the dynamic performance of active filter;(iii)
this method requires more computational calculation.The controller of the PAF is comprised of an inner current loop which actively shapes the line currents and an outer voltage control loop which regulates the magnitude of the line currents.This paper presents the application of a fuzzy inference system to determine the parameters of a PI controller used for the DC voltage regulation.The current loop uses a technique-based artificial neural networks (ANN). The PI-Fuzzy adaptive system is adopted, as reference corrector, for the process learning.The simulation results, in power system blockset (PSB) Matlab/Simulink environment, will show the effectiveness of the proposed approach for the control of the power active filter.


## 2. General Structure

The main circuit of the shunt active filter control, as used in the Matlab/Simulink environment, is shown by Figure1. It is composed of(i)
a three wires power network and the output filter;(ii)
the nonlinear load based on a rectifier;(iii)
a reference current identification bloc based on a balance between powers;(iv)
two regulation blocs, of capacitor voltage and the inverter, based on a neurofuzzy logic technique;(v)
the active filter consisting of a voltage source inverter (VSI) with a capacitor in its DC side.Figure 1
General structure of the PFA control.


## 3. Disturbing Current Identification

The compensation of the current harmonics and reactive power, generated by the nonlinear load, has an object to impose that the AC source currents must be sinusoidal and in phase with source voltages.So the power active filter (PAF), used as a controlled current source, is controlled by determining its reference currents to inject the compensating currents.The purpose of it is to produce output currents for tracking the reference current in order to reduce the harmonic components and compensate the reactive power.We can proceed as follows to determine the reference currents for the control of the PAF:(i)
we start by determining the reference grid currents (notedisj*;j=a,b,c) witch realized these two conditions (sinusoidal form with unit power factor).(ii)
the inverter reference currents (notedioj*;j=a,b,c), which permit the PAF control, are deduced from the following equation:
(1)ioj*=icj-isj*;j=a,b,c,
where icj;j=a,b,c are the load currents.(iii)
as show in Figure1, we evaluate the maximal value (noted IREF) of the reference grid currents, and we use a PLL circuit to generate the sinusoidal forms from the source voltages.(iv)
the maximal value IREF can be deduced from a balance between active power supplied by the AC source and fundamental active power component absorbed by nonlinear load plus losses of inverter for regulating the DC capacitor voltage.Therefore, The peak of source reference current (IREF) has two components; the first one (IsA*) is corresponding to the average load active power, and the second one (IsD*) is obtained from the DC capacitor voltage regulation as follows [2]:
(2)IREF=IsA*+IsD*The average power of load is obtained using a low-pass filter as shown by Figure2.Figure 2
Calculation of the average power of load.By considering the unity power factor for grid currents, the componentIsA* is defined as follows:
(3)IsA*=23PLavVsm,
where Vsm is the peak voltage of AC source.The second component of AC source currentIsD* is obtained from the DC capacitor voltage regulation as shown by Figure 3.Figure 3
VDC regulation with PI adapted by Fuzzy inference system.We can also justify this procedure, for the determination of the reference current, by calculation of instantaneous power components of thep-q theory in a stationary αβ-frame [3].The load absorbed the instantaneous active power as follows:(4)pl=v1i1+v2i2+v3i3=vαiα+vβiβ.This power may be decomposed into oscillating component called harmonic power (p~l) and average component called fundamental (p¯l).For generation of the reference current, a balance between instantaneous powers supplied by the source (notedps) and the PAF (pf) and drained by the load is to be computed.For obtaining inphase current with supply voltage, the harmonic term of instantaneous active power and all terms of instantaneous reactive power should be removed. In this case, balance of power yields as follows:(5)ps=p¯lpf=pl-ps=p~l.In normal operating condition, the PAF should be able to supplypf=p~l, and consequently voltage level of capacitor remains constant for duration of steady state while it varies during period of transient. In order to control capacitor voltage level on the DC side of the inverter is essential to adjust previous equation.


## 4. DC-Bus Voltage Control

The DC link voltage control is performed to define the second component of AC source currentIsD* (or harmonic power generated by the PAF) as described below.In this paper, a PI controller, which its parameters are adjusted by a fuzzy inference system, is used to regulate the DC link voltage [4]. This technique, which consists of gains variation during the system control, takes the PI controller adaptable to nonlinear system and its parameters variation.The principle scheme of this technique is illustrated by Figure3.The PI parameters (Kp,Ki) are calculated using the intermediate values (Kp′,Ki′), given by the fuzzy controller, as follows [5]:
(6)Kp=(Kpmax-Kpmin)Kp′+Kpmin,Ki=(Kimax-Kimin)Ki′+Kimin,
where the extremes values of the gains are defined from the parameters given by Ziegler-Nichols method.Both quantities (Kp′,Ki′), corresponding to the output of the fuzzy system (Figure 4), are normalized in the range [01].Figure 4
K
p
′ and Ki′ evaluated by Fuzzy system.The membership functions are chosen the same, respectively, for the error and the slope and for the parametersKp′ and Ki′ (Figures 5 and 6).Figure 5
Membership function for the error and slope.Figure 6
Membership function for the parametersKp′ and Ki′.We have chosen to characterize this fuzzy controller by seven sets, respectively, for the inputs and only two sets for the outputs.The linguistic rules, for the fuzzy logic output variablesKp′ and Ki′ [6], are resumed in the Table 1.Table 1
Fuzzy rules for the outputsK′p and K′i.
Slope
Error
NL
NM
NS
Z
PS
PM
PL
NL
L/L
L/L
L/L
L/L
L/L
L/L
L/L
NM
S/L
L/L
L/S
L/S
L/S
L/L
S/L
NS
S/L
S/L
L/L
L/S
L/L
S/L
S/L
Z
S/L
S/L
S/L
L/S
S/L
S/L
S/L
PS
S/L
S/L
L/L
L/S
L/L
S/L
S/L
PM
S/L
L/L
L/S
L/S
L/S
L/L
S/L
PL
L/L
L/L
L/L
L/L
L/L
L/L
L/L


## 5. ANN Current Control

To obtain the desired switching signals according to either output inverter currents or grid currents to follow the reference ones, a technique-based artificial neural network has been introduced.Neural networks, which have the potential to provide an improved method of deriving nonlinear models, have self adapting capabilities which make them well suitable to handle nonlinearities, uncertainties, and parameter variations.In the last years, a big interest concerned the use of the artificial intelligence techniques (neural networks, fuzzy logic, genetic algorithms) in identification and nonlinear control systems, this is mainly due to their capacities of learning and generalization [7–9].In this object, the present work consists, partially, in developing a neural corrector for the control of the active power filter currents.In this control system, we developed a neural controller by learning the behavior of a reference corrector. To do this, we have chosen, as reference corrector, a PI-Fuzzy adaptive system, which has good performances and could be able to adapt to changes in load.The learning structure of this PI-Fuzzy corrector is given by Figure7.Figure 7
Learning scheme of the ANN for generating the inverter switching control.The ANN is a three-layer network: the first layer has four nodes, the hidden layer has three neurons, and the output layer has only one neuron corresponding to the inverter switching signal.As mentioned below, the PI-Fuzzy reference corrector is used for the phase of learning, allowing to determine the parameters of this neural corrector and particularly its weights.The learning procedure used was the Levenberg Marquardt backpropagation algorithm. The weights are generated until the error between the calculated pattern and the desired pattern, corresponding to the output of the fuzzy system as reference model, is very small and acceptable.After this stage, the weights final values, corresponding to the steady state of the PAF control, are saved and applied, in the second phase, steadily to the neural controller (Figure8).Figure 8
ANN corrector developed for the PAF control.Approximations of ANN weights values, for one phase of inverter, are given as follows(7)[W11=4.20W12=2.45W13=-0.3W14=1.85Wk1=-0.28][W21=7.10W22=-3.55W23=0.07W24=-3.3Wk2=0.55][W31=4.20W32=2.45W33=-0.3W34=1.85Wk3=-0.28].These weights are applied to the neural controller without the fuzzy system used only as reference corrector for the learning state.


## 6. Simulation Results

Simulations were performed to show the effectiveness of the PAF regulation by means of PI-Fuzzy adaptive corrector for the DC link voltage control and by the use of ANN corrector for the PAF current control.A nonlinear load, consisting of a three-phase diode-based rectifier and a resistive load in its DC side, is fed by sinusoidal and symmetrical mains phase voltages (127 Vrms, 50 Hz).Figures9 and 10 show the load current without compensation (only one phase current is represented for the clearness) and its harmonics spectrum, respectively. It is clearly shown that the total harmonic distortion (THD) is relatively high (the calculated value is approximately 22%).Figure 9
Load current before compensation.Figure 10
Load current spectrum before compensation.The simulation results of the proposed control algorithm are presented in the next figures. Thus, Figure11 shows that the source current becomes closely sinusoidal and inphase with source voltage. The source power factor is near unity, and the THD is enormously reduced (the harmonics spectrum, as represented in Figure 12, is reduced to only the fundamental and the calculated value of THD which is approximately 1.2%).Figure 11
Source voltage and compensated current.Figure 12
Grid current spectrum after compensation.To show the dynamics of the proposed control algorithm, a step change is made in the load. The result is presented in Figure13. It is obviously shown that the transient response time is very short, and so the dynamic of the controlled system is high.Figure 13
Grid current transient response.


## 7. Conclusion

The shunt power active filter (PAF) is basically used to compensate harmonics, produced in the case of a nonlinear load, and reactive power. In this paper, we have presented the simulation results, using the Matlab/Simulink PSB Blocs, for the PAF control.The reference current’s identification is accomplished by an approach based on a powers balance between the active power provided by AC source and that absorbed by the load.The DC voltage regulation is done by using a PI-Fuzzy adaptive controller. The output current is then used for the currents reference’s identification.To control the PAF, a neurofuzzy controller is adopted, with a PI-Fuzzy system as a reference corrector for the learning stage, and which imposes the generated current to track closely the reference current.The first investigations, presented here, of the control algorithm prove its effectiveness and its high dynamics. It will be completed in a future work by using other artificial techniques and by considering others PAF configurations.



---

*Source: 237259-2012-08-29.xml*