Keywords

1 Introduction

Frequency is an important factor to describe the stability criterion in power systems [15, 23, 29]. To provide the stability of power system, active power balance and steady frequency are required. If any change occurs in active power demand or the generation in power systems, oscillations increase in both power and frequency. Frequency cannot be hold in its rated value because it depends on active power balance. Thus, system subjects to a serious instability problem. In electric power generation, system disturbances caused by load fluctuations result in changes to the desired frequency value. Automatic Generation Control (AGC) or Load Frequency Control (LFC) is an important issue in power system operation and control for supplying stable and reliable electric power with good quality [24, 27]. The principle aspect of Automatic Load Frequency Control is to maintain the generator power output and frequency within the prescribed limits [7].

There are many controllers used in practice in order to keep the power system in normal operating state [13, 30], one of the famous controllers used in power system are Proportional Integral (PI), Proportional Derivative (PD) and Proportional Integral Derivative (PID) controllers, PID will be used for the stabilization of the frequency in the load frequency control problems [4, 15, 23, 24, 29]. When changes of the loads occur each control area is responsible for individual load changes and scheduled interchanges with neighboring areas [25]. The changes of the loads and abnormal conditions leads to mismatches in frequency and tie line power interchanges which are to be kept in the allowable limits, for the strong operation of the power system. For simplicity, the effects of governor dead band are neglected in the LoadFrequency Control studies. To study the realistic analysis of the system performance, the governor dead band effect is to be incorporated. To improve the stability of the power networks, it is necessary to design LFC system that controls the power generation and active power at tie lines [7, 8].

There are many studies done in the past on this important issue in power systems, which is the load frequency control. As stated in some literature [9, 14, 20], its objective is to minimize the transient deviations in area frequency and tie-line power interchange and to ensure their steady state errors to be zeros. This chapter discusses the application of evolutionary techniques in Load Frequency Control (LFC) in power systems, such that Particle Swarm Optimization (PSO), Adaptive Weighted Particle Swarm Optimization techniques (AWPSO), Adaptive Accelerated Coefficients based on PSO (AACPSO) and Evolutionary Particle Swarm Optimization (MAACPSO). Will be used to determine the parameters of a PID controller according to the system dynamics. Using the same parameters of PID controller for the two different areas because it gives a better performance for the system frequency response than in case of using two different PID parameters for each different area [8, 19]. The main objectives of LFC in case of changes in system frequency, is to regulate the power output of the electric generator within an arranged area in response to, tie line loading so as to maintain the planned system frequency and interchange with the other areas within the prescribed limits.

In this chapter, the power systems contents of two area and load frequency control of this system is made based on PID controller. To choose best parameters of PID Controller many techniques are used, Particle Swarm Optimization and Adaptive Weight Particle Swarm Optimization Techniques (PSO) and (AWPSO) [11, 18, 21] and Also using Adaptive Accelerated Coefficients based PSO, (AACPSO), then a new modification for AACPSO technique will be discuss called evolutionary techniques based on Particle Swarm Optimization (MAACPSO).

This chapter is organized as follow: Sect. 1 introduces the chapter. The Sect. 2 presents literature review of the study. Section 3 introduces Particle Swarm (PSO), AWPSO, the Adaptive Accelerated Coefficients based PSO (AACPSO) and Modified Adaptive Accelerated Coefficients based PSO (MAACPSO). Section 4 displays the case study and a comparative study between these methods, while Sect. 5 concludes the chapter. Finally a list of references and Appendix of this chapter are given at the end of the chapter.

2 Literature Review

The PID controller was first described by Minorsky [2]. It has been confirmed that in control applications more than 95 % of the controllers are PID type. Also, they state that 30 % of the PID loops operate in the manual mode and 25 % of PID loops actually operate under default factory settings. The choice of appropriate PID parameters can be achieved manually by trial and error, using as guidelines the transient and steady response characteristic of each of the three terms. However, this procedure is very time consuming and requires certain skills [3, 8].

