Fuzzy Hysteresis Current Controller for Power Quality Enhancement in Renewable Energy Integrated Clusters

: Steady increase in electricity consumption, fossil fuel depletion, higher erection times of conventional plants, etc., are encouraging the use of more and more onsite renewable energy. However, due to the dynamic changes in environmental factors as well as the customer load, renewable energy generation is facing issues with reliability and quality of the supply. As a solution to all these factors, renewable energy integrated cluster microgrids are being formed globally in urban communities. However, their effectiveness in generating quality power depends on the power electronic converters that are used as an integral part of the microgrids. Thus, this paper proposes the “Fuzzy Hysteresis Current Controller (FHCC)-based Inverter” for improving the power quality in renewable energy integrated cluster microgrids that are operated either in grid-connected or autonomous mode. Here, the inverter is controlled through a fuzzy logic-based hysteresis current control loop, thereby achieving superior performance. System modelling and simulations are done using MATLAB/Simulink ® . The performance analysis of the proposed and conventional inverter conﬁgurations is done by computing various power quality indices, namely voltage characteristics (swell, sag, and imbalance), frequency characteristics (deviations), and total harmonic distortion. The results reveal that the proposed FHCC-based inverter achieves a better quality of power than the traditional ST-PWM-based multilevel inverter in terms of IEEE/IEC/EN global standards for renewable energy integrated cluster microgrids application.


Introduction
Energy is a key component of any country's economic development. In the twenty-first century, people in both urban and rural areas around the world have higher and more sophisticated demands for their quality of life. Urbanization is expected to account for and non-linear loading situations were used to assess the performance of the suggested topology. In [15], the impact of power quality in a freestanding microgrid system (comprising solar, wind, and fuel cell-based DGs) in the presence of a shunt active power filter is explored. Traditional synchronous reference frame and modified synchronous reference frame techniques for reference current generation, and proportional-integral controllers, fuzzy logic controllers for DC-link capacitor voltage regulation, were used. Moreover, a basic hysteresis band current controller technique was used for inverter switching pulse generation. Further, in [16], the authors proposed an improved DPCC for enhancing power quality in a multi-microgrid system in its islanded and interconnected mode of operation. Later, the analysis of a proportional resonant (PR) controller and a selective harmonic compensator (SHC) for a standalone distributed generation inverter is presented. In addition, they proposed and developed an improved triple-action controller (TAC) design. To produce seamless sinusoidal voltage, the suggested TAC consists of a conventional PR, SHC, and a feed-forward current controller [17]. Moreover, in [18], the authors introduced a revolutionary "smart branch" that compensates for diverse power quality disruptions. This contains a series transformer whose secondary impedance is regulated indirectly by voltage injection. This "smart branch" can be regulated adaptively. It is flexible and uses a finite control set-model predictive controller. In [19], the authors provided a wavelet-fuzzy power quality diagnosis approach for evaluating the power quality impact of steady-state (stationary) events in AC microgrids while taking power level penetration into account. The suggested method uses wavelet packet-based signal processing to compute the root mean square and steady-state power quality indices of observed voltages and currents, resulting in accurate findings even in the presence of transient disturbances.
In addition to inverter topologies, certain optimization strategies for sending quality power to the consumer's side were considered in this literature. In this regard, the authors in [20] proposed an improved current control strategy for a multilayer converter. In online harmonic compensation applications in microgrids, the control method will overcome earlier control systems' inefficiency in tracking harmonic current. This control method works with multi-functional DG converters that are grid-connected. The coefficients of proportional plus integral controllers and filter parameters of photovoltaic fed distributed static compensators were optimized using a new optimization technique called JAYA. It is unaffected by algorithm-specific control parameters. It overcomes other people's restrictions in terms of achieving global optima with less computational effort, as discussed in [21]. Later, in [22], the authors examined several power quality parameters in offgrid systems and proposed three evaluation criteria for estimating the performance of a novel forecasting model that incorporates all of the power quality characteristics. These standards are based on standard statistical evaluations of computer models in the field of machine learning.
The work cited above mainly focuses on power quality issues in a single microgrid that is either autonomous or grid-connected, and solutions to interoperable multi-microgrid systems are very limited. Furthermore, the majority of these solutions did not consider all aspects of the power quality issue. Further, the constant growth of regulations governing how energy is created and consumed necessitates the continuing search for innovative and effective solutions. In light of all of these considerations, this paper: Proposes the idea of interoperating many adjacent microgrids in an urban energy community to form a renewable-energy-based microgrid cluster. This increases the energy availability, thereby improving the power supply reliability by allowing the cluster to manage its own energy requirement rather than relying on the utility grid; Proposes a new inverter control mechanism, namely "Fuzzy Hysteresis Current Controller-based Pulse Width Modulation (FHCC-PWM)", which improves the power supply quality. The proposed fuzzy logic improves the control loop ability to regulate the system under variety of operating conditions. Based on this objective, the rest of the paper is organized as follows: Section 2 describes the system of cluster microgrids with a description of conventional and proposed inverters, their other constituents, and various performance measures. Section 3 describes the concept and implementation of the proposed FHCC. Section 4 provides the results and their corresponding discussion, followed by conclusions in Section 5.

