Enhancing Power Quality in Grid-Integrated Hybrid Renewable Energy System using ANFIS-FBSO
Kategoria artykułu: Special issue paper
Data publikacji: 29 lip 2025
Zakres stron: 189 - 209
Otrzymano: 30 kwi 2025
Przyjęty: 09 lip 2025
DOI: https://doi.org/10.2478/pead-2025-0014
Słowa kluczowe
© 2025 Manpreet Singh et al., published by Sciendo
This work is licensed under the Creative Commons Attribution 4.0 International License.
In the contemporary era, the significance of renewable energy sources (RESs) has become paramount due to the environmental challenges associated with traditional energy sources. RESs, recognised for their effectiveness in reducing pollution and addressing global warming, have gained prominence (Naderi et al., 2019). The importance of distributed generation (DG) based on RES has grown alongside advancements in technology and increasing environmental awareness. Numerous optimisation strategies have been devised to effectively manage various power electronic devices, enhancing flexibility whilst integrating alternative sources such as solar, wind and batteries. This is a response to the escalating demand for power (Alshehri and Khalid, 2019; Gupta et al., 2020). DG is emerging as a pivotal solution, offering superior quality, heightened productivity and reliable electricity supply to end-users, especially considering the limitations of conventional energy sources (Reddy et al., 2019). The challenging landscape of electricity generation, driven by surging energy demand and population growth, has underscored the inadequacy of conventional sources, thereby elevating the importance of RES (Saggu et al., 2018; Samal and Hota, 2017).
To address the evolving landscape of energy needs, micro-grid (MG) systems have been introduced as a means to balance load requirements whilst incorporating RESs. However, the integration of RES into standalone MG systems presents challenges related to power quality (PQ) and stability (Elmetwaly et al., 2020; Poongothai and Srinath, 2020). Periodic fluctuations in weather affecting renewable sources and variations in load characteristics, encompassing unbalanced, non-linear and critical loads, can lead to disruptions, voltage sag, harmonics and swell within standalone MG systems. These PQ issues have repercussions, altering voltage levels on the load side and triggering load tripping, thereby compromising system dependability. Frequent tripping in a standalone MG is detrimental to system reliability and must be minimised to ensure proper functionality (Aljendy et al., 2022).
In the present era, a primary objective of electric power systems is the attainment of enhanced PQ. The significance of PQ has heightened because of the high usage of non-linear and electronically switched devices in distribution networks and industries. Consequently, consumers and facilities are adopting various compensators, including static and passive filters, to address PQ issues (Dash and Ray, 2019; Saggu et al., 2017). Emerging technologies, such as flexible AC transmission system (FACTS) and custom power devices (CPDs), offer promising solutions for electric utilities grappling with concerns related to PQ. Amongst the CPDs, the unified power quality conditioner (UPQC), distribution static compensator (DSTATCOM) and dynamic voltage restorer (DVR) are used consistently to rectify PQ issues affecting both current and voltage (Elmetwaly et al., 2022; Jeyaraj et al., 2020; Yazdi and Hosseinian, 2019). The FACTS, comprising power electronic devices such as the static synchronous series compensator (SSSC) and the unified power flow controller (UPFC), utilises voltage source converters (VSCs) based on power semiconductor components such as isolated gate bipolar transistors and gate turn-off switches. The integration of FACTS devices enhances the efficiency of power systems, offering additional advantages such as effective regulation of reactive power and voltage (Kuchibhatla et al., 2020; Naidu and Meikandasivam, 2020; Radhika et al., 2020).
Some studies have delved into PQ concerns, whilst others have focused on compensating for reactive power to improve the stability of a power system (Haq et al., 2021). In MGs, various meta-heuristic methods are used to mitigate changes in voltage and current within the system. The integration of RESs into MG aims to meet load demands influenced by diverse environmental conditions (Samal et al., 2020). Factors such as partial shadowing can impact photovoltaic (PV) systems. Consequently, techniques such as maximum power point tracking (MPPT) are crucial to maximise power generation from renewable sources such as PV and wind turbines (WTs) (Iqbal et al., 2021; Ni et al., 2022). Meta-heuristic algorithms such as particle swarm optimisation (PSO), the firefly algorithm (FA), the bat algorithm (BA), the random forest classification algorithm (Liu et al., 2019) and the object-based classification of hyperspectral data using the random forest algorithm (Amini et al., 2018) are used to extract maximum power from renewable sources and minimise voltage and current variations in MG systems (Jamil et al., 2019).
In many hybrid renewable energy system (HRES) implementations, the use of UPQC based on soft computing (SC) approaches proves more effective than traditional proportional-integral (PI) and proportional-integral-derivative (PID) controllers. However, there is a relatively limited number of studies exploring PQ issues using shunt and series FACTS devices based on SC techniques. A study has been conducted on an enhanced fuzzy-based multi-converter unified power quality conditioner (MC-UPQC) to improve PQ in grid-connected wind energy systems (WESs). The proposed controller, known as hybrid fuzzy incremental conductance-controlled MC-UPQC, incorporates fuzzy incremental conductance to find the highest power point in a wind energy conversion system (WECS). When combined with MC-UPQC, this controller enhances the WES’s connection to the grid, simultaneously compensating for voltage and current faults in nearby feeders. This setup utilises a shared DC-link capacitor amongst converters, enabling power transmission between nearby feeders (Chaudhary and Singh, 2020).
Stable management of an adaptive power quality compensator (APQC) in multi-microgrids for PQ enhancement using a puzzle optimisation approach has already been demonstrated. The APQC comprises shunt and series compensators, utilising thyristor-controlled series capacitors (TCSCs) as a series compensator and a shunt active power filter (SAPF) as a shunt compensator. TCSCs enhance the dynamic voltage profile and reduce transient voltage, whilst SAPF lowers voltage and current harmonics and improves power factor. A swarm intelligence-based puzzle optimisation method is used to identify the best PID controller for self-tuning, revealing the APQC typology (Sindi et al., 2023). Furthermore, researchers have presented an optimal power quality improvement in a hybrid fuzzy-sliding mode MPPT control-based solar PV and battery energy storage system (BESS) with UPQC. The integration of MPPT for PV systems and artificial neural network controllers (ANNCs) for UPQC series is used. Shunt active filters are used to reduce total harmonic distortion (THD) and improve power factor, ensuring a stable DC-link voltage with a brief settling point (Thangella et al., 2022).
A distributed generating system based on renewable energy using an artificial neural network (ANN)-tuned UPQC has already been developed. The primary objective is to provide better steady and dynamic state performance compared to the PID controller. The UPQC-ANN renewable system integrates a solar array and a WT into the electrical grid, improving PQ indicators such as power factor and voltage and current harmonics whilst contributing active/real power to the utility grid (Zanib et al., 2022). An ANFIS-based solar-integrated UPQC for PQ enhancement in distribution systems has already been implemented. The fuzzy model-based controller, utilising linguistic principles for inferring system parameters, enhances system performance. The PV-UPQC performs effectively under various load scenarios, minimising the THD level when using the adaptive neuro-fuzzy inference system (ANFIS, Dheeban and Selvan, 2023). A fractional order PI controller with chicken swarm optimisation (CSO) has already been designed to improve PQ in hybrid energy systems (HESs) with integrated UPQC. The proposed models for RES, such as wind energy, BESS and PV arrays, aim to provide a steady power supply. The UPQC model, with series and shunt active filter compensators, reduces harmonics contributed by non-linear loads and enhances PQ during voltage sag/swell (Yadav and Yadav, 2023). To tackle PQ issues in HRESs, an atom search optimisation (ASO) algorithm using UPQC has already been presented. The UPQC system seeks to reduce PQ problems associated with voltage and current by using a fractional order proportional integral derivative (FOPID) in series with an ASO-based controller and a SAPF. A load system linked to PV, WT and a BESS is part of the HRES design. To assess the performance of the suggested controller, non-linear loads are added to cause PQ issues (Goud and Rao, 2021).
The number of research papers has already been published on PQ enhancement in UPQC-integrated HRESs with different algorithms and different controllers. Considering the research gaps in the reviewed literature, this paper presents the PQ enhancement in HRES using a novel technique adaptive neuro-fuzzy inference system-based firebug swarm optimisation (ANFIS-FBSO) with a multi-resolution proportional-integral-derivative (MRPID) controller. To improve the flexibility and accuracy of control in non-linear, time-varying systems, the main goal of combining ANFIS and firebug swarm optimisation (FBSO) is to optimise the fuzzy rules and membership functions in ANFIS using FBSO. Because of its precision control or forecasting tasks such as energy management, state of charge (SOC) control or dynamic power allocation, this method is best suited for highly non-linear systems such as HRESs with wind, solar and battery interactions, even though it increases computational complexity and causes significant delays in the control unit’s operation.
The main contribution of this paper is to integrate the DG with the utility grid. The DG system comprises of PV, WT and BESS. The PV and WT generate the electric power as per the irradiance level and wind speed. To meet the required load demand under partial shading and environmental conditions, the BESS is used to store the extra power. PQ issues such as sag, swell and disturbances are produced in both current and voltage by applying non-linear load. A MRPID controller, along with an ANFIS-FBSO-based controller in series and a SAPF, is implemented to mitigate the PQ issues to improve the UPQC performance. The FBSO algorithm optimises the learning function of the ANFIS for optimal outcomes. The proposed technique is used to validate the achieved results in terms of voltage sag, current sag, real power, reactive power and THDs. To validate the effectiveness of the proposed approach, various cases are analysed and compared with existing techniques.
The system model depicted in Figure 1 integrates PV, WTs and batteries with a grid-connected system. These renewable energy storage systems are utilised to offset the consumer load requirements. The battery serves the dual purpose of storing excess power generated by solar panels and WTs, as well as providing essential electricity during emergencies. For steady, dependable and effective power supply in HRESs, energy management is essential. These systems have to maintain DC bus voltage, control battery SOC, optimise resource utilisation and balance variable generation from RESs with load demand. A MG’s dynamic behaviour during a fault or disturbance is dependent upon a number of variables, including the type of energy source involved, system setup, control measures and the nature of the disturbance. In the context of a HRES connected to the smart grid, the primary focus is on addressing PQ concerns, which are identified as significant contributors to instability and reliability issues. The HRES, when grid-connected, incorporates a UPQC design to alleviate PQ issues such as sag, swell and interruptions. The UPQC utilises both shunt filters and series control methods to mitigate PQ problems. The optimal gain values for the filters are determined by the MRPID controller, ensuring the injection of the necessary power to compensate for sag and swell situations. The enhanced ANFIS-FBSO algorithm contributes to optimise the MRPID control settings.