PID control is a linear control methodology. The structure of PID controllers as shown in Fig. 1 is very simple. They operate on the error signal, which is the difference between the desired output and the actual output, and generate the actuating signal that drives the plant. They have three basic terms: proportional action, in which the actuating signal is proportional to the error signal, integral action, where the actuating signal is proportional to the time integral of the error signal; and derivative action, where the actuating signal is proportional to the time derivative of the error signal as illustrated in [10, 22, 27].

Fig. 1
figure 1

Structure of PID controller

With caution because it amplifies any existent noise in the signal. The PID standard form is given by:

$$\begin{aligned} \text{ u }=\text{ K }_\mathrm{P}.\text{ e }+\text{ K }_\mathrm{i} \mathop \smallint \nolimits \mathrm{e}.\text{ dt }+\text{ K }_\mathrm{d} .\frac{\text{ de }}{\text{ dt }} \end{aligned}$$
(1)

where:

e:

Is the error signal

u:

Is the control action

Kp:

Is the proportional gain

Ki:

Is the integral gain

Kd:

Is the derivative gain

In power system which consists of many neighboring areas there are mismatches in frequency and power transfer. The controller used in power systems should provide some degree of strength under different operating conditions. Using conventional PD, PI, PID controllers does not provide sufficient control performance with the effect of governor dead band [15, 23, 24, 29]. So many methods used since 1890s till now to tune the controller. First method is the manual tuning, this method.

To design a particular control loop, the three constants (KP, Ki, and Kd) have to be adjusted to arrive at acceptable performance; If the system must remain online, then first set Ki and Kd values to zero. Increase Kp until the output of the loop oscillates; then KP should be set to approximately half of that value for a “quarter amplitude decay” type response. Then increase Ki until any offset is correct in sufficient time for the process. However, increasing Ki will cause instability. Finally, increase Kd, if required, until the loop is acceptably quick to reach its reference after a load disturbance. However, too much Kd will cause excessive response and overshoot. A fast PID loop tuning usually overshoots slightly to reach the set point more quickly; however, some systems cannot accept overshoot, in which case an over damped closed-loop system is required, which will require a KP setting significantly less than half that of the KP setting causing oscillation. The effect of increasing each of the controller parameters KP, Ki and Kd can be summarized as illustrated in [27]. Second method is an automatic method called Ziegler–Nichols method which introduced by John G. Ziegler and Nathaniel B. Nichols in the 1940s [24, 29]. It is recognized that the step response of most process control systems has an S-shaped curve called the process reaction curve and can be generated experimentally or from dynamic simulation of the plant. [8], the shape of the curve is characteristic of high order systems, and the plant behavior may be approximated by the following transfer function [27]:

$$\begin{aligned} \frac{\text{ Y }(\text{ S })}{\text{ U }(\text{ S })}= \frac{\text{ K }.\text{ e }^{-\text{ t }_{\text{ d }} .\text{ s }}}{{\uptau }.\text{ S }+1} \end{aligned}$$
(2)

which is simply; a first order system plus a transportation lag. The constants in the above equation can be determined from the unit step response of the process. Ziegler and Nichols applied the PID controller to plants without integrator or dominant complex-conjugate poles, whose unit-step response resemble an S shaped curve with no overshoot. This S-shaped curve is called the reaction curve as shown in Fig. 1:

The following PID controller parameters were suggested:

$$\begin{aligned} \text{ K }_\mathrm{P} ={1.2\text{ T }}/\text{ L } \end{aligned}$$
(3)
$$\begin{aligned} K_i ={K_P }/{2L} \end{aligned}$$
(4)
$$\begin{aligned} \text{ K }_\mathrm{d} =0.5. \text{ L }.\, \text{ K }_\mathrm{P} \end{aligned}$$
(5)

Although the method provides a first approximation the response produced is under damped and needs further manual retuning. Some disadvantages of these control techniques for tuning PID controllers are:

  1. (a)

    Excessive number of rules to set the gains.

  2. (b)

    Inadequate dynamics of closed loop responses.

  3. (c)

    Difficulty to deal with nonlinear processes.

  4. (d)

    Mathematical complexity of the control design.

Therefore, it is interesting for academic and industrial communities the aspect of tuning for PID controllers, especially with a reduced number of parameters to be selected and a good performance to be achieved when dealing with complex processes.

