Abstract

In recent years, a sharp increase in integration of renewable energy sources (RESs) in power system network has been observed. High penetration of RES interfaced with power electronics converters-inverters with reduced or no inherent inertia compromises modern power system’s overall stability. Due to low inertia, voltage and frequency deviations far off the allowable threshold occur. To overcome this challenge, an adaptive inertia control strategy based on optimization technique is proposed. The improved particle swarm optimization (PSO) and genetic algorithm (GA) optimization techniques-based PID controller has been used to generate the appropriate virtual inertia coefficient for effective emulation of inertia in the presence of energy storage system. The conventional PSO suffers local optima stagnation, resulting in premature convergence during searching process in order to achieve global and local position. To address this issue, the velocity update equation was modified on inertia weight (w) using an additional exponential term with linear decreasing inertia weight PSO (LDIW-PSO). In this paper, exponential power is taken strategically instead of squaring it in order to reduce the number of iterations for faster convergence. Finally, a microgrid based on wind and solar energy is simulated using MATLAB/Simulink where three cases, 2% disturbance, 3% disturbance, and 4% disturbance, have been considered. Here, the evaluation of proposed system is carried out based on four main performance indices (ITAE, IAE, ISE, and ITSE). Furthermore, validation was done through hardware prototype to get experimental results in real time. The results from MATLAB simulation and experimental setup are in sync.

1. Introduction

In recent times, a drastic change in energy sector has been witnessed at global level. Due to ever-increasing number of consumers and the improvements in living standards among consumers, energy demand is escalating continuously. With these situations becoming compelling day by day, the conventional methods of power generation, i.e., fossil fuels, are not sustainable. Also, these traditional methods are not environmentally friendly. Coal produces greenhouse gas (GHG), which pollutes the surroundings and causes harm to the living organism in the area. They also emit carbon dioxide, which is a major cause of global warming. To meet this demand over a long period of time, RESs, for instance, wind, biomass, and solar, are now becoming popular. RESs have a number of benefits as they are not destructive to environment and are relatively cheap. However, it is notable that they have low inertia and are intermittent in nature, nonlinear, and also uncertain [1]. There is a mismatch between generation and demand which causes an imbalance. The imbalance system makes introduced voltage and frequency deviations, which lead to a system’s reduced reliability and resilience. It causes system collapse or even total blackout. In conventional power system, synchronous generators help to mitigate frequency deviation and RoCoF due to their ability to change speed when the system frequency changed. Kinetic energy is utilised (rotating mass) in traditional power system which is absent in the modern power system. Several power utility companies across the world invest millions of dollars annually to address frequency quality problem.

The increased penetration of RES has led to system instability due to intermittent feature of converter-inverter interface [2]. In addition, renewable energy sources, energy storage system, local loads, and power system applications are interconnected. Power electronics equipment lacks inherent inertia in comparison to synchronous machine in the traditional network. Due to large penetration of renewable energy sources in conventional power system network, considerable decrease in inertia is noted, causing frequency instability (frequency nadir and zenith and high rate of change of frequency). The frequency deviation is a notable problem in modern power system comprising power electronics-based energy harvesting from RES. To address the challenges associated with low inertia and frequency deviation, several methods have been reported previously. The use of wind turbine to generate inertia in microgrid had been proposed in [3]. Although this method seems to be very promising, the intermittency of wind speed and use of power electronics interface make it ineffective as an inertia source. Use of synchronous condenser has been widely used for inertia control but very expensive and not suitable for small systems like microgrid. Some of the researchers have also explored the use of ultracapacitors [4]. However, the regulation of high output current of ultra capacitors having high power density but low energy density is a major challenge. Similarly, the DC-link capacitor voltage control of grid-tied converter has been effectively used for inertia control. However, this method is not suitable for the interface of constant terminal voltage sources like batteries [5]. Use of DC-link capacitors; this method is effective in converters with variable voltages, however it can not be used for inertia control due to its limited energy storage capacity in microgrid [5]. Certain methods based on partial loading have been proposed to utilise the spare capacity of synchronous generator for inertial response. However, running a synchronous generator under partial loading conditions is highly inefficient and increases the per unit cost of electricity generation.

