1 Introduction

The use of electronic components is increasing very rapidly and this leads to the insertion of non-linear i–v characteristics in electrical power mains. This may cause poor power quality issues on both sides in the transmission and distribution of electrical power system. Linear loads draw purely sinusoidal current from power mains and the presence of higher-order harmonics is negligible (Kanjiya et al. 2013). Under similar constraints, nonlinear load generates higher-order harmonics in the supply mains and leads to severe distortion in the current waveform. The nonlinear i–v characteristic of electronic components is the responsible factor of depreciation in power quality. The presence of current harmonic affects the other sensitive appliances connected in the system network. This poor power quality issue causes the depreciation in the system reliability directly and parametric deviation. Therefore, it is necessary to reduce these harmonics from the line current and should be maintained below the permissible limit of IEEE standard 519. As per the standards, the permissible value of THD should be less than 5% for reliable system performance. Many researchers reported the power quality issue with the sheer emphasis on various affected parameters (Goswami and Goswami 2021a). Parametric disorder and time-variant analysis are crucial ones. The unequal distribution of alternating single-phase loads brings the problem of rising neutral current and unbalanced line current. Few major issues are shown in Table 1, which causes severe reliability distraction and probable fault occurrence (Goswami and Goswami 2021b).

Table 1 Reliability issue of major applications

The electronic components require a regulated dc power supply for smooth operations but due to their non-linear i–v characteristics, the ac ripples are often seen in circulating current. That may be due to voltage flickers or inadequate performance of any of the component of the regulated dc power supply. The throwback effect to supply mains causes the generation of higher-order harmonics. The affected supply current circulates through the complete system network. The sensitive components deviate from their adequate performance. The fault tolerance depends upon the device bandwidth and delicacy of the instrument (Nikum et al. 2016). Therefore, the sequential interference of higher-order harmonics in supply mains termed total harmonic distortion (THD). The mathematical analysis of THD helps to determine the parametric effect on power quality. Besides, such issues low power quality pays poorer efficiency and interferences in nearby communication distribution networks. Commercially, large industries exhibit various non-linear loads for variable frequency drives (VFD) and electrolytic refining in their massive productive applications. The generated harmonics are typically confined and required expert consultations for analysis and rectification. The parametric disorder, reliability issue and false measurement are the major domain of analysis. Initially Passive filters were used to rectify the harmonic distortions in the line current, as they were very simple, low cost, lightweight and easy to install, became more popular in the field of power quality control (Busarello et al. 2016). But, as time has changed the conventional method of filtration is no longer in use because these passive filters along with capacitor banks are tuned for some specified range of frequency also they are not able to perform well during the changes of load or system parameters. Once the passive filters are installed, it does not seem to be economic to change or replace the whole filtration system according to our requirements as they already had a lot of past investments. Alternatively, better solutions were proposed to implement control system design to reduce various issues of power quality in electrical power system, which is based on Y-D MFBT (star-delta multifunction balanced transformer), power quality improvement by THSeAF (Javadi et al. 2016) (a hybrid series active filter), power quality control by the installation of shunt compensators along with the initially installed passive filters and capacitor bank, power electronics converters, power quality control for synchronous reluctance generator fed non-linear load using distribution static compensator (DSTATCOM), active power filter with DG unit connected grid and digital current controller, SAPF based on proportional-integral, proportional-integral-derivative and FLC (Fuzzy Logic Controller) (Hu et al. 2015; Modesto et al. 2015; Varschavsky et al. 2009; Teke et al. 2011; Vijayakumar and Vijayan 2013; Zeng et al. 2014; Blair et al. 2017; Kumar and Kumar 2016; Arya et al. 2015). TS fuzzy controller seems to be relatively robust for versatile range of applications and can be implemented in controller design to reduce THD in supply mains (Lahlou et al. 2019). A SAPF based on proportional-integral, proportional-integral-derivative and FLC (Fuzzy Logic Controller) are the most recent economical approaches for conditioning supply mains under the nonlinear load applications. Effective THD minimization, parametric estimation and uncertainty in harmonic compensation are the major research gap areas (Bhende and Mishra 2006). Previously, the THD control obtained in the literature varies from 5 to 1.49% with due complexities on nonlinear load models. This manuscript analyses the issues of nonlinear loads and proposes the compensation models of PI, PID and fuzzy supervised shunt active power filters (SAPF). The harmonic compensation is proposed with respect nonlinear model and controller actions are analysed for nonlinear fixed model parameter deviation (He and Li 2014; Sinha et al. 2018a). On other hand fuzzy deals with the uncertainty of the environmental load issues. The harmonic current compensation under three supervised controllers is modelled using MatLab v.19 and then evaluated for THD control for similar load conditions. The analysis of total harmonic distortion reveals the parametric estimation of compensation of harmonically distorted current. The conception of the proposed strategy consists of compensation of distorted phase current and hence the overall current modulation for significant reduction of THD (Bonaldo et al. 2016). The proposed methodology shows a novel design of shunt active power filter with iterative control of sequential actions of PI, PID and fuzzy controllers. The successive control strategies help to analyse the tremendous improvement in power quality and system reliability. Therefore, the design and implementation of an adequate filter with an effective controller and stable parametric characteristics validate the novelty of the proposed technique (Goswami 2020; Sinha et al. 2018b; Balamurugan and Nithya 2015).