Description of the Components Present in Cluster Microgrids
The general architecture of the cluster microgrid system under consideration is depicted in Figure 1, which is made up of four separate green buildings with varied load profiles: residential, software, academic institute, and manufacturing enterprises. Each building is referred to as a single microgrid and is connected to locally available renewable energy sources, such as photovoltaics, wind turbines, and fuel cells, as well as storage batteries, DC/DC converters [11,14,23], power electronic-based inverters, and local building loads (Appendix A). supply quality. The proposed fuzzy logic improves the control loop ability to regulate the system under variety of operating conditions.
Based on this objective, the rest of the paper is organized as follows: Section 2 describes the system of cluster microgrids with a description of conventional and proposed inverters, their other constituents, and various performance measures. Section 3 describes the concept and implementation of the proposed FHCC. Section 4 provides the results and their corresponding discussion, followed by conclusions in Section 5.

Description of the Components Present in Cluster Microgrids
The general architecture of the cluster microgrid system under consideration is depicted in Figure 1, which is made up of four separate green buildings with varied load profiles: residential, software, academic institute, and manufacturing enterprises. Each building is referred to as a single microgrid and is connected to locally available renewable energy sources, such as photovoltaics, wind turbines, and fuel cells, as well as storage batteries, DC/DC converters [11,14,23], power electronic-based inverters, and local building loads.  Microgrid 1 (residential building) consists of a solar photovoltaics and battery storage system with a generation capacity of 4.5 kW to supply a local baseload of 40 kVA. Microgrid 2 (software building) consists of wind sources and fuel cells as the energy sources with the generation capacity of 2.5 kW to supply the local building loads of 38.5 kVA. Microgrid 3 (academic institute building) consists of solar photovoltaics, wind sources as the energy sources, and a battery as a storage system with a generation capacity of 4.25 kW to supply the local building loads of 57 kVA. Microgrid 4 (manufacturing enterprises building) consists of solar photovoltaics, fuel cells as the energy sources, and also consists of a battery Sustainability 2022, 14, 4851 5 of 22 as a storage system with a generation capacity of 4 kW to supply the local building loads of 60 kVA. A DC bus is modelled in this work to supply 500 V DC voltage to the inverter to produce a corresponding AC voltage of 415 V at the output. The proposed microgrid cluster requires an energy management and control unit (EMCU) to make the power transactions with adjacent microgrids/utility grid during power excess/deficit conditions. In this cluster, four microgrids are interconnected with interoperability, where each microgrid in the cluster is associated with a local agent controller that communicates with neighborhood microgrids and also with the utility grid for energy transactions through EMCU.

