Introduction

Within the power system network, frequency control is one of the challenges that must be addressed properly. It is becoming more important because of uncertainties and the complexity of the electrical network [1]. The early aim of LFC is to maintain the scheduled system frequency and inter-area tie-line power within predetermined limits to cope with the load variations and system disturbances [2, 3]. Control strategies that are robust, easy to implement, and take into account the growing complexity and variation in the power system are required to achieve desirable performance.

Over the last decades, control system designers have applied several research and design strategies to the LFC problem to find the best solutions. In LFC problems, proportional–integral–derivative (PID) is still a suitable controller. Conventional techniques for determining PID parameters need a linearized mathematical model of the system under study. Recently, heuristic and metaheuristic optimization techniques like genetic [4], cuckoo search [5], bacterial foraging [6], imperialist competitive [7], whale optimization algorithm [8], and chaotic optimization [9] have been discussed to overcome these issues. In Ref [10], load frequency control for the power system with uncertainties such as GDB and GRC has been investigated. Control systems that employ fixed parameters, such as PID controllers, are incapable of handling uncertainties and load perturbations due to their design at specific nominal operating points. Therefore, robust and adaptive control strategies in the papers address this problem since these traditional control strategies may no longer perform well in all operating conditions.

Fuzzy logic is one of these control approaches to solve the LFC problem. Unlike conventional methods that rely primarily on a mathematical model for analysis, fuzzy logic control is based on experience and knowledge of experts about a system [11]. The success of fuzzy logic controllers is also presented in Ref. [12,13,14,15]. In these papers, several optimizations techniques have been carried out to find the gains of the fuzzy controllers. Reference [12] uses a sine cosine algorithm, and Ref. [13] presents a fuzzy tuning PI controller using a self-modified bat algorithm (SAMBA) for tuning the parameters. Also, type-2 fuzzy controller [14] and fractional-order fuzzy PID [15,16,17] have been introduced to enhance the performance of the fuzzy approach in the LFC.

Other techniques such as neural network in Ref. [18, 19], H∞ controller, sliding mode controller, and predictive control in Ref. [20,21,22,23,24] have been applied for the LFC problem. By implementing these strategies, the performance of dynamic controllers is improved when dealing with nonlinearities and uncertainties compared to conventional methods. However, complex calculations to obtain parameters and difficulties in physical implementation continue to obstruct their use in power system grids. Considering these concerns, and with the power system structure becoming more complex day by day, new intelligence techniques are essential to provide desirable performance for power systems.

Recently, a new method of load control has been introduced based on coefficient diagrams. The method uses an algebraic approach to indirectly determine the poles and settle time by using a polynomial overall closed loop [25]. While CDM has a relatively recent application in LFC, its primary principle has been investigated in other fields. Servo motors, steel mill drives, gas turbines, and spacecraft attitude control are examples of these applications. CDM is a polynomial technique that has been developed to guarantee the robustness of the solution. From the shape of the diagram, the designer can see the response, stability, and robustness. Therefore, the design procedure is easier to understand and less complicated [25].

In Ref. [26], a LFC method using CDM is proposed. In this paper, comparing this CDM controller with integrators and model predictive controllers, its superiority has been demonstrated. However, the coefficient and parameters to tune the controller have not been optimized. In Ref. [27], state feedback gains and Kalman filters were used to improve the CDM controller performance. Despite the fact that this article presents a superior control technique, state feedback-based controllers are not practical because they are too complex and are not available in real power systems. In Ref. [28], rather than merely using the classical technique of decentralizing algebraic CDM, the suggested control scheme in this research work takes into account an optimization technique to illustrate the best performance of this controller. Despite the fact that this paper presents a new approach to finding the best coefficients for CDM controllers, it has a lot of tunable parameters, making it complicated, while the CDM has the potential to demonstrate proper performance with much fewer variables.