Architecture of a smart grid-connected hybrid renewable energy storage system.
Power is produced by the PV system by converting solar energy into electricity. The maximum power point tracker and DC-DC converter are incorporated into the PV system. In typical irradiance circumstances, obtaining maximum power output requires a maximum power point tracker. To maximise PV voltage and achieve the minimum power point voltage, it calculates the duty cycle for the converter. The duty cycle of a power electronic converter determines how long a converter’s switch is turned on within one switching period. It is defined as the ratio of ON period of switch to the total switching period.
Consequently, data on the electricity produced by the PV are required by the HRES. The equation for power produced by PV is given as:
The WTECS transforms kinetic energy into electrical energy. The WTECS includes the WT, shaft and permanent magnet synchronous generator (PMSG) that are utilised to produce energy. A generator and a shaft are rotated by the wind energy in a WT, which transforms mechanical energy into electrical energy. The MPPT and tip speed ratio (TSR) are the factors that regulate the WT system. The power generated by WTECS is given as:
In a smart grid, the storage system is essential because load demand may sometimes exceed PV and WTECS production. Overage electricity is chemically stored in a battery bank. Through electrochemical processes, the battery may be charged and discharged, turning chemical energy into electrical energy whilst charging and vice versa when discharging. The power needed to fulfill load demand in the event of no generating power and to store extra power above and beyond load demand is taken into account whilst designing the size of the battery storage. When generation exceeds load demand, stored power makes up for a power loss during low generation. The SOC, which may be calculated at any given time using the following equation, is used to evaluate battery performance.
Battery charging occurs when the combined power output of PV and WTECS surpasses the load requirement i.e.
The battery will be discharged when
The battery discharge rate, which is commonly represented by the C-rate or current over time, is based on how rapidly energy is extracted from the battery. C-rate, which shows how quickly a battery is depleted in relation to its maximum capacity, is expressed as
The DC bus in UPQC acts as an energy buffer between the input and output stages, keeps the voltage level steady for the inverter to operate properly, absorbs power imbalances from fluctuations in RESs and facilitates energy flow in both directions to and from energy storage (Gulzar et al., 2023). The intermittent nature of renewable sources, such as solar and wind, combined with storage, such as batteries in a hybrid renewable energy storage system, can result in changes in DC bus voltage. The shunt and series converters of UPQC exchange power primarily through the DC bus. Stability, PQ and energy management in a hybrid renewable energy storage system depend on accurate modelling and dynamic control of this DC bus (Axente et al., 2011). The dynamic behaviour of the DC bus can be expressed by the following equation
This section introduces an enhanced ANFIS-FBSO algorithm for improving PQ in HRES within the smart grids. ANFIS develops complex non-linear mappings between inputs (weather, power mismatch, SOC and rate of load change) and outputs (instructions for charging or discharging batteries). The presented approach utilises an integrated function incorporating the ANFIS-FBSO algorithm to derive optimal parameters for enhancing the search behaviour of the FBSO algorithm, specifically targeting optimal gain. Enhanced ANFIS is then applied to reduce the error function, thereby improving PQ for the HRESs. The reduction in the error function is achieved by optimising parameters related to the MRPID controller.
In a smart grid-connected HRES, the recommended MRPID controller is utilised in conjunction with the ANFIS-FBSO algorithm to manage PQ problems related to voltage and current disturbances. Compared to more conventional controllers such as FOPID, PI and PID, the MRPID controller offers more flexibility in frequency management. With its three parameters, the MRPID controller gives the best results in the control process. The MRPID controller significantly reduces error voltage and error current levels by providing optimal pulses. These perfect pulses are chosen using the enhanced ANFIS-FBSO algorithm, which aims to minimise error voltage and error current. Through the use of series and SAPFs to enhance the control method of the UPQC device, this MRPID controller effectively mitigates PQ issues in the smart grid-connected HRES. An extensive overview of the MRPID controller is provided in this section.
The MRPID controller is critical to achieving optimal performance in reducing error voltage and error current in the super control of the smart grid-connected HRES. It does this by mitigating undershoot and overshoot issues in the signal, thereby reducing error signals and speeding up controller response. Along with increasing system performance and demonstrating reduced susceptibility to parameter changes, the MRPID controller may be utilised to rapidly provide isodamping characteristics (Deepa et al., 2023). The MRPID controller leverages the multi-resolution property of wavelets by using several mother wavelet dilations and translations to convert the error signal into a linear mixture of basic functions. Eq. (5) represents the result of a PID controller, which is the sum of three gain parameters, denoted as
Here,