Description of ST-PWM Based Multilevel Inverter
The power electronic inverter is crucial in renewable energy-based power systems. In general, two-level inverters are widely used in many industrial applications, such as traction drives, renewable energy integration, and also in high-voltage DC transmission. However, these two-level inverters are facing some serious issues, such as high switching frequencies, high switching losses, and also non-availability of high power devices. These issues are overcome by using multilevel inverters. Hence, the RES-generated DC power is fed to AC loads via a traditional multi-level inverter, which is connected to the point of common coupling (PCC). In this work, a three-phase, five-level diode clamped inverter is modelled for the analysis of an interconnected microgrid clustering system considered for the study. It consists of four DC-link capacitors and 28 switching devices that operate at a switching frequency of 100 kHz [23]. The main function of clamping diodes is to obtain clamped voltage with different DC voltage levels. For creating required switching pulses, the inverter in a cluster microgrid system is first developed using sinusoidal triangular pulse width modulation (ST-PWM) control. The configuration, generation of gate pulses for one leg, and the output voltage per phase of the ST-PWM-based multilevel inverter are shown in Figure 2. Similarly, the switching logic for its operation is given in Table 1.

Description of Proposed FHCC Based Inverter
The multi-level inverter is sufficient for improving power quality, but as we get to higher levels, switching losses grow, the control structure becomes more complex, and the system becomes bulky and more expensive. All of these issues are reduced with the suggested inverter, which is controlled by machine learning technique, namely "Fuzzy Logic-based Hysteresis Current Controller (FHCC)", to control the multi-level inverter for improved power quality. The proposed inverter is designed as a current-controlled voltage source converter, reducing the need for clamping diodes and capacitors. A detailed description of this suggested controller is explained in Section 3.

Description of Energy Management Control Unit (EMCU)
An energy management control unit (EMCU) is an information system on a software platform that supports the functionality of providing low-cost generation, transmission, and distribution of electrical energy, according to the international standard IEC 61970. In microgrids, energy management is a computer-based control strategy that ensures the system's best performance. A microgrid must optimize the use of renewable energy sources in a variety of ways. The EMCU components that carry out decision-making procedures include machine interfaces and SCADA (Supervisory Control and Data Acquisition Systems). Therefore, in this article, an effective EMCU called two-layer energy management control is adopted [23], which is incorporated in the proposed cluster microgrid system for managing the resources connected in all microgrids. This makes smooth energy transactions and also maintains grid frequencies under various loading conditions.

Description of Proposed FHCC Based Inverter
The multi-level inverter is sufficient for improving power quality, but as we get to higher levels, switching losses grow, the control structure becomes more complex, and the system becomes bulky and more expensive. All of these issues are reduced with the suggested inverter, which is controlled by machine learning technique, namely "Fuzzy Logic-based Hysteresis Current Controller (FHCC)", to control the multi-level inverter for improved power quality. The proposed inverter is designed as a current-controlled voltage source converter, reducing the need for clamping diodes and capacitors. A detailed description of this suggested controller is explained in Section 3.

Description of Energy Management Control Unit (EMCU)
An energy management control unit (EMCU) is an information system on a software platform that supports the functionality of providing low-cost generation, transmission, and distribution of electrical energy, according to the international standard IEC 61970. In microgrids, energy management is a computer-based control strategy that ensures the system's best performance. A microgrid must optimize the use of renewable energy sources in a variety of ways. The EMCU components that carry out decision-making procedures include machine interfaces and SCADA (Supervisory Control and Data Acquisition Systems). Therefore, in this article, an effective EMCU called two-layer energy management control is adopted [23], which is incorporated in the proposed cluster microgrid system for managing the resources connected in all microgrids. This makes smooth energy transactions and also maintains grid frequencies under various loading conditions.