2 Current compensation model

Figure 1 presents a sytematic block diagram of the controller supervised shunt APF design strategy. The main objective of this scheme is to reduce the presence of harmonic distortions in the line current by evaluation of the present THD. This elimination helps in the generation of the pure in-phase sinusoidal waveform of a current and significant correction in power factor (Jayasankar and Vinatha 2018). An IGBT based bridge converter acts as SAPF and connected as auxiliary converter in shunt with the non-linear load main converter for the necessary rectification of dc regulation.

Fig. 1
figure 1

Block diagram of the proposed model

The SAPF is an auxiliary converter and frequently called as synchronous link converter (SLC). The non-linear component-based main converter is referred to as the main load of the system. This auxiliary converter consists of an IGBT (insulated-gate bipolar junction transistor) of estimated parameters. As a switch, IGBT restricts the power flow by adequate control of the gate terminal signal. This all explores the new control strategy for the generation of harmonic compensation by the feasible response of SAPF. This evolves the design theory of the control circuit to provide an appropriate gate pulse at a precise firing phase angle. The adequate functioning of the controller depends upon the error signal magnitude and frequency of deviation. Therefore, the action of PI, PID and fuzzy is recorded to minimize the error deviation. In response to this gentle action, the shunt APF generates a compensatory phase-synced shunt current to nullify the effect of disordered harmonic current. Additionally, transformerless SLC is used to supply an auxiliary converter for eliminating the need for bulky transformer and input power loss. Table 2 shows the values of configuration parameters that we consider as reference parameters for the proposed circuit model. This includes all the evaluated parameters of controller, load, SAPF, and load characteristics for the prescribed proposed model.

Table 2 Configuration parameters

3 Principle of control strategy

The main control strategy covers harmonic compensation through the phase synchronization process. Conceptually, the generated harmonics need to be nullified through adequate inverted phase synched current compensation. At nonlinear load, the higher-order harmonics becomes an inclusive part of the main supply current. The active filters deal in the generation of current compensation but the adequate firing of gate triggered active converter is more challenging. Here, a mathematical model of linear and non-linear load model is formulated. The effect of generation of harmonics due to nonlinear i–v characteristics is illustrated and active action is incorporated through APF triggering.

Mathematical equations describe the phenomenal validation of the compensation strategy and control action. Equation (1) indicates instantaneous values of current and voltage

$$ \left\{ \begin{gathered} I_{s} \left( t \right) = I_{m} \sin \omega t \hfill \\ V_{s} \left( t \right) = V_{m} \sin \omega t \hfill \\ \end{gathered} \right\} $$
(1)

