European Journal of Formal Sciences and EngineeringVol. 9 No. 2 (2026)

European Journal of Formal Sciences and Engineering

Volume 9, Issue 2, 2026 · ISSN 2601-8675 (Print) · ISSN 2601-8683 (Online)

Design and Application of Optimally-Tuned Variable Parameters PID Controller for Nonlinear Engineering Systems

Magdy A. S. Aboelela

Faculty of Engineering, Cairo University, Electrical Power Dept., Giza 12613, Egypt

aboelelamagdy@staff.cu.edu.eg

Submitted: 2026-04-28 · Accepted after Revision: 2026-07-28 · Published: 2026-08-28

DOI: 10.26417/ejef.v4i1.p14-20

Abstract

The goal of this article is to investigate the implementation of the Cuckoo Search Algorithm (CSA) as an optimization technique to determine the parameters of variable parameters PID (VP-PID) controller. The VP-PID has three parameters that have to be optimally evaluated. A case of three physical imbedded nonlinearities in a single area electric power system has been selected to test the suitability of the proposed technique. The integral-square error (ISE) criterion has been considered as a part of the objective function together with the percentage overshoot and settling time. Matlab/Simulink software has been used in the simulation process. The simulation results show that the proposed VP-PID controller furnishes a better performance than the conventional PID controller.

Keywords: Proportional-Integral-Derivative controllers (PID); Variable Parameters PID controller (VP-PID); Cuckoo Search Algorithm; Nonlinear physical Systems; Matlab/Simulink

Introduction

In recent years, the problem of maintaining the power and frequency of a power system free from oscillations has become rapidly crucial need because of irregular load variations and imbedded system nonlinearities [1]. The unexpected load variations result in many undesired behaviours such as the mismatch of generated power and load demand for consumption. This can be achieved by the load frequency control (LFC) methods. Nowadays, plenty research work is going on to make the systems intelligent so the systems can successfully serve the benefits of all customers [2].

Several optimization approaches have been recorded in literature that can be applied to tune the conventional PID controller. This includes but not limited to:

Particle Swarm Optimization (PSO),

Genetic Algorithm (GA),

Bacterial Foraging Optimization (BFO) [2].

Furthermore, the LFC and AGC of a single area power system been investigated by a variety of techniques such as gravitational search algorithm [3], the modified particle swarm optimization [4], the artificial neural network [5], optimal control design [6], fuzzy controllers [23], proportional-integral-observer techniques [7], as well as LQR and Legendre wavelet function [8]. Also, the AGC control of single area power system with distributed generation has been investigated in [9]. All these researches deal only with no nonlinearities in the control loops.

On the other hand, the application of VP-PID controller has been studied in different fields by many research workers. The contribution of the variable parameters class of controllers is the cope the desired characteristic of dynamic systems. Based on the desired behavior of the system output, we can assume variable parameter controller. In general, most of the systems will start their response with peak overshoot and sustained oscillations. This can be reduced by implementing a conventional PID controller [10]. The tuned parameters of this class of controllers may be reduced after sometime when the response tends to have steady state. This is the philosophy behind the use of VP-PID controller [11-12].

In this paper, a new evolutionary optimization technique has been used for tuning the variable parameters PID controller. This algorithm is inspired by lifestyle of a bird family called cuckoo. Specific breeding and egg laying of cuckoos bird is the main basis of this optimization algorithm [13-14].

The Classical PID Controller

The PID controller is considered to be an important component in industrial control systems because of its capability of reducing the steady state error and enhancing the dynamic response and other static characteristics of systems. The PID controller is defined, mathematically, by the next equation [15-17]:

u(t) = K_{p}e(t) + K_{i}\int_{0}^{t}{e(\tau)d\tau} + K_{d}\frac{d e(t)}{dt} (1)

Where e(t) is the system error, K_{i} is the integral constant, K_{p} is the proportional\ constant,K_{d} is the derivative constant and ut is the controller output.

On the other hand, the VP-PID controller can be described by changing controller gains as follows

Case I : The proportional gain parameter (Kp) must be high firstly and then decrease to the normal value in order to accelerate system response. Under these conditions, the basic formula of Kp is:

K_{p} = C_{1} + C_{2}*e_{f(i)} (2)

Where C_{1} and C_{2} are considered constants achieving the following bounderies

C_{1_{\min}} \leq C_{1} \leq \ C_{1_{\max}} (3)

C_{2_{\min}} \leq C_{2} \leq \ C_{2_{\max}} (4)

and e_{f(i)} is the final value of the system error at optimal tuning step i.

Case II : The derivative gain parameter (Kd) is increased to prevent the oscillation and overlapping. But, this increase causes the slowdown of the system response. Thus, change of K_{d}must be from the highest value to the lowest. K_{d}\can be formulized as

K_{d} = C_{3} + C_{4}*e_{f(i)} (5)

Where C_{3} and C_{4} are considered constants achieving the following bounderies

C3min≤ C3≤ C3max (6)