Performance Issues and Measures
With the high penetration of DG sources in the distribution grid, power electronicbased inverters play a very important role. These power electronic systems have nonlinear characteristics. Due to this non-linearity, several power quality issues appear on the grid side and also at the consumer premises. Therefore, in grid-connected renewable energybased microgrids, the major challenge is to keep the power quality indices in acceptable ranges, i.e., voltage characteristics such as sag/swell should be in the range of 40% as per IEC61000-4-11, voltage imbalances should be in the range of ±3% as per IEEE 1159.3 and EN 50160, frequency deviations are in the range ±2% as per IEC 61727 and IEC 61000-2-2, and harmonic distortion is in the range of 5% as per IEEE 1547.1 and IEEE-519.
Voltage sag/swell: Root mean square (RMS) value of voltage (V x RMS ) is calculated by squaring all the sampled voltages and is averaged over a window with a duration of one cycle at the sampling instant x given in Equation (1). Voltage sag and swell are the drop and rise that are observed in the RMS value of the voltage that occurs due to sudden rise and fall of the load, respectively. Voltage imbalance: It is defined as the ratio of negative sequence voltage to positive sequence voltage expressed in terms of the percentage given in Equation (2). Frequency variations: The load frequency is to be continuously monitored and maintained close to 50 Hz with the penetration of DG sources in microgrids and is given in Equation (3). Total harmonic distortion (THD): THD is the measure for the level of distortion (harmonic) present in a three-phase power system. It is calculated by measuring the ratio between the amplitudes (RMS value) of a set of total higher-frequency components with respect to harmonics and the value at fundamental frequency components given in Equations (4) and (5).
where y is the number of samples per cycle, V k is the recorded voltage waveform sample, ρ is the frequency droop coefficient of cluster microgrids, and ∆P i MG (for I = 1, 2, 3, 4 . . . ) is the real power change in the ith microgrid; V rms i and I rms i are the voltage and current components corresponding to nth harmonic, respectively. Similarly, the voltage and current components with respect to the fundamental frequency of ith microgrid are V rms f und and I rms f und .

Proposed Fuzzy Hysteresis Current Controller (FHCC)
The proposed control circuit for producing switching pulses for the inverter is shown in Figure 3. The philosophy involved is explained in the following two subsections. Section 3.1 examines the generation of reference current using SRF theory and fuzzy logic, while Section 3.2 discusses the development of switching gate pulses using a hysteresis current controller, which generates gate pulses to the inverter of the ith microgrid.

Reference (Source) Current Generation
The reference current is obtained from the voltage (source) and current (load) of ith microgrid. The set of voltages and currents are transformed α − β − o frame using Equations (6) and (7) [15]. The d-q (direct and quadrature) reference frame is obtained from the angle with respect to α − β − o frame.

Proposed Fuzzy Hysteresis Current Controller (FHCC)
The proposed control circuit for producing switching pulses for the inverter is shown in Figure 3. The philosophy involved is explained in the following two subsections. Section 3.1 examines the generation of reference current using SRF theory and fuzzy logic, while Section 3.2 discusses the development of switching gate pulses using a hysteresis current controller, which generates gate pulses to the inverter of the ith microgrid.

Reference (Source) Current Generation
The reference current is obtained from the voltage (source) and current (load) of ith microgrid. The set of voltages and currents are transformed α β ο − − frame using Equations (6) and (7) [15]. The d-q (direct and quadrature) reference frame is obtained from the angle with respect to α β ο − − frame.
, , The reference current with respect to d-axis (I * d ) was obtained as given in Equation (9). ) for meeting the losses in ith microgrid is obtained as given in Equation (10).
where, m pd , m id are PI controller gains and are tuned by fuzzy logic rules. The real power supplied by the source should be equal to the real power demand of the load in the steadystate plus a modest amount to compensate for filter losses. As a result, the DC capacitor voltage can be kept constant. In this study, a fuzzy controller is introduced to the d-axis in the d-q frame to effectively manage the active current component to keep the DC link voltage constant. The planned fuzzy controller will set the PI controller's parameters in such a way that it is utilized to manage a small amount of active current, which is subsequently regulated  (12), and the q axis reference current at p th sampling instant of ith microgrid is given in Equation (13).
By applying the reverse transformation to the above current vector, we then obtain the reference source vector as given in Equation (15). Scheme of fuzzy logic: In this scheme, the fuzzy controller of the proposed inverter is implemented by considering and evaluating some linguistic rules. The internal process of fuzzy controller is explained as follows. The input error value is calculated by taking the difference between the reference voltage (V * dc ) and sensed voltage (V dc ). Here, both input signals, i.e., e(n) and ∆e(n), are numerical variables and are transformed to linguistic variables by considering the following fuzzy sets as given. The characterization of fuzzy logic is as follows: 1.
For simplicity, the triangular membership function is considered; 3.
"Centroid method" is used for defuzzification.
Fuzzification: In this process, instead of numerical values, fuzzy uses linguistic variables. In the system, the error signal can be assigned to negative large (N -3 ), negative medium (N -2 ), negative small (N -1 ), extreme zero (E 0 ), positive small (P 1 ), positive medium (P 2 ), and positive large (P 3 ). This process converts numerical variables to linguistic variables (fuzzy numbers), and the surface plot of the fuzzy logic controller is shown in Figure 4. Rule elevation: Basic operations of fuzzy logic are needed to evaluate fuzzy set rules shown in Figure 5, which are obtained by considering "union", "intersection", and "complement" functions. Considering two fuzzy sets ( − M and − N), the universe A and the following Equations (16)- (18) are the basic relations performed on fuzzy sets.