The manual calculation methods no longer are used to tune loops inmost modern industrial facilities. Instead, PID tuning and loop optimization software are used to guarantee dependable results [14, 17, 25]. These software packages will gather the data, develop process models, and suggest optimal tuning.

Some software packages can even develop tuning by gathering data from reference changes, such as PSO, AWPSO [18, 19, 21], AACPSO [1, 8]. And this chapter will discuss the design of the PID controller by using modern method PSO, AWPSO, AACPSO and MAACPSO. These methods are simulated on MATLAB software program. This computer program which written on MATLAB had loops and run many times until reaching to a solution of the transfer function to have a value of PID parameters. These parameters lead to have the smallest value of settling time and over shoot. Therefore, these values of PID parameters (with these used methods) are the best values to reach to the best controller parameters. Moreover, a good comparison between the results of each used method will be done to choose the best one of them which will be suitable to use in the power system model used.

Fig. 2
figure 2

Reaction curve used by Ziegler and Nichols

3 Overview on Practical Swarm Optimization Techniques

A Particle Swarm Optimization (PSO) is one of Artificial Intelligence (AI) Techniques. It’s an optimization algorithm modeled. From the fields of AI with those of control engineering to design independent systems that can sense, reason, learn and act in an intelligent method. PSO depends on the simulation of the social behavior of bird and fish school [8, 21]. PSO is developed through the simulation of a bird flocking in two-dimension space by X-Y axis position where Vx and Vy express the velocity in X direction and Y direction. The flow chart described in Fig. 2, presented the steps of PSO. Modification of the agent position is realized by the position and velocity information [11, 18, 19, 21]. This information is analogy of personal experiences of each agent. Each agent knows its best value so far (Pbest) and its XY position; each agent knows the best value so far in the group (gbest) among Pbest s. This information is analogy of knowledge of how the other agents around them have performed. Namely, each agent tries to modify its position using the following information:

Let the particle of the swarm is represented by the N dimensional vector ith

$$\begin{aligned} \mathrm{X}_\mathrm{i}= \mathrm{(X}_{1},\mathrm{X}_{2},\mathrm{X}_{3},\,{\ldots }\,\mathrm{X}_\mathrm{N}\mathrm{)} \end{aligned}$$
(6)

The previous best position of the Nth particles is recorded and represented as follows:

$$\begin{aligned} \text{ Pbesti } = \text{(Pbest1, } \text{ Pbest2 },\,{\ldots }\,,\text{ PbestN) } \end{aligned}$$
(7)

where Pbest is Particle best position (m), N is the total number of iterations.

The best position of the particle among all particles in the swarm is represented by gbest the velocity of the particle is represented as follows:

$$\begin{aligned} \text{ Vi } = \text{(V1, } \text{ V2 },\,{\ldots }\,\text{ VN) } \end{aligned}$$
(8)

where V\(_\mathrm{i}\) is the velocity of each i particle.

The modified velocity and position of each particle can be calculated from the current velocity and the distance from particle current position to particle best position P\(_\mathrm{{best}}\) and to global best position g\(_\mathrm{{best}}\) as shown in the following Equations [8]:

$$\begin{aligned} \mathrm{V}_\mathrm{i}\mathrm{(t) }= \mathrm{W.} \mathrm{V}_\mathrm{i}\mathrm{(t-1)} + \mathrm{C}_{1}\mathrm{.rand(0,1).(}\mathrm{P}_\mathrm{best} -\mathrm{X}_\mathrm{i}\mathrm{(t-1))} + \mathrm{C}_{2}\mathrm{.rand(0,1).(}\mathrm{g}_\mathrm{best} -\mathrm{X}_\mathrm{i}\mathrm{{(t-1))}} \nonumber \\ \end{aligned}$$
(9)
$$\begin{aligned} \mathrm{X}_\mathrm{i}\mathrm{(t)}=\mathrm{X}_\mathrm{i}\mathrm{(t-1)}+\mathrm{V}_\mathrm{i}\mathrm{(t)} \end{aligned}$$
(10)
$$\begin{aligned} \mathrm{i=1,2,3}{\ldots }{\ldots }{\ldots }\mathrm{N} \end{aligned}$$
(11)
$$\begin{aligned} \mathrm{j=1,2,3}{\ldots }{\ldots }{\ldots }\mathrm{D} \end{aligned}$$
(12)