Along with all the many benefits of the CDM controller, which have already been presented in the mentioned research works, this paper introduces a new design approach to find the best performance of this controller with respect to its algebraic equations. Moreover, to make the controller practical for industrial applications, the proposed CDM controller’s tuning parameters have been decreased compared to previous papers. The key parameters of the proposed controller have been determined using an optimization algorithm called the water cycle algorithm (WCA). The WCA is a new optimization algorithm that has been proposed by the observation of the water cycle process and the movements of rivers and streams toward the sea [29]. The performance of WCA in tuning CDM parameters compared to GA and PSO has also been investigated in the present work. A variety of cases, including large steps and uncertainty in dynamic parameters, were used to illustrate the superiority of the proposed method. In this study, comparing the results of using a classical integral, a CDM alone, a fuzzy strategy, an optimized PID, and the proposed controller, the superiority of the suggested controller has been confirmed. The objectives of this work are:

  1. (a)

    Optimize the parameters of CDM with respect to its algebraic equations.

  2. (b)

    Using an optimization technique called WCA with better performance to find the coefficients of CDM controller.

  3. (c)

    Making the CDM Controller more practical by minimizing the number of tunable parameters.

  4. (d)

    Comparing the proposed control strategy with existing ones to demonstrate its superiority.

  5. (e)

    Show the robustness of the suggested controller against uncertainties and large disturbances.

This paper is organized as follows: “Dynamic response of power system” provides an overview of the power system structure and its essential control loops. In the “coefficient diagram method” section, a general explanation of this method is described. The “Water Cycle Algorithm” section discussed a new optimization technique used in this paper. In “proposed control strategy,” the CDM-OPT method is introduced. Several simulations for studying the performance of the control strategy and the results are in section “Results and simulations.” The paper ends with the “conclusion” section, followed by the references.

Dynamic response of power system

An extensive interconnected power system with multiple generation types includes a number of different areas [30]. High-voltage transmission lines interconnect these areas. Figure 1 shows a controlled multi-area power system with primary droop control and secondary supplementary feedback loops [1]. Primary control is not fast enough to bring the local frequency back to its steady-state point. Therefore, the secondary control loop delivers reserve power to decrease the frequency deviations [31]. A load variation in each area affects the system’s response in all areas; therefore, a fast and robust controller is necessary to improve frequency fluctuation in the power system.

Fig. 1
figure 1

Block diagram schematic of ith area power system used in the study [26]

The total power variation in tie-line between area i and the other areas is as follows:

$$\Delta Ptie,i=\frac{2\pi }{s}\left(\sum_{\begin{array}{c}j=1\\ j\ne i\end{array}}^{N}{T}_{ij}{\Delta f}_{i}-\sum_{\begin{array}{c}j=1\\ j\ne i\end{array}}^{N}{T}_{ij}{\Delta f}_{j}\right)$$
(1)

The deviation in frequency represented as:

$$\Delta {\dot{f}}_{i}=\left(\frac{1}{2{H}_{i}}\right)\cdot \Delta P{m}_{i}-\left(\frac{1}{2{H}_{i}}\right)\cdot \Delta P{L}_{i}-\left(\frac{{D}_{i}}{2{H}_{i}}\right)\cdot \Delta {f}_{i}-\left(\frac{1}{2{H}_{i}}\right)\cdot \Delta Ptie,i$$
(2)

In addition, the dynamics of the turbine calculated as:

$$\Delta {\dot{P}}_{mi}=\left(\frac{1}{{T}_{ti}}\right)\cdot \Delta P{g}_{i}-\left(\frac{1}{{T}_{ti}}\right)\cdot \Delta {P}_{mi}$$
(3)

Moreover, the dynamic of the governor represented by:

$$\Delta {\dot{P}}_{gi}=\left(\frac{1}{{T}_{gi}}\right)\cdot \Delta P{c}_{i}-\left(\frac{1}{{{R}_{i}T}_{gi}}\right)\cdot \Delta {f}_{i}-\left(\frac{1}{{T}_{gi}}\right)\cdot \Delta P{g}_{i}$$
(4)

Coefficient diagram method

The CDM is a polynomial design method, where instead of a Bode diagram, the coefficient diagram is used, and the sufficient condition for stability by Lipatov forms its theoretical basis [32]. CDM provides information on the stability, time response, and robustness characteristic of the system under the study in a single diagram [26].

As shown in Fig. 2, a two-parameter configuration is used to implement an overall transfer function in CDM design. N(s) = Bp(s) is numerator polynomial, D(s) = Ap(s) is dominator polynomial of the system. In addition, F(s) is the reference numerator while Ac(s) and Bc(s) are forward denominator and feedback numerator polynomials respectively [33].

