1 Introduction

Electrical power is an important one in our day-to-day activities, and subsequently, power quality is becoming a crucial concern due to the increased use of variable speed drives in the industrial environment. The harmonics produced by these nonlinear loads have serious effects on adjacent loads connected to the bus. To overcome the above-mentioned shortcomings, customized passive filters are normally used. However, there are few limitations with the incorporation of passive filters namely huge size, series or parallel resonance with the system impedance and harmonic compensation only for tuned frequency [1, 2].

Active power filter (APF) also known as active power line conditioner (APLC) is a vital component that eliminates the harmonics generated due to loads with nonlinear characteristics. Active power line conditioners are classified into (a) series APLC which is used for compensating voltage harmonics, (b) shunt APLC which compensates current harmonics and (c) hybrid APLC which incorporates both active and passive filters. The proposed work uses shunt APLC for compensating current harmonics generated by diode bridge rectifier and controlled rectifier which is used at the front end of many electrical drives [3].

A model predictive current controller for shunt active power filter was designed and developed by Al-Othman et al., and its performance was confirmed through simulation and experimental results [4]. A new method of harmonic measurement with mean value module was presented by Mindykowskiet et al. in ship propulsion systems using shunt APF [5]. To maintain the power factor closer to unity, a hybrid circuit with active power filtering and power factor correction was proposed by Xu et al. for marine electric network [6]. To improve power quality, a shunt APF with SRF controller was proposed and implemented by Karuppanan et al. [7]. Recently, the induction motor drives are operated at high voltage level which necessitates the utilization of APLC in high-voltage system. Conventional three-phase voltage source inverter (VSI) used in two-level APLC is suitable only for low-voltage applications due to reverse rating constraints pertaining to semiconductor switch. Hence MLI-based APLC is considered as an appropriate choice for medium- and high-voltage applications. Cascaded H-bridge-type MLI is used in this paper due to its modular structure compared to diode clamped and flying capacitor type. The application of cascaded MLI as static compensator for medium-voltage applications has been addressed by Akagi et al. [8].

A five-level MLI-based APF with hybrid frame current controller that can be directly connected to power line was proposed by Zhou et al. [9]. The voltage and current harmonics were compensated using a series APF and shunt passive filters with an interfaced photovoltaic and battery unit [10]. Different control techniques have been developed for reference current generation and capacitor DC voltage regulation which decides the compensation performance of shunt APLC. Here instantaneous active and reactive current (Id − Iq) control strategy is employed for reference current generation due to its reliable performance in steady-state and dynamic conditions. Also, its simple computation enables easy implementation to real-time applications.

For DC voltage regulation, PI controllers are normally used. However, they do not give satisfactory outcomes under transient conditions. In addition, for optimal operation, PI controller needs an accurate mathematical model; however, the electric power system is a highly nonlinear one. Consequently, several intelligent controllers were presented in the literature for DC capacitor voltage regulation [11,12,13,14,15,16]. A PI and fuzzy logic controller used for the supervision of capacitor DC-link voltage has been presented by Karuppanan et al. [17]. Suresh Mikkili et al. analyzed the performance of shunt APF with PI and fuzzy logic controller under dynamic conditions [18]. To limit the large number of fuzzy rules and fuzzy set used in Mamdani-type fuzzy logic controller, Bhende et al. proposed the use of Takagi-Sugeno-type fuzzy logic controller for shunt active power filter (SAPF) [19]. A strict feedback nonlinear system with unidentified nonlinear functions and cost function was contemplated by Kangkang Sun et al. He designed fuzzy adaptive state observer and obtained the unmeasured states. The simulation results obtained reveal that all signals in the closed-loop system are bounded, and the reference signal can also be tracked by the system output [20]. A single-phase AC to DC three-level converter with PI, fuzzy and fuzzy-tuned PI controllers were implemented using Xilinx Spartan-6 FPGA board by Gnanavadivel et al. [21]. An optimal decentralized fuzzy adaptive control scheme was suggested by Kangkang Sun et al. for interconnected large-scale nonlinear systems in strict feedback form. Moreover, the simulation result shows that there is suitable tracking of reference signal by output [22].

Zadeh proposed the concept of type-2 fuzzy PI controller in 1975 [23]. Dongrui Wu et al. explained theoretically how type-2 fuzzy PI controller handles system with nonlinearity more robust compared to type-1 fuzzy PI controller [24]. Mohammad El-Bardini et al. proved that the performance of direct adaptive IT2 fuzzy logic controller is better compared to IT2 fuzzy logic controller for multivariable anesthesia system with lots of uncertainties due to large deviations in the patient’s parameters [25]. For a system with lot of uncertainties like our electric power system, IT2 FLC gives better results. The proposed work uses IT2 FLC which can potentially yield better results compared to traditional PI and fuzzy-tuned PI controller.