Recently, the concept of virtual synchronous machines (VSMs) emulated through power converter is gaining lot of popularity [6, 7]. Several research papers have looked into the effect of MGs and noninertia generation on the frequency reliability, resilience, and stability of bulk power systems [811]. Robust repetitive control (RC) is implemented in three-phase four-wire shunt active power filters (APFs) [12] for power quality in power system. In [14], a novel fractional-order controller was proposed for frequency regulation and real power fluctuation control but it did not explain how this controller is effective on offline microgrid and their cost implication if any. Furthermore, a well-structured frequency control system based on proportional, integral, and derivative (PID) controller optimized through metaheuristic techniques for microgrid system comprising wind, hydro, solar, diesel, and thermal systems was conducted to give ultimate quick control response to system disturbances [15, 16]. A malfunction lenient supervision for frequency and voltage was brought forward for a diesel engine machine applied on a microgrid. Nikhil Paliwal [17] in his paper implemented this control approach in a multi-source system (hydro power, gas turbine, and thermal plant), where the balance between power generation and demand as well as losses in microgrid has been achieved [18]. A similar control approach based on PID controller has been presented in [19] where the frequency control is implemented in hydro-wind hybrid system. The effectiveness of this method depends on the droop coefficient of synchronous generator [20]. Battery SOC time-varying properties are proposed in [21, 22] for the inertia enhancement.

Recently, a robust approach been presented by Shahryar Maleki and his colleagues in [23] where they employed linear matrix inequality method for optimal and robust control. However, the issues associated with the response time and parameter variations increase overall control complexities. Notably, it is clear from the given literature that there are technical gaps on design and analysis of virtual inertia control that need to be address in order to solve frequency deviation problem. The inertial response and damping coefficient are notable challenges in power electronic-interfaced microgrid.

In the proposed research work, adaptive virtual inertia control is proposed to overcome such a challenge of frequency instability using optimized PID controller-based energy storage system. In this novel concept, an improvised version of PSO and GA has been utilised to achieve optimal values for tuning of PID controller in low-inertia microgrid. Usually, a linear dynamic inertia weight updating equation is utilised for the enhanced PSO performance (LDIW-PSO) [24]. However, it suffers from the challenge of getting stuck into local optima during search space. In [25], a natural exponential with squared power term has been incorporated in weight updating equation. Although this approach is able to avoid local minima problem, it inherently suffers in terms of increased number of iterations which ultimately increases the convergence time. Moreover, the reduced values of and imply reducing viscosity as the search process is analogous to moving fluid. In this paper, natural exponential term is taken strategically without squaring it in order to reduce the number of iterations. Also, the higher values of and have been taken to reduce convergence time.

The key contribution of this paper is summarized here:(i)Adaptive virtual inertia control is proposed to enhance frequency stability in a microgrid under different disturbances. During designing, performance index, RoCoF, frequency zenith, and frequency nadir have been considered to improve frequency response.(ii)An improved particle swarm optimization algorithm has been implemented in this proposed control to deal with challenges of local optima and offer a balance distribution of particles between exploration and exploitation.(iii)A brief comparison of frequency stability with traditional PSO, GA, and improved PSO under various operating conditions has been provided along with their procedural algorithm to demonstrate their performance.(iv)The optimal gains obtained through proposed algorithm have been simulated on the given system and same have been validated through OPAL-RT supported hardware in loop in real time.

This paper is organized as follows. General introduction is given in Section 1. System description and control are presented in Section 2. Section 3 presents a brief description of optimization techniques applied, whereas Section 4 deals with simulation results and discussion. Section 5 represents experimental setup validation. Section 6 contains conclusion.

2. System Description and Control

The system under consideration is shown in Figure 1, where the model comprises both conventional sources of energy based on steam turbines for primary and secondary frequency control. Since RES is inertia-less, it needs to be regulated to avoid instability challenges. Therefore, solar and wind energy sources have also been considered for the formation of hybrid microgrid. The system is simulated under different generation and loading conditions while ensuring the frequency control within permissible limits. The mathematical modelling of all different power sources has been done and incorporated in the development of block diagram for the simulation purpose. The detailed mathematical formulation for different sources is as follows.