Is′(t) is the current distortion as shown in Eqs. (2) and (3)

$$ I_{s}^{\prime } \left( t \right) = \sum\limits_{{n = 1}}^{\infty } {I_{n} \sin \left( {n\omega t + \theta _{n} } \right)} $$
(2)
(3)
(4)

In Eq. 4, we have

  • Active component (IA),

  • Reactive component (IR)

  • Harmonic component (IH)

    $$ P_{L} (t) = I_{s} ^{\prime } (t)*V_{s} (t) $$
    (5)

Further on simplification, this leads to higher-order frequency components in Eq. 6 obtained from Eq. 5. Expending this results in Eqs. 7 and 8, that is the power components present in the system.

$$ = V_{m} \sin \omega t\left[ {I_{1} \sin \omega t\cos \theta _{1} + I_{1} \sin \omega t\sin \theta _{1} + \sum\limits_{{n = 2}}^{\infty } {I_{n} \sin \left( {n\omega t + \theta _{n} } \right)} } \right] $$
(6)
$$ = V_{m} \sin \omega tI_{1} \sin \omega t\cos \theta _{1} + V_{m} \sin \omega tI_{1} \sin \omega t\sin \theta _{1} + V_{m} \sin \omega t\sum\limits_{{n = 2}}^{\infty } {I_{n} \sin \left( {n\omega t + \theta _{n} } \right)} $$
(7)
$$ = P_{F} (t) + P_{R} (t) + P_{H} (t) $$
(8)

In Eq. 8,

  • Active power PF(t),

  • Reactive power PR(t) and

  • Harmonic power PH(t).

PF(t) can calculated as in Eq. 9

$$ P_{F} (t) = V_{s} (t)*I_{A} \left( t \right) $$
(9)

where IA (t) is the desired value of current Is′′ (t) drawn by the source so that the active power is given as in Eq. 10

$$ P_{F} (t) = V_{m} \sin \omega t*I_{1} \sin \omega t\cos \theta _{1} $$
(10)
$$ I_{s} ^{{\prime \prime }} \left( t \right) = P_{F} (t)/V_{s} (t) $$
(11)
$$ I_{s} ^{{\prime \prime }} \left( t \right) = V_{m} I_{1} \sin ^{2} \omega t\cos \theta _{1} /V_{m} \sin \omega t $$
(12)
$$ I_{s} ^{{\prime \prime }} \left( t \right) = I_{1} \cos \theta _{1} \sin \omega t $$
(13)
$$ I_{s} ^{{\prime \prime }} \left( t \right) = I_{{\max }} \sin \omega t $$
(14)

On simplification, Eqs. 1014 lead to the net resultant desired compensation current after the active filter triggering as shown by Eq. (15).

$$ I_{F} (t) = - I_{R} - I_{H} $$
(15)
$$ I_{L} (t) = I_{s} (t) + I_{F} (t) $$
(16)

Finally, the output current of VSI is obtained from Eqs. 16 and 17, is called filter current IF (t), Lf and Cf and a PID controller.

$$ I_{s} (t) = I_{L} (t) - I_{F} (t) $$
(17)

Hence, from the above analysis the load current, IL(t) = \(I_{m} \sin \omega t\), the initial current offers distorted Is′(t) on non-linear load. The distortions of current components are generated as IR(t) and IH(t).

This is rectified compensation through injecting current component IF (t) supplied by SLC. Based on the above analysis the current compensation model is realized and simulated on MatLab for nonlinear load application with controller action. Additionally, the power factor measurement is another crucial attribute to validate the quality of power on nonlinear load application. Interestingly, the determination of THD is a major dependent parameter of power factor measurement. This can be determined with the help of Eq. 18 as distortion power factor (DPF)

$$ DPF = \frac{1}{{\sqrt {1 + THD^{2} } }} $$
(18)