Gating signal generation is another important aspect of MLI-based shunt APLC. D.G. Holmes et al. explained how harmonics can be eliminated in multi-level inverters by properly phase shifting the carrier waves [26]. There are several carrier-based PWM techniques available for multi-level inverters [27,28,29,30]. The proposed work utilizes level-shifted carrier PWM technique for pulse generation due to its ease of implementation.

In this paper, three-level cascaded H-bridge MLI is used as a shunt APLC for effective current compensation in harmonic imposed electric power network. For reference, current extraction Id − Iq (active and reactive current) theory is used and capacitor DC voltage regulation is done using conventional PI, fuzzy-tuned PI controller and IT2 FLC. Simulations are carried out in MATLAB Simulink platform, and results are compared to validate the efficacy of the proposed system with IT2 FLC. Section 2 explains the overall system configuration. The various control strategies are elucidated in Sect. 3 and Sect. 4 contribute to the simulation results and perform relative assessment.

2 System Description

The schematic of the proposed shunt APLC using three-level multi-level inverter is shown in Fig. 1. It can also be scalable for five levels, seven levels, etc. When linear load is used, the source current remains sinusoidal and there is no need for APLC. But, nowadays due to development of the power semiconductor technology, various power converters are used in several industrial applications which exhibit highly nonlinear characteristics. It makes the source current non-sinusoidal. Hence, shunt APLCs are employed to make the source current sinusoidal. In high-power applications, MLI-based APLC is preferred compared to conventional two-level VSI-based APLC as they lessen the voltage or current rating of the switches used. The capacitor voltage control at the DC side of MLI plays a substantial role in the performance of shunt APLC. In the proposed work, IT2 FLC, fuzzy-tuned PI controller and traditional PI controllers are used for capacitor DC voltage control and its performance is compared under various load conditions. For reference current extraction Id − Iq theory is used and gating signal generation is done using carrier level-shifted pulse-width modulation (CLSPWM) technique. The MLI injects the compensating current that contains 180° phase shifted harmonic component of load current at the point of common coupling (PCC) which makes the source current sinusoidal.

Fig. 1
figure 1

Schematic of MLI-based shunt APLC

3 Control Scheme of the Proposed System

3.1 I d − I q Method for Reference Current Extraction

The functioning of any APLC normally depends on the reference current extraction method employed. The numerous reference current extraction techniques available in the literature are instantaneous p–q theory, modified p–q theory, synchronous current detection method, Id − Iq control strategy, etc. In this work, Id − Iq control strategy is employed due to its superior performance under steady-state and transient condition. Figure 2 depicts the implementation of Id − Iq control strategy in APLC for reference current extraction.

Fig. 2
figure 2

Implementation of Id − Iq control strategy

Here the three-phase load currents ila, ilb and ilc are first transformed into two-phase rotating reference frame coordinates id and iq using Park’s transformation as indicated in Fig. 2. The currents id and iq consist of fundamental or dc component and oscillating or ac component as given in Eqs. (1) and (2). In Eqs. (1) and (2), \(\overline{{i_{\text{d}} }}\) and \(\overline{{i_{\text{q}} }}\) represent dc component and \(\widetilde{{i_{\text{d}} }}\) and \(\widetilde{{i_{\text{q}} }}\) represent the oscillating component of active and reactive current, respectively.

$$i_{\text{d}} = \overline{{i_{\text{d}} }} + \widetilde{{i_{\text{d}} }}$$
(1)
$$i_{\text{q}} = \overline{{i_{\text{q}} }} + \widetilde{{i_{\text{q}} }}$$
(2)

To extract the fundamental or dc component, the currents id and iq are passed through low-pass filter. The dc component of id current is then summed up with controller output id1h which takes care of the inverter switching losses. The three-phase reference currents are obtained by converting the resultant id and iq currents using inverse Park’s transformation as illustrated in Fig. 2. For appropriate synchronization, phase-locked loop (PLL) circuit is incorporated.

3.2 Pulse-Width Modulation Technique

A PWM technique in which carrier waves are level-shifted is used for generating gate pulses. It employs k − 1 carrier signals for k-level inverter. The k − 1 carrier signals have equal frequency and amplitude. They are also in phase with each other. However, the DC offset of each carrier wave is different [31,32,33]; also, compared to other PWM techniques, this is easy to implement. Figure 3 shows the implementation of level-shifted PWM technique for a three-level MLI.

Fig. 3
figure 3

Implementation of level-shifted PWM technique

3.3 Capacitor DC Voltage Control