where:

Vi(t):

Velocity of the particle i at iteration t (m/s)

Xi(t):

The Current position of particle i at iteration t (m)

D:

The Dimension

C1:

The cognitive acceleration coefficient and it is a positive number

C2:

Social acceleration coefficient and it is a positive number

rand [0, 1]:

A random number obtained from a uniform random distribution function in the interval [0, 1]

gbest:

The Global best position (m)

W:

The Inertia weight

3.1 Adaptive Weighted Particle Swarm Optimization

Adaptive Weighted Particle Swarm Optimization (AWPSO) technique has been anticipated for improving the performance of PSO in multi-objective optimization problems [18, 19]. AWPSO is consists of two terms which are: inertia weight (W) and Acceleration factor (A) [21]. The inertia weight (W) function is to balance global exploration and local exploration. It controls previous velocities effect on the new velocity. Larger the inertia weight, larger exploration of search space while smaller the inertia weights, the search will be limited and focused on a small region in the search space. The inertia weight formula is as follows which makes W value changes randomly from W\(_\mathrm{o}\) to 1 [5, 6, 8].

$$\begin{aligned} {\mathrm W}={\mathrm W}_\mathrm{{o}}+\mathrm{{rand(0,1)}}(1-\mathrm{{W}}_\mathrm{{o}}\mathrm{)} \end{aligned}$$
(13)

where:

Wo:

The initial positive constant in the interval chosen from [0, 1]

Particle velocity at its iteration as follows:

$$\begin{aligned} \mathrm{V}_\mathrm{i}\mathrm{(t)} = \mathrm{W}. \mathrm{V}_\mathrm{i}\mathrm{(t-1) + }\mathrm{AC}_{1}.\mathrm{rand(0,1).}\mathrm{(P}_\mathrm{best} -\mathrm{X}_{ \mathrm i}\mathrm{(t-1))} + \mathrm{AC}_{2}.\mathrm{rand(0,1)}.\mathrm{(g}_\mathrm{best} -\mathrm{X}_{ \mathrm i}\mathrm{(t-1)) } \nonumber \\ \end{aligned}$$
(14)

Additional term denoted by A called acceleration factor is added in the original velocity equation to improve the swarm search.

The iteration of the particle velocity described in [21] as the following:

$$\begin{aligned} A=A_o +\frac{i}{n} \end{aligned}$$
(15)

where:

 

A\(_\mathrm{o}\)::

Is the initial positive constant in the interval [0.5, 1].

n::

is the number of iteration.

C\(_{1}\) and C\(_{2}\)::

Are the constant representing the weighing of the stochastic acceleration terms that pull each particle towards P\(_\mathrm{{best}}\) and g\(_\mathrm{{best}}\) positions.

As shown in acceleration factor formula, that the acceleration term will increase as the number of iterations increases. This will increase the global search ability at the end of the run and help the algorithm to get far from the local optimum region. In this chapter, the term A\(_\mathrm{O}\) is set at 0.5. Low values of C\(_{1}\) and C\(_{2 }\) allow particles to roam far from the target region before being tugged back. However, high values result in abrupt movement toward, or past, target regions.

3.2 Adaptive Accelerated Coefficients Based PSO

In Sect. 3.1 the value of W can be located a good solution at a considerably faster rate but its ability to fine tune the optimum solution is weak, due to the lack of diversity at the end of the search. It has been observed by most researchers that in PSO, problem based tuning of parameters is a key factor to find the optimum solution accurately and efficiently [28]. New researches have emerged to improve PSO Algorithms, as Time-Varying Acceleration Coefficients (TVAC), where C\(_{1}\) and C\(_{2}\) in [12] change linearly with time, in the way that the cognitive component is reduced while the social component is increased as the search proceeds [1]. This method studies how to deal with inertia weight and acceleration factors and how to change acceleration coefficients exponentially (with inertia weight) in the time, with respect to their minimal and maximal values. The choice of the exponential function is justified by the increasing or decreasing speed of such a function to accelerate the convergence process of the algorithm and to get better search in the exploration s pace. Furthermore, C\(_{1}\) and C\(_{2}\) vary adaptively according to the fitness value of G\(_\mathrm{{best}}\) and P\(_\mathrm{{best}}\), [8, 12] becomes:

$$\begin{aligned} V_i^{\left( {t+1} \right) } =w^{\left( t \right) }V_i^{\left( t \right) } +C_1^{\left( t \right) } r_1 {*}\left( {Pbest_i^{\left( t \right) } -X_i^{\left( t \right) } } \right) +C_2^{\left( t \right) } r_2 {*}\left( {Gbest^{\left( t \right) }-X_i^{\left( t \right) } } \right) \end{aligned}$$
(16)
$$\begin{aligned} w^{\left( t \right) }=w_o *exp\left( {-\propto _w *\,t} \right) \end{aligned}$$
(17)
$$\begin{aligned} C_1^{\left( t \right) } =C_{1o} *\exp \left( {-\propto _c *\,t*k_c^{\left( t \right) } } \right) \end{aligned}$$
(18)
$$\begin{aligned} C_2^{\left( t \right) } =C_{2o} *\exp \left( {\propto _c *\,t*k_c^{\left( t \right) } } \right) \end{aligned}$$
(19)
$$\begin{aligned} \propto _\mathrm{c}\, = \frac{-1}{\text{ t }_{\text{ max }} }\text{ ln }\left( {\frac{\text{ C }_{2\text{ o }} }{\text{ C }_{1\text{ o }} }} \right) \end{aligned}$$
(20)
$$\begin{aligned} k_c^{\left( t \right) } =\frac{\left( {F_m^{\left( t \right) } -Gbest^{\left( t \right) }} \right) }{F_m^{\left( t \right) } } \end{aligned}$$
(21)

where:

\(\text{ w }^{\left( \text{ t } \right) }\) :

The inertia weight factor

\(\text{ C }_1^{\left( \text{ t } \right) } \) :

Acceleration coefficient at iteration t

i:

Equal 1 or 2

t:

The iteration number

ln:

The neperian logarithm

\(\alpha \) \(_\mathrm{w}\) :

Is determined with respect to initial and final values of \(\omega \) with the same manner as \(\alpha \)c described in [2].

\(\text{ k }_\mathrm{c}^{\left( \mathrm{t} \right) } \) :

Determined based on the fitness value of Gbest and Pbest at iteration t

\(\omega \) \(_\mathrm{o}\), c\(_\mathrm{{io}}\) :

c\(_\mathrm{{io}}\) initial values of inertia weight factor and acceleration coefficients respectively with i = 1 or 2.

\(\text{ F }_\mathrm{m}^{\left( \text{ t } \right) }\) :

The mean value of the best positions related to all particles at iterationt

3.3 Modified Adaptive Accelerated Coefficients PSO

In this section, a new approach called Modified Adaptive Accelerated Coefficients PSO will be described as illustrated in [16]. A suggestion will be show how to choose the acceleration factors. The new approach will be make modification on the values of C1 and C2 which described in the last Sect. 3.2. The first coefficient changes exponentially (with inertia weight) in the time, with respect to their minimal and maximal values.While, the other one changes as a factor of the first coefficient. The choice of the exponential function is justified by the increasing or decreasing speed of such a function to accelerate the convergence process of the algorithm and to get better search in the exploration space.

Instead of the Eq. (18) the parameter C\(_{2}\)(t) is suggested to be equal [16]:

$$\begin{aligned} C_{2}(t) = 4-C_{1}(t) \end{aligned}$$
(22)

The results of the program are shown in Tables 1, 2 and 3.

Table 1 Parameter description
Table 2 Parameters values
Table 3 The results of the program using PSO, AWPSO, AACPSO and MAACPSO
Fig. 3
figure 3

General flow chart of PSO

Fig. 4
figure 4

Two-Area power system SIMULINK model using PID controller

4 Cases Study

The model used as a case study is consists of two power system areas connected with each other’s by tie transmission line as shown in Figs. 3 and 4 [8, 26]. Simulations are done by using MATLAB/SIMULINK for the case of the parameters of area 1 and area 2 are shown in the Appendix. Electric power system components are non-linear; therefore a linearization around a nominal operating point is usually performed to get a linearized system model which is used in the controller design process.