Fig. 2
figure 2

Schematic diagram of a CDM controller

Note that subscripts c and p stand for controller and plant, respectively.

In this approach, r(s) is considered as the reference input to the system, d as the external disturbance, and u as the control signal. The controller’s output, y, can be determined by:

$$y=\frac{N\left(s\right)F\left(s\right)}{P\left(s\right)}r\left(s\right)+\frac{N\left(s\right){A}_{c}\left(s\right)}{P\left(s\right)}d$$
(5)

where P(s) is the characteristic polynomial of the closed-loop system, and it is defined by:

$$P\left(s\right)={A}_{c}\left(s\right){A}_{p}\left(s\right)+{B}_{c}\left(s\right){B}_{p}\left(s\right)={a}_{n}{s}^{n}+\dots +{a}_{1}s+{a}_{0}={\sum }_{i=0}^{n}{a}_{i}{s}^{i}$$
(6)

The design parameters of CDM controllers are the equivalent time constant (τ), the stability indices (γi), and the stability limits (γ*). The relations between these parameters and the coefficients of the characteristic polynomial (ai) can be described as follows:

$${\gamma }_{i}=\frac{{a}_{i}^{2}}{{a}_{i+1}.{a}_{i-1}}, i=\mathrm{1,2},\dots ,\left(n-1\right), {\gamma }_{0}={\gamma }_{i}=\infty$$
(7)
$$\tau =\frac{{a}_{1}}{{a}_{0}}$$
(8)
$${\gamma }_{i}^{*}=\frac{1}{{\gamma }_{i-1}}+\frac{1}{{\gamma }_{i+1}}, i=\mathrm{1,2},\dots ,\left(n-1\right), {\gamma }_{0}={\gamma }_{i}=\infty$$
(9)

The designer, as per the controller’s requirement, can change the above γi values. However, proper tuning of these parameters requires experience or trial and error.

Also, define the pseudo-break points

$${\omega }_{i}=\frac{{a}_{i}}{{a}_{\mathrm{i}-1}}, i=\mathrm{1,2},\dots ,\left(n-1\right)$$
(10)

Then we have

$${\gamma }_{i}=\frac{{\omega }_{i}}{{\omega }_{i-1}}, i=\mathrm{1,2},\dots ,\left(n-1\right)$$
(11)
$${a}_{i}=\frac{{a}_{0}{\tau }^{i}}{{\gamma }_{i-1}{\gamma }_{i-2 }^{2}\dots {\gamma }_{2}^{i-2}{\gamma }_{1}^{i-1}}$$
(12)

Considering the parameters (τ) and (γi), the objective characteristic polynomial, Ptarget(s), can be expressed as follows:

$${P}_{\rm target}\left(s\right)={a}_{0}\times \left[\left\{{\sum }_{i=2}^{n}\left({\prod }_{j=1}^{i-1}\frac{1}{{\gamma }_{i-j}^{j}}\right){ \left(\tau s\right)}^{i}\right\}+\left(\tau s\right)+1\right]$$
(13)

Moreover, the reference numerator polynomials F(s) can be determined from:

$$F\left(s\right)=\left(\frac{P\left(s\right)}{N\left(s\right)}\right){|}_{s=0}$$
(14)

Water cycle algorithm

Inspired by the water cycle process in nature and how rivers and streams flow toward the sea, a population-based metaheuristic algorithm, the water cycle algorithm (WCA), has recently been introduced [34]. Similar to the other metaheuristic approach, the suggested algorithm begins with an initial population of design variables called streams that are randomly generated from the raining in nature [35]. In an NVar dimensional optimization problem, a stream is an array of 1 × NVar. Consider this array as:

$$\mathrm{A candidate stream}=\left[{x}_{1},{x}_{2},{x}_{3},\dots ,{x}_{N}\right]$$
(15)

To start the optimization, a candidate demonstrating a matrix of streams of size Npop × NVar that is generated randomly, defined as follows:

$$\mathrm{Total population}=\left[\begin{array}{c}\mathrm{sea}\\ {\mathrm{River}}_{1}\\ {\mathrm{River}}_{2}\\ \vdots \\ {\mathrm{Stream}}_{{N}_{sr}+1}\\ {\mathrm{Stream}}_{{N}_{sr}+2}\\ \vdots \\ {\mathrm{Stream}}_{{N}_{\mathrm{pop}}}\end{array}\right]=\left[\begin{array}{cccc}{x}_{1}^{1}& {x}_{2}^{1}& \dots & {x}_{N}^{1}\\ {x}_{1}^{2}& {x}_{2}^{2}& \dots & {x}_{N}^{2}\\ \vdots & \vdots & \vdots & \vdots \\ {x}_{1}^{{N}_{\mathrm{pop}}}& {x}_{2}^{{N}_{\mathrm{pop}}}& \dots & {x}_{N}^{{N}_{\mathrm{pop}}}\end{array}\right]$$
(16)

The intensity of flow for each stream is obtained by the evaluation of cost function (C) given as:

$${C}_{i}={\mathrm{Cost}}_{i}=f\left({x}_{1}^{i},{x}_{2}^{i},\dots, {x}_{{N}_{\mathrm{var}}}^{i}\right) \quad i=\mathrm{1,2},3,\dots , {N}_{\mathrm{pop}}$$
(17)

where Npop and NVar are the numbers of streams (initial population) and the number of tunable variables, respectively. For the first step, Npop streams are generated. A number of Nsr from the best individuals are chosen as a sea and rivers. The stream that has the minimum value among others is considered as a sea. In fact, Nsr is the summation of the number of rivers and a single sea as given in Eq. (18). The rest of the population (streams that flow to the rivers or may alternatively directly flow to the sea) is computed using the following equation:

$${N}_{sr}=\mathrm{Number of Rivers}+$$
(18)
$${N}_{\mathrm{Raindrops}}={N}_{\mathrm{pop}}-{N}_{sr}$$
(19)

In order to designate streams to the rivers and sea, the following equation is given:

$${NS}_{n}=\mathrm{round}\left\{\left|\frac{{\mathrm{cost}}_{n}}{{\sum }_{i=1}^{{N}_{sr}}{cost}_{i}}\right|\times {N}_{\mathrm{Raindrops}}\right\}, \quad n=\mathrm{1,2},\dots , {N}_{sr}$$
(20)

where \({NS}_{n}\) is the number of streams, which flow to the particular rivers or sea. According to the following formula, the stream flows to the river along the line connecting them:

$$X\in \left(0,C\times d\right), C>1$$
(21)

where 1 < C < 2 and the best value for C may be selected as 2. The current distance between stream and river is represented as d [34]. The exploitation phase in WCA, the new position for streams and rivers can be given as:

$${X}_{\mathrm{stream}}^{i+1}={X}_{\mathrm{stream}}^{i}+rand\times C\times \left({X}_{\mathrm{River}}^{i}{-X}_{\mathrm{Stream}}^{i}\right)$$
(22)
$${X}_{\mathrm{stream}}^{i+1}={X}_{\mathrm{stream}}^{i}+rand\times C\times \left({X}_{\mathrm{sea}}^{i}{-X}_{\mathrm{stream}}^{i}\right)$$
(23)
$${X}_{\mathrm{River}}^{i+1}={X}_{\mathrm{River}}^{i}+rand\times C\times \left({X}_{\mathrm{sea}}^{i}{-X}_{\mathrm{River}}^{i}\right)$$
(24)

where rand is a random number between 0 and 1. If the solution obtained by a stream is better than its connecting river, the positions of the river and stream are switched (i.e., stream becomes river and river becomes stream). A similar interchange can be happened for a river and the sea and for the streams and the sea as well.

In addition, the evaporation and raining process are suggested in WCA to enhance its performance. To be more precise, evaporation can prevent the algorithm from rapid convergence and is responsible for the exploration phase in the WCA.

$$if \left|{X}_{\mathrm{Sea}}^{i}-{X}_{\mathrm{River}}^{i}\right|<{d}_{\mathrm{max}} \quad i=\mathrm{1,2},3, \dots , {N}_{sr}-1$$
(25)
$$\mathrm{Evaporation\,and\,raining\,process\,end}$$

where dmax is a small number (close to zero). It can control the search intensity near the sea (the optimum solution). The value of dmax decreases as follows [34]:

$${d}_{\mathrm{max}}^{i+1}={d}_{\mathrm{max}}^{i}-\frac{{d}_{\mathrm{max}}^{i}}{\mathrm{max}_{\rm iteration}}$$
(26)

For determining the positions of the newly created streams, the following equation is applied:

$${X}_{\mathrm{Strean}}^{\mathrm{new}}=\mathrm{LB}+rand\times \left(\mathrm{UB}-\mathrm{LB}\right)$$
(27)

where LB and UB are lower and upper limits defined by the problem, respectively. The flowchart for WCA is outlined in Fig. 14 of Appendix Section.

Proposed control strategy

Although the standard CDM is simple and proven to be robust, there may be some challenges involved in implementing it as a controller for the power system, particularly for LFC. A major challenge in power system frequency control is the fact that the complexity of power system structure and the frequent changes within a power system make it difficult to tune CDM parameters [25]. Obtaining the key parameters (\({\gamma }_{i}\),\(\tau\)) for the CDM controller is the vital step in the process of designing the controller. Previous papers chose these variables without utilizing any optimization method despite having a set of mathematical equations. Moreover, previous papers used different stability indices and time constants for each area, resulting in increasing the number of tunable parameters. However, this paper attempts to resolve these problems by applying the optimal CDM controller with a limited number of parameters to the load frequency control problem. This innovative controller uses a CDM technique that is well integrated with algebraic optimization throughout its equations. The stability indices \(\left( {\gamma_{i} } \right)\), time constant \(\left( \tau \right)\) and \((K_{B0} )\) are considered as the tuning parameters of CDM controller in this study. It should be noted that these parameters were determined in Ref [26] without any optimization.

$$CDM \mathrm{tune parametrs}: {\gamma }_{i}:[{\gamma }_{0},{\gamma }_{1},{\gamma }_{2},\dots ] , \tau , {K}_{B0}$$
(28)

In order to make a more robust controller with fewer variables, only \({K}_{B0}\) is different in each area, while the same stability indices and time constant are considered for both areas of the power system. After calculating N(s), D(s) of the plant transfer function and generation new populations of CDM parameters by an optimization algorithm, Ac(s) and Bc(s) can be calculated by Eqs. (13) and (16).

In order to find the best coefficient for Ac(s) and Bc(s), an objective function should be defined. In this study, integral absolute error (IAE) of the frequency deviation of all areas is chosen as the objective function. The objective function J is set to be:

$$J=\mathrm{IAE}={\int }_{0}^{\infty }\left(|{\Delta f}_{i}|\right)dt$$
(29)

Note that subscript i stands for CDM controller in area i. In order to optimize the gains of the CDM controller, a 1% step increment in loads of all areas with a 50% change in governor and turbine parameters is applied. Figure 3 shows the flowchart of the proposed method in this study.

Fig. 3
figure 3

Flowchart of procedure to tune CDM controller

As a test system, a two-area nonlinear power system has been chosen in order to compare different control strategies applied to load frequency control [26]. The parameters of the power systems are shown in Table1. The major observations of the proposed method are presented below. For each of this power system’s areas, the GRC has been set at 10% per minute and GDB as 0.05 pu.

Table 1 Two-area power system network [26]

Related algebraic calculations in order to find these CDM optimal parameters are given. Table 2 summarizes these equations and compares CDM-OPT characteristics with classical CDM.

Table 2 CDM controller with and without WCA optimum values for two-area power system

Area 1

  • N1(s) = 0.3483S + 1.256

  • D1(s) = 0.005334 S4 + 0.805 S3 + 0.1739 S2 + 0.348 S

  • Ptarget,1 = 0.000000732 S6 + 0.001 S5 + 0.054 S4 + 0.276 S3 + 0.0793 S2 + 2.276 S + 2.57

    $${\gamma }_{i}=\left[25.33, 0.01, 17.62, 9.88, 29.98\right], \tau =0.8832 {K}_{B\mathrm{0,1}}=20.5126$$
  • A1(s) = 2.0318S + 0.0014S2

  • B1(s) = 20.5126 + 12.4314S + 6.9261S2

