<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">CS</journal-id><journal-title-group><journal-title>Circuits and Systems</journal-title></journal-title-group><issn pub-type="epub">2153-1285</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/cs.2016.710261</article-id><article-id pub-id-type="publisher-id">CS-69869</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject><subject> Engineering</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Improved PLL Tuning of Shunt Active Power Filter for Grid Connected Photo Voltaic Energy System
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rajmohan</surname><given-names>Rajalakshmi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Vairamani</surname><given-names>Rajasekaran</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of Electrical and Electronics Engineering, PSNA College of Engineering and Technology, Dindigul, India</addr-line></aff><aff id="aff1"><addr-line>Department of Electrical and Electronics Engineering, Coimbatore Institute of Technology, Coimbatore, India</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>rajalakshmircit@gmail.com(RR)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>02</day><month>08</month><year>2016</year></pub-date><volume>07</volume><issue>10</issue><fpage>3063</fpage><lpage>3080</lpage><history><date date-type="received"><day>20</day>	<month>May</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>28</month>	<year>May</year>	</date><date date-type="accepted"><day>19</day>	<month>August</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  This research work brings out the unique predictive current control method for attaining an efficient grid connected Photo Voltaic (PV) system by Shunt Active Power Filter (SAPF) as grid connected converter. The major objective of the research work is to address the presence of Direct Current (DC) component, frequency improvement, quicker theta response, voltage magnitude estimation in the input signal of the Phase Locked Loop (PLL) which is challenging. This work focuses on tuning the PLL block (
  K<sub>p</sub>
  , 
  K<sub>i</sub>
  , 
  K<sub>v</sub>
   and 
  K<sub>o</sub>
  ) 
  through Artificial Bee Colony (ABC) optimization algorithm. The proposed ABC based modified three-phase PLL method is based on adding a new loop inside the PLL structure. In power converters, ABC algorithm is used to select the optimal switching states. The voltage vector which minimizes a cost optimization function is selected. Simulation is carried out for both balanced and unbalanced system and the results validate that the performance of the proposed approach is better in terms of harmonic compensation as per the IEEE standards within &#177;5%, power factor improvement of the system, quicker theta tracking and suppression of frequency jump with the interconnection of PV system.
 