Diagram of the self-tuned, wavelet-based MRPID optimised controller. MRPID, multi-resolution proportional-integral-derivative.
The best values for accomplishing power management in the smart grid structure are found using the ANFIS algorithm. The FBSO method is used to get the optimum values of the parameters of the fuzzy interference system (FIS). Optimising parameters minimises the discrepancy between the reference and actual values. With the assistance of the improved algorithm, a blend of FBSO and ANFIS, the error value is reduced. Using the FBSO, the settings of the ANFIS are optimised. In this case, the membership functions influence the ANFIS parameters, which are premise parameters. Upon representation of the membership function, optimisation procedures are implemented in order to minimise the error value. The ANFIS algorithm’s parameter configuration enables FBSO to get data from the smart grid structure modelling. The rules listed below are part of the FIS system.
The membership functions

Structure of ANFIS model. ANFIS, adaptive neuro-fuzzy inference system.
The following steps provide a detailed explanation of the sequential procedure in each of the ANFIS layers.
The nodes in this layer are referred to as adaptable. Eqs (9) and (10), which provide the fuzzy membership grade, use the first layer outputs as input.
On the other hand,
Eq. (12) is presented for the Gaussian membership function.
Here
Fixed nodes are the nodes that compose the layer. This layer supports fuzzy operators; the inputs are fuzzied using the AND operator. They are a simple multiplier since they have the label on them. The output of this layer is shown in Eq. (13).
These are exactly the rules referred to as their firing strengths.
Nodes that are identified and designated as fixed constitute this layer. The firing strength from the second layer is used by the layer that carries out the normalisation procedure. Eq. (14) provides the output of the layer.
The outputs of this layer are called normalised activation strengths.
In this layer, nodes are designated as adaptable. The layering process is defined as the product of the first-order polynomial and the normalised firing strength. The output of this layer is given by Eq. (15),
The incoming signals from layer 4 produce the node process. Eq. (16) describes the output of layer 5,
This section explains the different layer structures of the ANFIS algorithm. The training sets are obtained through the FBSO algorithm, which will be detailed in the following section.
The ANFIS algorithm’s learning function is accomplished via the FBSO algorithm. The way that bugs are sought is what drives the algorithm.
The initialisation step involves entering the population, voltage, higher and lower bounds, female and male bug input and algorithmic current values. The method generates the gain levels
To provide the best pulses for the MRPID controller’s settings, the ANFIS-FBSO algorithm is used. ANFIS-FBSO algorithm’s initial population consists of MRPID controller settings and error values. Through an optimisation process powered by a fitness function, optimal pulses are produced. The following is the formulation of the optimisation problem for figuring out the MRPID controller parameters:
The FBSO method begins with male bugs
The location of every male insect in a colony is initialised to that of the best female bug, as males only mate with the most physically fit females. Because of this, the location of every male insect in a colony is continuously adjusted to correspond with the best female.
Each female insect inside a certain male’s colony has her position stored in a single, synchronously updated matrix. Using effective Hadamard multiplication operations, the following matrix update equations are used for the simultaneous updating of all female bugs in a given colony:
The term
Not in its colony, but to fit females, each male beetle is also drawn to them. The males migrate in the direction of the most fit female, which keeps the whole colony contained inside a certain area and prevents the swarm from spreading. To drive male bugs in the direction of the most fit female bug, the following updated rule is used:
The term
The individual bugs do not scatter; instead, the whole swarm travels as a cohesive entity. The swarm travels randomly as a single entity; therefore, each insect needs to mimic the path taken by its peers. A herd cohesion model is suggested using Eq. (23), which causes every male bug to migrate in the same direction as a randomly selected male bug in the direction of the most fit female bug.
Here
Similarly, Eq. (24) explains why female insects move so weakly in the direction of a different male insect:
The two terms,
The calculation process halts upon meeting the stopping criteria, or the process repeats, returning to Step 2. To fulfil the fitness function and ultimately address PQ concerns, the optimal solution is selected during the updated process. The gain parameters of the MRPID controller are determined using these fitness functions. A final condition check becomes essential before implementing the optimal solutions, considering factors such as reaching the maximum number of iterations and verifying constraints. The perfect power flow in the HRES linked to the smart grid is then achieved by using the optimal solutions. The system’s PQ problems are successfully mitigated by using the improved ANFIS-FBSO algorithm. Additionally, the ANFIS-FBSO framework offers frequency stability and power balancing. In HRES s, this enables the dynamic control of energy flow and system stability. In addition to storage charging and discharging, power balancing ensures that total generation always meets the total demand. ANFIS predicts the ideal output levels from each source and learns non-linear mappings from system states (such as PV/wind power, load and SOC of battery) to necessary management actions. The FBSO optimises ANFIS parameters, battery charging and discharging levels, demand response, load-side management and generator dispatch. The subsequent section provides a comprehensive overview of the findings and discussions.
To enhance PQ within the proposed system, an MRPID controller, along with an ANFIS-FBSO-based controller is implemented to mitigate the PQ issues to improve the UPQC performance. The FBSO algorithm optimises the learning function of the ANFIS for optimal outcomes. The proposed technique is used to validate the achieved results in terms of voltage sag, current sag, real power, reactive power and THD s. To validate the effectiveness of the proposed approach, results are compared with existing techniques, such as cuttlefish algorithm (CFA), elephant herding optimisation (EHO), PSO and grey wolf optimisation (GWO). Figure 4 shows the proposed ANFIS-FBSO controller’s MATLAB/Simulink implementation model in the smart grid-connected HRES system. Table 1 shows the parameters used for the simulation of the proposed technique.

