<?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.79187</article-id><article-id pub-id-type="publisher-id">CS-68200</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>
 
 
  Distorted Waveform Balancing Using an Artificial Bee Colony (ABC) Based Optimal Control for Mitigating Total Harmonics in Single Phase Inverter
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>N.</surname><given-names>M. Spencer Prathap Singh</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kesavan</surname><given-names>Nair</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>T.</surname><given-names>Ajith Bosco Raj</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of ECE, PSN College of Engineering and Technology, Tirunelveli, Tamilnadu, India</addr-line></aff><aff id="aff1"><addr-line>Department of EEE, CSI Institute of Technology, Thovalai, Tamilnadu, India</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>ajithboscoraj@gmail.com(TABR)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>05</day><month>07</month><year>2016</year></pub-date><volume>07</volume><issue>09</issue><fpage>2154</fpage><lpage>2167</lpage><history><date date-type="received"><day>6</day>	<month>April</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>1</month>	<year>May</year>	</date><date date-type="accepted"><day>12</day>	<month>July</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>
 
 
  The main objective of this paper is to reduce the total harmonics in a single phase voltage source inverter using Artificial Bee Colony (ABC) optimization technique for critical load applications. Single phase inverter is a non-linear load using power electronic components causing distortions in the load voltage and current wave patterns from the sinusoidal waveforms due to harmonics. The mapping state space model for a full bridge voltage source inverter was developed using output load resistance. An optimal ABC technique has been designed and optimized values are estimated using a full bridge voltage controlled inverter using Proportional Integral Algorithm. The MATLAB/SIMULINK tool and Experimental setup were implemented and their THD values were estimated. Also this ABC scheme is compared with the previous results such as PI Algorithm, Fuzzy logic controller and Neuro-fuzzy controllers. From the simulation and experimental results using ABC algorithm, it is observed that the total harmonics are mitigated considerably compared to previous results with respect to the power quality standards such as IEEE-519 and IEC 61000.
 