Union operation
Intersection operation Complement operation Process of getting defuzzified output: With the process of defuzzification, a fuzzy set is converted to its crispest version. The mathematical expression for obtaining defuzzified output x * is as given in Equation (19).
bility 2022, 14, x FOR PEER REVIEW 11 of 23   Rule matrix: It is used to represent fuzzy sets and operators in the form of conditional statements. In this fuzzy logic controller, a total of 49 rules are used, and the list is given in Table 2. The fuzzy membership functions are shown in Figure 6.

Gate Pulses Generation from Hysteresis Current Controller
The hysteresis current controller can be implemented to generate the switching pulses to the inverter to obtain a faster response and is connected in each phase independently [24,25]. The conventional hysteresis current controller used in this work is shown in Figure 7. The actual current I MG,i act (t) is compared with the reference current I * MG,i re f (t) of ith microgrid, and the resultant error current signal is passed through the hysteresis current controller to produce the switching gate signals to the proposed inverter. The logic behind the generation of switching pulses of the inverter of the ith microgrid is given as follows:

Gate Pulses Generation from Hysteresis Current Controller
The hysteresis current controller can be implemented to generate the switching pulses to the inverter to obtain a faster response and is connected in each phase independently [24,25]. The conventional hysteresis current controller used in this work is shown in Figure 7. The actual current , ( )   If the error signal in phase A crosses the upper band limit of hysteresis, then the upper switch of the inverter corresponding to phase A is OFF, and the lower switch is ON. Due to this action, current starts decaying. If the error signal in phase A crosses the hysteresis lower band limit, then the lower switch of the inverter arm corresponding to phase A is turned OFF, and the upper switch is turned ON. As a result, the current again returns into the hysteresis band. Similarly, the logic for the remaining two phases can be determined.
The geometry of the hysteresis controller is shown in Figure 7. From this, the rising edge currents and falling edge currents are computed as given in Equation (20) and Equation (21), respectively, from which the hysteresis band (HB) can be calculated as in Equation (22). This is obtained by considering switching intervals t1 and t2 as shown in Figure  7, where La is phase inductance,  Figure 7, the following relations can be written as given in Equations (23) and (24):  If the error signal in phase A crosses the upper band limit of hysteresis, then the upper switch of the inverter corresponding to phase A is OFF, and the lower switch is ON. Due to this action, current starts decaying. If the error signal in phase A crosses the hysteresis lower band limit, then the lower switch of the inverter arm corresponding to phase A is turned OFF, and the upper switch is turned ON. As a result, the current again returns into the hysteresis band. Similarly, the logic for the remaining two phases can be determined.
The geometry of the hysteresis controller is shown in Figure 7. From this, the rising edge currents and falling edge currents are computed as given in Equations (20) and (21), respectively, from which the hysteresis band (H B ) can be calculated as in Equation (22). This is obtained by considering switching intervals t 1 and t 2 as shown in Figure 7 Here, t 1 and t 2 are switching intervals, and f c is the modulation frequency. By adding Equations (22) and (23) and substituting Equation (24), we arrive at Equation (25). Similarly, by substituting Equations (20)- (22) in Equation (25) and after simplification, we obtain Equation (26).
Substitute Equation (26) in Equation (27), and on simplification, we arrive at Equations (29) and (30). The hysteresis band (H B ) obtained in Equation (30) can be modulated at different instants of frequency to obtain the required gate pulses to the inverter of an ith microgrid.