The operating conditions of power systems are continuously changing. Accordingly, the real plant usually differs from the assumed one. Therefore, classical algorithms to design an automatic generation controller using an assumed plant may not ensure the stability of the overall real system [8, 27]. The load frequency controller function is to minimize the transient deviation of the frequency and maintains their values to steady state values and to restore the scheduled interchanges between different areas.

MATLAB programs are used for PSO, AWPSO, AACPSO and MAACPSO to make tuning of the PID controller’s parameters. These parameters adjusted to have minimum integrated error value with shorted settling time. The objective function is defined as follows [8, 25]:

For Integral of Absolute Error (IAE):

$$\begin{aligned} \text{ IAE }=\mathop \smallint \limits _0^\infty \left| {\text{ e }\left( \text{ t } \right) } \right| \text{ dt } \end{aligned}$$
(23)
$$\begin{aligned} \text{ f }=\text{ IAE }_1 +\text{ IAE }_2 +\text{ IAE }_{\text{ Ptie }} \end{aligned}$$
(24)

Integral of Squared Error (ISE)

$$\begin{aligned} \text{ ISE }=\mathop \smallint \limits _0^\infty \text{ e }^{2}\left( \text{ t } \right) \text{ dt } \end{aligned}$$
(25)
$$\begin{aligned} \text{ f }=\text{ ISE }_1 +\text{ ISE }_2 +\text{ ISE }_{\text{ Ptie }} \end{aligned}$$
(26)

Integral of Time Weighted Absolute Error (ITAE)

$$\begin{aligned} \text{ ITAE }=\mathop \smallint \limits _0^\infty \text{ t }\left| {\text{ e }\left( \text{ t } \right) } \right| \text{ dt } \end{aligned}$$
(27)
$$\begin{aligned} \text{ f }=\text{ ITAE }_1 +\text{ ITAE }_2 +\text{ ITAE }_{\text{ Ptie }} \end{aligned}$$
(28)

where:

e:

Is the error

f:

Is the objective function

\({ IAE}_1 ,{ IAE}_2 ,{ IAE}_{{ Ptie}_{1}} \) :

The Integral of Absolute Error of area 1, area 2 and the tie line of the System

\({ ISE}_1 ,{ ISE}_2 ,{ ISE}_{{ Ptie}_{1}}\) :

The Integral of Squared Error of area 1, area 2 and the tie line of the System

\({ ITAE}_1 ,{ ITAE}_2 ,{ ITAE}_{{ Ptie}_{1}}\) :

Integral of Time Weighted Absolute Error of area 1, area 2 and the tie line of the System

For the two power system areas, step loading disturbance has been applied for each area, 0.07 p.u load throw has been withdrawn from the first area and 0.05 p.u loading added for the second area. The control objective is to control the frequency deviation for each area.

4.1 Steps of the Study

Using MATLAB/SIMULINK the steps of the study by using many intelligent techniques (PSO, AWPSO, AACPSO and finally using MAACPSO) areas the following:

  1. (1)

    Using MATLAB/SIMULINK model of the system with its parameters.

  2. (2)

    Choose the type of error used in the equations in the beginning of the MATLAB program (IAE, ISE, or ITAE).

  3. (3)

    Using PSO program with the equations of the chosen type of error.

  4. (4)

    Repeat using AWPSO program for the same type of error used.

  5. (5)

    Repeat using AACPSO program for the same type of error used.

  6. (6)

    Repeat using MAACPSO program for the same type of error used.

  7. (7)

    Compare the results of the four methods used and determine the best which has a less value of settling time and frequency deviation.

  8. (8)

    Assign the value of the PID controller for the best method results.

  9. (9)

    Conclude the results.

The performance index selected by the user in the beginning of the program. Based on this performance index ( f ) optimization problem can be stated as: Minimize f the nominal system description and parameters are describing in the following:

4.2 Model Description and Parameters

The block diagram of the two areas power system model using PID controller presented at Fig. 3 as presented in [8, 27]. The description for the system parameters is displayed in Table 1 and the parameters values of the system is presented in Table 2.