2.1. Modelling of Frequency Control System

In the first case, a model without virtual inertia is given as follows:where is power generation change by turbine, refers to change in power load, refers to change in frequency, is the inertia coefficient, and is the damping constant. (1) is transformed to Laplace as

(2) is represented in Figure 2.

Figure 3 shows the frequency deviation for both high inertia as well as low inertia system when put under certain disturbances. Here, it can be observed that in the absence of any regulating mechanism, the system droops, and it takes a long time to recover. Furthermore, the black solid line has small amplitude and it settled faster than the dotted red line. Therefore, it is always desirable to have a control system which could depict such excellent characteristics. Figure 3 shows hierarchical control structure with the secondary layer showing frequency restoration and control by stabilising the mismatch in load and generation.

The frequency change in a complete model iswherewhere refers to ACE action change (signal), refers to change in power from primary control, refers to power change in wind system, refers to initial wind power change, refers to the power produced from the turbine, refers to the initial change in solar power, refers to power produced by the solar system, refers to total change of load in the system, and refers to change in virtual inertia power.

The variable loading, load shedding, and intermittent RES supply to the system cause fluctuation trend and hence result in poor frequency profile and interrupted energy supply to customer.

2.2. Control Description

The control part of any hybrid power system plays vital role in frequency stability, and it must be able to respond quickly to any kind of disturbances. It is always intended to have inertia control to respond first followed by primary and secondary control in case of a fault. Therefore, it is very necessary to emulate fast responding inertia control in the RES-based power system. Here, the damping coefficient plays vital role in minimizing the unwanted oscillations in the given system. A generalized virtual inertia control structure is shown in Figure 4 where the power disturbance may lead to frequency disturbance. Generally, a PID controller is included in a feedback closed-loop control mechanism [26]. PID transfer function comprises of first-order derivative and integral.where , , and are proportional, integral, and derivative gains, respectively. Further, any power disturbance can be modelled aswhere is change in virtual inertia power input, is the virtual inertia coefficient, is the virtual damping coefficient, and is the inverter-based energy storage system (ESS) time constant.

2.3. System Parameters

In this paper, the parameters used for modelling and frequency regulation have been adopted from [27] and are also enumerated in Table 1.

3. Optimization Techniques Applied

The control performance of the given system depends on the tuning of PID regulator. Under the normal circumstances, a generalized PID may exhibit satisfactory performance. However, its performance starts deteriorating under the dynamic load conditions/intermittent power generation from RES. Therefore, it makes it necessary to search for the optimal gains of PID regulator which may perform under all such dynamically operating conditions. An improvised form of PSO and GA has been utilised to obtain the optimized value of PID gains for virtual inertia control under the different operating conditions. For this purpose, the control block diagram as shown in Figure 5 has been modified by incorporating frequency disturbance signal in the tuning of PID controller using the improvised form of PSO and GA optimization algorithms. The whole system is simulated in MATLAB/Simulink as per the block diagram shown in Figure 6. The simulation study is carried out for three different cases while considering the different levels of disturbances, either from the load or renewable power sources being intermittent in nature. In Case 1, a disturbance of was considered at In the second case, a disturbance of occurred at and finally a third disturbance of is introduced at All the cases were considered using both optimization techniques.

3.1. Particle Swarm Optimization (PSO)

Particle swarm optimization (PSO) was introduced in 1995 by James Kennedy and Russel C. Eberhart [28] inspired by the social behaviour of animals like flock of birds and the school of fish. It is a simple but powerful optimization algorithm; it is an effective technique utilised in optimization challenges. This technique has been applied in a variety of applications. It has various advantages, for instance, efficiency in mathematical computation, simple to implement, robust, and stable convergence characteristics [29], and it can also be used in online optimization due to its efficiency and simplicity [30].

