scieee AI-readable full text Open interactive document viewer

Real-Time Selective Harmonic Mitigation Technique for Power Converters Based on the Exchange Market Algorithm

Márquez Alcaide, Abraham; León Galván, José Ignacio; Laguna García, Marta; Gonzalez Rodríguez, Francisco; Portillo Guisado, Ramón Carlos; Zafra Ratia, Eduardo; Vázquez Pérez, Sergio; García Franquelo, Leopoldo; Bayhan, Sertac; Abu-Rub, Haitham

Abstract

Hand-in-hand with the smart-grid paradigm development, power converters used in high-power applications are facing important challenges related to efficiency and power quality. To overcome these issues, the pre-programmed Pulse-Width Modulation (PWM) methods have been extensively applied to reduce the harmonic distortion with very low power switching losses for high-power converters. Among the pre-programmed PWM techniques, Selective Harmonic Elimination (SHE) has been the prevailing solution, but recently, Selective Harmonic Mitigation (SHM) stands as a superior alternative to provide further control of the harmonic spectrum with similar losses. However, the large computational burden required by the SHM method to find a solution confines it as an off-line application, where the switching set valid solutions are pre-computed and stored in a memory. In this paper, for the first time, a real-time implementation of SHM using an off-the-shelf mid-range microcontroller is presented and tested. The Exchange Market Algorithm (EMA), initially focused on optimizing financial transactions, is considered and executed to achieve the SHM targets. The performance of the EMA-based SHM is presented showing experimental results considering a reduced number of switching angles applied to a specific three-level converter, but the method can be extrapolated to any other three-level converter topology.

Full text