MATLAB/Simulink model of the HRES system with the proposed controller. HRES, hybrid renewable energy system.
Characteristics of proposed technique.
Parameters | Techniques | Values |
---|---|---|
Nominal voltage | Battery | 26.4 V |
Rated capacity | 6.6 Ah | |
Discharge current | 2.86 A | |
Voltage at open-circuit conditions | PV | 64.2 V |
Current at short circuit conditions | 5.96 A | |
Voltage at maximum power point | 54.7 V | |
Current at maximum power point | 5.58 A | |
Maximum value of current | WT | 19 A |
Maximum value of voltage | 500 V | |
Number of membership functions | ANFIS | 5 |
Membership function | Gaussian bell | |
No. of populations | FBSO | 50 |
No. of iterations | 50 |
ANFIS, adaptive neuro-fuzzy inference system; FBSO, firebug swarm optimisation; PV, photovoltaic; WT, wind turbine.
The primary evaluation tool is the solar and wind power orientation voltage graphs. The PQ difficulties are then assessed whilst using the visual assistance. As the performances are evaluated, the source voltage is supplied to the system. Most PQ disturbances, such as voltage sags, occur within the system. After analysing the altered voltage, the mentioned methods are used to mitigate PQ disturbances by implementing UPQC. The goal of this proposed technique is to effectively reduce harmonics. The three analysis scenarios are used to examine the simulation’s output findings using the recommended methodology.
When loads are introduced into systems connected to the smart grid’s intended HRES, sag faults may occur. To mitigate and balance the load demand, the proposed system is designed using an MRPID controller based on the ANFIS-FBSO algorithm. In these systems, the WT speed and PV irradiation are maintained at constant levels. Specifically, the PV irradiance is set at 1,000 W/m2, whilst the WT speed is held at 12 m/s. Additionally, the battery is in the charging state. This hybrid system is carefully configured to meet load requirements and address PQ issues.
Figure 5(a) illustrates that the power generated by the PV system is 7 × 104 W at irradiance 1,000 W/m2, whilst Figure 5(b) shows the power generated by the WT is 5,120 W at a constant wind speed of around 12 m/s. The battery power and SOC are depicted in Figure 5(c), with battery power ranging from 2,000 W to 1,400 W.

