Evaluation of a Trapezoidal Predictive Controller for a Four-Wire Active Power Filter for Utility Equipment of Metro Railway , Power-Land Substations

The realization of an improved predictive current controller based on a trapezoidal model is described, and the impact of this technique is assessed on the performance of a 2 kW, 21.6 kHz, four-wire, Active Power Filter for utility equipment of Metro Railway, Power-Land Substations.The operation of the trapezoidal predictive current controller is contrasted with that of a typical predictive control technique, based on a single Euler approximation, which has demonstrated generation of high-quality line currents, each using a 400V DC link to improve the power quality of an unbalanced nonlinear load of Metro Railway. The results show that the supply current waveforms become virtually sinusoidal waves, reducing the current ripple by 50% and improving its power factor from 0.8 to 0.989 when the active filter is operated with a 1.6 kW load. The principle of operation of the trapezoidal predictive controller is analysed together with a description of its practical development, showing experimental results obtained with a 2 kW prototype.


Introduction
The use of Active Power Filters (APFs) in the electrical grid is critical for on-land transportation applications, such as Metropolitan Railway Substations, which reduce the flowing of current harmonics caused by the increased utilization of nonlinear loads, whilst improving the power quality of the supply.APFs are an attractive solution to comply with the national and international power quality standards at every level of the network infrastructure, [1][2][3], since highperformance switching devices appear available in the market to develop power converters [4].In addition, the development of fast and versatile microprocessors has facilitated the implementation of nonlinear control techniques, and thereby, APFs are becoming accurate power processors that reshape clean sinusoidal supply currents [5][6][7][8][9].
Four-wire shunt APFs are a commonplace strategy that exhibit attractive characteristics to inject currents and reshape the line currents drawn by unbalanced nonlinear loads, whilst providing a path to cancel the neutral current by using either an additional switching limb or a split DC link [10,11].These circuits typically incur in the use of a power theory to calculate the reference currents [12], such that the filter may operate as a current amplifier that injects compensating currents to the grid, causing a complex transistor switching scheme since the generated filter currents must track the references.Predictive control is an attractive method for controlling current waveforms in three-phase converters [6,7,[13][14][15][16][17][18][19][20], since a piecewise linear model of the converter is used together with a cost function to determine an appropriate converter switching.v ge6 This paper presents the realization and experimental verification of a trapezoidal predictive current controller for a four-wire shunt APF that improves the power quality of unbalanced AC loads in contrast to the typical predictive Euler control strategy.The trapezoidal strategy relies its operation on a discrete trapezoidal linear approximation that more accurately determines the switching of the active filter for the one-step ahead current sample, such that three significant advantages are potentially exhibited: first, the trapezoidal predictive controller slightly increments the processing time without affecting the switching of the power converter; second, in contrast to the typical Euler approximation used in other works [6,7,[13][14][15][16][17][18][19][20], the trapezoidal method generates lower AC current ripple; and third, the convergence time and load operating performance are wider than those obtained using the typical predictive control strategy, which improves the reference current tracking and, therefore, the power quality.Experimental results obtained with a 2 kVA prototype are presented, demonstrating that the trapezoidal predictive control may accurately compensate the currents drawn by an unbalanced nonlinear load under static and dynamic conditions.

Four-Wire Shunt Active Filter
2.1.Circuit Description.The four-wire shunt APF is connected in parallel to the unbalanced nonlinear load as shown at the right-hand side of Figure 1, which consists of a split DC link formed by  1 and  2 which refer to the AC supply neutral node  to provide a path to mitigate a common mode current: a typical three-phase, current-feed active converter, formed by transistors  1 to  6 and diodes  1 -

Principle of Operation of the Active
Filter.The principle of operation of the APF of Figure 1 may be described using the control block diagram presented at the left-hand side of Figure 1.An instantaneous active and reactive power theory, P-Q theory block in Figure 1 [12], is used to obtain an effective calculation of the reference currents that the APF may inject to the supply to instantaneously mitigate the reactive and distorted power components, drawn by the nonlinear load, and balance the active power per phase.The P-Q theory uses the Clarke transformation of the supply voltage and load current as shown in such that the calculation of the active and reactive instantaneous powers in the 0 coordinate system is obtained as, respectively, shown in where   is the real power or internal product of the voltage and current vectors and  is the imaginary vector power or external product of the voltage and current vectors which is composed of   ,   , and  0 .Since the load uses a fourth conductor, namely, the neutral, which is very common in lowvoltage distribution system, the P-Q calculation may include both zero-sequence voltage and current as shown in (2) and (3).Therefore, the instantaneous powers defined above may be combined in a single matrix transformation as shown as follows: which is defined on the 0 reference frame.  and  are instantaneous power signals that have averaged and oscillatory components that may be used to calculate a reference current vector for the APF control system.The average of   , , corresponds to the energy per time unity that is transferred from the supply to the load and becomes the power that the system truly uses [8].In this way, the ideal condition would be to remove the oscillatory portion of the real power  and the imaginary power  of power drawn by the load, such that the calculation of the reference currents for compensating the currents drawn by the load may be given with which is represented in Figure 1 as the inverse P-Q theory block, which subtracts  from  to obtain the oscillatory component of , p.In this fashion, the reference currents of (5) are used to operate the three-phase converter of Figure 1 as a current amplifier driven by the trapezoidal predictive current controller block shown at the centre of Figure 1.

DC-Link Voltage Controller.
The APF requires a fixed DC-link capacitor voltage  greater than the peak value of the line-to-line supply voltage, for instance,  = 400 V when a 220 V, 60 Hz supply is being used.Since the shunt APF topology is identical to that of an active three-phase rectifier [14], the circuit boosts the DC-link voltage using an external voltage control loop that generates a loss power control signal,  loss , which is added to p to supply energy for the DC-link capacitor and compensate the power losses of the APF circuit.This is shown in the left bottom side of Figure 1, where a linear control loop calculates  loss using the error between the  reference,  ref , and the DC-link voltage , which is obtained adding the measured DC-link capacitor voltages, and compensating this error with   ().

DC-Link Capacitor Voltage Balancing Controller.
Since the split DC-link node  is used to draw a compensating current for the neutral wire of the supply, the DC-link capacitor voltages may become unbalanced due to the flow of a small DC current.An additional zero-sequence, balancing current,  0bal , is used after the zero-sequence reference current calculation to overcome a voltage unbalance between the capacitors of the split DC link [21].This is shown at the bottom of Figure 1, where again a linear control loop calculates  0bal by compensating the error between the DC-link capacitor voltages, V dif , with  bal ().

Discrete Linear Model of the APF Converter.
A space vector AC-side model of the APF three-phase converter is derived calculating the filter inductor voltage vector as shown in which may be solved to calculate the line current vector  →   as shown as follows: A discrete time model of ( 7) may be obtained by using the trapezoidal approximation shown in Figure 2, such that (7) becomes where  is the sampling period that must be small to obtain an accurate model approximation of the system.Since   → 8) is rewritten as follows: which may produce eight one-step ahead current vectors, 6 , and two neutral vectors,   → V 0 0 and   → V 0 7 , that are listed in Table 1 with respect to their transistor switching states, assuming the common mode voltage due to the AC neutral node connection to the DC link [15].
+1 are dispersed around the th current sample,   →  0  , as shown in 0 frame of Figure 3, such that one of these may become near to the reference current sample   →  0 *  .

Cost Function of the Current
Controller.An error current vector,   →  0  , may be used as a cost function to evaluate which of the transistor switching states causes the nearest one-step ahead current sample to   →  0 *  , such that   →  0  may be expressed as shown as follows [16]: The size of (10) may be evaluated using the Euclidean norm 2 (11) such that the minimum ‖   →  0 0−7  ‖ 2 determines the transistor switching state that may be used at the th instant to produce an appropriate three-phase, filter current tracking with respect to the current reference vector [17].

Control Algorithm of the
Four-Wire APF.Following the description given above, a flow diagram of the APF control algorithm of Figure 1 is shown in Figure 4.This diagram starts with the parameters initialization of the microcontroller and then enters to an iterative loop control cycle.In this cycle, all the voltage and currents variables are sensed, such as the supply voltage  → V  , the filter current,  →   , the load current, ⃗  Load , and the DC-link voltage, , where the AC inputs are converted to 0 plane using (1).Since the APF may operate with a distorted voltage, or high source impedance [22],  → V  is processed with a Phase Locked Loop (PLL) to obtain a clean three-phase supply and phase reference.The next process in the algorithm is the calculation of the two external voltage controllers used to maintain charged and balanced DC-link capacitors at a fixed voltage level, which contribute to calculate the reference currents through the inverse P-Q theory, ( 4) and (5).Once the reference currents are calculated, an "else-if" tree is started to process the trapezoidal predictive current controller with the eight possible transistor state combinations of the APF converter, which uses the discrete current model of ( 7) and the cost function of (10), such that eight one-step ahead current values are evaluated and then weighted against the current reference vector using (10).Finally, the converter state vector that minimizes the cost function is determined and, thereby, the algorithm applies the selected state vector to the APF converter.

Experimental Verification
4.1.Prototype Description.A 2 kVA, four-wire shunt APF prototype rig was built to evaluate the operation of the APF of Figure 1.Table 2 lists the operating parameters and components of the rig.
A 150 MHz TMS320F28335 Digital Signal Processor (DSP) was used to implement the control strategy of Figures 1  and 4 using a 32-bit data word length for floating point operations ensuring numerical stability.Additional hardware was utilized to interface the DSP with the power converter, such as voltage and current sensors, signal conditioners, IGBT drivers, and fiber optic links.The APF was operated with the aid of a PLL [22] and driven with either the trapezoidal predictive controller (9) or a typical predictive controller that uses the Euler approximation of to experimentally compare the performance.

Experimental Results
. The 2 kVA APF prototype was verified with the Euler and trapezoidal predictive current controllers and a 127 V, 60 Hz line-to-neutral supply voltage and under three nonlinear load conditions: a 1.6 kW, naturally controlled three-phase rectifier with a  filter, Figure 5(a); a 0.9 kW, four-wire unbalanced load, Figure 5(b), that consisted of two naturally controlled single-phase rectifiers, both with a  output filter and each supplied with different single phases, and a resistive load supplied with a single phase; and a 1 kW unbalanced load condition, Figure 5(c), similar to  the one used at a power substation of Line B, Metropolitan Railway of Mexico City, for powering electronic utility equipment.Figure 6(a) shows the experimental supply currents   ,   , and   and one supply phase voltage, V  , obtained with the load condition of Figure 6(a).The experimental line current waveforms were typical of a three-phase, 6-pulse rectifier without the operation of the APF, but, when the APF was turned on using the Euler predictive controller, the supply currents became virtually sinusoidal waveforms, with the supply currents Total Harmonic Distortion (THD) and the total power factor being improved from 29% to 15% and from 0.95 to 0.98, respectively, which confirmed that the APF was properly operating.Two main characteristics were found in the experimental supply current waveforms of Figure 6(a): a 4.2 kHz, high-frequency ripple and a small glitch occurring at every rising and falling slope of the load current waveform.
The first was attributed to the Euler approximation used with the predictive control switching that continuously tracks the reference currents [23], which was confirmed with a dynamic condition of stepping the output filter inductance from 50 mH to 100 mH. Figure 6(b) shows that the operation of the APF with the Euler predictive current control and the P-Q theory is maintained throughout the filter inductance step, since the sinusoidal waveform quality of the supply currents is stable as shown in Figure 6(b), ensuring reliable operation of the APF and, therefore, the predictive controller is likely to be compliant under dynamic conditions, a typical requirement for control techniques; however, the amplitude of the filter current waveforms slightly fell from 2 A to 1.5 A during the transient response, with the supply current THD being barely degraded around 24%.The second characteristic was confirmed by contrasting the measured filter current   with its digital reference   * , as shown in the left-hand side of Figure 6(c), revealing that the predictive current control slightly follows the reference during the high / periods of the load current waveforms due to the simple Euler approximation used in the algorithm, reducing the tracking accuracy of the references, and, therefore, introducing small glitches to the supply current waveforms.This undesired phenomenon was improved by changing the Euler approximation of the predictive controller to the trapezoidal technique as shown in the right-hand side of Figure 6(c), which reveals in its amplification shown in Figure 6(d) that the trapezoidal predictive controller reduces the current ripple amplitude by approximately 50%, increasing its frequency rate from 4.2 kHz to 9.5 kHz and producing a lower supply current THD, 10.2%, and a power factor of 0.989 in contrast to the Euler technique, with the supply current waveforms becoming virtually free of high-frequency glitches and ripple.Figure 7(a) shows the experimental supply currents   ,   , and   and the neutral current   obtained with the unbalanced load condition of Figure 5(b) at 0.9 kW.This figure shows that the line currents are typical of an unbalanced nonlinear load before the APF is activated, and, after the APF is on, the supply currents become virtually balanced sinusoidal waveforms of 2.4 A, with the supply current THD and the power factor being improved from an unbalanced 43% to a balanced 25% and from 0.93 to 0.972, respectively, revealing again that the active filter prototype is correctly operating with a four-wire load.In addition, the same figure shows that the power quality of the supply currents becomes much more improved when the predictive controller is changed from the Euler to the trapezoidal technique, with the supply current THD and the power factor becoming 15% and 0.98, respectively.These experimental current waveforms have again a high-frequency ripple, being 4.2 kHz when the APF is operated with the typical Euler technique and 9.5 kHz with the proposed trapezoidal strategy.In Figure 7(a), the neutral current   was virtually mitigated after the APF was activated, becoming more reduced when the APF was driven with the trapezoidal controller.This experiment revealed the effectiveness of the 4-wire, P-Q theory used in this work together with the predictive current control switching.
Figure 7(b) shows the experimental supply currents   ,   , and   and the neutral current   obtained with the front-end, controlled rectifier drive and monophasic resistive load of Figure 5(c) at 0.9 kW.Before the APF is activated, as shown in Figure 7(b), the experimental supply currents are completely unbalanced, distorted, and phase-displaced due to the biphasic connection of the front-end rectifier of the motor drive and the resistive load connection; however, when the APF is on using, firstly, the Euler predictive technique and then the trapezoidal version, the supply currents become again balanced with virtual sinusoidal waveforms, such that their THD was improved from an unbalanced 40% to a balanced 23% and 18% for the Euler and trapezoidal methods, respectively, and the power factor from 0.8 to 0.97 and 0.98 again for the Euler and trapezoidal methods, respectively.In Figure 7(b), the neutral current   was again virtually mitigated after the APF was activated, becoming almost cancelled when the APF used the trapezoidal controller.
A power analyser was used to measure the supply active power, , the supply apparent power, , the per-phase supply current THD,   THD,   THD, and   THD, and the total power factor during the experiments described above.The results are contrasted in the comparative bar plot of Figure 8 calculated with a 2 kVA APF rating, a 127 V, 60 Hz line-toneutral supply voltage, and a 400 V APF DC link. Figure 8 shows that  slightly rise by approximately 5%, 100 W, when the APF prototype was used to improve and balance the supply currents among the experiments; the additional power loss occurring in the transistors, filter inductors and DC-link capacitors of the APF converter due to the high-frequency operation.In comparison with the unbalanced load, the current THD reduction is representative when the APF is used together with the trapezoidal predictive controller to compensate the drawn currents of the balanced load as shown in Figure 8, whereas the current THD is slightly improved when the APF is used together with the Euler strategy and the load cases of Figure 5; nevertheless, the drawn current through the neutral wire is noticeably cancelled when the APF is used to correct the power quality of the four-wire AC loads of Figures 5(b) and 5(c).In contrast with the balanced load, the distribution between apparent and active power for the APF with the unbalanced load becomes equilibrated due to correction of current phase displacement.Closer inspection of the microprocessor operation revealed that the total period to perform the algorithm of Figure 4 was around 29 s with the Euler predictive controller, which is well below the sampling period to ensure minimal delay effects of the control system.Unlike the experimental verification of the Euler predictive controller, the experimental verification of the APF with the trapezoidal predictive controller resulted in a slight increment of algorithm processing time of Figure 4, from 29 s to 30 s, which was imperceptible during the experimental verification of the APF.
The presented trapezoidal predictive controller is slightly more complex than the typical predictive strategy to perform the current reference tracking and generates a slight increase of power losses, which could make it inadequate for implementation in low-rated rigs; nevertheless, the ripple current reduction, closer current tracking, and power quality   improvement are important advantages to consider over the traditional predictive controller technique.Furthermore, the digital implementation is acceptable for fast microcontrollers, such as a DSPs and hybrid digital controllers, and will be used once the trapezoidal control strategy is implemented to control other power converter systems, which would be suitable to obtain high power quality results.

Conclusions
The utilization of a trapezoidal predictive technique to generate the filter currents of a four-wire, shunt APF allows the power quality improvement of using unbalanced nonlinear loads for on-land utility applications, such that the supply currents become virtual sinusoidal waves.The latter makes the current control strategy attractive for easy and straight implementation on future power converters that require high-performance power quality; nevertheless, the control technique is suitable for a wide range of power converter applications.In this work, the trapezoidal predictive controller was experimentally verified and evaluated with the four-wire APF under three load conditions; in the first, the load was set up with a three-wire, balanced nonlinear circuit to preliminary check the basic operation of the control  technique, such that sinusoidal supply current waves were generated and the power quality was improved.A current THD of 10% and a power factor of 0.989 were measured in the first experiment showing a noticeable improvement in contrast to the traditional predictive technique.

on with h h h h h h h h h ith ith ith th th h h h h h h h h h h ith i i i h h h h h h h th h it i i ith h h h h h ith i it th h h h h h i i i ith th h h h th h th the h h h h h h h h h h h h h h h h h h h h h h h h h h h h h h h h h
In the second and third load conditions, the load was four-wire, unbalanced nonlinear load, with the load currents being much distorted and producing a neutral current path in both load conditions.The supply current waveforms were all improved and balanced when the APF and the trapezoidal predictive controller were activated, with the neutral current being mitigated; the current THD was 15% and 18%, respectively, and the power factor was 0.98 in both experiments with a 127 V, 60 Hz three-phase supply voltage.The shape of the supply current waveforms and the power quality were significantly improved in comparison with the original load currents and power quality, with the active power being slightly increased, due to the high-frequency switching losses of the APF power transistors.
The practical realization of the presented trapezoidal predictive controller could consider the use of an extended sampled-data horizon, either forward or backward, to achieve a faster convergence and reduce the current ripple amplitude.This would be convenient for developing power converters with new generation of switching power devices for other applications.

Figure 1 :
Figure 1: Four-wire shunt active filter and its corresponding control block diagram.

Figure 4 :
Figure 4: Algorithm flow diagram of the predictive current controller.

Figure 5 :
Figure 5: Nonlinear loads used to experimentally verify the APF and predictive current controller of Figure 1.(a) Balanced three-wire load, (b) unbalanced four-wire load, and (c) unbalanced load used at a Metro Power Substation.

Figure 6 :
Figure 6: Experimental verification of the APF prototype with the 1.6 kW balanced load of (a).(a) Measured waveforms V  (yellow),   (green),   (red), and   (blue) before and after the activation of the APF.(b) Measured response of V  (yellow),   (red),  Load (green), and   (yellow) to a filter inductance step from 50 mH to 100 mH.(c) Measured response of   (blue) and   (green) to a predictive current controller step from Euler to the trapezoidal approximation, which is contrasted against the reference   * (red) and load current  Load .(d) Time amplification of (c) at the instant of the predictive controller step.127 V, 60 Hz supply, 400 V APF DC link, and a 21.6 kHz APF sampling frequency.

Figure 8 :
Figure 7: (a) Measured supply current waveforms   (blue),   (yellow),   (red), and   (green) before and after the activation of the APF with the Euler and Trapezoidal predictive controllers and the load condition of Figure 5(a).(b) Measured supply current waveforms   (red),   (yellow),   (green), and   (blue) before and after the activation of the APF with the Euler and trapezoidal predictive controllers and the load condition of Figure 5(b).127 V, 60 Hz supply, 400 V APF DC link, and 21.6 kHz APF sampling frequency.
6, and three line filter inductors   used to generate the filter current = [      ]  , by the difference between the supply and converter voltage vectors

Table 1 :
Normalized converter voltage space vectors with respect to the transistor switching states.

Table 2 :
Operating parameters and components of the four-wire APF prototype.