So the transfer function of governors, turbine, mass and load becomes as given in [27]:

$$\begin{aligned} \text{ G }_{\text{ h }1}(\text{ S })=\text{ G }_{\text{ h }2}(\text{ S })=\frac{1}{0.08\text{ s }+1} \end{aligned}$$
(29)
$$\begin{aligned} \text{ G }_{\text{ t }1}(\text{ S })=\text{ G }_{\text{ t }2}(\text{ S })=\frac{1}{0.3\text{ s }+1} \end{aligned}$$
(30)
$$\begin{aligned} \text{ G }_{\text{ y }1} (\text{ S })=\text{ G }_{\text{ y }2}(\text{ S })=\frac{120}{20\text{ s }+1} \end{aligned}$$
(31)

To optimize the performance of a PID controlled system, the PID gains K\(_\mathrm{P}\), K\(_\mathrm{i}\), and K\(_\mathrm{d}\) of the two-area electric power system shown in Fig. 3 are adjusted to minimize a certain performance index. The performance index is calculated over a time interval; T, normally in the region of 0 < T <ts where t\(_\mathrm{s}\) is the settling time of the system. By using different techniques in conjunction with Eqs. 2229 the optimal controller parameters under various performance indices were obtained as shown in Tables 1, 2 and 3 show the results of the different methods used based PID controller.

Fig. 5
figure 5

The frequency deviation of area 1 without controller

4.3 Results in Case of IAE Error

A MATLAB code was written to carry out the PSO, AWPSO, AACPSO and MAACPSO algorithms. The Integral of Absolute Error (IAE) is considered as a choice in the run of the program. Table 3 illustrates The Results of the Program Using PSO, AWPSO, AACPSO and MAACPSO.

Figures 5 and 6 present the frequency deviation of area 1 and area 2 without using PID controller.

Fig. 6
figure 6

The frequency deviation of area 2 without controller

Fig. 7
figure 7

The frequency deviation of area 1 with PSO based PID controller using IAE performance indices

Fig. 8
figure 8

The frequency deviation of area 1 with AWPSO based PID controller using IAE performance indices

Fig. 9
figure 9

The frequency deviation of area 1 with AACPSO based PID controller using IAE performance indices

Furthermore, there are the Figures describe the output of the system after controlling the error on area 1 and area 2. Figure 7 presents the frequency deviation of area 1 with PSO based PID Controller, Fig. 8 presents the frequency deviation of area 1 with AWPSO based PID controller and Fig. 9 illustrates the frequency deviation of area 1 with AACPSO based PID controller and finally Fig. 10 presented the frequency deviation of area 1using MAACPSO based PID controller.

Fig. 10
figure 10

The frequency deviation of area 1 with MAACPSO based PID controller using IAE performance indices

Fig. 11
figure 11

The frequency deviation of area 2 with PSO based PID controller using IAE performance indices

Fig. 12
figure 12

The frequency deviation of area 2 with AWPSO based PID controller using IAE performance indices

Fig. 13
figure 13

The frequency deviation of area 2 with AACPSO based PID controller using IAE performance indices

The next Figures present the behavior of area 2 in different cases of Artificial Intelligence techniques.

Figure 11 presents the frequency deviation of area 2 with PSO based PID controller using IAE performance indices; Fig. 12 shows the behavior of the frequency deviation of area 2 in case of using AWPSO, while; Fig. 13 displays The frequency deviation of area 2 with AACPSO based PID controller, finally Fig. 14 presents the frequency deviation of area 2 with MAACPSO based PID controller using IAE performance indices.

Table 4 Tie line behavior at different types of control