C4min≤ C4≤ C4max (7)

Case III : Integral gain parameter (Ki) is provided to initialize the steady state error but big values of this parameter causes oscillation and higher overshoot. Thus, change of Kimust be from the highest value to the lowest. K_{i}\can be formulized as

K_{i} = C_{6} - C_{5}*e_{f(i)} (8)

Where C_{5} and C_{6} are considered constants achieving the following boundaries

C5min≤ C5≤ C5max (9)

C6min≤ C6≤ C6max (10)

Cuckoo Search Algorithm (CSA)

The cuckoo search algorithm (CSA) is inspired by the cuckoos breeding behavior [13]. Cuckoos select a random nest for laying their eggs; and a cuckoo can place only one egg at the time. Only the eggs with the highest quality (solutions) are carried over to the next generation. The available number of host nests must be fixed. The host can detect an alien egg with a probability Pa∈ [0, 1]. In this case, the host bird can either throw the egg out or give up the nest so as to construct a fully new nest in a new location.

In the case of generating new solutions xt+1 for a cuckoo i, an Levy flight method is applied as follows [14].

x_{i}^{(t + 1)}= xi(t)+α ⊕ Levy (λ) (11)

Where α is the step size (α≥ 0) and it must be related to the scales of the studied problem. In most cases, it may be selected to be as α = Ο( L10 ) where L refers to the studied problem characteristic scale. λ is a variable such that 1<λ≤3.

In fact, the L\acute{e}vy flight in essence presents a random walk whose random step length is drawn from an L\acute{e}vy distribution. It has an infinite variance with an infinite mean.

L\acute{e}vy ∽ u=t-λ, (1<λ≤3) (12)

A number of the new solutions should be generated by Levy around the best solution obtained so far. This will speed up the local search.

The objective function J_{i}at iteration i is given as

J_{i} = \frac{1}{{ISE}_{i}} (13)

so that

{ISE}_{i} = \int_{0}^{\infty}{{e_{i}}^{2}(t) dt} + Settling Timei + P.O.i (14)

Where P.O.i and Settling Timei represent the percentage overshoot and settling time at iteration i of optimization procedure [15].

Application

The controllers described in this research work can be applied on a single area power system. The system consists of the governor; the turbine and the generator; and the load. The block diagrams implementing the conventional PID and the VP-PID controllers is delineated in Fig. 1.

Figure 1

Fig. 1: Diagram of the LFC under investigation using Classical and VP-PID controllers

The parameters for this system as well as the characteristics of the turbine saturation (GRC), the GDB and the time delay as non-linear elements are listed in [1]. The system is subjected to a sudden load change of 0.05 p.u. The parameters of the Cuckoo Search Algorithm (CSA) are delineated in Table 1.

Table 1. The parameters of the Cuckoo Search Algorithm (CSA)

ParameterValue
Number of individuals10
Number of generations100
The probability (Pa)0.25

The flow chart of the algorithm is illustrated in Fig. 2.

Figure 2

Fig. 2: The flow chart of the Cuckoo Search (CS) Algorithm [13]

Results and Discussion

The frequency control single area power system with GRC, GDB, and time delay nonlinearities incorporating the classical and VP-PID controllers has been studied in this research. The Cuckoo Search Algorithm has been utilized to tune the proposed controllers. The tuning process of the two controllers has been achieved using the Matlab/Simulink software. The results of the tuning procedure using the ISE criterion are summarized in Table 2.

Table 2. Results of the two proposed controllers

ControllerParameters
PID ControllerK_{p}K_{d}K_{i}---
2.44911.88400---
ISE12.2269
 C1C2C3C4C5C6
VP-PID controller1.75093.75275.18601.155900
ISE9.4966

As stated in the literature, a proportional controller (Kp) will reduce the rise time and will decrease, but never eliminate, the steady-state error. An integral control (Ki) will eliminate the steady-state error, but it may make the transient response worse. A derivative control {(K}_{d})will increase the stability of the system, reducing the overshoot, and improving the transient response [15-17].

As mentioned earlier, the first alternative is to implement the conventional PID controller as noted in Fig. 3. The parameters of the first controller (K_{p}, Kd, and\ K_{i}) aretuned using the Cuckoo Search Algorithm but those of the second controller, PID(s), are obtained a special optimization technique assigned to this block in Matlab.

The frequency deviation curve of the PID controller as shown in Fig. 3 is somewhat acceptable. There are two main notes. The first is the irregular effect at steady state. Second is the high value of ISE. The estimated optimal parameters of this controller are shown in Table 2. The tuning procedure using the CSA gives zero value for the integral gain K_{i}.

On the other hand, the frequency deviation given by the VP-PID controller is shown in Fig. 4. The estimated parameters variation of the VP-PID using CSA are delineated in Fig. 5. This controller will yield a smaller value for the ISE compared with the conventional PID controller as shown in Table 2. This, of course, can be achieved with little high computation time.