The appropriate working of any APLC depends on the capacitor DC voltage control. The capacitor DC voltage fluctuates under dynamic load condition. To keep the capacitor voltage at a preferred value, conventionally PI controller was used. However, PI controller gains Kp and Ki do not give adequate outcomes under varying load conditions. Hence, this work proposes the use of fuzzy-tuned PI controller and IT2 FLC for DC voltage regulation that works well under steady-state and dynamic load conditions.

3.3.1 Conventional PI Controller

Figure 4 explains the operation of conventional PI controller. The voltage across capacitor is measured with the help of voltage sensor and is given to comparator block. It is then compared with the desired capacitor voltage. The comparator outputs the error voltage which is then given to PI controller that processes the error voltage. The PI controller outputs the active current required for maintaining capacitor DC voltage at its reference value. Equation (3) gives the output of the PI controller.

Fig. 4
figure 4

Conventional PI controller

$$i_{\text{dih}} = K_{\text{p}} \left( {V_{\text{dcref}} - V_{\text{dc}} } \right) + K_{i} \int {\left( {V_{\text{dcref}} - V_{\text{dc}} } \right)}$$
(3)

The traditional PI controller with gains Kp and Ki gives good results only under steady-state condition. Nevertheless, the power systems are highly nonlinear in nature. Consequently, for the tuning of PI controller, this work uses fuzzy logic controller which gives better results even under dynamic condition.

3.3.2 Fuzzy-Tuned PI Controller

The fuzzy logic concept was first proposed by Professor Zadeh in 1965 which can process partial membership function (MF) instead of crisp membership. This fuzzy-tuned PI controller is most suitable for a system with imprecise model. Figure 5 shows the schematic of fuzzy-tuned PI controller. Triangular membership function is used due to its simple implementation [34].

Fig. 5
figure 5

Schematic of fuzzy-tuned PI controller

The actual DC-link capacitor voltage and the reference voltage are compared in a comparator which gives an error voltage. The fuzzy logic controller used here has two inputs and two outputs. The two inputs are error and change in error, and the two outputs are Kp and Ki. The fuzzy logic controller has fuzzification, fuzzy inference system (FIS), rule base and defuzzification blocks. The crisp inputs given to the fuzzification block are converted into fuzzy sets of input variables. The seven linguistic variables used here for input and output are largely negative (LN), negative (N), slightly negative (SN), zero (Z), largely positive (LP), positive (P) and slightly positive (SP). The FIS block processes the input fuzzy variables based on the fuzzy IF–THEN rules and produces fuzzy output. The fuzzy rules are set such that the Kp and Ki values change in accordance with the system changes. The fuzzy rules are framed by the field experts based on their expertise. The FIS type used here is Mamdani Max–Min composition. Defuzzification block converts the fuzzy output into crisp output, and centroid defuzzification method is employed here. This self-tuned PI controller is based on fuzzy logic controller and is suitable for many industrial drives that employ highly nonlinear static converters at the front end. Figure 6 shows the structure of fuzzy-tuned PI controller.

Fig. 6
figure 6

Structure of fuzzy-tuned PI controller

Figure 7 shows the membership function plot for input variables error, change in error and output variables Kp and Ki.

Fig. 7
figure 7

Membership function plots for error, change in error, Kp, Ki

Table 1 shows the rule table for controller gains Kp and Ki used in fuzzy-tuned PI controller.

Table 1 Rule table for controller gains Kp and Ki

Figure 8 shows fuzzy surface viewer diagram for PI controller gains Kp and Ki.

Fig. 8
figure 8

Fuzzy surface viewer diagram for gain Kp and Ki

3.3.3 Interval Type-2 Fuzzy Controller

The type-1 fuzzy sets have crisp value of membership function, and consequently, it is incapable to handle system with high uncertainties. The type-2 fuzzy sets with MF as fuzzy have been developed by Zadeh. The fuzzy sets in type-2 fuzzy logic systems (FLS) are three dimensional and contain footprint of uncertainty (FOU) which allows additional degrees of freedom. Researches have shown that the type-2 FLS handles system with high uncertainties performs better compared to type-1 FLS [35,36,37]. In recent times, IT2 FLC, a special case of type-2 fuzzy, is widely used because of its reduced computational cost [38, 39]. IT2 FLC is characterized by a FOU with upper MF and lower MF. In this work, IT2 FLC is employed to regulate the capacitor DC voltage and to reduce total harmonic distortion (THD) of a system with high nonlinearity. Figure 9 shows the block diagram of an IT2 FLC which is same as that of a type-1 fuzzy logic controller except that there is an additional block called type reducer. The type reducer converts IT2 fuzzy sets into type-1 fuzzy set which is given to defuzzification block. A crisp output is obtained from the defuzzifier.