From the results shown in Table 3 and also the above Figures from Figs. 7, 8, 9, 10, 11, 12, 13 and 14 all these show that:

  1. (a)

    The settling time by using AACPSO is the smallest value of all the techniques used in the comparison. While, the settling time using MAACPSO comes next.

  2. (b)

    The difference value between the settling time values using two methods “AACPSO, MAACPSO” is very small and equal approximately 0.08 s.

  3. (c)

    All these results present that: the best method used to reach the minimum value of settling time in area 1 is AACPSO.

  4. (d)

    The value of settling time of area 2 by using MAACPSO is less than all values using other methods.

  5. (e)

    The difference between the value of settling time using MAACPSO and the nearest value using AACPSO is equal approximately 1.04 s.

  6. (f)

    The value of settling time of the tie line using MAACPSO technique is the smallest compared to all methods used.

  7. (g)

    The difference between the values of settling time of the tie line using MAACPSO technique is less than the nearest value of settling time using AAPSO by approximately 1.08 s.

In the following sections there is Table 4 and Fig. 14 of Tie Line which describes the effects of using different techniques.

Figure 15 displays the Frequency Change Of The Tie Line Power With Using PSO, AWPSO And AAPSO Based PID Controller.

Fig. 14
figure 14

The frequency deviation of area 2 with MAACPSO based PID controller using IAE performance indices

Table 5 Comparison between (MAACPSO) and (AACPSO)

Table 5 shows Comparison of the value of Overshoot (Hz) and settling time (sec.) of the best two methods used MAACPSO and AACPSO.

Fig. 15
figure 15

Tie line power changes using PSO, AWPSO, AACPSO and MAACPSO based PID controller in case of using IAE error

The illustrated results in Table 5, Fig. 15 show that:

  1. (a)

    Tables 4 and 5 indicate that on the Tie line power, the value of settling time in case of using MAACPSOis the best results and has a smaller value comparing with the other methods used (PSO, AWPSO and AACPSO).

  2. (b)

    The settling time of Tie line in case of using MAACPSO is less than its value in case of using AACPSO by about 1.5 s, and less than its value when using AWPSO by about 1.6 s.

  3. (c)

    Settling time by AWPSO is smaller than using PSO by 0.0359 s.

  4. (d)

    The maximum frequency of Tie line power in case of using MAACPSO is less than its value of the other methods of controller used by a very small value.

  5. (e)

    In general the maximum frequency of Tie line power is construed to be zero.

  6. (f)

    Time at maximum power in case of using MAACPSO is less than the its value by using AACPSO by about 8 %, and the value of that time by using AACPSO is less than the other values of PSO and AWPSO. This value is less than the time of maximum power in case of using PSO by about 23.4 % and less than its value in case of using AWPSO by about 21.5 %.

  7. (g)

    The minimum Tie line power in case of using MAACPSO is very small comparing with another methods, and its value in case of using AWPSO and AACPSO are almost equal and less than its value in case of using PSO.

  8. (h)

    Time at minimum power in case of using MAACPSO is less than the other values of PSO, AWPSO and AACPSO.

  9. (i)

    The Overshoot and settling time of area 1 by using MAACPSO is greater than that values by using AACPSO by a very small value.

  10. (j)

    The Overshoot and settling time of area 2 by using MAACPSO is smaller than that values by using AACPSO.

  11. (k)

    The Overshoot and settling time of tie line by using MAACPSO is very small than that values by using AACPSO.

All these results present that: the best method used to reach the minimum value of settling time is MAACPSO and AACPSO comes next.

5 Conclusions

The simulation of the proposed controllers explained in this chapter, indicate that:

Modified Adaptive Accelerated Coefficients based on PSO (MAACPSO) is the best method comparing with all methods used in this study. Then AACPSO comes next. As shown the settling time in area 1 using MAACPSO gives value near the value of settling time using AACPSO, the difference between the two methods was 0.07 s,and it’s very small value.The settling time in area 2 using MAACPSO gives smaller than the value using AACPSO, the difference about 1.13 s, this is a very good result of MAACPSO. The settling time in tie line using MAACPSO gives very good value comparing with AACPSO, the difference was about 1.08 s., as presented in Tables 4 and 5 the frequency deviation values of area 1 of the best two methods MAACPSO and AACPSO was nearly equal, and the value using MAACPSO of tie tine is smaller than its value using AACPSO by about 5.6E-7 Hz.

6 Future Work

Studding the load frequency control using two different power system as a model and using MAACPSO technique will be a good study to examine the new technique, and make a comparison between the results of settling time and overshoot frequency using MAACPSO and some techniques like Fuzzy.