</p></abstract><kwd-group><kwd>Voltage Source Inverter</kwd><kwd> THD</kwd><kwd> Proportional Integral Controller</kwd><kwd> Artificial Bee Colony</kwd><kwd>  Voltage Harmonics</kwd><kwd> Current Harmonics</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Inverter is a power electronics setup used to generate AC voltage from a DC source of desired magnitude and frequency. Single phase inverters are widely used in case of power failures to deliver power to critical loads, variable speed ac drives, induction heating, uninterruptible power supplies (UPS) for hospitals, security complexes, standby aircraft power supplies, traction, HVDC transmission lines and renewable energy applications which require pure sinusoidal waveform at the specified magnitude, frequency and low total harmonic distortion (THD). Normally, DC-AC inverters operate in pulse width modulation (PWM). During the process of inversion in a thyristorised power converter; harmonics of power frequency are produced on the converter. Reducing the harmonic content of the output voltage, current is one of the important tasks of the designers. Harmonics appear as undesirable noise. Poor power factor, Excessive temperature rise may weaken the reliability and life of the motors or equipment, sensitive electronic equipment malfunction, and increase the apparent power and over- sizing of sources, acoustical noise in AC motor drives, etc. Hence an active harmonic reduction strategy is often desirable. Conventionally three harmonic reduction strategies such as switch control, vector control, and modulation technique are generally employed for harmonic reduction.</p><p>The inverters used for critical loads generally require less than 5% total harmonic distortion (THD) and the amplitude of individual harmonics should be less than 3% of the fundamental amplitude. The low THD value improves the dynamic response of the UPS in load variations. Single phase inverters are widely used due to its compact size, flexibility in operation, faster dynamic response, low acoustic noise, etc. An inverter has become the necessity of the day during the period of load shedding or as an interim source until the backbone supply is restored. Single phase inverters of small sizes (less than 1000 W) are used in domestic installations as a source of standby electric supply. Its overall cost is less than the portable generator of the same power rating. Many conventional methods have been put forward by several researchers on mitigating harmonics in power converters. The conventional methods exhibit poor system response under line and load variations.</p><p>The Single Phase Voltage Source Inverter generates harmonic content at its output due to the non-linear characteristic of power devices. In single phase voltage source inverters, the output voltage remains more or less constant due to its low internal impedances whereas the output current varies with respect to load. Therefore the terminal voltage is determined by the inverter setup whereas the load current is determined by the load. Harmonic mitigation in an inverter is an important task for its efficient operation. Conventionally, PWM techniques are used in voltage source inverters for reducing harmonic to a certain level. Moreover, the distortions of an inverter can be reduced by using composite observers both in series and shunt of the circuitry [<xref ref-type="bibr" rid="scirp.68200-ref1">1</xref>] - [<xref ref-type="bibr" rid="scirp.68200-ref4">4</xref>] . Electromagnetic Interferences may introduce harmonics in an inverter and the attenuation of EMI improves the efficiency of inverters [<xref ref-type="bibr" rid="scirp.68200-ref5">5</xref>] . The low pass filter incorporated at the output of an inverter may smooth the wave pattern thereby reducing the harmonic level [<xref ref-type="bibr" rid="scirp.68200-ref6">6</xref>] - [<xref ref-type="bibr" rid="scirp.68200-ref8">8</xref>] . Soft computing techniques such as fuzzy logic controller and artificial neural networks are implemented in voltage source inverters for reducing the magnitude of harmonics below standard level [<xref ref-type="bibr" rid="scirp.68200-ref9">9</xref>] - [<xref ref-type="bibr" rid="scirp.68200-ref12">12</xref>] . The application of Walsh domain waveform analytic technique is used to express the output voltage for adjusting the switching angles in Bipolar and Unipolar Voltage schemes [<xref ref-type="bibr" rid="scirp.68200-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.68200-ref14">14</xref>] . Several optimization techniques such as Particle Swarm Optimization (PSO) and Weighted Differential Evolution based PWM are also performed to improve the inverter efficiency [<xref ref-type="bibr" rid="scirp.68200-ref15">15</xref>] - [<xref ref-type="bibr" rid="scirp.68200-ref17">17</xref>] . Inverters are also employed in renewable energy applications such as H-bridge inverter using photovoltaic optimization for increasing efficiency with minimized harmonics [<xref ref-type="bibr" rid="scirp.68200-ref18">18</xref>] . Bipolar notching method and reducing the dead time as well as voltage drops in the switching devices was also suggested for harmonic reduction [<xref ref-type="bibr" rid="scirp.68200-ref19">19</xref>] [<xref ref-type="bibr" rid="scirp.68200-ref20">20</xref>] .</p><p>In this work, Artificial Bee Colony optimization Technique is applied to estimate the optimized values of PI-controller for reducing harmonic distortions in the single phase inverters. This controller is known as ABC-PI controller. Artificial Bee Colony Algorithm is a natural inspired optimization technique simulating the foraging behaviour of honeybees. It is a very robust and population based optimization algorithm. In ABC algorithm, the colony of artificial bees contains three groups of bees namely employed bees, onlookers and scouts. A bee going to the food source is named as employed bee. A bee waiting on the dance area for making a decision to choose a food source is called onlooker. A bee that carries out random search for discovering new sources is called scout bee [<xref ref-type="bibr" rid="scirp.68200-ref21">21</xref>] - [<xref ref-type="bibr" rid="scirp.68200-ref23">23</xref>] . Using ABC-PI algorithm, both the voltage and current harmonics are mitigated less than IEEE and IEC standards. The conventional PI controller is used for harmonic reduction in VSI, because the system behaviour is accurate due to reduction of steady-state error, reduction of overshoot, increased bandwidth, etc. In this paper, the ideas are also directly implemented digitally for single phase inverter controlled by PIC microcontroller to reduce total harmonic distortion [<xref ref-type="bibr" rid="scirp.68200-ref24">24</xref>] - [<xref ref-type="bibr" rid="scirp.68200-ref26">26</xref>] .</p><p>The paper is organized as follows, in the subsequent sections; Inverter circuit analysis, Artificial Bee Colony Algorithm, MATLAB implementation of ABC-PI controller, Simulation results, Experimental setup and finally the conclusion.</p></sec><sec id="s2"><title>2. Inverter Circuit Analysis of Full-Bridge Voltage Source Inverter</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref> shows the basic block diagram representation of a full bridge voltage source inverter. In order to maintain the fundamental component at the desired level; a voltage control circuit is built with an inverter. The output of the inverter is fed to an LC filter which introduces a lag varying with the load impedance for producing oscillations. Further the LC networks minimize the THD maintaining the power factor at a specified value. The load output is then fed to a suitable controller and the controlled output is compared with the reference signal and the error signal generated is used to reduce the harmonic content of single phase inverter. In order to achieve a good dynamic behavior, the feedback control loop with fast response is required.</p><p>The inverter load voltage is defined as,</p><disp-formula id="scirp.68200-formula54"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x7.png"  xlink:type="simple"/></disp-formula><p>Instantaneous inverter output voltage,</p><disp-formula id="scirp.68200-formula55"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x8.png"  xlink:type="simple"/></disp-formula><p>If the load of the inverter is purely resistive, then the load current is given by,</p><disp-formula id="scirp.68200-formula56"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x9.png"  xlink:type="simple"/></disp-formula><p>Instantaneous inverter output current,</p><disp-formula id="scirp.68200-formula57"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x10.png"  xlink:type="simple"/></disp-formula><p>The power absorbed by the load is given by</p><disp-formula id="scirp.68200-formula58"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x11.png"  xlink:type="simple"/></disp-formula><p>Total Harmonic Distortion (THD) is a measure of harmonic content in a signal, which is the ratio of all the harmonic components together to the rms amplitude of the fundamental. It is given by,</p><disp-formula id="scirp.68200-formula59"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x12.png"  xlink:type="simple"/></disp-formula><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Block diagram representation of single phase full bridge voltage source inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x13.png"/></fig><p>In full bridge inverter, the switching frequency, f<sub>s</sub> must be above the audible range of 20 KHz. It is given by, switching frequency,</p><disp-formula id="scirp.68200-formula60"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x14.png"  xlink:type="simple"/></disp-formula><p>Supply frequency</p><disp-formula id="scirp.68200-formula61"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x15.png"  xlink:type="simple"/></disp-formula><p>where, f<sub>o</sub> is the output frequency and “P” is the pulses per half period. The source voltage and output voltages are related as,</p><disp-formula id="scirp.68200-formula62"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x16.png"  xlink:type="simple"/></disp-formula><p>where, V<sub>on</sub> is the output voltage including on-state voltages of the switching device.</p><p>The switching scheme determines the frequency of the output ac waveform. The output voltage amplitude is controlled by varying the amplitude of the source voltage. The steady-state inverter operation can be explained by assuming two circuit modes with control variable u ?{0, 1}. The mathematical model for the voltage controlled single phase full bridge inverter based on bipolar voltage switching with sinusoidal pulse width modulation is presented. It is assumed that all components are ideal. The alternating voltage is produced when switches S<sub>A</sub> and S<sub>D</sub> are closed for half the switching period while S<sub>B</sub> and S<sub>C</sub> are open. In the second half-period S<sub>A</sub> and S<sub>D</sub> are open while S<sub>B</sub> and S<sub>C</sub> are closed. The control variable “u” is defined as,</p><disp-formula id="scirp.68200-formula63"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x17.png"  xlink:type="simple"/></disp-formula><p>If switches S<sub>A</sub> and S<sub>D</sub> are on, then u = 1. If switches S<sub>B</sub> and S<sub>C</sub> are on, then u = 0, where u is a control variable.</p><p>Topology (1): When switches S<sub>A</sub> and S<sub>D</sub> are on, then u = 1 and the system can generate a positive half sine wave. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows its equivalent circuit.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Circuit mode when S<sub>A</sub> and S<sub>D</sub> are ON</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x18.png"/></fig><p>According to the circuit topology, the state-space equation can be written as follows.</p><p>Applying KVL,</p><disp-formula id="scirp.68200-formula64"><graphic  xlink:href="http://html.scirp.org/file/7-7600726x19.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68200-formula65"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x20.png"  xlink:type="simple"/></disp-formula><p>Also,</p><disp-formula id="scirp.68200-formula66"><graphic  xlink:href="http://html.scirp.org/file/7-7600726x21.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68200-formula67"><graphic  xlink:href="http://html.scirp.org/file/7-7600726x22.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68200-formula68"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x23.png"  xlink:type="simple"/></disp-formula><p>Topology (2): S<sub>B</sub> and S<sub>C</sub> are on, then u = 0 and the system can generate a negative half sine wave. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows its equivalent circuit. According to the circuit topology, the state-space equation can be written as follows.</p><p>Applying KVL,</p><disp-formula id="scirp.68200-formula69"><graphic  xlink:href="http://html.scirp.org/file/7-7600726x24.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68200-formula70"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x25.png"  xlink:type="simple"/></disp-formula><p>Applying KCL,</p><fig-group id="fig3"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Circuit mode when S<sub>B</sub> and S<sub>C</sub> are ON.</title></caption><fig id ="fig3_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x26.png"/></fig></fig-group><disp-formula id="scirp.68200-formula71"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x27.png"  xlink:type="simple"/></disp-formula><p>Equations (11) and (14) are merged with controlled variable u ∈ {0, 1} into following state space equation (15):</p><disp-formula id="scirp.68200-formula72"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x28.png"  xlink:type="simple"/></disp-formula><p>where,</p><p>U = Control variable;</p><p>L<sub>f</sub> = Filter inductance;</p><p>C<sub>f</sub> = Filter capacitance;</p><p>R = Load resistance;</p><p>V<sub>in</sub> = DC input voltage.</p>Passive LC Filter Design<p>The LC low pass filter at the inverter terminals act as parallel resonance and blocks the harmonics into a lower level and passes almost sinusoidal output. In inverters, the LC elements are used for building up the oscillations and are called resonant elements. It should be under damped in nature such that,</p><disp-formula id="scirp.68200-formula73"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x29.png"  xlink:type="simple"/></disp-formula><p>Filter inductance,</p><disp-formula id="scirp.68200-formula74"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x30.png"  xlink:type="simple"/></disp-formula><p>Filter capacitance,</p><disp-formula id="scirp.68200-formula75"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x31.png"  xlink:type="simple"/></disp-formula><p>Filter cut-off frequency,</p><disp-formula id="scirp.68200-formula76"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x32.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3"><title>3. Artificial Bee Colony (ABC) Algorithm</title><p>Artificial Bee Colony (ABC) algorithm, proposed [<xref ref-type="bibr" rid="scirp.68200-ref23">23</xref>] for real parameter optimization, simulates the foraging behavior of bee colony. In this paper Harmonic reduction is a constrained optimization problem incorporated in VSI with an ABC algorithm. Artificial Bee Colony (ABC) algorithm is an optimization technique providing population based search procedure in which individuals called food positions are modified by the artificial bees with time and the bees aim is to discover the places of food sources with high nectar amount and finally the one with the highest nectar. In ABC algorithm, artificial bee fly around in a multidimensional search space and some employed and onlookers choose food source depending on the experience of themselves and their nest mates, and adjust their positions. Some scout bees fly and choose the food sources randomly without using experience. If the nectar amount of a new source is higher than that of the previous one in their memory, they memorize the new position and forget the previous one.</p><p>In ABC algorithm the colony of artificial bees contains three groups of bees: employed bees, onlookers and scouts. First half of the colony consists of the employed artificial bees and the second half includes the onlookers. For every food there is only one employed bee. In other words, the number of employed bees is equal to the number of food sources. The employed bee of an abandoned food source becomes a scout. The search carried out by the artificial bees can be summarized as follows:</p><p>Employed bees determine a food source within the neighborhood of the food source in their memory. Employed bees share their information with onlookers within the hive and then the onlookers select one of the food sources. Onlookers select a food source within the neighborhood of the food sources chosen by them. An employed bee of which the source has been abandoned becomes a scout and starts to search a new food source randomly.</p><sec id="s3_1"><title>3.1. Pseudo-Codes for the ABC Optimization Technique</title><p>1. Load samples of Controller parameters.</p><p>2. Initialize the population of solutions,</p><p>X<sub>i</sub>, I = 1............ SN (size of population).</p><p>3. Evaluate the fitness (f<sub>i</sub>t<sub>i</sub>) of the population.</p><p>4. Set Cycle = 1.</p><p>5. Repeat.</p><p>6. Produce new solutions for the employed bee,</p><p>X<sub>new</sub> by using Equation (25) and evaluate their fitness using Equation (22).</p><p>7. Apply the greedy selection process for the employed bees.</p><p>8. Calculate the probability values for the solutions</p><p>Using Equation (24).</p><p>9. Produce the new solutions for the onlookers from the solutions X<sub>i</sub> selected depending on probability and evaluate them.</p><p>10. Apply greedy selection process for the onlookers.</p><p>11. Determine the abandoned solution for the scout</p><p>if exists and replace it with a new randomly</p><p>Produced solution X<sub>i</sub> by (26).</p><p>12. Memorize the best solution so far.</p><p>13. Cycle = cycle + 1 Until Cycle = MCN (Maximum Cycle Number).</p></sec><sec id="s3_2"><title>3.2. Objective Function</title><p>The objective function of the VSI comprises reducing total harmonic distortion (THD), which largely depends on the controller parameters.</p><disp-formula id="scirp.68200-formula77"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x33.png"  xlink:type="simple"/></disp-formula><p>where,</p><p>V<sub>ref</sub> = Reference d.c voltage.</p><p>V<sub>con</sub> = Controller d.c voltage.</p><p>Minimise THD subject to the constraint</p><disp-formula id="scirp.68200-formula78"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x34.png"  xlink:type="simple"/></disp-formula><p>where φ represents K<sub>p</sub> and K<sub>i</sub>.</p></sec><sec id="s3_3"><title>3.3. Fitness Function</title><p>Fitness value (f<sub>i</sub>t<sub>i</sub>) is calculated using iom</p><disp-formula id="scirp.68200-formula79"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x35.png"  xlink:type="simple"/></disp-formula><p>Here f(x<sub>i</sub>) is the objective function (THD) in the steady state.</p></sec><sec id="s3_4"><title>3.4. Design Procedures for ABC Optimization</title><p><xref ref-type="fig" rid="fig4">Figure 4</xref> indicates the flow chart of ABC algorithm. In ABC algorithm, the position of a food source represents</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Flow chart of ABC algorithm</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x36.png"/></fig><p>a possible solution to the optimization problem and the nectar amount of a food source corresponds to the quality (fitness) of the associated solution. The number of the employed bees or the onlooker bees is equal to the number of solutions in the population. At the first step, the ABC generates a randomly distributed initial population X<sub>i</sub> of SN solutions (food source positions), where SN denotes the size of population. Each solution<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x37.png" xlink:type="simple"/></inline-formula>. Where FS is a D-dimensional vector and D is the number of optimization parameters K<sub>p</sub> &amp; K<sub>i</sub>.</p><p>i.e. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x38.png" xlink:type="simple"/></inline-formula></p><p>After initialization, the population of the positions (solutions) is subjected to repeated cycles, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x39.png" xlink:type="simple"/></inline-formula>of the search processes of the employed bees, onlooker bees and scout bees. An employed bee produces modifications on the position (solution) in the memory depending on the local information (visual information) and tests the nectar amount (fitness value) of the new source (new solution). Provided that the nectar amount of the new one is higher than that of the previous one. The bee memorizes the best food source and forgets the old one. Otherwise keeps the position of the previous one in memory. In general the position of i<sup>th</sup> food source is represented as:</p><disp-formula id="scirp.68200-formula80"><label>(23)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x40.png"  xlink:type="simple"/></disp-formula><p>After all employed bees complete the search process; they share the nectar information of the food sources and their position information with the onlooker bees on the dance area. An onlooker bee evaluates the nectar information taken from all employed bees and chooses a food source with a probability related to its nectar amount. The probability P<sub>i</sub> determined as,</p><disp-formula id="scirp.68200-formula81"><label>(24)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x41.png"  xlink:type="simple"/></disp-formula><p>where n is total number of food sources. Fitness value f<sub>i</sub>t<sub>i</sub> is calculated using (16). The onlooker finds its food source in the region of X<sub>i</sub> by using the following relation,</p><disp-formula id="scirp.68200-formula82"><label>(25)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x42.png"  xlink:type="simple"/></disp-formula><p>where, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x43.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x44.png" xlink:type="simple"/></inline-formula> are randomly chosen indexes, r is a uniformly distributed random number in the range [−1, 1].</p><p>All the employed bees have completed search process, the information is shared with onlookers. The onlookers select food sources according to the above probability so that better food sources are selected. Each bee will search for a better food source for certain number of cycles (limit), and if fitness value doesn’t improve then that particular bee becomes scout. In ABC algorithm, it is simulated by producing a position of scout bees randomly and replacing it with the abandoned one. If the position cannot be improved further through a predetermined of cycles, then that food source is assumed to be abandoned. The value of predetermined number of cycles is an important control parameter of the ABC algorithm, which is called “limit” for abandoned. Assume that the abandoned source is X<sub>i</sub> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x45.png" xlink:type="simple"/></inline-formula>, then the scout discovers a new food source to be replaced by X<sub>i</sub>. This operation can be expressed as</p><disp-formula id="scirp.68200-formula83"><label>(26)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-7600726x46.png"  xlink:type="simple"/></disp-formula></sec></sec><sec id="s4"><title>4. Simulation Results and Discussion</title><p>The Total Harmonic Distortion of Single Phase VSI using Proportional Integral Controller with ABC Optimization is simulated by using Matlab/Simulink software. In single phase full-bridge voltage fed inverter the initial and estimated values of Proportional constant (K<sub>p</sub>) and Integral constant (K<sub>i</sub>) values are K<sub>p</sub> = 19 and K<sub>i</sub> = 7.1. In the simulation using PI controller the optimized values K<sub>p</sub> =19.862 and K<sub>i</sub> = 9 are estimated using ABC algorithm and its THD values are computed. The switching frequency of the inverter is taken as 7.69 KHZ [<xref ref-type="bibr" rid="scirp.68200-ref11">11</xref>] . The optimized controller parameters are bounded as: {0, K<sub>p</sub><sub>max</sub>}, {0, K<sub>i</sub><sub>max</sub>} where, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x47.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-7600726x48.png" xlink:type="simple"/></inline-formula></p><p>The Specification of the 1-Phase inverter is tabulated in <xref ref-type="table" rid="table1">Table 1</xref> it describes the parameters and values for both simulation and hardware.</p><p>The detailed closed loop simulation voltage source Inverter using Proportional Integral Controller with ABC optimization is in <xref ref-type="fig" rid="fig5">Figure 5</xref>. The combination of proportional and integral terms increases the speed of response</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Closed loop simulation of a voltage source inverter using proportional integral controller with ABC optimization technique</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x49.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Specifications of voltage source inverter for both simulation and hardware</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameters</th><th align="center" valign="middle" >Values</th></tr></thead><tr><td align="center" valign="middle" >Input DC Voltage, V<sub>in</sub></td><td align="center" valign="middle" >15 V</td></tr><tr><td align="center" valign="middle" >Load Resistance, R<sub>0</sub></td><td align="center" valign="middle" >50 Ω</td></tr><tr><td align="center" valign="middle" >Filter Inductance, L<sub>f</sub></td><td align="center" valign="middle" >2 mH</td></tr><tr><td align="center" valign="middle" >Filter Capacitance, C<sub>f</sub></td><td align="center" valign="middle" >500 &#181;F</td></tr><tr><td align="center" valign="middle" >Reference Signal, V<sub>ref</sub></td><td align="center" valign="middle" >5V Sine, 50 Hz</td></tr><tr><td align="center" valign="middle" >ABC-PI Controller</td><td align="center" valign="middle" >K<sub>p</sub><sub> </sub>= 19.862, K<sub>i</sub><sub> </sub>= 9.0</td></tr><tr><td align="center" valign="middle" >Switching Frequency, f<sub>s</sub></td><td align="center" valign="middle" >7.69 KHz</td></tr><tr><td align="center" valign="middle" >Load Waveform</td><td align="center" valign="middle" >Sine wave</td></tr></tbody></table></table-wrap><p>and also it eliminates the steady state error. The overall controller tuning methods include both time and frequency domain methods such as Routh-Hurwitz Criterion, Root Locus method, pole placement technique, Ziegler-Nichols tuning formula, etc. Among this techniques, the Ziegler and Nichols tuning method is used to compute PI gains of the voltage source inverter. The Output of the controller is applied to Power Inverter switches. The Percentage THD Values of voltage and current Harmonics are measured and the response Curves of voltage and current Harmonics of Single Phase Inverters are plotted in <xref ref-type="fig" rid="fig6">Figure 6</xref> and <xref ref-type="fig" rid="fig7">Figure 7</xref> respectively.</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> shows output voltage waveform with reduced voltage harmonics in a single phase voltage source inverter using PI controller with ABC optimization. The controller works efficiently and maintains constant magnitude of voltage with reduced distortions. <xref ref-type="fig" rid="fig7">Figure 7</xref> shows output current waveform with reduced current harmonics in a Single phase voltage source inverter using PI controller with ABC optimization. It is clear that the current waveform has initial overshoots and oscillates. The controller acts effectively and minimizes the overshoots and the waveform becomes steady with reduced distortions.</p></sec><sec id="s5"><title>5. Experimental Setup</title><p><xref ref-type="fig" rid="fig8">Figure 8</xref> and <xref ref-type="fig" rid="fig9">Figure 9</xref> shows the block diagram representation and experimental setup of the proposed fully controlled voltage source sine wave Inverter respectively with reduced harmonics for UPS. The experimental setup consists of a step down transformer, Crystal oscillator, Peripheral Interface Controller (PIC), Driver circuit, Power device and Load. The main part of Micro-4011 trainer is PIC microcontroller, DAC, ADC, and Display. The PIC microcontroller (PIC30F4011) generates PWM wave and it is fed to a driver circuit which in used for turn on and turn off of the power device gate signals. A miniature 4 MHZ Quartz Oscillator is used as the resonator. This oscillator generates mechanical resonance of a vibrating crystal of piezoelectric material to create an electrical signal with a very precise frequency. PIC controller is used to generate Pulse Width Modulation (PWM) wave by comparing sine wave and oscillatory wave. In <xref ref-type="fig" rid="fig1">Figure 1</xref>0 indicates the hardware output. In this <xref ref-type="fig" rid="fig1">Figure 1</xref>0(a) represents the Voltage Waveform across Load with PIC Microcontroller using ABC-PI optimized values <xref ref-type="fig" rid="fig1">Figure 1</xref>0(b) represents the Load Current waveform across with PIC microcontroller using ABC-PI optimized values and <xref ref-type="fig" rid="fig1">Figure 1</xref>0(c) represents the PWM signal.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1 shows the comparative results for with and without optimization technique. From this figure it is clearly found that the controller acts very effectively and it maintains the constant output voltage and reduced current THD’s for ABC optimization. The voltage harmonics depends on source stability and network impedance so that the voltage harmonics remains constant. The current harmonics are load dependent and the magnitudes get reduced using ABC optimization technique.</p></sec><sec id="s6"><title>6. Conclusion</title><p>This paper demonstrates that ABC optimization for a single phase voltage source full bridge inverter reduces THD values better than PI controllers for harmonic mitigation. This technique also provides constant voltage and reduced current THD values. The single phase inverter using proportional integral algorithm controlled by PIC microcontroller was directly implemented using hardware setup and its total harmonic distortions were</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Variation of voltage harmonics with time using ABC-PI controller</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x50.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Variation of current harmonics with time using ABC-PI controller</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x51.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Block diagram of the proposed VSI for harmonic reduction</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x52.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> Hardware setup</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x53.png"/></fig><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Hardware results. (a) Voltage waveform across load with PIC microcontroller using ABC-PI optimized values; (b) Load current waveform across with PIC microcontroller using ABC-PI optimized values; (c) PWM signal</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x54.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Comparison result with and without optimization</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-7600726x55.png"/></fig><p>estimated with ABC optimization technique. It is observed that the optimization technique provides better reduction of current THD values compared to other non-optimization methods. This system reduces switching losses and thereby improves overall efficiency. Both software and hardware implementation provides reduced total harmonics as per IEEE and IEC standards.</p></sec><sec id="s7"><title>Cite this paper</title><p>N. M. Spencer Prathap Singh,Kesavan Nair,T. Ajith Bosco Raj, (2016) Distorted Waveform Balancing Using an Artificial Bee Colony (ABC) Based Optimal Control for Mitigating Total Harmonics in Single Phase Inverter. Circuits and Systems,07,2154-2167. doi: 10.4236/cs.2016.79187</p></sec><sec id="s8"><title>NOTES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.68200-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Hsieh, F.-H., Chang, P.-L., Chen, Y.-S., Wang, H.-K. and Hwang, J.-C. (2009) Fast-Scale Instability Phenomena and Chaotic Control of Voltage Control Single-Phase Full-Bridge Inverter via Varying Load Resistance. 4th IEEE Conference on Industrial Electronics and Applications, Xi’an, 25-27 May 2009, 3422-3427.  
http://dx.doi.org/10.1109/iciea.2009.5138837</mixed-citation></ref><ref id="scirp.68200-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Bhanse, J.V. and Kulkarni, S.U. (2015) New Approach for Harmonics Reduction in Inverters. International Journal of Engineering Technology, Management and Applied Sciences, 3, 187-193.</mixed-citation></ref><ref id="scirp.68200-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kamakshy, S. and Janakiraman, P.A. (2010) Reduction of Voltage Harmonics in Single Phase Inverters Using Composite Observers. IEEE Transactions on Power Delivery, 25, 1045-1057.  
http://dx.doi.org/10.1109/TPWRD.2009.2035917</mixed-citation></ref><ref id="scirp.68200-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Kamel, A.M. and Ortmeyer, T.H. (1989) Harmonic Reduction in Single-Phase Inverter Using a Parallel Operation Technique. Fourth Annual IEEE Conference Proceedings in Applied Power Electronics Conference and Exposition, Baltimore, 13-17 March 1989, 101-108. http://dx.doi.org/10.1109/APEC.1989.36957</mixed-citation></ref><ref id="scirp.68200-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Kim, H. and Erickson, R. (2014) Design of EMI Filters Having Low Harmonic Distortion in High-Power-Factor Converters. IEEE Transactions on Power Electronics, 29, 3403-3413. http://dx.doi.org/10.1109/TPEL.2013.2281174</mixed-citation></ref><ref id="scirp.68200-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kim, H. and Sul, S.-K. (2011) A Novel Filter Design for Output LC Filter of PWM Inverters. Journal of Power Electronics, 11, 4-8. http://dx.doi.org/10.6113/jpe.2011.11.1.074</mixed-citation></ref><ref id="scirp.68200-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Reddy, B.G. and Maheswari, L. (2016) Harmonics Reduction of a Single Phase Half Bridge Inverter. International Journal of Science, Engineering and Advanced Technology, 4, 10-13.</mixed-citation></ref><ref id="scirp.68200-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Gaurav, T., Pankaj, G., Nilesh, W. and Nitin, P. (2013) A Review on Ripple Current Reduction Technique with Active Power Filter. International Journal of Engineering and Computer Science, 2, 1457-1464.</mixed-citation></ref><ref id="scirp.68200-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Anooja, C.L. and Leena, N. (2013) Single Phase Shunt Active Filter with Fuzzy Controller for Harmonic Mitigation. International Journal of Scientific &amp; Engineering Research, 4, 445-451.</mixed-citation></ref><ref id="scirp.68200-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Jain, A. and Jain, S. (2015) Harmonic Reduction Technique in Inverter with Different Techniques Including Fuzzy Logic Controller. International Journal of Science and Research, 4, 1819-1823.</mixed-citation></ref><ref id="scirp.68200-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Balasubramanian, R., Parkavi Kathirvelu, K., Sathishkumar, K., Amirtharajan, R. and Palani, S. (2014) Fuzzy Based Single Phase Double-Tuned Current Source Inverter with Reduced Harmonics for Microgrid. Journal of Applied Sciences, 14, 2098-2108. http://dx.doi.org/10.3923/jas.2014.2098.2108</mixed-citation></ref><ref id="scirp.68200-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Mazumder, S., Dutta, S. and Samanta, A. (2015) Design of Inverters with Harmonics Reduction Technique Using Artificial Neural Network. International Journal of Innovation Science, Engineering and Technology, 2, 194-199.</mixed-citation></ref><ref id="scirp.68200-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Liang, T.-J., O’Connell, R.M. and Hoft, R.G. (1997) Inverter Harmonic Reduction Using Walsh Function Harmonic Elimination Method. IEEE Transactions on Power Electronics, 12, 971-982. http://dx.doi.org/10.1109/63.641495</mixed-citation></ref><ref id="scirp.68200-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Rode, S.V. and Ladhake, S.A. (2011) A Revision Technique for Reduction of Harmonic Distortion. International Journal of Electrical and Power Engineering, 5, 62-64. http://dx.doi.org/10.3923/ijepe.2011.62.64</mixed-citation></ref><ref id="scirp.68200-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Shindo, T., Kurihara, T., Taguchi, H. and Jinno, K. (2011) Particle Swarm Optimization for Single Phase PWM Inverters. IEEE Congress on Evolutionary Computation, New Orleans, 5-8 June 2011, 2501-2505.  
http://dx.doi.org/10.1109/cec.2011.5949928</mixed-citation></ref><ref id="scirp.68200-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Shindo, T. and Jinno, K. (2014) Switching Angles Optimization of Single Phase PWM DC-AC Inverter by Particle Swarm Optimization. Journal of Advanced Computation Intelligence and Intelligent Informatics, 18, 435-442.  
http://dx.doi.org/10.20965/jaciii.2014.p0435</mixed-citation></ref><ref id="scirp.68200-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Yahia, H., Liouane, N. and Dhifaoui, R. (2010) Weighted Differential Evolution Based PWM Optimization for Single Phase Voltage Source Inverter. International Review of Electrical Engineering, 9, 125-130.</mixed-citation></ref><ref id="scirp.68200-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Narish Kumar, V., Lavanya, G., Kumar, P., Abuzaid, S. and Ramkumar, B. (2014) Harmonic Reduction Technique in Solar Inverters. Interntional Journal of Engineering Science Research, 4, 241-247.</mixed-citation></ref><ref id="scirp.68200-ref19"><label>19</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Tutkun</surname><given-names> N. </given-names></name>,<etal>et al</etal>. (<year>2011</year>)<article-title>Improved Power Quality in a Single Phase PWM Inverter Voltage with Bipolar Notches through the Hybrid Algorithms</article-title><source> International Journal on Expert Systems with Applications</source><volume> 37</volume>,<fpage> 5611</fpage>-<lpage>5620</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.68200-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Oliva, A., Chiacchiarini, H., Aymonino, A. and Mandolesi, P. (2005) Reduction of Total Harmonic Distortion in Power Inverters. Latin American Applied Research, 35, 89-93.</mixed-citation></ref><ref id="scirp.68200-ref21"><label>21</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ali Ebrahim</surname><given-names> E. </given-names></name>,<etal>et al</etal>. (<year>2015</year>)<article-title>Power-Quality Enhancer Using an Artificial Bee Colony-Based Optimal-Controlled Shunt Active-Power Filter</article-title><source> WSEAS Transactions on Systems</source><volume> 14</volume>,<fpage> 91</fpage>-<lpage>101</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.68200-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Dervis, K. and Akay, B. (2009) A Comparative Study of Artificial Bee Colony Algorithm. Applied Mathematics and Computation, 214, 108-132. http://dx.doi.org/10.1016/j.amc.2009.03.090</mixed-citation></ref><ref id="scirp.68200-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Dervis, K. and Basturk, B. (2007) A Powerful and Efficient Algorithm for Numerical Function Optimization: Artificial Bee Colony (ABC) Algorithm. Journal of Global Optimization, 39, 459-471.  
http://dx.doi.org/10.1007/s10898-007-9149-x</mixed-citation></ref><ref id="scirp.68200-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Patel, H. and Vaghela, D. (2015) Design and Development of Online UPS Using PIC Microcontroller. International Research Journal of Engineering and Technology, 2, 429-431.</mixed-citation></ref><ref id="scirp.68200-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Microchip Technology Incorporated (2005) High Performance Digital Signal Controllers. DsPIC30F4011/4012 Data sheet, pp. 1-4.</mixed-citation></ref><ref id="scirp.68200-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">Milan, V. (2008) PIC Microcontrollers. Mikroelektronika.</mixed-citation></ref></ref-list></back></article>