Area 2

  • N2(s) = 0.3827S + 1.256

  • D2(s) = 0.00532 S4 + 0.10127 S3 + 0.2097 S2 + 0.382 S

  • Ptarget,2 = 0.000001789 S6 + 0.0026 S5 + 0.133 S4 + 0.673 S3 + 0.193 S2 + 5.540 S + 6.27

    $${\gamma }_{i}=\left[25.33, 0.01, 17.62, 9.88, 29.98\right], \tau =0.8832 {K}_{B\mathrm{0,2}}=39.9347$$
  • A2(s) = 3.9521S + 0.0027S2

  • B2(s) = 39.9347 + 23.1225S + 11.917S2

Results and simulations

In this section, various comparative cases are examined to illustrate the effectiveness and robustness of the proposed strategy. Simulation of a two-area power system, considering nonlinearities such as GRC and GDB based on the proposed strategy, has been done using MATLAB/SIMULINK toolbox.

Case1: Convergence of optimization techniques.

According to the discussion in Sect. 5, the parameters of the CDM controller can be tuned by different optimization algorithms. In this study, the WCA is chosen to make the CDM controller show its best performance. In order to investigate the effectiveness of the WCA, a comparison has been carried out with the GA and PSO. The conditions for the simulations are:

1—A 1% step increase in load demand of both areas at t = 1 s and t = 30 s.

2—The best performance of each algorithm is chosen from ten runs.

3—According to strategy control in Sect. 5, the objective function J is set to be:

$$J=\mathrm{IAE}={\int }_{0}^{t}|{\Delta f}_{1}|\mathrm{d}t|+{\int }_{0}^{t}|{\Delta f}_{2}|\mathrm{d}t$$
(30)

The other three performance indices to investigate the responses are:

$$\mathrm{ISE}={\int }_{0}^{t}{{\Delta f}_{1}}^{2}\mathrm{d}t+{\int }_{0}^{t}{{\Delta f}_{2}}^{2}\mathrm{d}t$$
(31)
$$\mathrm{ITSE}={\int }_{0}^{t}({{\Delta f}_{1}}^{2}+{\int }_{0}^{t}{{\Delta f}_{2}}^{2})t\mathrm{d}t$$
(32)
$$\mathrm{ITAE}={\int }_{0}^{t}(|{\Delta f}_{1}||+{\int }_{0}^{t}|{\Delta f}_{2}|)t\mathrm{d}t$$
(33)

Assuming the same number of initial population (chosen as 50) and the max iteration (chosen as 50), the comparative convergence of profile of objective function, as shaped by different algorithms, has been carried out. The characteristics of these algorithms are presented in Fig. 14 of Appendix. The performance of each algorithm independently is shown in Fig. 4a–c. Figure 4d compares the best performance of each algorithm together. It can be observed that WCA exhibits a faster convergence profile. Table 3 shows the max, min, average, and standard deviation of the final values of the objective functions gathered in these 30 simulations (10 simulations for each optimization). It can be seen that WCA offers a smaller final of objective function. Another advantage of WCA is the simulation time that is decreased by 20 percent. Thus, WCA may be apprehended as an effective optimization tool for tuning the parameters of CDM controllers in LFC applications. So, only WCA has been considered for the rest of the work.

Fig. 4
figure 4

Case 1 convergence profiles: a GA. b PSO. c WCA. d Best minimum objective function

Table 3 Statistical analysis of objective functions

Case 2: Step load demand change in area 1

Five control strategies have been considered to compare the performance of the controllers. Parameters of these controllers are presented in Figs. 12 and 13, Tables 12 and 13 of Appendix. Following is a list of these five control methods:

  1. 1-

    Integral controller [1].

  2. 2-

    Classical CDM controller [26].

  3. 3-

    Optimized PID controller with WCA [35].

  4. 4-

    Optimized fuzzy controller with WCA [17].

  5. 5-

    Optimized CDM (proposed method)

As the second case, a 1% step increase in load demand of the area 1 is applied. Figure 5a shows frequency change in area 1, Fig. 5b shows frequency change in area 2, and Fig. 5c shows tie-line power variations between the areas. The various performance measures of system responses are tabulated in Table 4 for each controller. In addition, due to the small OS, US, and decreasing the level of oscillations compared to other strategies, the proposed method leads to better performance.

