Keywords

1 Introduction

Power system utilities are connected through tie-lines in order to exchange power. AGC provides a means to achieve accepted operating conditions by regulating the tie-line flow and system frequency; multiple parameters can be used to control the frequency. The governor droop (R) is one of the parameters which can reduce the steady-state error in frequency [1,2,3,4] defined limits for selection of R. Another parameter, according to [5, 6], is the governor frequency bias setting (B), which should be not less than the area frequency response. According to Sahu et al. [7], numerous researches have presented different optimization techniques to design a controller for AGC, as in [8,9,10] with proper selection of the droop and governor frequency bias setting, the problem now is to design of a suitable controller [11, 12]. The most frequently used in industries is the Proportional–Integral (PI) controller. The challenge is to optimize the gains of the PI controller. Authors of [7] found that a controller for AGC can be designed by tuning the controller gains through suitable optimization algorithms. According to Gozde and Taplamacioglu [13], craziness-based PSO is used to obtain the gain values of the PI controllers. Ali and Abd-Elazim [14] obtained the PI controller gain values by bacteria foraging technique. Differential evolution (DE) algorithm is used in [15] to select the PI gain values. Sahu et al. [7] explained another method to design controller gain using neural network and fuzzy logic to adopt self-tuning as in [16,17,18]. Although, the importance of renewable energy studies, which were carried out worldwide [19,20,21,22], a lot of previous studies have not considered wind generators in AGC controller design. In this paper, a comparison between several optimization techniques is carried out in order to optimize the parameter of a PI controller for AGC. In this paper, a comparison is carried out for AGC without wind generator participation followed by comparison for complicated cases considering disturbance due to wind generators. Finally, the paper proposed a suitable method to optimize the controller gain values.

2 System Understudy

A single-area AGC system dynamic model with wind generator disturbances is shown in Fig. 1. The transfer function of the generator, turbine, and governor is modeled as the linear first order. The PI controller transfer function (TF) is:

$$ {\text{TF }} = K_{p} + K_{i} *\left( \frac{1}{S} \right) $$
(1)
Fig. 1
figure 1

Single-area dynamic model of AGC with wind generator disturbance, including a time delay

The time delay is modeled as an exponential function with time constant (2 s) as explained in [23] and the gain values represent the droop and governor frequency bias.

Governor model = 1/(1 + sTg), turbine model = 1/(1 + sTch), generator and load model = 1/(Ms + D), droop = 1/R, governor frequency bias = B. The data of the system are presented as follows [23]. Tch = 0.3 s, Tg = 0.1 s, R = 0.05, D = 1, B = 21, M = 10 s. Wind generator data with swept area 5538.96 m2 and assume Cp = 0.5 is shown in Fig. 2.

Fig. 2
figure 2

Variation of wind speed data with time

From the data in Table 1, power can be calculated as follows:

$$ {\text{Power }} = \, \frac{1}{2}*\rho *C_{p} *A*V^{{3}} $$
(2)
Table 1 PI controller parameters and ISE using GA, GSA, crow, and harmony search methods without wind generator

where, ρ = density of air 1.225 (kg/m3), Cp = power coefficient, A = swept area (m2), V = wind speed (m/s).

3 Problem Formulation and Results with Discussion

3.1 Problem Formulation

In this paper, the objective function is to minimize the integral of squared error (ISE), which can be calculated as follows:

$$ {\text{ISE }} = { }\mathop \smallint \limits_{0}^{t} {\text{d}f}^{2} { }.{\text{d}t} $$
(3)

where ‘df’ is the deviation in system frequency from the desired value of frequency. The techniques such as GA, GSA, and crow search algorithms are presented in this paper. These techniques will aid in the selection of optimized parameters for a PI controller in order to minimize the ISE and reduce the integration of frequency error. There are two parts to this study, the first considers an AGC without any wind disturbance or its effects, and the second part will consider the effects of wind disturbance on the system.

3.2 Results and Discussion

The single-area AGC model shown in Fig. 1 is used to optimize the gain of the PI controller using MATLAB with and without wind generator disturbances. The variation in both cases has been plotted with step size of 10 s.

3.2.1 Case Study 1

An AGC without wind generator disturbance and any type of control system has been considered. The error in frequency can be observed in Fig. 3. The steady-state error is high, around 5 × 10–3.

Fig. 3
figure 3

Frequency deviation with time without wind generator

After applying GA, GSA, crow with random initial point, crow with GA and GSA results as the initial value in order to improve the crow output and finally the harmony optimization technique. All methods have succeeded in minimizing the steady-state error, as shown in Figs. 4, 5, 6, 7 and 8. A comparison between gain values of all the mentioned methods is shown in Table 1. It is to be noted that the excellent initial point for CSA can improve its results.

Fig. 4
figure 4

‘df’ after using GA to optimize the PI controller gain

Fig. 5
figure 5

‘df’ after using GSA to optimize the PI controller gain

Fig. 6
figure 6

‘df’ after using CSA to optimize the PI controller gain

Fig. 7
figure 7

‘df’ after using crow with initials are considered as GA and GSA results to optimize the PI controller gain

Fig. 8
figure 8

‘df’ after using harmony to optimize the PI controller gain

Figure 9 illustrates df after the application of each technique to optimize the PI controller gain. Finally, it can be concluded that all optimization algorithms succeeded in improving system performance. Optimization with wind generator disturbances is considered henceforth.

Fig. 9
figure 9

‘df’ after using each technique to optimize the PI controller gain

3.2.2 Case Study 2

AGC with disturbance due to wind generator variation is considered. The error in frequency with disturbance due to wind generator variation is shown in Fig. 10 in the absence of any controllers. It is clear that the steady-state error is high around 0.03.

Fig. 10
figure 10

‘df’ without control under disturbance due to wind generator variation

After applying GA, GSA, c with random initial point, crow with GA and GSA results as the initial value in order to improve the crow output and finally the harmony optimization technique. The steady-state error and the maximum overshoot are improved, as shown in Figs. 11, 12, 13, 14 and 15. The values of PI controller gains and comparison between the techniques are shown in Table 2. Also, the proper selection of the initial CSA changes its output from unstable to a stable condition. Figure 16 shows the response of df due to each technique.

Fig. 11
figure 11

‘df’ after using GA to optimize the PI controller gain

Fig. 12
figure 12

‘df’ after using GSA to optimize the PI controller gain

Fig. 13
figure 13

‘df’ after using CSA to optimize the PI controller gain

Fig. 14
figure 14

‘df’ after using crow with initials are considered as GA and GSA results to optimize the PI controller gain

Fig. 15
figure 15

‘df’ after using harmony to optimize the PI controller gain

Table 2 PI controller parameters and ISE using GA, GSA, crow, and harmony search methods with the wind generator
Fig. 16
figure 16

‘df’ after using each technique to optimize the PI controller gain

4 Conclusion

It is evident that the best method to optimize the PI controller in the cases presented is the GSA, which gave the best value of error and maximum overshoot. The result obtained by harmony was better than that of GA; it was observed that the crow method is highly reliant on the starting point as it gave excellent results when the initial point was assumed from the outcomes of GA and GSA methods. This paper has applied optimization techniques to evaluate the AGC performance. The paper has considered the application of wind energy as a disturbance to the system, which is considered being an essential issue with the ever-rising penetration of renewable energy. Finally, the paper presents the dependence of the crow search optimization method on the initialization parameters.