Simulation output of (a) PV irradiance and power, (b) wind speed and power and (c) battery SOC and power. PV, photovoltaic; SOC, state of charge.
The smart grid-connected load system encounters a non-linear load, leading to sags in system voltage and current. The occurrence known as voltage sag arises when incorporating a non-linear load into the HRES. Addressing this phenomenon is crucial to ensure the system operates linearly and stably. The UPQC is used to supply the necessary electricity for meeting load demand and resolving PQ issues. The impact of voltage sag, corrected voltage and injected voltage from the UPQC is depicted in Figure 6(a). Similarly, Figure 6(b) illustrates the existing sag, corrected current and injected current from the UPQC. The implementation of the proposed controller alongside the UPQC effectively tackles PQ issues associated with voltage and current sags. The shunt and series active power filters serve as the primary controls for regulating voltage and current in the HRES system.

Simulation output in a sag condition (a) source voltage, load voltage and injected voltage and (b) source current, load current and injected current.
The proposed technique’s performance is evaluated under swell conditions, induced by connecting a non-linear load to the system. This assessment of the swell state encompasses various scenarios and analyses their performances. PQ issues related to voltage and current swell scenarios are examined by altering PV irradiation conditions and WT speed. Figure 7 illustrates the variations in PV irradiance, WT speed, WT power and PV power. PV irradiance can be adjusted within the range of 0.7–1 s, with a default setting of 300 W/m2 and 0.5–0.7 s. Additionally, it can be set within 0–0.5 s with a range of 1,000 W/m2 to 300 W/m2.

