1. Introduction
HRESs are currently playing a vital role, as traditional energy sources face several challenges related to the usage of fossil fuels that have great negative environmental impacts. HRESs can mitigate emissions and global warming in addition to their significant economic advantages [
1]. Due to global economic problems and increasing ecological awareness, HRESs-based distributed generation (DG) is becoming more relevant [
2]. Many HRESs have been implemented and integrated into the classical power networks, like wind energy, photovoltaic energy, fuel cells (FCs), and biomass [
3]. Each RES has distinct characteristics different from other sources in terms of being AC or DC [
4]. The PV and FC generated DC voltages with different levels, while wind energy generates either AC or DC based on the generator used in the wind energy conversion system (WECS) [
5]. These diversities represent a challenge in connecting these HRESs to the electrical network. Another challenge that appears when integrating these HRESs into the electrical grid is the instability of the power generated from HRESs due to their dependence on some changing environmental conditions, such as temperature and irradiance in PV systems and wind speed in WECSs. The critical solution to such challenges is using power electronic devices to adjust the DC levels of all DC sources using some converters. Besides, these converters may be used for maximizing the power extracted from each HRES [
6]. Then DC–AC inverters are used to connect the output of these HRESs to the electrical grid. The power electronic devices, used to integrate different types of HRESs to the grid, will increase the PQ problems, such as voltage sags, swell, disruptions, interference harmonics, etc. These problems might cause continuous fluctuation in power generated and tripping of some HRESs if the grid standards or codes were not fulfilled [
7]. Some flexible devices should be added to the whole system to support the PQ and improve system performance; these devices are called flexible AC transmission system (FACTS) devices [
8]. According to these FACTS devices’ connection to the network, there are three types: series, parallel, and combination of series and parallel. These controllers are identified based on their specific characteristics and controlling mechanism before integrated into the system. To change the line reactance and expand the limit of transmission line, a static synchronous series compensator (SSSC) and the dynamic voltage restorer (DVR) are used [
9]. Shunt types are utilized for supporting the voltage by exchanging the reactive power with the system during voltage sag/swell conditions. Shunt compensators like static compensators (STATCOM), distribution STATACOM (DSTATCOM), and thyristor regulated reactor (TCR) were introduced to improve the connection of some RESs to the grid [
10]. The series/shunt combination of these FACTS devices combined the characteristics of the series and the shunt devices like the unified power flow controller (UPFC) and distributed power flow controller (DPFC) [
11,
12]. UPFC is a combination of STATCOM and SSSC linked together through DC link to exchange the active/reactive with the system. Some modifications in the structure of UPFC is performed by eliminating the DC link capacitor and connecting STACOM and SSSC through a transmission line with third-frequency components [
13]. This elimination of the DC link gives more prominent adaptability to put the STATCOM and SSSC autonomously. Based on the discussions above, some FACTS devices are needed to support the PQ issues in grid-connected HRESs. The performance of the type of FACTS devices mainly depends on the controller used. The traditional PI controller and the modified fractional-order proportional integral controller (FOPIC) are the most dominant due to their simplicity and good performance with the superiority of the FOPI type [
14]. Adjustment or tuning the controller parameters of FOPID employed in FACTS devices to mitigate the PQ problems in grid-connected HRESs is a non-linear complex optimization problem that desires some metaheuristic optimization techniques. Many optimization techniques were presented for optimal tuning of PI and FOPID controller parameters in many HRES applications [
15].
This paper presents the utilization of one of the combined FACTS devices, DPFC, to mitigate some PQ problems in a grid-connected HRES system. This system consists of wind, PV, and batteries as storage units. The PQ issues presented in this paper are the irregularity in power generated, voltage sag, swell, disruption conditions, and the total harmonic distortion (THD). The power irregularity comes from PV and wind energy conversion systems due to variation in the irradiance and wind speed, respectively. At the same time, non-linear loads simulate the harmonics in the system. In the proposed system, the instantaneous PQ theory and FOPID controller with BWO are initialized. To provide the optimal pulses to the converter the instantaneous PQ theory is used for the series and shunt controllers. The results of the proposed system are validated by comparing them with the results of the conventional PI controller and the intelligent techniques like P&O, PSO, Cuckoo, GA, GSA, BBO, Whale, ESA, RFA, ASO, and EVORFA. Among all the controllers BWO provides the best control parameters to the FOPID controller which produces better performances in terms of compensation of voltage and current related swell, sag, and harmonic reduction. The proposed framework is developed and examined in MATLAB/Simulink. The rest of the paper is composed as follows;
Section 2 describes a brief survey of recent research works,
Section 3 proposes the HRES system,
Section 4 proposes control model of DPFC,
Section 5 a BW optimization, in
Section 6 we present results and discussions,
Section 7 includes a comparison analysis, and
Section 8 is the conclusion.
3. Modeling of the Proposed HRES System
In the distribution system, HRESs such as PV and WT are used more extensively. HRES is considered to be the best option in an integrated DG system [
29]. In the distribution system, HRES should satisfy the load demand expected by customers, which implies problems of flexibility and reliability of power quality [
30]. For the smooth running of the device, these PQ issues must be avoided [
31]. FACT devices are utilized with the development of power electronics devices to mitigate PQ problems. DPFC is designed to mitigate power PQ problems such as voltage sag, current sag, disruptions, and THD [
32]. The combination of PV, WT, and the battery as energy storing system (BESS) interfaced with the grid is proposed. As the sources considered are intermittent, BESS is designed to satisfy the load demand under critical environmental conditions. PQ problems are generated in the HRES system because of the faults, non-linear loads, and sudden loads. [
33]. Due to these problems, voltage instability and mismatches in reactive power are created. PQ issues such as voltage sag, current sag, real power, reactive power, and THDs are discussed in this paper [
34]. To improve the voltage regulations in the HRES interfaced grid-connected system DPFC-FOPID controller is designed to solve these problems. The tuning of the FOPID controller which controls the operation of the series controller and shunt controller is done using the BWO technique. Using perturb and observe (P&O) maximum power point tracking (MPPT), the PV and wind powers are derived [
35]. A reference DC bus voltage is produced from the BWO. The DC relation voltage reference is set to its default value at a time when there is no solar energy [
36]. The HRES’s PQ problems are considered primarily due to faults, non-linear load, and sudden grid side loads [
37].
The proposed system is equipped with DPFC, shown in
Figure 1 [
38]. It comprises series and shunt controllers which are operated using control techniques to compensate the PQ problems and for stable operation power compensation can be accomplished by providing the best gain parameters for the FOPID controller [
39], which filters and injects the necessary power by selecting the best gain parameters for the FOPID controller. The FOPID controller is controlled by a BWO technique, which is programmed to select the values necessary to run the control operation under PQ conditions [
40].
3.1. Modeling of PV
The design PV panel current and terminal voltage are computed based on the following Equations (1)–(3) [
41].
The PV is the ideal option for producing power from solar energy from various HRESs while avoiding greenhouse gas pollution, with durability, long life, good efficiency, and less maintenance. It consists of cells connected in series in the PV system to achieve the voltage required.
Figure 2 shows the built PV panel model, the power produced from the PV panel is formulated as follows.
The maximum power extraction from the grid would not always exist as the variations in both the load and the environmental conditions and, consequently, the current drawn from HRESs, especially PV systems.
3.2. Modeling of Wind Turbine
The output power produced by the WT is dependent on the wind speed under the stated hub height. WT power is expressed as (4). The PV and WT systems on the grid side are used to compensate for load requirements. Often the requirement for load rises, which cannot be covered by HRES, because the battery is often attached to the device. The battery system’s statistical modeling is presented in the section below.
3.3. Modeling of BESS
When the power provided by the HRES is insufficient, the battery meets the needed load requirement. The battery output is calculated using the reference autonomy day (AD) under the condition of the system’s required power consumption. AD is defined as the total number of days that the battery is capable of producing power to counterbalance the demand for loads. This battery output may be described as (5).
The battery in the HRES system is charged using the excess electricity produced by RES. The battery capacity is calculated using Equations (6) and (7). State of charge (SOC) is a critical parameter in the battery related to further energy production and energy shortfall in HRES as discussed below. It can impact PQ issues such as sag, swell, voltage interference, and so on in the proposed design framework. The problems of power efficiency in the system must be resolved to increase the reliability of the system obtained with the usage of the DPFC unit in the HRES system. In the segment below, the modeling of DPFC is discussed.
3.4. Modeling of DPFC
To transfer the actual power, the shunt and series controllers will be linked to the AC terminals of a transmission line [
42]. The mean value of the product of non-sinusoidal current and voltage is used to calculate real power (see
Figure 1). The cross-product of the integral parameters is 0 at various frequencies. The active power may be expressed as in the following (8)
Since real power has no frequency dependency, it enhances the converter’s mobility and capacity to create active power even in the absence of an electrical source, which is a benefit that at varying frequencies, the same strength may be consumed. Actual power must be received from the grid through a shunt converter operating at the fundamental frequency. At the harmonic standard, current must be injected into the grid through the distribution line. The high-pass filter allows for harmonic modules while disabling the portion of the frequency in DPFC that provides the harmonic components with a return path. The filter will harmonic current converters with a locked loop. In comparison, the DPFC’s monitoring power is high because it comprises several converters of the small-rated set, the process is not impaired by the failure of one converter, showing no effect on the whole system while other converters must continue to contribute to the overall system’s regular function. The appearance of the device is rendered more effective by bypass protection.
3.5. Perturb and Observe MPPT
MPPT approaches are often used to monitor maximum power from intermittent sources such as renewable energy sources. P&O is the most extensively used approach for producing duty pulses that are required to run the converter. It compares and monitors the reference voltages continually until the best value is reached. P&O is set at a relatively tiny size to guarantee little power loss. The sole disadvantage is that optimal power is not obtained under rapidly changing air conditions. The procedure described in
Figure 3 is relatively simple and widely used. The suggested HRES system for PQ enhancement seen in
Figure 4 is shown in the flow chart below. The next part,
Section 3, has a full explanation of all of the modules.
5. Black Widow Optimization
The BWO technique is illustrated in
Figure 9. The proposed BWO technique generated the best gain parameters for the FOPID controller. BWO is an evolutionary algorithm that begins with the initialization of the population of spiders in which each spider is a possible solution. The initial population of spiders tries to reproduce the new generation in pairs. During or after mating, the female black widow consumes the male [
55]. In her semen, they hold accumulated sperms and releases them into egg sacs. Spiderlings come out of the sacs as early as 11 days after being laid. For many days to a week, they cohabit on the maternal network, during this time sibling cannibalism is detected. Later they leave by being carried on the wind.
5.1. Step 1: Initialize Population
To solve an optimization problem, first, create an appropriate framework for resolving the current problem using the values of the problem variables. This structure is referred to as a “Chromosome” and a “Particle position” in GA and PSO methods, respectively. In BWO, it is referred to as “Widow.” Each possible option is represented by a black widow spider that shows the problem variables’ values. The structure should be seen as an array to solve benchmark functions in this work.
In a problem of Nvar-dimensional optimization, a widow is an array of 1*Nvar, describing the problem’s solution. Equation (20) defines the array as follows:
All the variable values
are the floating-point number. The fitness of widow is obtained by evaluation of fitness function f at a widow of
So (21),
To begin with the optimization technique, a candidate matrix of widows with an initial spider population, the size Npop × Nvar is created. Then we randomly choose pairs of parents to execute the procreation stage by mating, in which the female consumes the male black widow during mating.
5.2. Step 2: Procreate
The couples begin to mate and reproduce in the present generation since they are self-contained. Each pair mates autonomously from the others in nature. During each mating, around 1000 eggs are laid, with any larger spider babies surviving. This method might alternatively make use of an array named alpha. The offspring are produced using alpha, where x1 and x2 are parents and y1 and y2 are ancestors, as illustrated below, as long as the widow array is generated with random values (22).
This procedure is continuously repeated for Nvar/2 times, with randomly chosen variables which should not be repeated. Finally, the infants and mothers are added to an array and categorized according to their health importance, now focused on a few of the best citizens which are applied to the newly produced population according to the cannibalism ranking. This procedure is applied to all the pairs.
5.3. Step 3: Cannibalism
In our world, there are three sorts of cannibalism. The first is sexual cannibalism, in which the black widow eats her partner while they are mating or immediately thereafter. Based on their fitness scores, we should be able to distinguish the female and male in this manner. The second kind of sibling cannibalism, in which the stronger spiderlings consume the weaker siblings. In this method, we create a cannibalism rating (CR) ranking, from which the number of survivors is calculated. In circumstances when the newborn consumes its mother, the third kind of cannibalism occurs. We utilize the fitness value of little spiderlings to estimate high fitness value.
5.4. Step 4: Mutations
At this point, we randomly pick the number of people from the population. As
Figure 10 reveals, each of the choices selected two items in the sequence is shared at random. The evaluation of mutation decides Mutepop.
5.5. Step 5: Convergences
Compared to the other most evolutionary techniques, here three-stop requirements can also be considered: (a) the number of predefined iterations; (b) observance in conformity with several iterations, no improvement in the fitness value of the best widow; (c) achieving the degree of precision mentioned. BWO would be extended to some benchmarks in the next segment. Since optimal results are known in advance for benchmark functions, thereby we can achieve a defined degree of accuracy standard. The maximum sum of iteration is often set as a stop as well.
5.6. Step 6: Setting Parameters
To produce vest results with the proposed BWO technique requires certain parameters like rate of procreation (PP), cannibalism rate (CR), and the rate of mutation (PM). The chosen values in this paper for these parameters are seen in
Table 3.The parameters should be changed accordingly to boost the algorithm’s efficiency in obtaining the best results. The more the number of parameters is tuned, the greater the probability of jumping out of every optimal and greater local capability to find them in the search space globally. Consequently, the correct set of parameters that regulate the equilibrium between exploitation and exploration should be assured. The proposed algorithm has three controlling parameters, PP, CR, and PM. The number is PP in procreation, which defines how many persons are interested in procreation. By monitoring the output, further diversification is given by separate offspring which gives more opportunities to more specifically analyze the quest space. The cannibalism operator’s control parameter, the CR, excludes the community from the wrong persons. By adjusting the needed value for this parameter, great efficiency for the exploitation step may be ensured by changing the quest agents from the local to the global stage and vice versa. PM denotes the percentage of people who are involved. In mutation, the appropriate value for this parameter should be employed to ensure that the duration between exploitation and exploration is balanced. This parameter may monitor the transition of the quest agents from the global level to the state and local level and drive them to the correct decision.
5.7. Step 7: Stop
The following step-by-step procedure repeats until the final optimal pulses are generated by the proposed FOPID controller
6. Results and Discussion
In this section, the performance of the proposed method is validated and analyzed. The proposed method for mitigating PQ issues in grid-connected HRES has been developed. The main aim is to increase the system’s reliability by minimizing problems with the quality of electricity. There are drawbacks to the current methods that were listed in
Section 4. So, with the aid of the proposed controller and DPFC, the efficiency of the system is enhanced. Here, the proposed method will include the current and voltage regulations in integrated HRES using DPFC with the proposed controller. Based on voltage, current, and fault conditions such as sag, swell voltage distortion, and harmonics with THD, the HRES grid-connected device with the suggested controller is evaluated. The FOPID parameters are evaluated with and without the system’s PQ problems. In MATLAB/Simulink with the processor, the predicted method is executed on a computer with the following specifications: Intel(R) Core(TM) i5-3570S CPU @ 3.10 GHz, and the presentation is analyzed. The projected technique is compared with twelve techniques P&O, PSO, Cuckoo, GA, GSA, BBO, Whale, ESA, RFA, ASO, EVORFA, and BWO with existing PI controller techniques. The criteria for implementation are presented in
Table 4.
The proposed technique is verified in the system using PQ concerns like sag, swell, disturbance, and harmonics. The PQ difficulties are compensated by delivering ideal shunt and series active power filter pulses with the help of the BWO-FOPID controller, which ideally regulates the PQ issues using the DPFC and the needed suggested shunt and series active power filter controller [
56]. The DPFC will supply the required power to mitigate the PQ issues and adjust for load demand in the system. In the proposed HRES system, the DPFC configuration is employed to deliver critical power and mitigate PQ concerns. PV and WT systems can generate enough power to fulfill the load demand, which is considered the system’s major source of electricity [
57]. The WT and PV may be impacted by external influences that may be mitigated by factors including the MPPT approach in the device [
58]. The DPFC system uses the generated electricity to counter load demand and mitigate PQ issues in the system. The DPFC system is compatible with a grid-connected load scheme. Evaluation of the predicted design structure is done under the three failure circumstances of sag, swell, voltage, disturbance, as well as the device’s signal harmonic levels. Three different examples are utilized to assess the device output; these scenarios are explained below.
Case 1: Analysis of HRES during constant irradiance and wind speed
Case 2: Analysis of HRES during variable irradiance and wind speed
Case 3: Condition for voltage sag and current sag
Case 4: Condition for voltage and current swell
Case 5: Condition for voltage and current disturbances
The five cases are individually analyzed with the design parameters of voltage, current, power, and injected power from the DPFC.
Case 1: Analysis of HRES during constant and variable inputs
Here in this case HRES performance is simulated under constant irradiance and wind speed of PV and wind. The input to the PV is set to 1000 W/m
2 and WT velocity to 12 m/s to compensate for the load demand in the system. From
Figure 11 we can observe the power produced with the PV and WT sources is 31 kW and 80 W. Thus, the generated power is transferred to meet the load demand. When surplus energy is generated it can be stored in the battery and can be used under critical conditions.
Figure 12 shows the battery requirements for SOC and battery capacity
Case 2: Analysis of HRES during variable irradiance and wind speed
From
Figure 13 we can observe the analysis of HRES simulated under variable irradiance and wind speed. The produced power of PV is modified depending on the variance of irradiance since irradiance is directly proportional to the generated power. The power produced by PV is increased if irradiance is increased. Similarly, the pace of WT is increased, as well as the power produced by WT. The analysis of HRES is shown in
Table 3.
Case 3: Condition for voltage and current sag
For the stable and linear operation of the device, the voltage sag has to be eliminated. The DPFC is used to provide the necessary power to fulfill the demand for loads and eliminate PQ problems. DPFC designed is used to mitigate the PQ issues related to both voltage and current sag under fault conditions with the proposed controller. The series and shunt active power filters are playing an important role to balance the current and voltage in the HRES system.
In the proposed HRES interface grid-connected system, a three-phase fault has been created. Due to this fault, there is a sudden reduction of voltage and current is observed which is generally termed to be sag. To overcome this condition the proposed DPFC and the controller is designed to operate with the use of the FOPID controller. The optimal pulse is generated using the BWO technique which is used to eliminate the PQ problem and compensate load demand. During a three-phase fault at t = 0.75 s to t = 0.85 s, voltage sag of 200 V is observed as shown in
Figure 14a. The sag is then eliminated with the injected voltage of 300 V which can be seen in
Figure 14b. From
Figure 14c the load voltage after elimination of voltage sag can be observed. Similarly, during t = 0.75 s to 0.85 s, current sag is observed under fault conditions.
Figure 15a shows the current decrease during sag of about 0.2A.
Figure 15b shows the injected current of 1.8A and
Figure 15c shows the compensated load current of 2A.
Case 4: Condition for voltage and current swell
In the proposed HRES interface grid-connected system, a three-phase fault has been created. Due to this fault, there is a sudden increase of voltage and current is observed which is generally termed swell. The swell is characterized as an increased voltage and current concerning reference voltage and current. For the constant operation in the network, the swell produced under fault conditions must be eliminated using the suggested controller. To overcome this condition, the proposed DPFC and the controller is designed to operate with the use of the FOPID controller. The optimal pulse is generated using the BWO technique which is used to eliminate the PQ problem and compensate load demand. During a three-phase fault at t = 0.75 s to t = 0.85 s, a voltage swell of 100 V is observed as shown in
Figure 16a. The swell is then eliminated with the absorption voltage of 100 V which can be seen in
Figure 16b. From
Figure 16c the load voltage after elimination of voltage swell can be observed. Similarly, during t = 0.75 s to 0.85 s, current swell is observed under fault conditions.
Figure 17a shows the current increase during sag of about 1.8 A.
Figure 17b shows the absorbed current of 1.8 A and
Figure 17c shows the compensated load current of 2 A with the assistance of the suggested controller. The PQ problems, and load demand targets are accomplished. To calculate the right error values by choosing optimum device values, the series, and shunt active power filters with FOPID controller-based BWO are primarily involved. In the segment below, the voltage disruption situations are evaluated.
Case 5: Condition for voltage and current disruptions
Normally, signal distortion happens as a result of the non-linear load relationship. When a non-linear load is introduced to the load side, the impact of voltage changes in the network is instantly established. The suggested controller is meant to adjust for load demand and PQ difficulties in the device, allowing the HRES device to have a continuous impact. The proposed effect is designed to provide for safe working and PQ problems reduction in the HRES framework under non-linear load, essential load, and unbalanced load situations. The BWO is utilized to offer the optimal gain settings of the FOPID controller to reduce the error value of the Vref and Iref in the signals. The suggested controller would correct for load demand and PQ problems in the HRES framework resulting from a variety of research scenarios. It is compared to previously devised methodologies to validate the proposed system evaluation. The anticipated system’s comparative analysis is detailed in the related unit.
From
Figure 18a we can observe the variation in three-phase voltages during t = 0.75 s to t = 0.85 s.
Figure 18b shows the voltage difference is then corrected with the use of FOPID controller operating series controller of the DPFC which is mainly used to correct the voltage-related issues. In
Figure 18c we can observe the load voltage after mitigating the disturbances. Similarly, in
Figure 19a we can observe the variation in current from t = 0.75 s to t = 0.85 s due to the sudden changes in load.
Figure 19b shows the current has been corrected using the FOPID controller using shunt controller which is used to mitigate the problems related to current.
Figure 19c shows the load current after mitigation.
8. Conclusions
Power quality improvement in HRES grid-connected systems has become a more advanced research area in DG integrated with HRES systems to eliminate PQ problems. With the use of non-linear loads, instability load, and high-frequency switching characteristics on the load side, PQ issues in the device are increased. FACT devices are playing an important role in solving the PQ issues in the HRES integrated system. DPFC is proposed to solve the PQ problems and compensate for the load demand. The HRES system is modeled with a DPFC device with a BWO-FOPID controller. DPFC is equipped with two proposed controllers, series active power filters and shunt active power filters. With the utilization of the DPFC system, the voltage and existing PQ problems are mitigated. In MATLAB/Simulink framework, the proposed approach was designed and validated. To verify the proposed procedure, three separate cases are evaluated by connecting non-linear loads such as sag, swell, disruption, and harmonics on the grid side. The proposed BWO-based FOPID controller is compared with P&O, PSO, Cuckoo, GA, GSA, BBO, Whale, ESA, RFA, ASO, EVORFA, and PI. The efficiency of the proposed approach has obtained the strongest results in terms of THD.