Results and Discussion
The power quality using the proposed FHCC-based inverter for urban community microgrids is investigated using characteristics such as voltage swell/sag, voltage imbalance, frequency deviations, and total harmonic distortion (THD). All parameters for the proposed FHCC-based inverter for cluster microgrids have been determined and compared to the conventional inverters for cluster microgrids following IEEE/IEC standards [26][27][28][29][30][31][32][33][34][35]. Two conventional inverters are considered for the study: one is a traditional ST-PWM-based inverter [14], and the second is an FSV-PWM-based inverter [36]. MATLAB/Simulink 2021, a software with a runtime version of 9.1 for Windows 64 bit, is used to model the planned interconnected microgrid system as well as individual microgrids that are connected to the utility grid.

Analysis of Voltage Characteristics
A pure sinusoidal voltage waveform must be maintained in the microgrid cluster system; otherwise, a distorted waveform will result in unequal voltage distribution. A test load, i.e., a high impedance load, contains more reactance, e.g., 50 kW + j200 kVAR, is Sustainability 2022, 14, 4851 14 of 22 applied to the system considered for study to observe the voltage waveform shape. Figure 8 shows the shape of the voltage waveform produced at the PCC of cluster microgrids. From the result, it is observed that the proposed FHCC-based inverter produces a pure sinusoidal waveform when compared with the conventional ST-PWM-based inverter, which contains small distortions in its voltage waveform. Furthermore, voltage sag occurs when the current flowing through the impedance (source) changes abruptly, and sudden application of load or faults drains large amounts of source currents, lowering the voltage. When there is a voltage swell, removing the load quickly causes the source currents to drop, causing the voltage to rise. To observe the voltage sag, apply a single line to ground (SLG) fault near to the PCC of cluster microgrids in phase A from 0.1 s to 0.2 s with a base load of 275 kW. The Simulink results with ST-PWM-and FHCC-based inverters are shown in Figure 9.
From results, it is observed that when SLG fault is applied at 0.1 s, the voltage is dropped to 230 V in the case when THE ST-PWM-based inverter is used, and the voltage is dropped to 300 V in the case when the proposed FHCC-based inverter is used. Similarly, the sag in the case of THE ST-PWM-based inverter is observed as 42.5%, and for the FHCC-based inverter, it is observed as 25%. Further, the swell in cluster microgrids is obtained by disconnecting a portion of baseload, e.g., 75% of 275 kW from 0.3 s to 0.4 s. From the results shown in Figure 9, the swell in the cluster microgrids with ST-PWM inverter is 10 V and with the proposed inverter is 7 V. Similarly, arc furnace load is applied from 0.15 s to 0.25 s to observe the sag in cluster microgrids by considering the base load of 250 kW. The corresponding results are as shown in Figure 10, from which it is observed that the sag is 43.37% using an ST-PWM-based inverter, while it is 27.7% with the FHCCbased inverter. Furthermore, voltage sag occurs when the current flowing through the impedance (source) changes abruptly, and sudden application of load or faults drains large amounts of source currents, lowering the voltage. When there is a voltage swell, removing the load quickly causes the source currents to drop, causing the voltage to rise. To observe the voltage sag, apply a single line to ground (SLG) fault near to the PCC of cluster microgrids in phase A from 0.1 s to 0.2 s with a base load of 275 kW. The Simulink results with ST-PWMand FHCC-based inverters are shown in Figure 9.
From results, it is observed that when SLG fault is applied at 0.1 s, the voltage is dropped to 230 V in the case when THE ST-PWM-based inverter is used, and the voltage is dropped to 300 V in the case when the proposed FHCC-based inverter is used. Similarly, the sag in the case of THE ST-PWM-based inverter is observed as 42.5%, and for the FHCCbased inverter, it is observed as 25%. Further, the swell in cluster microgrids is obtained by disconnecting a portion of baseload, e.g., 75% of 275 kW from 0.3 s to 0.4 s. From the results shown in Figure 9, the swell in the cluster microgrids with ST-PWM inverter is 10 V and with the proposed inverter is 7 V. Similarly, arc furnace load is applied from 0.15 s to 0.25 s to observe the sag in cluster microgrids by considering the base load of 250 kW. The corresponding results are as shown in Figure 10, from which it is observed that the sag is 43.37% using an ST-PWM-based inverter, while it is 27.7% with the FHCC-based inverter.
In order to study the voltage imbalances through positive and negative sequence components, inject a load of j30 kVAR (inductive load) in phase A at 0.12 s along with a base load of 275 kW + j50 kVAR and a test load of j35 kVAR. The results are shown in Figure 11, from which it is observed that the voltage imbalance with the ST-PWM-based inverter is 3.06% and with the FHCC-based inverter is 2.86%. Further, the flicker impact on the system voltage was also studied. Flicker is defined as a visual impression caused by a light stimulus whose spectral component distribution changes over time [26,27]. Both the ST-PWM-based inverter and the FHCC-based inverter for cluster microgrids at PCC produce short-term flicker sensations without spectral correction as shown in Figure 12. All the results that were obtained through simulations are consolidated as given in Table 3 along with standard requirements defined by IEEE/IEC/EN.     on the system voltage was also studied. Flicker is defined as a visual impression caused by a light stimulus whose spectral component distribution changes over time [26,27]. Both the ST-PWM-based inverter and the FHCC-based inverter for cluster microgrids at PCC produce short-term flicker sensations without spectral correction as shown in Figure 12.
All the results that were obtained through simulations are consolidated as given in Table  3 along with standard requirements defined by IEEE/IEC/EN.  on the system voltage was also studied. Flicker is defined as a visual impression caused by a light stimulus whose spectral component distribution changes over time [26,27]. Both the ST-PWM-based inverter and the FHCC-based inverter for cluster microgrids at PCC produce short-term flicker sensations without spectral correction as shown in Figure 12.
All the results that were obtained through simulations are consolidated as given in Table  3 along with standard requirements defined by IEEE/IEC/EN.