The frequency deviations obtained by the classical and VP-PID controllers are illustrated in Fig. 3 and 4. These curves illustrate that we cannot arrive, exactly, to a zero-state error. This is due to the imbedded system nonlinearities and the absence of integral controller. One more thing, the increase of the time delay will result in unstable system.

Figure 3

Fig. 3: Results of the PID controller (1.5 seconds time delay)

Figure 4

Fig. 4: Results of the VP-PID controller (1.5 seconds time delay)
(VPID=VP-PID)

Figure 5

Fig. 5: Variation of VP-PID controller gains (1.5 seconds time delay)
(VPID=VP-PID)

Conclusion

In this paper, two classes of controllers have been applied to a single area LFC. The system under study has three sources of nonlinearities, the GRC, GBD, and time delay. The first controller is the classical PID controller while the second is the VP-PID controller. The parameters of these two controllers have been optimally evaluated using the Cuckoo Search Algorithm. Results show that the second controller behaves better than the first one. Furthermore, the effect of dealing with the three embedded nonlinearities, the GRC, GBD, and time delay, have been investigated but more detailed research is recommended.

References

[1] Aboelela, M. A. S., "Implementation of Artificial Intelligence Based Optimally Tuned Controllers to a Class of Embedded Nonlinear System", 7th International Conference on Modern Circuits and Systems Technologies (MOCAST), Thessaloniki, Greece, 7-9 May, 2018.

[2] Ahmed Husseina, S. Sadeem Saliha , and Y. Ghazi Ghasma, “Implementation of Proportional-Integral-Observer Techniques for Load Frequency Control of Power System”, Procedia Computer Science 109C, pp. 754–762, 2017.

[3] B. C. Kuo and F. Golnaraghi, “Automatic Control Systems, 9th Edition, John Wiley and Sons, NY, 2010.

[4] B. Ogbonnaa, S.N. Ndubisib " Neural network based load frequency control for restructuring power industry" Nigerian Journal of Technology (NIJOTECH), Vol. 31, No. 1, pp. 40-47, 2012.

[5] E. Rashedi, H. Nezamabadi-pour, S. Saryazdi, "GSA: a gravitational search algorithm," Information Sciences, vol. 179, 2009, pp. 2232-2248.

[6] Hong Zhang and Bo Hu, “The Application of Nonlinear PID Controller in Generator Excitation System”, Energy Procedia, Vol. 17, pp. 202 –207, 2012.

[7] K. Ogata, “Modern Control Engineering”, 5th Edition, Pearson, 2010.

[8] K. Vijayakumar and T. Manigandan, “Nonlinear PID Controller Parameter Optimization using Enhanced Genetic Algorithm for Nonlinear Control System”, CEAI, Vol.18, No.2 pp. 3-10, 2016.

[9] L. H. Hassan, Haider A.F. Mohamed, M. Moghavvem, and S.S. Yang "Load Frequency Control of Power Systems with Sugeno Fuzzy Gain Scheduling PID Controller" ICROS-SICE International Joint Conference, 2009, Fukuoka, Japan.

[10] M. M. Ismail, M. A. Mustafa Hassan "Load frequency Control Adaptation using Artificial Intelligent Technique for one and two different areas power system" International Journal of Control, Automation and Systems, Vol. 1, No. 1, Jan. 2012.

[11] O. Aydogdu and M.Korkmaz, “A Simple Approach to Design of Variable Parameter Nonlinear PID Controller”, IPCSIT vol.20, IACSIT Press, Singapore, 2011.

[12] R. Boruah and B. Talukdar, “ Modelling of Load Frequency Control Using PI Controller and Stability Determination with Linear Quadratic Regulator”, IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE), Volume 9, Issue 4 Ver. VI (Jul – Aug. 2014), PP 30-36

[13] R. C. Dorf, and R. H. Bishop, “Modern Control Systems, 13th Edition, Pearson, 2017.

[14] Santosh Kumar and S. Mishra, “AGC for distributed generation”, In Proceedings of the Sustainable Energy Technologies, ICSET 2008. IEEE International Conference, 24-27 Nov. 2008. Singapore.

[15] T. S. Gorripotu, S. Gopi, H. Samalla, A. V. L. Prasanna, and B. Samira, “Applications of Computational Intelligence Techniques for Automatic Generation Control Problem-A Short Review from 2010 to 2018”, In book: Computational Intelligence in Pattern Recognition, A.K. Das, J. Nayak, B. Naik, S.K. Pati, D. Pelusi (Eds.), Springer, Singapore, January 2020.

[16] X. S. Yang and Deb, S., “Cuckoo search via Lévy flights”. In Nature & Biologically Inspired Computing, World Congress, IEEE., 210-214, 2009.

[17] Y. Abdelaziz and Ali, E. S., “Cuckoo Search algorithm based load frequency controller design for nonlinear interconnected power system”. " International Journal of Electrical Power & Energy Systems, 73: 632-643, 2015.


© 2026 The Author(s). Published by Mentisia under CC BY 4.0.