Any significant increase in harmonic distortion results in distortion of power factor and therefore the depreciation in the quality factor of the supply power. The proposed model describes this relationship to improve power factor through reduction of THD on implementation controller supervised SAPF.

4 Results and discussions

The parametric modelling of real-time components gives an analytical and iterative approach to a performance measure. The equivalents undergo reliability test by evaluation of waveform conditioning, THD and PF. The analysis follows as.

4.1 Case-1: Linear load model

Figure 2 shows a basic building block of module conceptualization of linear load. A simple model is a circuit approach of most of the common electrical systems. In most cases, sinusoidal ac supply is fed to a linear RLC circuit and it exhibits undistorted line current. At this stage, the FFT analysis of the frequency spectrum shows 0.02% THD.

Fig. 2
figure 2

Linear load model

This analysis reveals the desirable protocols of an efficient electrical power system. Therefore, the deviations of the above standards lead to poor efficiency, performance degradation and severe fault generations. The MATLAB observations carry the study of input voltage, the mainline current and FFT analysis of THD. Figures 3 and 4 expresses the in-phase current–voltage relationship without any distortion and validates the high efficiency of the systems. Also, Fig. 5 shows the negligible presence of higher-order harmonics. The creative designs of the filter are required to optimize the essential parameters in synchronization to this linear model of the electrical power system.

Fig. 3
figure 3

At linear load line current

Fig. 4
figure 4

At linear load supply voltage

Fig. 5
figure 5

At linear load THD

4.2 Case 2: Nonlinear load model

In any electrical system, the non-linearity appears due to the presence of high-speed solid-state device switching. Here, the equivalent of SMPS is assumed as the nonlinear load to the main supply system. The converter is the core key circuit of such non-linear applications. The parameters of the converter are adjusted to about 50 Hz, 12 V, 1.2 A and 15 W adopter specifications.

Figure 6 shows the power flow model and probable occurrence of harmonic distortions. Through parametric variation of the converter, analysis shows the severe rise of THD and particularly up to 92%. Figures 7 and 8 show distorted line current and feed voltage respectively. Time variant analysis discloses the severity of the issue. The waveform of the line current concerning supply voltage deviates using high-frequency current ripples and exhibits high THD. Figure 9 shows FFT analysis of the determination of harmonic distortion. All observations at this model created an optimization need and valid compensation model.

Fig. 6
figure 6

Non-linear load model

Fig. 7
figure 7

At nonlinear load line current

Fig. 8
figure 8

At nonlinear load supply voltage

Fig. 9
figure 9

At non linear load THD

4.3 Case 3: Nonlinear load model with shunt APF and PI controller

As an essential feature, the filter should eliminate the unwanted higher-order harmonic components from the supply mains. This section explains the design implementation of a transformerless APF in shunt connection with the main converter unit, as shown in Fig. 10. The PI control unit activates the triggering of the IGBT in APF at a certain firing angle. The compensatory current from the filter interferes with to non-linear load current. If any error signal sustains at comparator of two current nodes junction, it reverts to control unit to readjust firing angle and hence filter activation.

Fig. 10
figure 10

APF with PI at non-linear load model

Repetitive iterations produce the voltage and current relationship as shown in Figs. 11 and 12. The compensation helps in the improvement of the quality of power by reduction of THD. Figure 13 shows the significant contribution of shunt active power filter with PI control to obtain 11.73% THD from 92%.

Fig. 11
figure 11

APF with PI controller line current for nonlinear load

Fig. 12
figure 12

APF with PI controller supply voltage for nonlinear load

Fig. 13
figure 13

APF with PI controller THD for nonlinear load

4.4 Case 4: Non-linear load model with shunt APF and fuzzy controller

The previous control model contributed to the significant improvement in power quality but it still needs to manage the standards. Therefore, the Fuzzy controller replaces the PI control unit in the auxiliary APF converter as shown in Fig. 14.