Simulation output of (a) PV irradiance and power and (b) wind speed and power. PV, photovoltaic.
Figure 8 depicts the voltage and current swell scenarios. The introduction of a non-linear load induces a voltage surge within the system. As depicted in Figure 8(a), a voltage swell occurs between 0.2 -0.3 s, which is subsequently corrected using a UPQC. The required power is stored in the dc-link capacitor and utilised to alleviate PQ issues and meet load demand. The injected voltage and the corrected output voltage during the swell are also presented. Similarly, Figure 8(b) demonstrates the swell conditions for the current scenario. The proposed controller contributes to achieving load demand objectives and addressing PQ concerns. The selection of optimal system parameters is crucial for the series and SAPFs, which utilise the FBSO and the ANFIS controller-based MRPID controller, in detecting and rectifying incorrect values.

Simulation output in a swell condition (a) source voltage, load voltage and injected voltage and (b) source current, load current and injected current.
Using the disturbance condition, the proposed technique’s performance is examined. By connecting the non-linear load, the disturbance conditions are introduced into the system. This examination of the swell state looks at a variety of sources and analyses performances. Problems with PQ are analysed with different WT speeds and PV irradiation levels. The changes in WT power, PV power, WT speed and PV irradiance are shown in Figure 9.

Analysis of (a) PV irradiance and power and (b) wind speed and power. PV, photovoltaic.
Analysing voltage and current disturbance circumstances caused by the application of non-linear loads in grid-connected load systems is necessary for the evaluation of the proposed technique. The corrected, injected and perturbations in voltage are shown in Figure 10.