Fig. 9
figure 9

Block diagram of IT2 FLC

The simulation parameters used in MATLAB for IT2 FLC implementation are shown in Table 2.

Table 2 IT2 FLC parameters used in MATLAB

Figures 10, 11, 12, 13, 14, and 15 show IT2 fuzzy logic controller implemented in MATLAB in which membership function plots have upper limit and lower limit.

Fig. 10
figure 10

IT2 FIS Editor

Fig. 11
figure 11

IT2 Gaussian MF editor for change in  Error input

Fig. 12
figure 12

IT2 Gaussian MF editor for Error input

Fig. 13
figure 13

IT2 Gaussian MF editor for output

Fig. 14
figure 14

IT2 FLC Rule viewer diagram

Fig. 15
figure 15

IT2 FLC surface viewer Diagram

4 Performance Analysis of the Proposed System Through MATLAB Simulink

A three-phase three-level MLI-based APLC with PI controller, fuzzy-tuned PI and type-2 fuzzy controller is simulated through MATLAB Simulink, and results are analyzed with respect to THD. The nonlinear loads used here are three-phase uncontrolled rectifier and three-phase fully controlled rectifier with various firing angles. The parameters of the shunt APF system used in the simulation that are shown in Tables 3 and 4 show the THD of the system under various load conditions and various controllers. It can be inferred that IT2 fuzzy logic controller performs well compared to PI and type-1 fuzzy PI controller.

Table 3 Simulation parameters of the shunt APF system
Table 4 Simulation results under various loads

Figure 16a–c shows the grid voltage, load current, grid current, filter current and DC link capacitor voltage waveforms of a system with APLC and controlled rectifier with α = 15° as nonlinear load and PI, fuzzy-tuned PI and IT2 fuzzy logic controller, respectively.

Fig. 16
figure 16

a Voltage and current waveforms with PI controller, b voltage and current waveforms with fuzzy-tuned PI controller and c voltage and current waveforms IT2 FLC

The fast Fourier transform (FFT) analysis shows that the THD is 22.29% for a system without APLC which is shown in Fig. 17. Figure 18 shows that the THD is 5.69% with APLC and PI controller, and Fig. 19 depicts that the THD is 4.46% with APLC and fuzzy-tuned PI controller. Furthermore, Fig. 20 shows that the THD is further reduced to 3.40% with APLC and IT2 fuzzy logic controller.

Fig. 17
figure 17

FFT analysis of source current without APLC

Fig. 18
figure 18

FFT analysis of source current with APLC and PI controller

Fig. 19
figure 19

FFT analysis of source current with APLC and fuzzy-tuned PI controller

Fig. 20
figure 20

FFT analysis of source current with APLC and IT2 fuzzy logic controller

Figure 21 shows three-level MLI line side voltage. Figure 22 shows the voltage across capacitor with various controllers under transient condition. Here load current is increased from 50 to 100 A at t = 0.15 s. The capacitor voltage takes 70 ms to settle with IT2 fuzzy controller, 90 ms with type-1 fuzzy PI controller and 110 ms with PI controller.

Fig. 21
figure 21

Multi-level inverter AC side line voltage

Fig. 22
figure 22

Voltage across capacitor with PI, Fuzzy-tuned PI and IT2 fuzzy logic controller

5 Conclusion

In this work, a three-level multi-level inverter is used as a shunt APLC for harmonic minimization in high-power electric system due to nonlinear loads. The gating pulses for the MLI are generated using carrier level-shifted pulse-width modulation technique. The reference current extraction based on Id − Iq control strategy with simple algebraic calculations is employed here. The proposed system is tested under various load conditions for capacitor DC voltage control and THD reduction. The efficacy of the proposed system is tested by comparing the simulation results with conventional PI controller and fuzzy-tuned PI controller. From the simulation results, it has been shown that under steady-state condition, all the three controllers give better results. However, when there is sudden increase or decrease in load (under transient condition), there is corresponding decrease or increase in the DC-link voltage, and the time taken by DC-link voltage to reach its steady-state value is less with IT2 fuzzy controller compared to PI and fuzzy-tuned PI controller. Also the simulation results show that the THD is less with IT2 fuzzy controller compared to PI and fuzzy-tuned PI controller. So when we are dealing with highly nonlinear system such as electric power system, type-2 fuzzy controller gives better results. Also, MLI-based shunt active power line conditioner is suitable for high-power applications compared to conventional two-level VSI-based APLC. Future research work can be extended by using IT2 fuzzy adaptive optimal control technique for a system with unmeasured states.