</p></abstract><kwd-group><kwd>Shunt Active Filter</kwd><kwd> Phase Locked Loop</kwd><kwd> Artificial Bee Colony</kwd><kwd> Current Control Method</kwd><kwd> PV System</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In recent years, power quality at end user’s terminal is affected greatly and it has become a great concern in many industrial applications. Therefore, it is very essential to identify novel and efficient system that would mitigate the disturbances in the electrical systems, improving their power quality [<xref ref-type="bibr" rid="scirp.69869-ref1">1</xref>] . Normal filters such as LC, LCL, etc., are used to eliminate specified frequency range and thus, it can be only used for predetermined loads. Thus, Active Power Filter (APF) has been used for these types of harmonic mitigation concerns in transmission lines [<xref ref-type="bibr" rid="scirp.69869-ref2">2</xref>] .</p><p>Shunt active power filter has the growing popularity than series active power filter since most of the industrial applications require the compensation towards current harmonics. It has the ability to keep the current in the source as balanced and sinusoidal after compensation, irrespective of whether the load is nonlinear, balanced or unbalanced [<xref ref-type="bibr" rid="scirp.69869-ref3">3</xref>] - [<xref ref-type="bibr" rid="scirp.69869-ref5">5</xref>] . The utilization of SAPF provides significant advantages to the power system. Thus, developing new methodologies have become an active area of research to improve the performance of these SAPFs [<xref ref-type="bibr" rid="scirp.69869-ref6">6</xref>] .</p><p>In recent decades, interconnection of Renewable Energy Sources (RES) with SAPF has become one of the attractive research topics. But, there is a certain level of influence and impact that renewable generation has on power quality on account of its nonlinearity, especially as both solar generation plants as well as wind power generators have to be connected as such with the grid using high power static Pulse Width Modulated (PWM) converters [<xref ref-type="bibr" rid="scirp.69869-ref7">7</xref>] . Power generation in non uniform nature has a direct effect on the voltage that is regulated therein and thus leads to voltage distortion in power systems. This paper focuses on contributing an efficient compensation technique to deal with the problem of power quality disturbances in the power distribution systems due to the RES interconnection.</p><p>Many types of active power filter configurations have been proposed in the last two decades to achieve the required harmonic compensation level. The main techniques in the active filter are to generate the reference current and the control method applied to inject the required compensation current into the line, which decides the performance of an active filter. There are several methods for reference current generation for the shunt active power filters. In 1984, H. Akagi stated instantaneous active and reactive power theory control method that was quite efficient method for three phase loads in the balanced system, being later worked by Watanabe and Aredes for three phase four wire systems; later F.Z. Peng proposed zero sequence currents. Synchronous Reference Frame (SRF) concept is simple algorithm having good dynamic responses. The SRF could compensate the harmonics in the current and reactive power component from the distorted load currents.</p><p>In 1995, Bhattacharya proposed dq component’s calculations of the instantaneous three phase currents and created synchronous reference frame concept. A dq based current reference generator scheme is used to obtain the reference current signal of the active power filter. This scheme presents a fast and accurate signal tracking capability, which avoids voltage fluctuations that deteriorate the current reference signal affecting compensation performance [<xref ref-type="bibr" rid="scirp.69869-ref8">8</xref>] . So, in this work, dq based current reference generator scheme is preferred.</p><p>To implement the dq based current reference generator, some kind of synchronizing system should be used. PLL has been widely used for the synchronization purpose. SRF-PLL has been widely used in power system applications due to its simplicity and considerable performance. But it suffers from double frequency error when the input signal is unbalanced. Moreover, it also has drawbacks due to the presence of DC components. The DC component can be an intrinsic component of a signal (e.g., the DC link voltage in a single phase rectifier that has a DC and a second order harmonic), and can be generated by measurement devices (e.g., due to the saturation phenomenon in a current transformer [<xref ref-type="bibr" rid="scirp.69869-ref9">9</xref>] ), conversion processes (e.g., the A/D conversion for fixed point DSP applications [<xref ref-type="bibr" rid="scirp.69869-ref10">10</xref>] ), or when a fault occurs [<xref ref-type="bibr" rid="scirp.69869-ref11">11</xref>] . Therefore, it is necessary to remove any error that such a component may cause. But, complete removal of DC component in the PLL systems has not been addressed in the literature so far [<xref ref-type="bibr" rid="scirp.69869-ref12">12</xref>] .</p><p>In this paper the author proposed a method to address the DC component in the input signal of the PLL and notch filter algorithms for filtering and synchronization applications. This paper takes the motivation of the abovementioned work and focuses on improving the performance of the overall system through the utilization of swarm intelligence optimization algorithm.</p><p>Traditional PI controllers are widely used in the control loop of the voltage source converters to produce the switching states of the converters because of its simplicity in control design. Perfect tuning of the controller is needed to have the satisfactory operation of the converters and several traditional tuning rules, such as Ziegler and Nichols, Astrom and Hagglud, Sain and Ozgen cohen and coon etc. are adopted for this purpose. Though they are enough for the first order system, they produce large overshoot and required repeated design process for any variations in the system model. But in general the power system has many disturbances, parameter variations and has many nonlinear loads which lead to the degradation of the quality of the power. Hence the continuous tuning algorithm is needed to have satisfactory operation in its dynamic nature [<xref ref-type="bibr" rid="scirp.69869-ref13">13</xref>] - [<xref ref-type="bibr" rid="scirp.69869-ref16">16</xref>] . Hence this paper brings out the unique optimized self tuning of the controller for the PLL structure in the current control loop of the VSCs, which is obtained by ABC algorithm.</p><p>The main contribution of this paper is to tune the PLL block parameters such as proportional gain (K<sub>p</sub>), integral gain (K<sub>i</sub>) , change in the instantaneous frequency (K<sub>o</sub>) and voltage magnitude gain (K<sub>v</sub>) . The settling time and the steady state response of the frequency are tuned by K<sub>i</sub> and K<sub>p</sub> gain values. Similarly, elimination of DC component and identification of the voltage magnitude are tuned through K<sub>o</sub> and K<sub>v</sub> gain values through the ABC optimization approach. Moreover, the control loop of Voltage Source Inverter (VSI) is proposed with the predictive current control approach. This method predicts the future load current values for the voltage vectors generated by the inverter. The voltage vector which minimizes a cost optimization function is selected. The cost optimization function used in this work evaluates the error current at the next sampling time. In order to select the optimal switching state that must be applied to the power converter, ABC optimization is used in this work which selects the best minimal optimal value “g”.</p><p>This paper is organized as follows. Section 2 deals with the proposed methodology. Section 3 discusses about the three leg converter model. Section 4 describes about the proposed ABC based predictive current control model. Section 5 narrates about current reference generation. Section 6 validates the simulation results to proof the performance of the proposed system.</p></sec><sec id="s2"><title>2. Proposed Methodology</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref> shows the proposed SAPF system model with RES interconnection. The electrical energy consumption behaviour is an unpredictable, and random in nature. It may be single or three-phase, balanced or unbalanced, and linear or nonlinear. A shunt active power filter is connected at the point of common coupling in parallel to compensate current harmonics, current unbalance, and reactive power [<xref ref-type="bibr" rid="scirp.69869-ref17">17</xref>] . As shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, it is composed by an electrolytic capacitor, a PWM converter and a first order output ripple filter. This circuit utilizes the power system equivalent impedance Z<sub>s</sub>, output ripple filter impedance Z<sub>f</sub> of the converter and the impedance Z<sub>L</sub> of the load. When RES generates excess power than the load demand, then the excess power is given to the grid to maintain the load voltage of frequency constant.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Shunt active power filter model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x13.png"/></fig><p>The main element of this system is a voltage source inverter, as it interfaces the renewable energy source to the grid and delivers the generated power. In this work, grid interfacing inverter can effectively be utilized to perform the following important functions: 1) non linear load current harmonics mitigation; 2) unbalanced current compensation in case of 3 phase 3 wire system; 3) ABC based Predictive control technique for cost optimization 4) ABC based PLL tuning approach under unbalanced load conditions. Moreover, with adequate control of grid interfacing inverter, all the four objectives can be accomplished either individually or simultaneously.</p></sec><sec id="s3"><title>3. Three Leg Converter Model</title><p>An illustration of converter’s power circuit employed here is presented in <xref ref-type="fig" rid="fig2">Figure 2</xref>. Converter topology has similar features to those of traditionally deployed three phase converter that has a three leg system [<xref ref-type="bibr" rid="scirp.69869-ref18">18</xref>] . The switching states of the converter are decided by the gating signals S<sub>u</sub>, S<sub>v</sub> and S<sub>w</sub> , as follows in Equation (1):</p><disp-formula id="scirp.69869-formula359"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x16.png"  xlink:type="simple"/></disp-formula><p>and Equation (1) can be expressed in vectorial form as in Equation (2).</p><disp-formula id="scirp.69869-formula360"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x17.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x18.png" xlink:type="simple"/></inline-formula> .</p><p>The output voltage space vectors created by the inverter are defined as in Equation (3)</p><disp-formula id="scirp.69869-formula361"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x20.png"  xlink:type="simple"/></disp-formula><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Three leg inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x21.png"/></fig><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x22.png" xlink:type="simple"/></inline-formula> are the phase to neutral (N) voltages of the inverter (<xref ref-type="fig" rid="fig2">Figure 2</xref>). Then, the load voltage vector can be related to the switching state vector S as in Equation (4)</p><disp-formula id="scirp.69869-formula362"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x24.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x25.png" xlink:type="simple"/></inline-formula> is the DC link voltage.</p><p>Taking in to consideration gating signals combinations of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x27.png" xlink:type="simple"/></inline-formula> ,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x29.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x31.png" xlink:type="simple"/></inline-formula> eight switching states, and as a result, eight voltage vectors are thus obtained. Note that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x33.png" xlink:type="simple"/></inline-formula> , which results in only seven different voltage vectors, as shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>. Filter’s mathematical model derivation is given in Equation (5).</p><disp-formula id="scirp.69869-formula363"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x35.png"  xlink:type="simple"/></disp-formula><p>where R<sub>eq</sub> and L<sub>eq</sub> are the 3L-VSI output parameters expressed as Thevenin impedances at the converter output terminals Z<sub>eq</sub>. Hence, the Thevenin’s equivalent impedance is calculated by a series connection of the ripple filter impedance Z<sub>f</sub> and the arrangement in parallel between the system equivalent impedance Z<sub>s</sub> and the load impedance Z<sub>L</sub> as shown in Equation (6).</p><disp-formula id="scirp.69869-formula364"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x38.png"  xlink:type="simple"/></disp-formula><p>For this model, it is assumed that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x39.png" xlink:type="simple"/></inline-formula> , and the resistive part of the system’s equivalent impedance is neglected, and the series reactance is considered in the range of 3% - 7% p.u., which is a satisfactory approximation of the real system. Finally, in Equation (5) R<sub>eq</sub> = R<sub>f</sub> and L<sub>eq</sub> = L<sub>s</sub> + L<sub>f</sub>. For complete understanding the PWM switching time calculation of the inverter switches are given in <xref ref-type="table" rid="table1">Table 1</xref>.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Switching time calculation of the inverter</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Sector</th><th align="center" valign="middle" >Switching time vector</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x43.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x44.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x45.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x46.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x47.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x48.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x49.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x50.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x51.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x52.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x53.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x54.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x55.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x56.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x57.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x58.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x59.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x60.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Voltage vector generated by the inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x61.png"/></fig><sec id="s3_1"><title>3.1. Design of DC Link Capacitor</title><p>The value of dc link capacitor is chosen from the reference dc voltage, (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x62.png" xlink:type="simple"/></inline-formula>) is the maximum voltage level of the dc bus, I is the phase current of VSI, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x63.png" xlink:type="simple"/></inline-formula>is the angular frequency and (t) time for which dc bus voltage is to be recovered. It is given as in Equation (7).</p><disp-formula id="scirp.69869-formula365"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x64.png"  xlink:type="simple"/></disp-formula><p>where ω = 2p &#180; 50 = 314.159; I<sub>c</sub><sub>(rated)</sub> = rated current, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x65.png" xlink:type="simple"/></inline-formula></p></sec><sec id="s3_2"><title>3.2. Design of Filter Inductance</title><p>The amount of filtering inductance to be added to the SAPF is</p><disp-formula id="scirp.69869-formula366"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x66.png"  xlink:type="simple"/></disp-formula><p>where (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x67.png" xlink:type="simple"/></inline-formula>) represents dc link voltage, (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x68.png" xlink:type="simple"/></inline-formula>) represents maximum switching frequency, (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x69.png" xlink:type="simple"/></inline-formula>) represents peak to peak ripple current.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x70.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x71.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x72.png" xlink:type="simple"/></inline-formula>.</p></sec></sec><sec id="s4"><title>4. Predictive Current Control</title><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows the block diagram of the proposed predictive current control scheme. Predictive control is characterized by its system model usage that helps in predicting variables for future behaviour that necessitates controlling. Controller utilizes the particular information in order to choose the optimum switching state which in turn will be applied to the power converter, as per predefined optimization decisive factors.</p><sec id="s4_1"><title>4.1. Current Reference Generator</title><p>It is derived and designed so that the required current reference may be generated and the same may be utilized for compensating any undesirable load current components. With respect to this one, system voltages, DC link voltage of converter as well as the load currents are measured. During the unbalanced current/voltage conditions, PLL tuning is required. But, in order to improve the conventional PLL tuning, an intelligent ABC optimization algorithm is used in this approach</p></sec><sec id="s4_2"><title>4.2. Predictive Model Using ABC</title><p>Converter model is employed for prediction of output current of the converter. Implying that considering a given sampling time <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x74.png" xlink:type="simple"/></inline-formula>, identifying converter switching states and control variables at instant<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x75.png" xlink:type="simple"/></inline-formula>, prediction of next states is feasible at any instant<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x76.png" xlink:type="simple"/></inline-formula>. On account of first order nature that is inherent in state Equations (3-6) that entail details of the model, a relatively accurate first order approximation of the derivative has been taken in to consideration here as in Equation (9).</p><disp-formula id="scirp.69869-formula367"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x78.png"  xlink:type="simple"/></disp-formula><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Proposed ABC based predictive current control scheme</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x79.png"/></fig></sec><sec id="s4_3"><title>4.3. Proposed ABC Algorithms for Optimal Switching of the Converter</title><p>In [<xref ref-type="bibr" rid="scirp.69869-ref19">19</xref>] the authors proposed the Artificial Bee Colony algorithm wherein each of the colonies comprises of three groups the employed, the onlookers and the scouts. A random switching state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x80.png" xlink:type="simple"/></inline-formula> is initialized and each solution vector is generated. Then, each employed bee found new sources whose quantity is equal to half of the total sources. The main purpose for determining the new food source is evaluation of nectar amount and subsequently greedy selection is carried out. In ABC, both employed and onlooker contribute as being part of the operation and scouts carry out exploration. Bees aim at maximizing food quantity brought back into the nest.</p><p>Step 1: Generate the initial switching state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x82.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x83.png" xlink:type="simple"/></inline-formula></p><p>Step 2: Calculate the voltage for each switching state (particle) to obtain output voltage for each switching state V (P<sub>i</sub>), and select the best <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x85.png" xlink:type="simple"/></inline-formula> as P<sub>i</sub>.</p><p>Evaluate the fitness (output voltage for each switching state) (f<sub>i</sub> = P<sub>i</sub>) of the switching state</p><p>Step 3: Use the iteration formulae of ABC to get a new routing path.</p><p>For each employed bee Do</p><p>Produce new solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x87.png" xlink:type="simple"/></inline-formula> of switching state of the inverter</p><p>Calculate the value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x89.png" xlink:type="simple"/></inline-formula> of switching state of the inverter</p><p>Apply greedy selection process</p><p>Calculate the probability values P<sub>i</sub> for the solutions <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x91.png" xlink:type="simple"/></inline-formula></p><p>For each onlooker bee</p><p>Select a solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x93.png" xlink:type="simple"/></inline-formula> depending on P<sub>i</sub></p><p>Produce new solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x95.png" xlink:type="simple"/></inline-formula></p><p>Calculate the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x97.png" xlink:type="simple"/></inline-formula> Apply greedy selection process</p><p>If there is a discarded solution for the scout then replace it with a new solution which will be randomly produced.</p><p>Memorize the best solution so far.</p><p>The algorithm iterates to the preferred cycle number and the sources having the best nectar in mind gives the possible values of the variables. The obtained nectar amount denotes the solution of the objective function. The 8 possible output current predicted values can be obtained as in Equation (10)</p><disp-formula id="scirp.69869-formula368"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x99.png"  xlink:type="simple"/></disp-formula><p>As shown in Equation (10), in order to predict the output current at the instant<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x101.png" xlink:type="simple"/></inline-formula>, the input voltage value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x101.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x102.png" xlink:type="simple"/></inline-formula> and the converter output voltage <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x101.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x104.png" xlink:type="simple"/></inline-formula> are required. The algorithm calculates all 8 values associated with the possible combinations that the state variables can achieve.</p></sec><sec id="s4_4"><title>4.4. Cost Function Optimization</title><p>Selection of optimal switching state applicable to power converter requires, comparison of 8 predicted values obtained for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x106.png" xlink:type="simple"/></inline-formula> with reference by deploying a cost function g, as follows in Equation (11).</p><disp-formula id="scirp.69869-formula369"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x107.png"  xlink:type="simple"/></disp-formula><p>Here <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x109.png" xlink:type="simple"/></inline-formula> represents the error difference between the actual filter currents <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x110.png" xlink:type="simple"/></inline-formula> and the reference filter currents <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x113.png" xlink:type="simple"/></inline-formula> . The output current <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x113.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x115.png" xlink:type="simple"/></inline-formula> is equal to the reference current <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x113.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x117.png" xlink:type="simple"/></inline-formula> when g = 0.</p><p>Therefore, the main goal of the cost optimization is to achieve the g value close to zero. Voltage vector <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x118.png" xlink:type="simple"/></inline-formula> is selected as it reduces cost function and applicable for subsequent sampling state. Through each sampling state, switching state generating minimum value of g is chosen amongst 8 probable function values. Algorithm chooses that switching state which generates minimal value and then the same is applicable to the converter during the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x120.png" xlink:type="simple"/></inline-formula> state. An accurate and fast detection of the theta and frequency is essential to assure the correct generation of the reference signals. So, in this work, ABC optimization is used in PLL to optimize its parameters <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x120.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x121.png" xlink:type="simple"/></inline-formula> to obtain better steady state response, settling time, voltage magnitude and DC component elimination.</p></sec></sec><sec id="s5"><title>5. Current Reference Generation</title><p>DQ based reference current generation scheme has been employed here to attain active power filter current reference signals. The scheme offers quick and precise signal tracking capabilities. This particular feature negates voltage fluctuations deteriorating reference current signal that influence compensation performance [<xref ref-type="bibr" rid="scirp.69869-ref8">8</xref>] . <xref ref-type="fig" rid="fig5">Figure 5</xref> shows how reference current signals are attained through matching load currents. This module calculates the necessary reference current signals for the converter so as to compensate reactive power, current harmonic &amp; current imbalance respectively. The displacement power factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x123.png" xlink:type="simple"/></inline-formula> and the maximum Total Harmonic</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> dq based reference current generator</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x125.png"/></fig><p>Distortion (THD) of the load <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x126.png" xlink:type="simple"/></inline-formula> defines the relationships between the apparent power needed by the active power filter, with related to the load, as shown in Equation (12)</p><disp-formula id="scirp.69869-formula370"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x128.png"  xlink:type="simple"/></disp-formula><p>where the value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x130.png" xlink:type="simple"/></inline-formula> includes the maximum compensable harmonic current, defined as double the sampling frequency <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x130.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x132.png" xlink:type="simple"/></inline-formula> . The frequency of the maximum current harmonic component to be compensated is equal to one half of the converter switching frequency.</p><p>DQ based scheme is operational as part of the rotating reference structure, hence measured currents need to be multiplied using <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x134.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x134.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x136.png" xlink:type="simple"/></inline-formula> signals. Deployment of dq transformation, d current component synchronization needs to be done with respect to corresponding phase to neutral system voltage; q current component is phase shifted by 90˚. Obtaining <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x134.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x138.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x134.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x140.png" xlink:type="simple"/></inline-formula> synchronized reference signals are done using SRF-PLL [<xref ref-type="bibr" rid="scirp.69869-ref20">20</xref>] . A pure sinusoidal waveform is generated by the SRF-PLL when there is severe distortion in system voltage.</p><p>Eliminating of tracking errors is feasible as SRF-PLLs are designed so that phase voltage unbalancing is evaded, harmonics (i.e., less than 5% and 3% in fifth and seventh, respectively) and resultant offset generated on account of nonlinear load conditions and measurement errors.</p><p>Thus, for the complete removal of DC component and sudden response of frequency ABC is used in this work to tune the PLL block<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x141.png" xlink:type="simple"/></inline-formula>. The settling time and the steady state response of the frequency are tuned by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x142.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x145.png" xlink:type="simple"/></inline-formula> gain values. Similarly, elimination of DC component and identifying the voltage magnitude are tuned through <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x147.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x149.png" xlink:type="simple"/></inline-formula> gain values through the ABC optimization approach.</p><p>Equation (13) shows the relationship between the real currents <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x150.png" xlink:type="simple"/></inline-formula> where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x150.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x151.png" xlink:type="simple"/></inline-formula> and the associated dq components ( <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x150.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x151.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x153.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x150.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x151.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x153.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x155.png" xlink:type="simple"/></inline-formula> ) is</p><disp-formula id="scirp.69869-formula371"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x156.png"  xlink:type="simple"/></disp-formula><p>The DC component of the phase currents <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x158.png" xlink:type="simple"/></inline-formula> is extracted by a Low Pass Filter (LPF) to generate the harmonic reference components <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x160.png" xlink:type="simple"/></inline-formula> . The corresponding Alternating Current (AC) and DC components of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x162.png" xlink:type="simple"/></inline-formula> are phase shifted by 180˚ to obtain the reference components (reactive) of the phase currents. Maintaining DC voltage constant, the amplitude of the converter reference current should be modified by adding an active power reference signal <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x162.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x164.png" xlink:type="simple"/></inline-formula> with the d component discussed below. The resulting signals <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x162.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x165.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x162.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x164.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x167.png" xlink:type="simple"/></inline-formula> are transformed as three phase signals by applying the inverse Park and Clark transformation, as shown in Equation (14). In this paper the cut off frequency of the LPF is used as 20 Hz.</p><disp-formula id="scirp.69869-formula372"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x168.png"  xlink:type="simple"/></disp-formula><p>A significant advantages that dq based current reference generator scheme offers is that it facilitates a linear controller implementation in DC voltage control loop. Though, an obvious disadvantage that arises from dq based current reference frame algorithm, deployment for producing reference current generation is of second order harmonic components in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x170.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x170.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x171.png" xlink:type="simple"/></inline-formula> in an unbalanced operating state. Harmonics amplitude is based on the unbalanced load current percentage expressed as the relationship between the positive sequence current <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x170.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x171.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x172.png" xlink:type="simple"/></inline-formula> and the negative sequence current <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x170.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x171.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x172.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x174.png" xlink:type="simple"/></inline-formula> .</p><p>Traditionally PI controller is used to control the DC voltage of the converter. This is an important issue in the evaluation, since the cost function according to the Equation (9) is designed using only reference currents, in order to avoid the use of weighting factors. In general, these weighting factors are obtained experimentally, and they are not well defined for different operating conditions. In addition to that, the slow dynamic response of the voltage across the electrolytic capacitor will not affect the current transient response. For this reason, the PI controller represents a simple and successful way for the DC voltage control. The DC voltage remains constant (with a minimum value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x176.png" xlink:type="simple"/></inline-formula> until the active power absorbed by the converter decreases to a level of the inability to compensate it’s losses.</p><p>The absorbed active power by the converter is controlled by adjusting the amplitude of the active power reference signal <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x178.png" xlink:type="simple"/></inline-formula> , which is in phase with each phase voltage. In the block diagram shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>, the DC voltage <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x178.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x180.png" xlink:type="simple"/></inline-formula> is measured and then compared with a constant reference value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x178.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x180.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x183.png" xlink:type="simple"/></inline-formula> . The error (e) is processed by a PI controller, with two gains, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x178.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x180.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x183.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x185.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x178.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x180.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x183.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x185.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x187.png" xlink:type="simple"/></inline-formula> . <xref ref-type="fig" rid="fig6">Figure 6</xref> shows that the output of the PI controller is given to the DC voltage transfer function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x178.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x180.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x183.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x185.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x187.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x189.png" xlink:type="simple"/></inline-formula> , which is represented by a first order system are briefly explained in [<xref ref-type="bibr" rid="scirp.69869-ref21">21</xref>] .</p><p>In the conventional tuning of PLL there is a frequency jump in the grid voltage and a delay in theta tracking. Both will be varies with respect to the type of load used. Moreover the varying nature of RES produces ripples in the output which affects the grid voltage [<xref ref-type="bibr" rid="scirp.69869-ref22">22</xref>] [<xref ref-type="bibr" rid="scirp.69869-ref23">23</xref>] , which is given to PLL as feedback here. This will affect the injection time of the compensating current into the grid. To avoid these demerits in this paper the conventional method of tuning is replaced by ABC based tuning to enhance the performance of the overall system.</p><sec id="s5_1"><title>5.1. Modified Three-Phase PLL to Avoid DC Error</title><p>For a three phase balanced set of input signals is as shown in the Equation (15)</p><disp-formula id="scirp.69869-formula373"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x190.png"  xlink:type="simple"/></disp-formula><p>and the d component is given as in the Equation (16)</p><disp-formula id="scirp.69869-formula374"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x191.png"  xlink:type="simple"/></disp-formula><p>The loop regulates this quantity to zero and, thus, regulates φ to θ. Assume that the input signal has a DC component of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x193.png" xlink:type="simple"/></inline-formula> ; then, a term as shown in Equation (17) will superimpose on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x193.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x195.png" xlink:type="simple"/></inline-formula> . If the DC offset is unbalanced (i.e., has unequal values on three phases), this causes an error whose frequency is the same as</p><disp-formula id="scirp.69869-formula375"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x196.png"  xlink:type="simple"/></disp-formula><p>fundamental frequency. The proposed ABC based modified three phase PLL is shown in <xref ref-type="fig" rid="fig7">Figure 7</xref>. Here the block denoted by “dot” makes the dot product of its inputs: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x197.png" xlink:type="simple"/></inline-formula> It is to be observed that the output of this block</p><p>is equal to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x199.png" xlink:type="simple"/></inline-formula> . Thus, the factor 2/3 is placed to make it equal to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x199.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x202.png" xlink:type="simple"/></inline-formula> .</p></sec><sec id="s5_2"><title>5.2. Objective Function for Tuning PLL Using ABC Algorithm</title><p>This section discusses about the tuning of gain values to attain the optimal performance of PLL. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x204.png" xlink:type="simple"/></inline-formula> value depends on the frequency factor ω , <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x207.png" xlink:type="simple"/></inline-formula> gain value depends on the angle ∅ . The voltage magnitude is based on the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x207.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x210.png" xlink:type="simple"/></inline-formula> gain value where as the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x207.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x210.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x212.png" xlink:type="simple"/></inline-formula> gain value depends on the DC component. The objective function of this approach would be to minimize the THD and Settling Time ‘ST’ of the proposed model in <xref ref-type="fig" rid="fig8">Figure 8</xref> as follows.</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> DC voltage control block diagram</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x213.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> ABC based modified three-phase PLL to avoid DC error</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x214.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Minimum cost function evaluation</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x215.png"/></fig><disp-formula id="scirp.69869-formula376"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x216.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x218.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x218.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x220.png" xlink:type="simple"/></inline-formula> are the parameters for calibration. The parameters subjected to limit, considered in this research work are</p><disp-formula id="scirp.69869-formula377"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x221.png"  xlink:type="simple"/></disp-formula><p>Manual tuning of the controller parameters in removing the performance becomes more difficult and consumes more time. To overcome this major drawback, ABC based optimization approach is proposed here to auto tune the controller parameters and also to improve the efficiency of the control strategy in extracting reference currents for SAPF under non linear load conditions also.</p></sec><sec id="s5_3"><title>5.3. Working of the Proposed ABC based PI Self Tuning</title><p>1) Initialize the population (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x222.png" xlink:type="simple"/></inline-formula>) of solutions</p><p>2) Initially, the controller parameter are generated which is of size N</p><p>3) Produce new solutions of DC components through employed bees and then apply greedy selection process</p><p>4) Probability values are calculated for the above solution</p><p>5) Produces new set of population for the parameters of the controller</p><p>6) Update the best values achieved so far, and sort the obtained values</p><p>7) Based on probability values again the new solutions are obtained through onlooker bees and then apply greedy selection process</p><p>8) Determine the left out solution for the scout, if exists, and replace it with a new randomly produced solution</p><p>9) Update the best value achieved so far</p><p>The proposed structure of <xref ref-type="fig" rid="fig7">Figure 7</xref> the DC component in the input signal is detected by the branch comprises three integrators with equal gains <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x225.png" xlink:type="simple"/></inline-formula> to estimate the DC components on three phases. Since the DC components are estimated by this branch and added to the output, the signal e will have no DC. Thus the error in the whole loop is eliminated by removing the DC component, which assures the PLL operation no longer suffers from such components. The modified PLL equations are given in Equation (20).</p><disp-formula id="scirp.69869-formula378"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/22-7601108x226.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x227.png" xlink:type="simple"/></inline-formula></p><p>The variables V, ω and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x229.png" xlink:type="simple"/></inline-formula> estimate voltage magnitude, frequency and angle of the input signal with nominal fundamental frequency of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x229.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x231.png" xlink:type="simple"/></inline-formula> . Thus it is observed that, besides THD and Settling Time of the DC link voltage <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x229.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x231.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x233.png" xlink:type="simple"/></inline-formula> , the work also concentrates on choosing the optimal filter current with a minimum cost function.</p></sec></sec><sec id="s6"><title>6. Simulation Results and Evaluation</title><p>This work has been simulated in MATLAB SIMULINK r2011a. This section clearly discusses about the performance evaluation of the proposed model in which the voltage source converter is controlled to achieve minimized current harmonics under non linear load conditions at unity power factor. Moreover, this proposed model is verified for the RES interconnection with inverter to attain balanced sinusoidal grid currents under unbalanced load conditions through ABC optimization technique. The other simulation scenario wherein the PLL is tuned to eliminate DC component, minimizing the peak overshoot and improving the settling time of frequency and theta is considered. In this simulation, the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x234.png" xlink:type="simple"/></inline-formula> represents grid voltage, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x234.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x236.png" xlink:type="simple"/></inline-formula> represents grid current, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x234.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x236.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x239.png" xlink:type="simple"/></inline-formula> represents the load current, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x234.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x236.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x239.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x241.png" xlink:type="simple"/></inline-formula> represents the inverter current and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x234.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x236.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x239.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x241.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x243.png" xlink:type="simple"/></inline-formula> represents DC link voltage.</p><sec id="s6_1"><title>6.1. System Behavior with SAPF for Nonlinear Load under Balanced Condition</title><p>The nonlinear behavior of the three phase grid system with nonlinear balanced load condition and how the compensation is done with the help of the voltage source converter acting as SAPF for the grid connected PV system is clearly depicted in <xref ref-type="fig" rid="fig9">Figure 9</xref>. <xref ref-type="fig" rid="fig9">Figure 9</xref>(a) shows the grid voltage profile with the magnitude of 325 V, taken between line to ground for all the three phases. Here for the analysis a three phase diode bridge rectifier feeding resistive load is considered as nonlinear load throughout the simulation discussion. Due to this nonlinear load, the sinusoidal nature of the grid current is affected as shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>(b) up to 0.22 seconds.</p><p>The nonlinear diode bridge rectifier will draw a nonlinear load current as shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>(c). The effect of the SAPF on the grid current, load current and the DC link voltage is recognized from 0.22 seconds, since the converter starts to inject the compensating current, acting as SAPF from that moment as shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>(d).</p><p>Now the compensating performance of the SAPF could be clearly understood from <xref ref-type="fig" rid="fig9">Figure 9</xref>(e) and <xref ref-type="fig" rid="fig9">Figure 9</xref>(f). For the clarity of understanding the current waveform is shown for phase “A” alone in <xref ref-type="fig" rid="fig9">Figure 9</xref>(e). The source current compensation could also be seen in <xref ref-type="fig" rid="fig9">Figure 9</xref>(b) after 0.22 seconds. The DC link grid voltage has rising nature up to 0.22 seconds and after the injection of compensating current, it is quickly forced to be maintained at 680 V as per the system design and the steady state nature could also be realized from <xref ref-type="fig" rid="fig9">Figure 9</xref>(f).</p><fig-group id="fig9"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> (a) Grid voltage; (b) Grid current; (c) Nonlinear load current; (d) Inverter current; (e) Load current vs source current; (f) DC link voltage.</title></caption><fig id ="fig9_1"><label>(b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x244.png"/></fig><fig id ="fig9_2"><label>(c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x245.png"/></fig><fig id ="fig9_3"><label>(d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x246.png"/></fig><fig id ="fig9_4"><label>(e)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x247.png"/></fig><fig id ="fig9_5"><label>(f)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x248.png"/></fig><fig id ="fig9_6"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x249.png"/></fig></fig-group></sec><sec id="s6_2"><title>6.2. System Behavior with SAPF for Nonlinear Load under Unbalanced Condition</title><p>The performance of the ABC tuned SAPF for both nonlinear and unbalanced load conditions could be appreciated by analysing the waveforms shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0.</p><p>Here the unbalanced condition is considered from 0.2 seconds onwards and up to that the system operates the nonlinear load under balanced condition only. Load unbalancing is created at 0.2 seconds, only on two phases i.e., phase A and phase B having 20A as unbalanced load currents. Phase C is kept in balanced nonlinear condition with the current magnitude of 14 A. This is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0(a). <xref ref-type="fig" rid="fig1">Figure 1</xref>0(b) illustrates the compensating current generated by the SAPF which is to be injected into the grid for reducing harmonics and maintaining the balanced condition of the system.</p><p>Till 0.2 seconds the system has nonlinearity alone as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0(a). This nonlinear nature of the grid current for balanced condition is compensated by the proposed SAPF model to reduce the harmonic currents. After 0.2 seconds the SAPF is producing the compensating current to compensate the harmonic current as well as to make the system as balanced one.</p><p>The performance of the proposed model for the unbalanced nonlinear system is evaluated by investigating the waveform shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0(c). Till 0.2 seconds the proposed model injects the compensating current waveform and thus making the grid current as sinusoidal one for the balanced system. The unbalanced system which is created at 0.2 seconds has become as a balanced linear system by drawing the current as 18 A in each phase approximately due to the optimal reference current generator.</p></sec><sec id="s6_3"><title>6.3. Performance Evaluation of Proposed ABC Tuned and Conventional PLL</title><p>The main objective of this paper which is known as ABC tuned PLL with predictive current control method of SAPF is for optimizing the control parameters of the PLL can be evaluated by comparing it with the conventional PLL model, based on the factors frequency response, theta tracking, elimination of DC component and maintain the voltage magnitude of the system. <xref ref-type="fig" rid="fig1">Figure 1</xref>1 shows the evidence for the better performance of the proposed PLL model compared to the conventional model.</p><fig-group id="fig10"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> (a) Unbalanced nonlinear load current; (b) Inverter current for unbalanced load; (c). Grid current for unbalanced load.</title></caption><fig id ="fig10_1"><label>(b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x250.png"/></fig><fig id ="fig10_2"><label>(c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x251.png"/></fig><fig id ="fig10_3"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x252.png"/></fig></fig-group><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1(a) compares the frequency response of the proposed model with the conventional model in tuning the PLL. It is clearly shown that the proposed model results in lesser peak overshoot and quicker settling time of the system frequency at 50 Hz. Moreover it holds good even under unbalanced load conditions. It could also be realized from the same figure at 0.2 seconds, at which the unbalancing is created in the system. Improving the frequency response is taken care by the proper tuning of the PLL parameter<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x253.png" xlink:type="simple"/></inline-formula>.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1(b) compares the theta tracking response of the proposed model with the conventional model. It is clearly understood that the proposed ABC tuned PLL tracks the theta quickly even from 0.01 seconds where as it is higher for the conventional model of the PLL. The quicker theta tracking influences the generation of reference current, selecting the optimal switching of the converter and thus improving the harmonic compensation. By the proper tuning of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x254.png" xlink:type="simple"/></inline-formula> gain value, good response in tracking the theta value could be done.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1(c) shows the voltage DC component response of proposed ABC tuned PLL and the conventional SRF-PLL. The DC component may be naturally present in the input signal or may be generated due to nonlinear/unbalanced load conditions. This DC component creates low frequency oscillations that cannot be removed using conventional filtering techniques as it may degrade the overall performance of the system and thus an efficient PLL structure is essential. Now, in order to attain almost zero DC components, an efficient ABC optimization loop is integrated inside the PLL structure which results in effective elimination of the DC component by tuning the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x256.png" xlink:type="simple"/></inline-formula> gain value. The optimal voltage magnitude response is attained by tuning the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x256.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x258.png" xlink:type="simple"/></inline-formula> gain value as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1(d).</p><p>With optimal tuning of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x260.png" xlink:type="simple"/></inline-formula> gain value, lesser peak overshoot response is achieved in the proposed model and hence the quick settling and the improved magnitude response of the three phase system voltage with the fundamental frequency is as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1(e) in per unit value. Obtaining zero error in the comparison of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x260.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x261.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x260.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x261.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/22-7601108x263.png" xlink:type="simple"/></inline-formula> as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1(f) increases the overall performance of the PLL and thus improving the performance of the proposed SAPF model for the interconnected PV system to the grid. The power factor of the grid system is nearest to unity as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1(g).</p></sec><sec id="s6_4"><title>6.4. THD Analysis of the System</title><p><xref ref-type="table" rid="table2">Table 2</xref> shows the harmonic analysis of the waveforms for the system without SAPF, with conventional SAPF and with the modified SAPF. It gives the THD value of the harmonic current of the system for the each case in balanced and unbalanced load conditions. It gives the THD comparison for the system under various harmonic orders.</p></sec></sec><sec id="s7"><title>7. Conclusion</title><p>The design of ABC based PLL tuned SAPF has been proposed in this paper for a grid connected solar PV system. The dynamic performance of the proposed model in compensating current harmonics and reactive power consumption is evaluated through the Matlab simulation. In this research, ABC optimization is proposed to select the optimal switching states that must be applied to the power converter, by selecting the best minimal optimal</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Analysis of % THD for the nonlinear load under balanced and unbalanced condition</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="9"  >Grid current THD in % for nonlinear load at balanced condition</th></tr></thead><tr><td align="center" valign="middle" >Method</td><td align="center" valign="middle" >5<sup>th</sup></td><td align="center" valign="middle" >7<sup>th</sup></td><td align="center" valign="middle" >9<sup>th</sup></td><td align="center" valign="middle" >11<sup>th</sup></td><td align="center" valign="middle" >13<sup>th</sup></td><td align="center" valign="middle" >15<sup>th</sup></td><td align="center" valign="middle" >17<sup>th</sup></td><td align="center" valign="middle" >THD</td></tr><tr><td align="center" valign="middle" >SRF-PLL based SAPF (Conventional)</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >0.66</td><td align="center" valign="middle" >0.14</td><td align="center" valign="middle" >0.96</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >0.09</td><td align="center" valign="middle" >0.70</td><td align="center" valign="middle" >1.85</td></tr><tr><td align="center" valign="middle" >ABC based PLL tuning of SAPF (Proposed)</td><td align="center" valign="middle" >0.04</td><td align="center" valign="middle" >0.01</td><td align="center" valign="middle" >0.06</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.04</td><td align="center" valign="middle" >0.06</td><td align="center" valign="middle" >0.39</td><td align="center" valign="middle" >1.20</td></tr><tr><td align="center" valign="middle"  colspan="9"  >Grid current THD in % for nonlinear load at Unbalanced condition</td></tr><tr><td align="center" valign="middle" >SRF-PLL based SAPF (Conventional)</td><td align="center" valign="middle" >2.10</td><td align="center" valign="middle" >1.95</td><td align="center" valign="middle" >1.69</td><td align="center" valign="middle" >1.56</td><td align="center" valign="middle" >0.94</td><td align="center" valign="middle" >0.81</td><td align="center" valign="middle" >0.67</td><td align="center" valign="middle" >4.62</td></tr><tr><td align="center" valign="middle" >ABC based PLL tuning of SAPF (Proposed)</td><td align="center" valign="middle" >1.70</td><td align="center" valign="middle" >1.47</td><td align="center" valign="middle" >1.41</td><td align="center" valign="middle" >1.34</td><td align="center" valign="middle" >0.78</td><td align="center" valign="middle" >0.81</td><td align="center" valign="middle" >0.69</td><td align="center" valign="middle" >3.79</td></tr><tr><td align="center" valign="middle"  colspan="9"  >Note : In both cases nonlinear load current (without SAPF) %THD = 25.01</td></tr></tbody></table></table-wrap><fig-group id="fig11"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> (a) Frequency response; (b) Theta response; (c) DC component; (d) Voltage magnitude; (e) Grid voltage (pu); (f) Dc error; (g) Phase sequence of the grid voltage and grid current.</title></caption><fig id ="fig11_1"><label>(b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x264.png"/></fig><fig id ="fig11_2"><label>(c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x265.png"/></fig><fig id ="fig11_3"><label>(d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x266.png"/></fig><fig id ="fig11_4"><label>(e)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x267.png"/></fig><fig id ="fig11_5"><label>(f)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x268.png"/></fig><fig id ="fig11_6"><label>(g)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x269.png"/></fig><fig id ="fig11_7"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/22-7601108x270.png"/></fig></fig-group><p>value “g”. Simulated results have proved that the proposed predictive control algorithm is a good choice to classical linear control methods and the compensation effectiveness of the proposed shunt active power filter with ABC based PLL tuning. The performance of the proposed approach has been evaluated under unbalanced load conditions and it is observed that the proposed modified PLL approach attains fast theta tracking as 0.15 seconds, quick settlement of frequency compared with &#177;0.2 Hz jumping of conventional model, maintaining of the DC voltage magnitude in 700 V within 0.4 seconds, zero error for the presence of DC component, improved settling time and minimal attainment of THD as 1.2% for balanced load and 3.79% for unbalanced load. In the future the work can be extended to improve the voltage quality of the system and the converter operation can be analyzed as a simple inverter for injecting the power derived from solar PV and as SAPF for current harmonic compensation. Instead of VSI, multilevel inverters may be used for harmonic reduction.</p></sec><sec id="s8"><title>Cite this paper</title><p>Rajmohan Rajalakshmi,Vairamani Rajasekaran, (2016) Improved PLL Tuning of Shunt Active Power Filter for Grid Connected Photo Voltaic Energy System. Circuits and Systems,07,3063-3080. doi: 10.4236/cs.2016.710261</p></sec></body><back><ref-list><title>References</title><ref id="scirp.69869-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Fuchs, E.F., Roesler, D.J. and Kovacs, K.P. (1987) Sensitivity of Electrical Appliances to Harmonics and Fractional Harmonics of the Power System’s Voltage. Part II: Television Sets, Induction Watt-Hour Meters and Universal Machines. IEEE Transaction on Power Delivery, 2, 445-453.</mixed-citation></ref><ref id="scirp.69869-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Pinto, J.G., Neves, P., Gon?alves, D. and Afonso, J.L. (2009) Field Results on Developed Three Phase Four Wire Shunt Active Power Filters. 35th Annual Conference of IEEE Industrial Electronics, Porto, 3-5 November 2009, 480-485. </mixed-citation></ref><ref id="scirp.69869-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Salam, Z., Cheng, T.P. and Jusoh, A. (2006) Harmonics Mitigation Using Active Power Filter: A Technological Review. ELEKTRIKA, 8, 17-26.</mixed-citation></ref><ref id="scirp.69869-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Mahapatra, K.K., Ghosh, A. and Doradla, S.R. (1998) Simplified Model for Control Design of STATCOM Using Three Level Inverter. IEEE Region 10 International Conference on Global Connectivity in Energy, Computer, Communication and Control, Vol. 2, 536-539.</mixed-citation></ref><ref id="scirp.69869-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Rahmani, S., Mendalek, N. and AlHaddad, K. (2010) Experimental Design of a Nonlinear Control Technique for Three Phase Shunt Active Power Filter. IEEE Transaction on Industrial Electronics, 57, 3364-3375.</mixed-citation></ref><ref id="scirp.69869-ref6"><label>6</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Akagi</surname><given-names> H. </given-names></name>,<etal>et al</etal>. (<year>1996</year>)<article-title>New Trends in Active Filter for Power Conditioning</article-title><source> IEEE Transaction on Industrial Applications</source><volume> 32</volume>,<fpage> 1312</fpage>-<lpage>1322</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.69869-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Rocabert, J., Luna, A., Blaabjerg, F. and Rodríguez, P. (2012) Control of Power Converters in AC Microgrids. IEEE Transaction on Power Electronics, 27, 4734-4749.</mixed-citation></ref><ref id="scirp.69869-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Montero, M.I.M., Cadaval, E.R. and Gonzalez, F.B. (2007) Comparison of Control Strategies for Shunt Active Power Filters in Three-Phase Four Wire Systems. IEEE Transaction on Power Electronics, 22, 229-236.</mixed-citation></ref><ref id="scirp.69869-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Nam, S.-R., Park, J.-Y., Kang, S.-H. and Kezunovic, M. (2009) Phasor Estimation in the Presence of DC Offset and CT Saturation. IEEE Transaction on Power Delivery, 24, 1842-1849.</mixed-citation></ref><ref id="scirp.69869-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Ciobotaru, M., Teodorescu, R. and Agelidis, V.G. (2008) Offset Rejection for PLL Based Synchronization in Grid Connected Converters. 23rd Annual IEEE Applications of Power Electronics Conference and Exposition, Austin, 24-28 February 2008 1611-1617.</mixed-citation></ref><ref id="scirp.69869-ref11"><label>11</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Stringer</surname><given-names> N.T. </given-names></name>,<etal>et al</etal>. (<year>1998</year>)<article-title>The Effect of DC Offset on Current Operated Relays</article-title><source> IEEE Transactions on Industrial Applications</source><volume> 34</volume>,<fpage> 30</fpage>-<lpage>34</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.69869-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Ghartemani, M.K., Khajehoddin, S.A., Jain, P.K., Bakhshai, A. and Mojiri, M. (2012) Addressing DC Component in PLL and Notch Filter Algorithms. IEEE Transactions on Power Electronics, 27, 78-86.</mixed-citation></ref><ref id="scirp.69869-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Basilio, J.C. and Matos, S.R. (2002) Design of PI and PID Controllers with Transient Performance Specification. IEEE Transactions on Education, 45, 364-370.</mixed-citation></ref><ref id="scirp.69869-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Abdennour, A. and Alturki, F.A. (2008) A Comparative Study of PI/PID Classical and Intelligent Tuning Methods. Journal of Engineering and Computer Sciences, 1, 29-42.</mixed-citation></ref><ref id="scirp.69869-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Cheng, M., Sun, Q. and Zhou, E. (2006) New Self Tuning Fuzzy PI Control of a Novel Doubly Salient Permanent Magnet Motor Drive. IEEE Transaction on Industrial Electronics, 53, 814-821.</mixed-citation></ref><ref id="scirp.69869-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Khorramabadi, S.S. and Bakhshai, A. (2014) Critic Based Self Tuning PI Structure for Active and Reactive Power Control of VSCs in Microgrid System. IEEE Transaction on Smart Grid, 6, 92-103. http://dx.doi.org/10.1109/TSG.2014.2354651</mixed-citation></ref><ref id="scirp.69869-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">De Araujo Ribeiro, R.L., de Azevedo, C.C. and de Sousa, R.M. (2012) A Robust Adaptive Control Strategy of Active Power Filters for Power Factor Correction, Harmonic Compensation and Balancing of Nonlinear Loads. IEEE Transaction on Power Electronics, 27, 718-730. http://dx.doi.org/10.1109/TPEL.2011.2161334</mixed-citation></ref><ref id="scirp.69869-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Rodriguez, J., Pontt, J., Silva, C.A., Correa, P., Lezana, P., Cortés, P. and Ammann, U. (2007) Predictive Current Control of a Voltage Source Inverter. IEEE Transactions on Industrial Electronics, 54, 495-503. http://dx.doi.org/10.1109/TIE.2006.888802</mixed-citation></ref><ref id="scirp.69869-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Karaboga, D. and Ozturk, C. (2011) A Novel Clustering Approach: Artificial Bee Colony (ABC) Algorithm. Applied Soft Computing, 11, 652-657. http://dx.doi.org/10.1016/j.asoc.2009.12.025</mixed-citation></ref><ref id="scirp.69869-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Chung, S.-K. (2000) A Phase Tracking System for Three Phase Utility Interface Inverters. IEEE Transaction on Power Electronics, 15, 431-438. http://dx.doi.org/10.1109/63.844502</mixed-citation></ref><ref id="scirp.69869-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Acuna, P., Moran, L., Rivera, M., Dixon, J. and Rodriguez, J. (2014) Improved Active Power Filter Performance for Renewable Power Generation Systems. IEEE Transactions on Power Electronics, 29, 687-694. http://dx.doi.org/10.1109/TPEL.2013.2257854</mixed-citation></ref><ref id="scirp.69869-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Reddy, N.J., Kaliamoorthy, M. and Ashok, K.D. (2008) Control of Grid Connected PV Cell Distributed Generation Systems. TENCON 2008—2008 IEEE Region 10 Conference, Hyderabad, 19-21 November 2008, 1-6. http://dx.doi.org/10.1109/TENCON.2008.4766748</mixed-citation></ref><ref id="scirp.69869-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Mylsamy, K., Vairamani, R., Irudayaraj, G.C.R. and Lawrence, H.T.R. (2014) Experimental Validation of a Cascaded Single Phase H-Bridge Inverter with a Simplified Switching Algorithm. Journal of Power Electronics, 14, 507-518.http://dx.doi.org/10.6113/JPE.2014.14.3.507</mixed-citation></ref></ref-list></back></article>