energies Article Real-Time Selective Harmonic Mitigation Technique for Power Converters Based on the Exchange Market Algorithm Abraham Marquez Alcaide 1,† , Jose I. Leon 1,2,∗,† , Marta Laguna 1,† , Francisco Gonzalez-Rodriguez 1,†, Ramon Portillo 1,† , Eduardo Zafra-Ratia 1,† , Sergio Vazquez 1,† , Leopoldo G. Franquelo 1,2,† and Sertac Bayhan 3,† and Haitham Abu-Rub 4,† 1Electronic Engineering Department, Universidad de Sevilla, 41004 Sevilla, Spain; [email protected]g (A.M.A.); [email protected] (M.L.); [email protected] (F.G.-R.); [email protected] (R.P.); [email protected] (E.Z.-R.); [email protected] (S.V.); [email protected] (L.G.F.) 2Department of Control Science and Engineering, Harbin Institute of Technology, Harbin 150001, China 3Qatar Environment and Energy Research Institute, Doha, Qatar; [email protected] 4Texas A&M University at Qatar, Doha, Qatar; [email protected] *Correspondence: [email protected] † These authors contributed equally to this work. Received: 9 March 2020; Accepted: 30 March 2020; Published: 2 April 2020   Abstract: Hand-in-hand with the smart-grid paradigm development, power converters used in high-power applications are facing important challenges related to efficiency and power quality. To overcome these issues, the pre-programmed Pulse-Width Modulation (PWM) methods have been extensively applied to reduce the harmonic distortion with very low power switching losses for high-power converters. Among the pre-programmed PWM techniques, Selective Harmonic Elimination (SHE) has been the prevailing solution, but recently, Selective Harmonic Mitigation (SHM) stands as a superior alternative to provide further control of the harmonic spectrum with similar losses. However, the large computational burden required by the SHM method to find a solution confines it as an off-line application, where the switching set valid solutions are pre-computed and stored in a memory. In this paper, for the first time, a real-time implementation of SHM using an off-the-shelf mid-range microcontroller is presented and tested. The Exchange Market Algorithm (EMA), initially focused on optimizing financial transactions, is considered and executed to achieve the SHM targets. The performance of the EMA-based SHM is presented showing experimental results considering a reduced number of switching angles applied to a specific three-level converter, but the method can be extrapolated to any other three-level converter topology. Keywords: power converters; harmonic distortion; pulse-width modulation; metaheuristic search algorithms 1. Introduction The design of efficient and high-performance converters for high-power applications has been a hot research topic for decades. This interest is increasing year-by-year because power converters with higher nominal power are being designed for a large number of applications. In this sense, new requirements in terms of high voltage and current ratings are leading to the use of medium-voltage high-power converter topologies for applications such as distributed generation in smart grids, high-power motor drives, the integration of Renewable Energies Systems (RES), and efficient energy transportation and distribution, among others. These new power systems are designed in order to look Energies 2020,13, 1659; doi:10.3390/en13071659 www.mdpi.com/journal/energies Energies 2020,13, 1659 2 of 17 for the highest efficiency, minimum economical cost, maximum reliability, less fossil fuel dependence, and also to mitigate the green house gas emissions and their related environmental issues [1,2]. In the power converter operation, it is important to consider the power converter topology, the controller design, and the modulation strategy to generate the final switching signals properly. In this way, according to the power converter topology, its nominal power, and some hardware limitations (such as the cooling design and the output filtering), several control and modulation strategies can be adopted [3–7]. It is important to notice that in the field of high-power applications, carrier-based modulation techniques lead to several problems that are difficult to overcome. In these applications, the power losses have to be very restricted due to the cooling system design limitations. In addition, higher switching losses cause higher junction temperatures, leading to a lifetime reduction of the power devices [ 8 ]. These facts normally force using carrier-based modulation techniques with very low switching frequency ( fcr ). However, the harmonic distortion due to the switching is located around fcr , which leads to using low-frequency output filters, which are bulky and expensive. On the other hand, carrier-less modulation techniques with reduced switching frequency stand as an alternative for high-power converters. Selective harmonic control methods such as Selective Harmonic Elimination (SHE) [ 9 ], Selective Harmonic Mitigation (SHM) [ 10 ], hybrid combinations of them, or pre-programmed PWM with optimized patterns [ 11 ] are especially relevant for such applications. These methods apply a reduced set of switching angles (usually less than ten angles) that is obtained from previous mathematical calculations in order to have a superior harmonic distortion performance with reduced losses. The switching angle sets are determined off-line due to the high computational burden to achieve proper values, and finally, they are stored in look-up tables to be applied afterwards during the converter operation. This is the reason why these methods are usually called pre-programmed. The off-line nature of the pre-programmed PWM methods represents a limitation of these techniques. This work is focused on an implementation of the SHM method in three-level converters, where the switching pattern is determined in real-time depending on the operational conditions of the power converter. Thanks to applying an advanced meta-heuristic algorithm to look for a proper solution of the switching angle set, the high computational burden required to achieve it is actually overcome. 2. Selective Harmonic Control Techniques Among the existing selective harmonic control methods, the SHE strategy and more recently the SHM technique provide output voltage harmonic control with a low number of power device commutations. In SHE and SHM, a pre-defined waveform pattern is considered defining a set of switching instants (usually called switching angles). These methods are especially well suited for high-power converters such as multilevel topologies that are specifically designed for medium-voltage applications. For instance, in Figure 1 , a three-level converter based on the Neutral-Point Clamped (NPC) topology is shown. Other multilevel converter topologies that obtain three different output voltage levels are the three-phase H-bridge converter (based on a conventional full-bridge per phase), the H-NPC (converter based on full bridges built with NPC arms), the active NPC, or the T-type converter [ 5 ]. The SHM implementation, the focus of this work, can be directly implemented in such three-level topologies by just adapting the switching signals to the specific converter topology to obtain the required output voltages. Energies 2020,13, 1659 3 of 17 0Angle (rad)2 3 Voltage (V) 0 vdc 2 -vdc 2 b a vabc,O vdc vc1 vc2 N P O 0 1 2 3 4 5 6 Figure 1. ( a ) General schematic for a three-level three-phase power convert. ( b ) Switching pattern example considering seven switching angles applied to a three-level power converter. This generalized three-level waveform shown in Figure 1 can be analyzed analytically determining each harmonic content. Using a proper mathematical optimization technique, the switching angles can be determined in order to achieve some harmonic cancellation (SHE objective) or mitigation (SHM objective). In this way, these techniques are specially well suited for high-power systems where it is critical to reduce the switching losses by optimizing the output filtering stage as well. SHE and SHM require obtaining a mathematical formulation of the power converter output voltage waveform. In this sense, it is possible to use the Fourier expansion series to obtain the harmonic description, commonly used for other power converter control approaches [ 12 , 13 ]. This mathematical tool asserts that a periodic signal can be expressed unequivocally as: v(t) = a0 2+ ∞ ∑ n=1 ancos(nωt) + bnsin(nωt), (1) where the coefficients an and bn determine the amplitude of the nth harmonic order. As is shown in Figure 1 , it is possible to force an even parity first-quarter period symmetry. This is specially advantageous because it simplifies the problem definition, making the coefficient bn zero. In this way, it is possible to re-write (1) using the normalized values of ancoefficients as follows: Hn=an vdc =4 nπ k−1 ∑ i=0 (−1)isin(nαi), (2) where k is defined as the number of switching angles in a quarter-period. Analogously, coefficient an can be zero, defining the output voltage with odd symmetry. 2.1. Selective Harmonic Elimination Method The SHE technique was introduced in the early 1970’s and provides the suppression of some specific harmonic content in the output voltage spectrum considering very limited switching losses [ 9 ]. For that, the output voltage waveform is pre-calculated according to a specific modulation index ma (defined as the ratio between the output voltage amplitude generated by the converter divided by the maximum available output voltage amplitude). In this sense, SHE enables the harmonic control Energies 2020,13, 1659 4 of 17 of fundamental components, whereas k− 1 harmonics are forced to be zero in the resulting output voltage. SHE is based on solving the following equation system:   H1  =   4 π k−1 ∑ i=0 (−1)isin(αi)  =ma   Hn  n=5,7,11,... =   4 nπ k−1 ∑ i=0 (−1)isin(nαi)  =0 (3) As is clear from (3) , the resulting system of equations is clearly non-linear, and its complexity forces the use of advanced meta-heuristic techniques and numerical approaches to find a valid solution family. Therefore, the solution set is usually obtained off-line and stored in the controller memory [ 14 ]. SHE has been successfully implemented in several high-power applications for decades where the required dynamic response is slow [ 15 – 17 ]. Currently, there is a trend of proposing an SHE implementation based on iterative methods, numerical approaches, artificial neural networks, or meta-heuristic algorithms, among others [18–21]. The increasing power demand, as well as the huge electrical grid expansion with a high penetration of renewable energy sources and energy storage systems are leading to the development of stricter grid codes to be fulfilled in order to guarantee a minimum power grid quality and stability. Grid codes usually limit the maximum value of the harmonic distortion content. For instance, Table 1 shows the grid code EN50160 combined with the CIGRE WG36-05 standard, which are the regulations for voltage supplies in low- and medium-voltage distribution grids and regarding harmonics, flicker, and unbalance. In this sense, the stiffness of SHE presents a challenge. If a power conversion system does not fulfill the corresponding grid codes, the grid operator can put a penalty or even force the power converter disconnection of the grid. SHE is able to cancel k− 1 harmonic components (usually the lower order non-double non-triple harmonics), but SHE leaves the remaining harmonic content uncontrolled; therefore, they may take very high values. In this way, to fulfill the grid standards, the power converter output filter becomes more expensive, heavy, and bulky. Table 1. Grid code EN 50160 + quality CIGRE WG36-05 standard. Harmonic Odd Non-Triple Odd Triple Even n Ln(%) n Ln(%) n Ln(%) 5 6 3 5 2 2 7 5 9 1.5 4 1 11 3.5 15 0.5 6...10 0.5 13 3 21 0.5 >10 0.2 17 2 >21 0.2 19 1.5 23 1.5 25 1.5 >25 0.2 + 32.5/n 2.2. Selective Harmonic Mitigation Method SHM considers less restrictive conditions than SHE, extending the problem definition facing multiple objectives. The idea is to keep the harmonic content below the grid code limits, forcing a harmonic spectrum shape and also considering the resulting THD [ 10 ]. The basic idea is similar to SHE, i.e., the output voltage waveform is also usually defined carrying out off-line all the calculations to determine the switching angles. However, the SHM takes into account the maximum limit of harmonic Energies 2020,13, 1659 5 of 17 distortion for each nth harmonic order ( Ln ) imposed by a specific grid code, looking for a solution of the following expressions:   ma−H1  ≤L1   Hn  n=2,...,49 ≤Ln, (4) In this way, the inherent stiff nature of SHE is removed in SHM, facing a multi-objective target. Considering previous approaches, some SHM highlights can be summarized: • It is possible to find a solution with harmonic content below the grid code for M harmonics where Mcan be greater than (k−1)when kis large. • In general, SHM obtains lower harmonic contents compared with SHE because of its less restrictive problem definition. • Using a proper definition of the cost function in the search of the switching angles, it is also possible to consider other important parameters such as the THD or other targets. SHM is able to face the existing grid codes, and it looks for maintaining all the harmonic distortion values below the limits imposed by the regulations. SHM expressions introduced in (4) lead to a complex non-linear inequation system. SHM needs to be implemented as a multi-variable multi-objective cost function to be optimized in order to fulfill the requirements. Some cost function definition approaches have been performed [ 10 , 22 ]. In addition, to determine the switching angles, different numerical techniques [ 23 ], as well as different optimization methods [ 24 ] have been applied off-line looking for the minimization of a pre-defined cost function. Regarding the cost function definition to implement the SHM method, Expression (4) is normally chosen, defining a linear quadratic cost function F that depends on the magnitude error, as proposed in [10]: F(α0,· · · ,αk−1) = 49 ∑ n=1 cnE2 n En=|Hn| − Ln(5) In order to provide extra flexibility to the method, the coefficients cn are not fixed and could change their values. In the present paper, the coefficients of the cost function are defined taking into account the following rules: • If the fundamental harmonic is above the limit, a weighting factor c1 equal to 2000 is applied. If not, c1=1. • If the grid code is not fulfilled at the jth harmonic, the weighting factor cj= 1000 is applied. If not, cj=1. It has to be noted that in some previous implementations of the SHM method, the extra term cTHDE2 THD has been added to the cost function [ 10 ]. It is important to include this term in the SHM search method in order to minimize the THD value when the number of switching angles is high (for instance, 15), which permits having all the harmonic distortion below the limits imposed by the grid code. In this case, as seven switching angles are used, it is not required to include this term in the definition of Fpresented in (5). 3. Computational Problem Statement It can be clearly noticed that Expression (5) constitutes a complex non-linear cost function to be optimized. Mathematical search algorithms such as the Exhaustive Search Algorithm (ESA) (which looks for the optimal solution by trying one-by-one all the possible solutions of a problem) are only Energies 2020,13, 1659 6 of 17 suitable when small sets of switching angles are considered. In this way, in order to face the cost function optimization problem, two different paths have been commonly followed. The first one is based on meta-heuristics algorithms, which mimic some physical patterns or biological behaviors that achieve a particular target, reducing the amount of required resources. Many of these algorithms have been developed for general-purpose applications, allowing cost function definitions as complex as required. In this way, these algorithms usually provide a solution for a wide set of problems [ 25 ]. However, these algorithms typically show a highly probabilistic behavior, and do not prove the ability to find the absolute optimal solution for a general case. Another solution with high interest in academia is neural network-based optimization. In this solution, a set of interconnected artificial neurons is trained considering the cost function of the problem. Through an intensive process of training and validation, the neural network is able to reproduce the optimum cost function. While this solution reduces the stochastic behavior of the optimization, difficulties arise from the availability of training sets, usually requiring Genetic Algorithms (GA). Neural networks have been successfully applied to the SHE problem [26]. Both methods entail a huge computational burden that makes their real-time implementation difficult because of their non-linearity nature. In this way, it is usual to apply evolutionary algorithms such as simulated annealing, Particle Swarm Optimization (PSO), and others [ 19 , 27 ]. For SHE or SHM, algorithms such as simulated annealing have been already applied. Traditionally, the angle solution set is obtained off-line considering a large set of possible cases and storing the results in large look-up tables [10]. 4. Exchange Market Algorithm Applied to SHM Among the mathematical optimization algorithms, the Exchange Market Algorithm (EMA) has shown promising results compared with other well-established optimization algorithms. The EMA is a recent continuous non-linear optimization method initially designed to optimize financial transactions between shareholders [ 28 ]. Further works have targeted particular applications as the optimization of economic dispatch, some of them related to microgrids’ management [ 29 – 32 ]. Extra details of the EMA implementation were addressed in [ 28 ]. Another recent application of EMA is related to the siting installation of energy storage systems reducing the power losses and the peak generation from the power plants in microgrids [ 33 , 34 ]. It can be said that the EMA can achieve a high performance for a wide range of applications because it combines the advantages of different metaheuristic mathematical algorithms, allowing achieving a good solution, avoiding being stuck in local minima of the cost function. As a main contribution of this work, the EMA is adapted to be used to develop a real-time implementation of the SHM method. EMA, initially developed to optimize financial transactions between shareholders, is adapted to look for the optimal switching pattern to achieve the SHM targets. In Figure 2 , the EMA flowchart was presented, and its basic idea is to reproduce the behavior of different shareholders on the stock market [28]. It has to be said that an initial approach to adapt EMA to work with the SHM method was presented in [ 35 , 36 ]. However, the adaptation of EMA was not efficient, leading to large execution times to achieve a proper solution of the switching angles. In addition, only the MATLAB implementation was presented, and an implementation in power converter microprocessor-based control platforms (which is a requirement in any industrial application) was missing. In addition, another advantage of the proposed implementation is that it considers the SHM method with a reduced number of switching angles, which is the usual case of high-power systems [ 10 ]. This usually makes the search for a proper solution difficult in terms of minimizing the harmonic distortion at specific frequencies, as well as the THD value. All these drawbacks that were barriers to solving by the previous approaches have been fixed in this version of the EMA implementation. Energies 2020,13, 1659 7 of 17 [®10 ®11 ®1k -1]Temporary solution Shareholders Ranking (Sorting F ) Evaluate Market InitEMA() Shareholders M=0 Stock ®10 ®11 ®1k-1 F1 F2 Fp ®20 ®21 ®2k-1 ®p0 ®p1 ®pk-1 Balanced Market Evolution [23] 20% High-ranked Medium-ranked Low -ranked 30% 50% Trading Market Evolution [23] High-ranked Medium-ranked Low -ranked 10% 60% 30% M=0? Shareholder population evolution calculation Evaluate Market Rank Sharedholder M =1 M =0 YES NO Figure 2. Exchange Market Algorithm (EMA) flowchart to find a solution set of switching angles that minimizes cost function F. From the shareholders’ point of view, the objective of each shareholder is to maximize the value of his/her stock gambling with other shareholders. For that, the strategy followed by each shareholder depends on the status of the stock market. Well-established (high-ranked) shareholders will interact with a few others because it is necessary to maintain their revenue as high as possible (minimizing the risky operations). On the other hand, medium-ranked shareholders will try to become high-ranked shareholders following their movements and assuming more risk in their operations. Finally, low-ranked shareholders will perform high risk operations in order to ascend to higher rankings as soon as possible. Starting the EMA execution, the algorithm needs to be initialized by defining the number of shareholders, each one with his/her stock. For the SHM problem, each shareholder considers k switching angles (which play the role of his/her stock), as well as the value of the cost function F defined in (5) with these switching angles (which play the role of the value of the stock). In addition, the shareholders need to be ranked according to the initial solution provided. All these operations are performed in the InitEMA function. The way the shareholders exchange the stock is influenced by the market. Large stock markets tend to be more stable; therefore, stock operations will be less profitable, but entail lower risks. In contrast, smaller or growing markets are more volatile, and therefore, the operations will be riskier; however, the performed operations can be more successful, leading to extra benefits. Both markets (stable and volatile markets) are implemented in the EMA algorithm shown in Figure 2 . The balanced market block reproduces the behavior of a large and stable market, which is more effective for the SHM solutions potentially close to the global cost function minimum value. On the other hand, the trading market block represents a volatile market where its behavior helps to discard a local minimum. For each EMA iteration step, the shareholders’ stock evolves following the balanced market or the trading market behaviors alternatively (using the Mvariable). • In the balanced market, the stocks of medium- and low-ranked shareholders are linearly combined with the stocks of two high-ranked shareholders. In this process, all shareholders are chosen Energies 2020,13, 1659 8 of 17 randomly. The amount of medium- and low-ranked shareholders exchanging stock, how many stocks are exchanged, and which high-ranked shareholders are combined are determined using uniformly distributed random functions. In this way, the EMA allows low- and medium-ranked shareholders to evolve to high-ranked shareholders, increasing their profits. From the numerical perspective, this mechanism tends to focus on finding the closest value to the operation currently achieved by the high-ranked shareholders. • Considering the traded market, part of the stocks of each medium- and low-ranked shareholders is randomly exchanged, whereas the high-ranked shareholders do not exchange stocks. The random component is larger for low-ranked shareholders than for medium-ranked ones. The random behavior of medium- and low-ranked shareholders is adjusted with the number of iterations, that is, for the initial iterations, the randomness is larger than for the last iterations. From the numerical point of view, the traded market behavior helps to explore new solution sets in order to avoid a local minimum. It is important to note that the shareholder population distribution is different for each market, as described in [ 28 , 29 , 31 ] and shown in Figure 2 . After shareholders interact in any market (balanced or traded), it is necessary to recalculate the value of their stock. According to these values, the shareholders are re-ranked, and the temporary solution of the EMA can be observed by sharing the information of the highest ranked shareholder. Finally, it is important to note that the EMA-based SHM is searching for the best switching angle set in a non-stop process. In fact, the operational conditions of the power converter can suddenly change. In this way, the best solution found by the EMA-based SHM method is applied each fundamental period, but the EMA algorithm is continuously running in the background, looking for potential better solutions in a never-ending searching. 4.1. EMA Tuning The EMA algorithm’s convergence and computational burden are highly dependent on the size of the population of shareholders, as well as the number of switching angles. In this way, a convergence study for the EMA-based SHM method has been performed as shown in Figure 3 . In order to study the EMA-based SHM convergence, seven switching angles ( k = 7) were considered to be applied in the SHM method. To evaluate the convergence, the SHM problem was evaluated for a modulation index equal to ma= 0.8 using as the initial solution for the switching angles a random one. The population size considered was from 10 to 110 shareholders using a step equal to one. This process was performed 50 times for each considered population size in order to minimize the randomness of the EMA algorithm in the final result. The MATLAB EMA execution time for each iteration is represented in Figure 3a. The cost function value represented in Figure 3b was obtained after 300 EMA iterations. From Figure 3b , it is possible to conclude that increasing the population size excessively did not result in a significant improvement, but the required computational burden increased, as can be observed in Figure 3a . Taking this fact into account, it is clear that a medium-size population composed between 40 and 60 shareholders exhibited a good convergence-execution time ratio. Figure 4 shows the switching angle sets calculated by the EMA algorithm for a wide range of modulation indexes considering a shareholder population size equal to 50 and seven switching angles ( k = 7). The modulation index range was defined from 0.1 to 1.2 considering a step equal to 0.01. As introduced in (5), the cost function considers harmonic distortion up to the 49 th harmonic order. As can be seen, the EMA was able to find a valid solution set for each modulation index value if these values were computed using (4). Energies 2020,13, 1659 9 of 17 0 1 2 iteration time (ms) Population size 4 6 8 10 Cost function value 10 20 30 40 50 60 70 80 90 100 110 Experimental result Interpolation b a Computer execution Figure 3. MATLAB implementation of the EMA being applied to the Selective Harmonic Mitigation (SHM) problem considering several population sizes: ( a ) EMA execution time per iteration in a computer; (b) cost function value after 300 iterations. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 0 0.4 0.8 1.2 1.6 Modulation index Switching angles (rad) ®0 ®1 ®2 ®3 ®4 ®5 ®6 Figure 4. Switching angle solution set applying the EMA with shareholder population size equal to 50 for the SHM problem with seven switching angles considering a wide range of modulation indexes from 0.1 to 1.2. In Table 2 , for comparison purposes, the average number of iterations required to obtain a valid solution for the SHM method (with seven switching angles) with different numerical approaches is summarized. In order to make a fair comparison between the methods (Particle Swarm (PSO), Genetic Algorithm (GA), and EMA), the Global Optimization Toolbox from the MATLAB environment was used to tune the parameters of PSO and GA [ 37 ]. The population was set to 100 for all the algorithms (PS, GA, and EMA). On the other hand, the parameter that controlled the early stalling in the algorithms was disabled. The initial seed for all the algorithms was a particular SHM solution obtained for a modulation index equal to 0.95. The objective of the search summarized in Table 2 was to look for a valid solution with a modulation index equal to 0.85. The maximum number of iterations was fixed to 10,000, which was a large number in order to maximize the convergence success ratio. This experiment was repeated 200 times in order to show in Table 2 representative values of the algorithms’ results. In this study, a switching angle solution set was considered valid if all the harmonics up to the 22nd order had contents below the limits imposed by the grid code. In Table 2 , the iteration time (p.u.) is also included showing the computational cost of one iteration of each approach normalized, taking into account the time of one iteration of the EMA. Furthermore, in order to consider a solution valid, the modulation index error had to be below 0.005%, and the minimum time between consecutive switching angles was three microseconds (equivalent to 0.054 degrees for a 50 Hz fundamental Energies 2020,13, 1659 16 of 17 15. Wells, J.R.; Nee, B.M.; Chapman, P.L.; Krein, P.T. Selective harmonic control: A general problem formulation and selected solutions. IEEE Trans. Power Electron. 2005,20, 1337–1345. [CrossRef] 16. Pérez-Basante, A.; Ceballos, S.; Konstantinou, G.; Pou, J.; Kortabarria, I.; d. Alegría, I.M. A Universal Formulation for Multilevel Selective-Harmonic-Eliminated PWM With Half-Wave Symmetry. IEEE Trans. Power Electron. 2019,34, 943–957. [CrossRef] 17. Hu, C.; Holmes, G.; Shen, W.; Yu, X.; Wang, Q.; Luo, F. Neutral-point potential balancing control strategy of three-level active NPC inverter based on SHEPWM. IET Power Electron. 2017,10, 1943–1950. [CrossRef] 18. Yang, K.; Hao, J.; Wang, Y. Switching angles generation for selective harmonic elimination by using artificial neural networks and quasi-newton algorithm. In Proceedings of the 2016 IEEE Energy Conversion Congress and Exposition (ECCE), Milwaukee, WI, USA, 18–22 September 2016; pp. 1–5. [CrossRef] 19. Etesami, M.H.; Vilathgamuwa, D.M.; Ghasemi, N.; Jovanovic, D.P. Enhanced Metaheuristic Methods for Selective Harmonic Elimination Technique. IEEE Trans. Ind. Inform. 2018,14, 5210–5220. [CrossRef] 20. Yang, K.; Feng, M.; Wang, Y.; Lan, X.; Wang, J.; Zhu, D.; Yu, W. Real-Time Switching Angle Computation for Selective Harmonic Control. IEEE Trans. Power Electron. 2019,34, 8201–8212. [CrossRef] 21. Dahidah, M.S.A.; Konstantinou, G.; Agelidis, V.G. A Review of Multilevel Selective Harmonic Elimination PWM: Formulations, Solving Algorithms, Implementation and Applications. IEEE Trans. Power Electron. 2015, 4091–4106. [CrossRef] 22. Napoles, J.; Watson, A.J.; Padilla, J.J.; Leon, J.I.; Franquelo, L.G.; Wheeler, P.W.; Aguirre, M.A. Selective Harmonic Mitigation Technique for Cascaded H-Bridge Converters With Nonequal DC Link Voltages. IEEE Trans. Ind. Electron. 2013,60, 1963–1971. [CrossRef] 23. Tommaso, A.O.D.; Livreri, P.; Miceli, R.; Schettino, G.; Viola, F. A novel method for harmonic mitigation for single-phase five-level cascaded H-Bridge inverter. In Proceedings of the 2018 Thirteenth International Conference on Ecological Vehicles and Renewable Energies (EVER), Monte-Carlo, Monaco, 10–12 April 2018; pp. 1–7. [CrossRef] 24. Etesami, M.H.; Ghasemi, N.; Vilathgamuwa, D.M.; Malan, W.L. On assessment of prominent heuristic methods towards selective harmonic mitigation. In Proceedings of the 2016 IEEE 2nd Annual Southern Power Electronics Conference (SPEC), Auckland, New Zealand, 5–8 December 2016; pp. 1–4. [CrossRef] 25. Boussaid, I.; Lepagnot, J.; Siarry, P. A survey on optimization metaheuristics. Inf. Sci. 2013 ,237, 82–117, doi:10.1016/j.ins.2013.02.041. [CrossRef] 26. Filho, F.J.T.; Tolbert, L.M.; Ozpineci, B. Real time selective harmonic minimization for multilevel inverters using genetic algorithm and artificial neural network angle generation. In Proceedings of the 7th International Power Electronics and Motion Control Conference, Harbin, China, 2–5 June 2012; Volume 2, pp. 895–899. [CrossRef] 27. Kundu, S.; Burman, A.D.; Giri, S.K.; Mukherjee, S.; Banerjee, S. Comparative study between different optimisation techniques for finding precise switching angle for SHE-PWM of three-phase seven-level cascaded H-bridge inverter. IET Power Electron. 2018,11, 600–609. [CrossRef] 28. Ghorbani, N.; Babaei, E. Exchange market algorithm. Appl. Soft Comput. 2014,19, 177–187. [CrossRef] 29. Ghorbani, N. Combined heat and power economic dispatch using exchange market algorithm. Int. J. Electr. Power Energy Syst. 2016,82, 58–66. [CrossRef] 30. Pourghasem, P.; Sohrabi, F.; Mohammadi-Ivatloo, B.; Abapour, M. Reliable economic dispatch of microgrids by exchange market algorithm. In Proceedings of the 2017 Smart Grid Conference (SGC), Tehran, Iran, 20–21 December 2017; pp. 1–5. [CrossRef] 31. Ghorbani, N.; Babaei, E. The exchange market algorithm with smart searching for solving economic dispatch problems. Int. J. Manag. Sci. Eng. Manag. 2017, 1–13, doi:10.1080/17509653.2017.1365262. [CrossRef] 32. Ajayi, O.; Nwulu, N.; Damisa, U. A Comparison of Exchange Market Algorithm and Ant Lion Optimizer for Optimal Economic Dispatch. In Proceedings of the 2018 International Conference on Computational Techniques, Electronics and Mechanical Systems (CTEMS), Belgaum, India, 21–22 December 2018; pp. 100–103. [CrossRef] 33. Farhadi, P.; Khandoozi, N.; Ghorbani, N. Practical installation of capacitor banks by exchange market algorithm. In Proceedings of the 2016 International Symposium on Fundamentals of Electrical Engineering (ISFEE), Bucharest, Romania, 30 June–2 July 2016; pp. 1–6. [CrossRef] Energies 2020,13, 1659 17 of 17 34. Khalili, T.; Jafari, A.; Babaei, E. Scheduling and siting of storages considering power peak shaving and loss reduction by exchange market algorithm. In Proceedings of the 2017 Smart Grid Conference (SGC), Tehran, Iran, 20–21 December 2017; pp. 1–7. [CrossRef] 35. González, F.J.; Laguna, M.; Marquez, A.; Leon, J.I.; Portillo, R.; Franquelo, L.G. Selective harmonic mitigation technique based on the exchange market algorithm for high-power applications. In Proceedings of the IECON 2017—43rd Annual Conference of the IEEE Industrial Electronics Society, Beijing, China, 29 October–1 Novemvber 2017; pp. 6488–6493. [CrossRef] 36. González, F.J.; Marquez, A.; Leon, J.I.; Vazquez, S.; Franquelo, L.G.; Yin, J. Flexible Harmonic Control for Three-Level Selective Harmonic Modulation Using the Exchange Market Algorithm. In Proceedings of the IECON 2018—44th Annual Conference of the IEEE Industrial Electronics Society, Washington, DC, USA, 21–23 Octorber 2018; pp. 5297–5302. [CrossRef] 37. MATLAB Optimization Toolbox. Available online: https://www.mathworks.com/ (accessed on 15 January 2020). 38. MatLab. MathWorks: Accelerating the Pace of Engineering and Science. 2020. Available online: https: //www.mathworks.com/ (accessed on 15 January 2020). 39. SEMIKRON. Semikron Stack. 2020. Available online: http://shop.semikron.com/Products-and-Shop/ Product-Groups/STACKs/SEMITEACH/ (accessed on 15 January 2020). 40. Texas Instruments C2000 Delfino F28377s Launchpad. 2020. Available online: http://www.ti.com/ launchpad (accessed on 15 January 2020). c 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).