Analysis of Frequency Characteristics
When the cluster microgrids are operated in grid-connected/autonomous mode, frequency is a critical parameter that must be monitored and managed continually. To observe the variation in frequency response for large impedance loads, apply a constant impedance of 275 kW + j150 kVAR − j50 kVAR in the cluster microgrids from 0 s to 0.7 s. The results obtained from the simulation are shown in Figure 13. From these results, it is identified that the settling time (0.55 s) obtained with the ST-PWM-based inverter is more when compared with the settling time (0.3 s) obtained with the FHCC-based inverter.

Analysis of Frequency Characteristics
When the cluster microgrids are operated in grid-connected/autonomous mode, frequency is a critical parameter that must be monitored and managed continually. To observe the variation in frequency response for large impedance loads, apply a constant impedance of 275 kW + j150 kVAR − j50 kVAR in the cluster microgrids from 0 s to 0.7 s. The results obtained from the simulation are shown in Figure 13. From these results, it is identified that the settling time (0.55 s) obtained with the ST-PWM-based inverter is more when compared with the settling time (0.3 s) obtained with the FHCC-based inverter. At the same time, to observe the variation in frequency response for large reactive loads, apply a load of 125 kW + j200 kVAR − j175 kVAR in the cluster microgrids and follow the below given testing procedure: 1. Switch the inductive load ON at 0.5 s and OFF at 0.8 s; 2. Switch the capacitive load ON at 1.3 s and OFF at 1.6 s: 3. Observe deviation in case of dynamic loading.
The corresponding simulation results are shown in Figure 14. From this, it is identified that the deviation is less with the FHCC-based inverter when compared with the ST-PWM-based inverter. The summary of quantitative frequency characteristics is mentioned in Table 3. At the same time, to observe the variation in frequency response for large reactive loads, apply a load of 125 kW + j200 kVAR − j175 kVAR in the cluster microgrids and follow the below given testing procedure:

1.
Switch the inductive load ON at 0.5 s and OFF at 0.8 s; 2.
Switch the capacitive load ON at 1.3 s and OFF at 1.6 s: 3.
Observe deviation in case of dynamic loading.
The corresponding simulation results are shown in Figure 14. From this, it is identified that the deviation is less with the FHCC-based inverter when compared with the ST-PWM-based inverter. The summary of quantitative frequency characteristics is mentioned in Table 3.
1. Switch the inductive load ON at 0.5 s and OFF at 0.8 s; 2. Switch the capacitive load ON at 1.3 s and OFF at 1.6 s: 3. Observe deviation in case of dynamic loading.
The corresponding simulation results are shown in Figure 14. From this, it is identified that the deviation is less with the FHCC-based inverter when compared with the ST-PWM-based inverter. The summary of quantitative frequency characteristics is mentioned in Table 3.

Analysis of THD
Total harmonic distortion (THD) is caused by nonlinear/high reactive loads in the system. To observe the effect of large resistive load on the system, the loads are injected into the system as follows: First, 250 kW is applied from 0.04 s to 0.1 s; 500 kW is applied from 0.08 s to 0.16 s; and 400 kW is applied from 0.12 s to 0.2 s. Similarly, to observe the effect of large reactive load on the system, the loads are injected into the system as follows: Switch ON j125 kVAR load at 0.12 s, and already connected −j125 kVAR load must be switched OFF at 0.12 s along with the baseload of 275 kW. The simulation results are shown in Figure 15, and the consolidated results are tabulated in Table 3.

Analysis of THD
Total harmonic distortion (THD) is caused by nonlinear/high reactive loads in the system. To observe the effect of large resistive load on the system, the loads are injected into the system as follows: First, 250 kW is applied from 0.04 s to 0.1 s; 500 kW is applied from 0.08 s to 0.16 s; and 400 kW is applied from 0.12 s to 0.2 s. Similarly, to observe the effect of large reactive load on the system, the loads are injected into the system as follows: Switch ON j125 kVAR load at 0.12 s, and already connected −j125 kVAR load must be switched OFF at 0.12 s along with the baseload of 275 kW. The simulation results are shown in Figure 15, and the consolidated results are tabulated in Table 3.

Conclusions
Thus, to address the issues associated with uncertain renewable energy sources in the distribution grid and concerns with power electronic converters, this paper implements renewable energy integrated clusters that are formed with proposed fuzzy hysteresis current controller (FHCC)-based inverter. The salient merits of this proposed system are described as follows: The proposed FHCC-based inverter is easy to build, as it does not require any clamping diodes and capacitors when compared to conventional configurations. This further reduces the switching losses. The proposed inverter employs fuzzy logic, which reduces the complexity in mathematical formulation. From results, the FHCC-based inverter: -Reduces the voltage sag to 25% when compared with conventional ST-PWMbased inverter (42.5%) and recent FSV-PWM-based inverter (29.5%) when the system is subjected to single line-to-ground fault. Similarly, it reduces the voltage sag to 27.7% when compared with conventional ST-PWM-based inverter (43.37%) and recent FSV-PWM-based inverter (38.6%) when subjected to arcing loads; -Reduces the voltage swell to 2.5% when compared with conventional ST-PWMbased inverter (4.76%) and recent FSV-PWM-based inverter (2.73%) when subjected to sudden disconnection of major part (75%) of the system load; -Reduces the voltage unbalance to 2.46% when compared with conventional ST-PWM-based inverter (3.08%) and recent FSV-PWM-based inverter (2.87%) when subjected to large reactive loads injected into the system; -Reduces the settling time of the system to 0.35 s when compared with conventional ST-PWM-based inverter (0.55 s) and recent FSV-PWM-based inverter (0.42 s); -Reduces the frequency deviation of the system to 0.3% when compared with conventional ST-PWM-based inverter (1%) and recent FSV-PWM-based inverter (0.45%); -Reduces the total harmonic distortion of the system to 3.03% when compared with conventional ST-PWM-based inverter (4.29%) and recent FSV-PWM-based inverter (3.85%) when subjected to large resistive loading. Similarly, it reduces the total harmonic distortion of the system to 2.59% when compared with conventional ST-PWM-based inverter (6.38%) and recent FSV-PWM-based inverter (4.73%) for large reactive loading.
As a result of these findings, the proposed FHCC-based inverter is determined to be the best option for improving power quality in urban community cluster microgrids.