Simulation output of voltage disturbance circumstances in the source, load and injected voltage.
Signal disturbances are usually caused by the interaction of uneven load circumstances, critical loads and non-linear loads. Voltage disturbances in the system occur naturally when a non-linear load is introduced on the load side. In order to guarantee the steady functioning of the HRES, the proposed controller is implemented to rectify PQ concerns and adjust for load demand. When the proposed controller is used, the HRES system may operate steadily and lessen PQ issues in non-linear, critical and imbalanced load scenarios. The optimal gain parameters for the MRPID controller are determined through the ANFIS-FBSO technique, aiming to minimise error values in voltage and current signals. The demonstrated flexibility of the proposed controller in responding to load demand and mitigating PQ issues in the HRES is illustrated. To assess the efficacy of the proposed approach, a comparative analysis is conducted against existing design methodologies, and the outcomes of this comparison are presented in the following section. The HRES generating system with a storage system is shown in Figure 11, compensating grid power under various environmental circumstances, such as GWO-FUZZY, CFA-ANFIS, PSO-ANFIS and EHO-FUZZY. The proposed controller is essential for maintaining stable operation on the grid side since it uses the ANFIS-FBSO technique, which ensures the stability and reliability of system performance by achieving better results than the existing methods. The proposed controller is used in the HRES to compensate for load demand and handle PQ problems such as sag, swell, disturbances and harmonics. It also effectively mitigates current and voltage oscillations within the grid-connected HRES by generating optimal control pulses for the series and SAPFs.
Using comparative analysis, the assessment of the proposed methodology is investigated in various harmonic situations. THD is a general term used to measure the harmonic distortion present in a signal. THD is the fundamental measure of PQ, which includes both voltage and current THD. There is more distortion when the THD value is higher. THD of the proposed system is compared with already existing techniques, such as CFA-ANFIS, PSO-ANFIS, EHO-FUZZY and GWO-FUZZY. The signals’ harmonics before and after applying compensation were also examined and confirmed via the proposed method in Figure 12(a). Figure 12(b) provides the comparative analysis of the projected technique in terms of harmonics.

Comparative analysis of output (a) real power and (b) reactive power.