The conventional particle swarm optimization is a design based on the behaviour of a swarm of birds in search of food location [28]. The position location and speed of each particle are located by the following equation; the best local position ( and global best :where and are random values in the range of [0, 1], and are social and cognitive constants, is the inertia weighting function, is inertia, is the cognitive component, and is the social component.

is inertia weight which is very critical for the fast convergence of optimization process. A very effective approach based on linear decreasing inertia weight PSO has been presented in [24] to manipulate the inertia weight and update it dynamically as represented by equation given below:where is the initial value of inertia weight, is the final value of inertia, and refers to maximum iterations.

The linear dynamic inertia weight-PSO (LDIW-PSO) faced challenge of falling into local optimum during the searching process. Moreover, the performance of optimization engine is heavily dependent on initial and end values of inertia constant where the too small or too much higher values may increase no. of iterations as well as convergence time. To overcome this issue, natural exponential is multiplied with to enhance velocity-updating equation. Similarly, the authors of [25] have included a square of exponential which further increases the computational burden. Therefore, in order to reduce the computational burden without compromising in performance, an exponential term with suitable value of has been included in weight updating matrix such that the overall convergence time reduces with reduced no. of iterations [25, 31]. The modified equation is as given below:where and .

Figure 7 illustrates that MPSO converged faster than LDIW-PSO. It shows better performance.

3.2. Genetic Algorithm (GA)

To improve system response of inertia-less microgrid, GA has been used to optimize PID parameters so that it effectively and efficiently gives optimal values. With the repetitive loops, chromosome population is iterated; in this case, each iteration is considered as a generation. The genetic material operators are concern with selection, crossover, and mutation to form a new cluster [32]. There is an objective function for each generation. Charles Darwin’s selection criteria are applied, and Darwin’s fitness and the struggle for survival strategy are used [33].

The probability equation iswhere is probability, refers to gene, refers to time, refers to population, refers to fitness value gene, and refers to sum of fitness value of all populations. GA is applied, and the boundary values of PID controller gains , , and are obtained through the GA optimization process. The algorithm shown in Figures 8 and 9 depicts step by step procedure on how improved PSO and GA optimization works.

3.3. Formulation of Four Performance Indices (PIs)

In this research paper, improved PSO and GA are applied to minimize the error in performance index. The error, that is, the deviation in frequency should be as minimal as possible. During this research, four performance indices were considered: integral time-weighted absolute error (ITAE), integral absolute error (IAE), integral time square error (ITSE), and integral square error (ISE). The following objective functions have been mathematically formulated.

Integral time-weighted absolute error (ITAE):

Integral absolute error (IAE):

Integral square error (ISE):

Integral time square error (ITSE):

The deviation in frequency is due to perturbation in power system due to intermittent power supply and nonlinear loads. Time range for simulation is denoted as . Minimize P.I. subject to equation (15). Here , the selected range of PID parameters gains , , and are considered. where the population size, iterations, and boundary size taken are provided in Tables 2 and 3.

4. Simulation Results and Discussion

The simulation of the 250 MW system with RES penetration is shown in Figure 1. It consists of DG 200 MW, solar power plant 15 MW, wind power plant 25 MW, 10 MW of BESS, residential load of 5 MW, and 10 MW industrial load [34, 35] which are incorporated with the proposed controller. The optimal gains obtained from the two techniques are tabulated in Table 4. Here, all the four performance indices were considered for each case.

Series of simulations were conducted in MATLAB environment to obtain optimal parameters values for different algorithms. Given below are algorithms for improved PSO and GA showing parameter settings, initialization, termination, and fitness function.

Improved PSO has a population size of 100, maximum number of iterations 50, minimum fitness of 0.0001, maximum and minimum allowable velocities acceleration constants and the other parameter is inertia weight which has been modified as discussed earlier in Section 3.1.

Similarly, the population size for GA is 100 and the number of iterations (generations) is 50. The cross probability is 0.8, and cross mutation is 0.1. In Figures 10 and 11, optimal individual fitness-based improved PSO and GA are illustrated with the four performance indices. Optimization curves for the PID parameters are shown in Figure 12; each curve shows the optimal value of each constant.

The optimization techniques used above are able to minimize error and their evaluation is carried out on the basis of four main performance indices, where the settling time, undershoot, overshoot, and oscillation got improved drastically. The RoCoF and deviation in frequency are brought to steady state within few milliseconds unlike the conventional rotational mass of synchronous machines which takes up to to settle down. The response is very fast and comes in effect well before the primary response which sets in between and the secondary frequency control which sets in after the 30th minute to shed off the loads or to operate the protective mechanism. The simulation study is carried out under three different operating conditions, where Case 1 with 2% disturbance, Case 2 with 3% disturbance, and Case 3 with 4% disturbance are considered.

Case 1. 2% disturbance: Initially, the system is stable with the frequency of for the first , and then an abrupt load demand of is introduced which results in frequency disturbance. The frequency oscillations take almost to damp out and system is restored again to stable operation with 50 Hz frequency while feeding a load of 245 MW.

Case 2. 3% disturbance: After , a RES starts supplying the power of which results in power and frequency oscillations. It takes almost to damp out the oscillations. Finally, the frequency is again restored to its nominal value while feeding the load of 252.5 MW.

Case 3. 4% disturbance: At seconds, another disturbance occurred with a reduced load demand of . This results in the higher amplitude of frequency and power oscillations and it takes almost to damp out these oscillations. Again, the frequency gets settled down to its nominal value with overall system load of 242.5 MW.
The simulation results for all the performance indices are shown separately in Figures 1316. Figure 13 shows the simulation for performance index ITAE, Figure 14 presents the results for IAE, Figure 15 shows the simulation results for ISE, and in Figure 16, the simulation results for ITSE are presented. Here, each of the diagram consists of the traces of change in frequency , frequency , power , and change of power for the PID optimized through PSO and GA. Here, it can be easily visualised that the GA performs better in terms of lower peak overshoot while the PSO outperforms GA in terms of settling time. Here, it is worthwhile to mention that in both the cases, the system works satisfactorily and stabilises rapidly when subject to any kind of disturbance.
Table 5 shows the statistical analysis of the changes in frequency captured in Figures 1316.
In Table 6, power change analysis is done; it gives in-depth understanding of how this controller is very effective.
As observed in Table 5, improvised PSO PID controller has the highest overshoot as it is with all the four performance indices but restricted to the threshold of 3%. However, in all cases, it took the shortest time to settle down. On the other hand, GA PID controller has small overshoot but long settling time.

5. Experimental Results and Discussion

Simulation was done on MATLAB/Simulink environment as discussed and results were shown. Furthermore, a real-time hardware prototype was designed based on OPAL-RT (OP-4510) as shown in Figure 17. This further illustrates the efficacy of the research concept in this paper.

It is seen that the proposed dynamic controller has quick dynamic response as it takes less than two seconds to arrest any deviation despite the intensity of the change. From the experiment, 2%, 3%, and 4% disturbances were used and the response time in all the 3 cases was found to be fast.

MATLAB simulation results and experimental results from real-time OPAL-RT are in agreement giving a clear indication that the tuned optimal values of PID controller can be used in the offline system. The outcome of both the approaches is more or less similar. In Figure 18, frequency nadir is 1.967 Hz, and in MATLAB simulations as seen in Table 5, the average for all the four performance indices is 1.985 Hz. This is to validate the proposed control approach where the simulation results are almost emulated using hardware in loop.

Finally, comparisons were made between this proposed technique and some existing techniques as shown in Table 7 to ensure its effectiveness.

6. Conclusion

The designed test system based on two optimization techniques has been successfully implemented in MATLAB/Simulink. The gains obtained through these optimization methods have been further utilised for the tuning of PID regulator which further exhibits the emulation of virtual inertia control. The three different uncertainty levels caused by either intermittent RES or fluctuating load have been demonstrated to show the effectiveness of the proposed control approach. The problems of high RoCoF, high overshoot, high undershoot, and long rise time have been significantly eliminated.

The proposed techniques are suitable for regulating both RoCoF and frequency control. The above analysis confirmed that the inclusion of optimization techniques in the microgrid would act as a game changer to elusive inertia and damping. With the continuous penetration of RES/DG into our power system network, this technique will enable system control engineers to achieve steady-state operation of the overall system.

As already discussed in results section, the proposed controller’s performance is tested and validated through the MATLAB simulation and hardware prototype, and the controller responds fast to the given changes. From the experimental validation, the proposed controller with excellent outcome can be used in microgrid with nonlinear loads and power supply. This adaptive virtual inertia method using optimization techniques improves frequency response and thus confirms the effectiveness of this controller.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.