Fig. 5
figure 5

Case 2 signals: a Frequency in area 1. b Frequency in area 2. c Tie-line between areas

Table 4 System response for step change in load, pertaining to case 2

Case 3: Sinusoidal load change

In this case, a sinusoidal load disturbance is applied to area 1. Figure 6a shows the load variations in area 1. Figure 6b shows frequency change in area 1, Fig. 6c shows frequency change in area 2, and Fig. 6d shows tie-line power variations between the areas. It is evident that by providing fast response, the optimized CDM controller dampens oscillations to zero faster than other methods.

Fig. 6
figure 6

Case 3 Signals: a Sinusoidal load variation. b Frequency in area 1. c Frequency in area 2. d Tie-line between areas

Case 4: Uniformly distributed random load

In this case, a random load disturbance is applied to both area 1 and area 2. Figure 7a, b shows the load variations in these areas. Frequency deviations of area 1, area 2, and tie-line power are plotted in Fig. 7c, d, e, respectively. It is evident that the designed CDM-OPT controller shows a better performance compared to other controllers.

Fig. 7
figure 7figure 7

Case 4 Signals: a Random load in area 1. b Random load in area 2. c Frequency in area 1. d Frequency in area 2. e Tie-line between areas

Case 5: Load variations in all areas with changes in system parameters

In order to examine the effectiveness of the proposed method, the system is tested against a wide range of uncertainties and random load demands in both areas altogether. The governor time constants increased to Tg1 = 0.105 (31% change), Tg2 = 0.105 (66% change) and turbine time constants increased to Tt1 = 0.785 (95% change), Tt2 = 0.6 (38% change) respectively. Figure 8a shows the load variations, and Fig. 8b, c, d shows other related responses of the controllers. Table 5 shows a comparison analysis between cases 2–5. It has been indicated that the designed controller can provide sufficient response under different operating conditions.

Fig. 8
figure 8

Case 5 Signals: a load variations. b Frequency in area 1. c Frequency in area 2. d Tie-line between areas

Table 5 Responses analysis in cases 2–5

Case 6: Sensitivity analysis

An analysis of sensitivity is performed to determine how robust the proposed optimized CDM controller is to a wide range of system dynamic parameters. A 1% step increase in load demand of the area 1 is applied. Figure 9 shows the objective function value with \(\pm\)25%, \(\pm\)50% variations in governor and turbine parameters at the same time. Table 6 shows the sensitivity analysis for governor and turbine time constant in each area separately. Figure 10a, b demonstrates the robustness of the controller against other power system uncertainties. Analyzing the sensitivity of the results suggested the control scheme provided complete robustness, stability, and fast response in all simulated scenarios, regardless of the dynamics.

Fig. 9
figure 9

Objective function value with \(\pm\)25%, \(\pm\)50% variations in governor and turbine parameters

Table 6 Sensitivity analysis for turbine and governor time constant (ISE, ITSE (× 10–6), IAE, ITAE (× 10–3))
Fig. 10
figure 10

a Frequency deviations of area 1. b Frequency deviations of area 2

Conclusion

For frequency control of a thermal two-area power system, in which nonlinearities, including GRC and GDB, are taken into consideration, this paper developed a mathematically comprehensible technique for optimizing variables of the coefficient diagram method controller. Innovative aspects of the suggested controller include the combination of the CDM technique and optimization within its mathematical equations. In addition, WCA is suggested as the optimization technique to tune the parameters of the CDM controller, and its performance regarding minimum fitness value and convergence rate has been investigated compared to GA and PSO. Furthermore, the suggested strategy combines the tunable parameters of the CDM controller for each area, decreasing the number of variables by using the same stability indices for both areas to avoid further complexity, making it much easier to implement. A step load disturbance, sinusoidal load perturbations, random loads, as well as scenarios dealing with uncertainty have all been used to verify the effectiveness of the proposed scheme. A comparison was made between classical integral, CDM alone, fuzzy optimized, PID optimized results, and suggested optimized CDM controller. In all cases, system frequency deviation is properly controlled, and the CDM-OPT controller provides better response respecting to undershoot, overshoot, settling time, and several performance indices, which confirmed the superiority of the suggested control over other methods.