Fig. 14
figure 14

APF with FLC non-linear load model

Here, fuzzy control seems much effective as compared to PI with membership function 1 > μA > 0. Figures 15 and 16 shows the refined v–i relationships and FFT analysis by Fig. 17. The three time-variant analysis proves the fuzzy control as a better option for power quality improvement and it reduces the THD to 2.13%. A trade-off is maintained between system complexities and virtues of quality parameters.

Fig. 15
figure 15

APF with FLC, line current for the model with nonlinear load

Fig. 16
figure 16

APF with FLC, line voltage for the model with nonlinear load

Fig. 17
figure 17

APF with FLC, THD for the model with nonlinear load

4.5 Case 5: Non-linear load model with hybrid shunt APF and PID controller

In the sequence of consecutive amendment in the filter design, the PID controller replaces the two previous controllers as shown in Fig. 18. By the virtue of effective transient response on stability and peak overshoots of PID control unit, the IGBT firing control becomes much commendable.

Fig. 18
figure 18

APF with PID, non-linear load model

Eventually, Figs. 19 and 20 shows stable in-phase current–voltage time-variant relationship. While Fig. 21 declares a remarkable reduction in total harmonic distortion to the level of 0.49%. The proposed design strategy stands unique in its class with minimum THD and maximum power factor. Thus, implementation of the proposed filter in electrical systems supports the elimination of a wide range of THD, waveform conditioning, power factor correction, system reliability improvement and fault tolerance.

Fig. 19
figure 19

APF with PID, line current for the model with nonlinear load

Fig. 20
figure 20

APF with PID, supply voltage for the model with nonlinear load

Fig. 21
figure 21

APF with PID, FFT analysis of line current with nonlinear load

Summary of different modules explains the generation of power-quality degradation issue on extensive use of solid-state components. Liner load model and non-linear load models are compared to analyse the severity of the issue. The control strategy is applied through transformer-less SAPF filter incorporation with PI, Fuzzy and PID controller. The successive iterations lead to implementations of PI, Fuzzy and PID controller for efficient and reliable design evolution. Table 3 shows the comparative analysis of alliteration of control actions on non-linear load for the design validation of the proposed models.

Table 3 Performance comparison

Based on Table 2, the analytical graph is drawn to the rise of harmonic distortion and depreciation in system reliability as shown in Fig. 22. The comparative study of three controllers reveals that the PI controller significantly reduces the THD from 92.3 to 11.73%. This justifies its utility for a less sensitive commercial load system with low complexities. But, in the case of highly sensitive instruments with load uncertainty, the FLC proved to be a better choice. As far as minimization of THD is a prime concern, then PID shows better applicability under fixed load parameters. In favour of the real-world application, the design validation is proposed in Table 4. The proposed system is compared with the existing active current compensation techniques and appeared more appropriate for implementation. As compared to various standard literature, the proposed transformerless shunt APF with PID controller is proved much effective and applicable to conversion units of non-linear load applications.

Fig. 22
figure 22

Performance and reliability measure

Table 4 Proposed work validation

5 Conclusion

Power quality control is a key research interest for the majority of researchers. This is classified based on the category of acting devices and the application domain. The IEEE 519 standard allows devices with a maximum of 5% THD but many sensitive devices like IoT, smart power grid, and precise sensor-based may deviate from performance characteristics with this threshold. Therefore, effective THD minimization with nonlinear load application parameters was achieved in this proposed work. This work elicited the three controller action, their comparisons, and conclusive reduction of THD on the nonlinear load model. However, a comparative validation is presented to validate the proposed model. The proposed PID controlled scheme provides a minimum THD 0.49% on nonlinear load application and justifies novelty in its class of application. Additionally, for real-time load parameter variations, training data sets may be recorded and a machine learning (ML) based algorithm can be implemented to enhance system versatility. The effective utility of fuzzy control action seems more appropriate under uncertainty of load variation and this can lead to smart action through machine learning.