(a) Comparative analysis of THD of the proposed method and (b) comparative analysis of THD of existing methods. THD, total harmonic distortion.
Table 2 presents the comparison of THD achieved in the proposed technique with already existing techniques, and results are compared with the ASO algorithm (Goud and Rao, 2021). The calculation times of several methodologies are shown in Table 3, along with the operating times of different controlling schemes. The proposed controlling technique is the MRPID controller, which operates more quickly than other controlling strategies. The proposed technique for optimisation-based controllers achieves an execution time of 480 ms, which is less than the other techniques. Consequently, it works well for the PQ problem in real time.
THD comparison between existing and proposed method.
Method | THD level |
||||||||
---|---|---|---|---|---|---|---|---|---|
5 | 7 | 11 | 13 | 17 | 19 | 23 | 25 | 29 | |
Proposed system without compensation | 25 | 29 | 23 | 49 | 19 | 9 | 20 | 9 | 5 |
Proposed technique (ANFIS-FBSO) | 10 | 4 | 2 | 4 | 8 | 2 | 4 | 1 | 0 |
CFA-ANFIS (Daweri et al., 2020) | 8 | 8 | 3 | 5 | 10 | 4 | 5 | 6 | 2 |
PSO-ANFIS (Robati and Iranmanesh, 2020) | 14 | 8 | 4 | 7 | 13 | 3 | 8 | 4 | 2 |
EHO-FUZZY (Drias and Drias, 2024) | 23 | 15 | 16 | 20 | 9 | 7 | 6 | 4 | 4 |
GWO-FUZZY (Sun et al., 2023) | 36 | 10 | 12 | 19 | 10 | 5 | 5 | 3 | 2 |
ASO (Goud and Rao, 2021) | 12 | 6 | 3 | 5 | 10 | 3 | 5 | 0 | 1 |
ANFIS, adaptive neuro-fuzzy inference system; ANFIS-FBSO, adaptive neuro-fuzzy inference system-based firebug swarm optimisation; ASO, atom search optimisation; CFA, cuttlefish algorithm; EHO, elephant herding optimisation; GWO, grey wolf optimisation; PSO, particle swarm optimisation; THD, total harmonic distortion.
Comparison of computational time.
Techniques | Proposed technique (ANFIS-FBSO) | CFA-ANFIS (Daweri et al., 2020) | PSO-ANFIS (Robati and Iranmanesh, 2020) | EHO-FUZZY (Drias and Drias, 2024) | GWO-FUZZY (Sun et al., 2023) | ASO (Goud and Rao, 2021) |
---|---|---|---|---|---|---|
Execution time (ms) | 480 | 497 | 510 | 510 | 514 | 590 |
ANFIS, adaptive neuro-fuzzy inference system; ANFIS-FBSO, adaptive neuro-fuzzy inference system-based firebug swarm optimisation; ASO, atom search optimisation; CFA, cuttlefish algorithm; EHO, elephant herding optimisation; GWO, grey wolf optimisation; PSO, particle swarm optimisation.
Unless done offline, the iterative optimisation cost introduced by FBSO is typically unacceptable in time-sensitive systems. Although runtime adaptation with optimisation can result in latency, real-time ANFIS inference is comparatively efficient.
There are numerous drawbacks and costs associated with ANFIS-FBSO, including a lengthy development period; the potential need for hardware such as graphics processing unit, digital signal processors and field programmable gate arrays if real-time optimisation is desired; complexity in the software that makes integration and maintenance challenging; low explain-ability due to the difficulty in interpreting fuzzy rules after tuning of FBSO; and a high operational delay during training or re-optimisation. Despite numerous drawbacks and costs, the benefits of ANFIS-FBSO outweigh its high cost. These include improved handling of complex inputs and disturbances, fine-tuned control logic for non-linear systems, the potential for adaptive and self-learning control and the ability to minimise operational delay through offline optimisation.
The objective of this paper is to develop MRPID and ANFIS-FBSO controller for PQ improvement in grid-connected HRESs. The MRPID controller and ANFIS-FBSO technique are used to improve the PQ concerns. To address PQ issues and balance load demand, the UPQC is implemented. The series active power filter and SAPF are the two controllers that UPQC is outfitted with. The supervisory control process and the HRES structure are implemented using the MATLAB/Simulink working environment, and the outcomes are examined. Using the proposed technique and existing techniques, the performance of grid power, battery power, PV and WT power is investigated under three distinct scenarios in order to verify the results. The results are compared with the existing techniques such as CFA-ANFIS, PSO-ANFIS, EHO-FUZZY and GWO-FUZZY in terms of computational time and are validated with already published work. THD analysis showed the strongest results when the suggested strategy was applied efficiently. Result analysis depicts that the proposed ANFIS-FBSO-based MRPID controller is better than the existing techniques to enhance PQ in grid-integrated HRES.