Next Article in Journal
Comparative Analysis of Machine Learning Models for Predicting Innovation Outcomes: An Applied AI Approach
Previous Article in Journal
Evaluation of a Polarimetric Contrast Enhancement Technique as Preprocessing Step for Vessel Detection in SAR Images: Comparison of Frequency Bands and Polarimetric Modes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Frequency Regulation of Stand-Alone Synchronous Generator via Induction Motor Speed Control Using a PSO-Fuzzy PID Controller

by
Masoud Elhawat
* and
Hüseyin Altınkaya
*
Department of Electrical-Electronics Engineering, Karabuk University, Karabuk 78050, Turkey
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2025, 15(7), 3634; https://doi.org/10.3390/app15073634
Submission received: 31 January 2025 / Revised: 13 March 2025 / Accepted: 24 March 2025 / Published: 26 March 2025
(This article belongs to the Special Issue Soft Computing and Fuzzy Systems for Real-Time Control)

Abstract

:
This paper introduces a novel approach to frequency regulation in stand-alone synchronous generators by combining particle swarm optimization (PSO) with a Fuzzy PID controller. This study compares three control methods: a programmable logic controller (PLC)-based PID, a Fuzzy PID, and a PSO-Fuzzy PID controller. An experimental setup is implemented using real physical equipment, including an asynchronous motor, a synchronous generator, and various power and control components. The system is monitored and controlled in real-time via an S7-1215 PLC with the TIA Portal V17 interface, and the controllers are designed using MATLAB/Simulink. PLC-MATLAB communication is implemented using the KEPServerEX interface and the OPC UA protocol. The PSO-Fuzzy PID controller demonstrates superior performance, reducing overshoot, undershoot, and settling time compared to the other methods. These results highlight the effectiveness and real-time applicability of the PSO-Fuzzy PID controller for industrial frequency control, especially under varying load conditions and the nonlinear characteristics of the synchronous generator.

1. Introduction

Maintaining grid stability in modern power systems is vital to ensure a reliable and high-quality electricity supply [1]. Power system stability refers to the ability of a power system to maintain operational equilibrium under normal conditions and to return to an acceptable equilibrium state after a disturbance [2]. Synchronous generators, which are pivotal in power plants, have to operate near their stability limits to meet fluctuating demand. Frequency stability is the balance between electrical demand and power generation [3,4,5]. A deviation from this balance can cause the system frequently to fall outside safe operating limits, threatening grid stability and security [6,7,8,9].
Load frequency control (LFC) is essential for maintaining power system stability, particularly under fluctuation load conditions, by regulating the power balance between interconnected regions [10]. LFC ensures that the power generation matches the demand, preventing frequency deviation from its nominal value [11]. When this balance is disturbed, the frequency deviates, endangering both the security and stability of the power grid [12,13,14]. Automatic generation control (AGC) or LFC is responsible for correcting these imbalances and keeping the frequency and power within predefined limits. It is essential to maintain a reliable and high-quality electricity supply for consumers [15,16,17].
Power-frequency control operates at three distinct levels: primary, secondary, and tertiary. Each level has its own response time and associated control variables [18]. Primary frequency control responds within seconds (typically 2–30 s) and adjusts the generator’s power output through droop control using speed governors [19]. This control mechanism helps stabilize the system by addressing the imbalance between generation and load. When the load increases, for example, the power output of the generator does not immediately adjust, and the required balance is achieved using the kinetic energy from the rotating generators. Speed controllers (governors) of each generator increase output to correct the speed drop and eliminate the imbalance [20].
Secondary control, operating between 30 s and 15 min, aims to bring the system back to its target value. It adjusts the frequency and power exchanges with neighboring regions using AGC [21]. Tertiary control works on a time scale of 10–30 min and involves adjusting unit commitments and the distribution of generation to restore primary and secondary reserves or optimize their distribution [22]. This level typically works on larger electrical systems, ensuring sufficient energy reserves and optimizing generation for economic reasons [23].
While traditional PI and PID controllers are widely used for their simplicity and efficiency, their performance can degrade in complex systems with fluctuating loads, leading to longer settling times and larger overshoots [24,25,26]. Various improvements to these controllers have been proposed to enhance their performance in LFC applications, including the use of hybrid algorithms like teaching-learning-based optimization (TLBO), imperialist competitive algorithm (ICA), and hybrid harmony search-cuckoo optimization to improve PID performance [27,28]. Additionally, metaheuristic algorithms, such as the GBMO algorithm, fractional PID controllers, and Fuzzy PID controllers, have been developed to address the nonlinear and uncertain nature of power systems and improve controller robustness [29]. Other approaches include model predictive control (MPC) and event-triggered LFC strategies, which offer adaptive solutions to LFC in nonlinear, isolated, and interconnected microgrids [30].
PLCs are widely utilized in industrial automation systems, acting as controllers in a variety of applications, including motor control, water pumping, and switched reluctance motor control [31,32,33,34]. Despite their simple design, PLCs can be combined with advanced control algorithms to handle complex control tasks efficiently [35].
Table 1 highlights the key differences between this study and previous research on frequency control of stand-alone synchronous generators. Unlike traditional studies that primarily rely on simulations, this research integrates AI optimization with fuzzy logic and demonstrates its effectiveness in real-world industrial systems. This study is motivated by the need for practical control solutions in industrial applications, where ensuring real-time performance, robustness, and reliability is essential. Existing approaches often lack real-world validation, limiting their applicability in dynamic industrial environments.
To bridge this gap, this study implements a PSO-Fuzzy PID controller on a real system, using industrial tools such as PLCs for real-time monitoring and control. The reasons for choosing this approach are as follows:
  • Limitations of classical controllers: While classical controllers are widely used, they struggle with adaptability to varying operating conditions. AI-based methods, particularly PSO-Fuzzy PID, offer online tuning capabilities that enhance stability and performance.
  • Industrial applicability: Many studies do not consider the constraints of industrial environments where computational efficiency and real-time execution are essential. This study addresses this challenge by offloading complex calculations to external computers while ensuring real-time operation via PLCs.
  • Experimental design justification: The experiment involves controlling the frequency of a synchronous generator through an induction motor and a frequency converter. This setup mimics real industrial scenarios, making the findings directly applicable to power system automation and industrial control.
This paper provides a comparative analysis of three control strategies for frequency regulation of a stand-alone synchronous generator: a classical PLC-PID controller, a Fuzzy PID controller, and a PSO-Fuzzy PID controller. The main contributions of this study are as follows:
  • Optimization-based dynamic control design: Implementing an optimization-driven control strategy for frequency regulation, ensuring robust performance under industrial operating conditions.
  • Effective use of metaheuristic algorithms in industrial applications: demonstrating that PSO combined with Fuzzy PID can be practically applied in automation, even with simple PLC-based control systems.
  • Reliable convergence with PSO-Fuzzy PID: Validating the performance improvement and reliable convergence with PSO-Fuzzy PID, the PSO-Fuzzy PID controller enables efficient parameter tuning, improves dynamic response, and ensures stable frequency control.
  • Expansion to large interconnected and multi-area power systems: Presenting a framework that extends to primary and secondary frequency control in interconnected power networks.
  • This approach can be applied to develop advanced real-time controllers for use in both academic and industrial applications.
This study provides a practical implementation framework, ensuring its applicability in real-world industrial settings.
This article is organized as follows. Detailed information about the system established as the experimental setup and its modeling are presented in Section 2. Section 3 describes the proposed controller designs. Results obtained from experimental studies are discussed in Section 4. Finally, Section 5 presents the conclusion and future work.

2. System Modeling

2.1. Experimental Setup

The experimental setup consists of a PLC, a 1 kW brushed synchronous generator (SG), a frequency converter (FC), a 4 kW asynchronous motor, an encoder, an analog DC converter, two DC power supplies (24 V and 72 V), three current transformers (CTs), and 6 contactors. Figure 1 shows the experimental setup used in the study.
SG is driven by an asynchronous (induction) motor that is mechanically coupled to its shaft. The asynchronous motor is powered by the frequency converter (drive), which controls its speed and, consequently, the frequency of the SG. The control device used in the system is an S7-1215C DC/DC/DC PLC. The system can be monitored and controlled through software and SCADA within the TIA Portal interface.
An AI/AQ module (SM1234) and an Energy Meter module (SM1238) are integrated into the PLC. The AQ module regulates the frequency and voltage of SG via the drive and DC converter, while the Energy Meter module measures all electrical parameters of the SG, including phase-to-phase voltages, phase-to-neutral voltages, power factors, active power, apparent power, reactive power, etc.
The PLC and encoder operate on a 24 V DC power supply, while the rotor (field) windings of the SG use a separate 0–85 V DC supply. Moreover, the system includes an incremental rotary encoder with a PPR value of 1024, mechanically coupled to the SG shaft, which measures the speed of the generator to regulate its frequency. Current transformers facilitate the electrical connection between the SG and the energy meter, while contractors enable the connection and disconnection of various load groups. In the experimental setup, the nominal values of the SGs are as follows:
  • Power: 1 kW;
  • Voltage: 380 V AC (220 V phase-neutral);
  • Frequency: 50 Hz;
  • Speed: 1500 rpm;
  • Excitation current: 2.1 A DC
  • Excitation voltage: 72 V DC;
  • Current: 2.3 A AC;
The system components are shown in Figure 2.

2.2. Obtaining of the Transfer Function

To implement optimization processes in frequency control of an SG using PSO, the transfer function of the system must first be identified. This research selected offline optimization to ensure robust and efficient controller tuning before real-time implementation. Given the complexity of the system and the need for stability in industrial applications, obtaining the transfer function allows for precise parameter tuning and performance validation under various operating conditions. This approach minimizes computational overhead during real-time execution and enhances the adaptability of the controller to dynamic changes.
The system’s transfer function was obtained employing the input (normalized frequency converter signal from 0 to 2000 as the required speed) and output data (actual speed of synchronous generator). The System Identification Toolbox in MATLAB/Simulink R2021a was employed to derive the transfer function. System identification is the process of determining a dynamic system model using input–output measurements from real systems. Identifying such a dynamic system involves several steps: designing experiments, estimating unknown system characteristics from experimental data, collecting data, creating models, and validating the discovered model. Ensuring a high-performance controller design requires key facilities, which are provided through the formulation of the system model and its attributes.
By employing offline optimization, the controller is optimized under controlled conditions before real-time operation, reducing uncertainties and enhancing system performance in real industrial environments.
To obtain the transfer function that defines the nonlinear dynamic behavior of the system, the voltage signal from the frequency converter was used as the input variable, while the actual speed of the SG, taken from the encoder, was used as the output variable. Both input and output data were measured and saved in an Excel file using the data logging function of the SCADA system. For this purpose, 126 measurements were used during the experiment, with a sampling time of 1 s (Ts) for both input and output data. Figure 3 illustrates the data collected from the test, showing the time (in seconds) on the x-axis, the input signal as voltage (V) on the y-axis, and the system output as speed (in rpm) on the y-axis.
As depicted in Figure 4, the measured value of the system is represented by the black line, while the green line corresponds to the output of the simulation model. The best fit of the model, determined using the System Identification Toolbox, is 93.86%. Since the model meets the stability criterion—having all poles and zeros within the unit circle, as illustrated in Figure 5—it is considered valid. This confirms that the model is both stable and performs satisfactorily. The transfer function, identified through system identification (SI), is presented in Equation (1) below.
G s = 10.09 s + 0.3434 s 3 + 4.772 s 2 + 10.22 s + 0.3205

3. Controller Design

Due to its simplicity in development and installation and its capability to function effectively even in the presence of system uncertainty, the PID controller continues to be one of the most commonly used controllers in recent years. The PID transfer function is shown in Equation (2) below.
C s = U s E s = K p + K i S + K d S
where Kp represents proportional gain, Ki represents integral gain, and Kd represents derivative gain. While PID controllers offer several advantages, they may not always achieve the desired performance, especially in nonlinear systems.
This study proposes three strategies for controlling the frequency of stand-alone synchronous generators: a PLC-PID controller, a fuzzy PID controller, and a PSO-fuzzy PID controller. These strategies are validated through both simulations and real-time experiments.
In the classical (PLC-PID) control scheme, the control structure is implemented directly in PLC using TIA Portal instructions. In the second scheme, Fuzzy PID and PSO-Fuzzy PID in MATLAB/Simulink are used with PLC to implement frequency control. Communication between PLC and MATLAB is conducted via the OPC server, with the PLC acting as a monitoring and measurement unit. Figure 6 shows the PLC-PID control structure, while Figure 7 illustrates Fuzzy PID and PSO-Fuzzy PID control structures.

3.1. PLC-PID Controller

In the experimental setup, the rpm value is achieved using the encoder. Based on this value, frequency control is performed. If the rpm value differs from the set value of 1500, the speed of the asynchronous motor is adjusted as a result. Since the SG is mechanically connected to the asynchronous motor, the speed (rpm) of the SG also changes. This adjustment is achieved by sending a proportional 0–10 V signal from the analog output of PLC to the analog input of the drive. When the SG reaches 1500 rpm, the drive frequency is set to 50 Hz, as illustrated in Figure 8.
Frequency control of SG under varying load conditions is conducted using the PID_Compact function of the TIA Portal V17 interface. The PID controller works according to Equation (3).
y = K p b · w x + 1 T I · s w x + T D · s a · T D · s + 1 ( c · w x )
where y is the output value of the PID controller, Kp is the proportional gain, s is the Laplace operator, b is proportional action weighting, w is the setpoint, x is the process value, TI is the integral action time, TD is the derivative action time, a is derivative delay coefficient, and c is the derivative action weighting [43]. Figure 9 shows the PID block diagram for speed control using the PLC.
The compact PID controller for the SG implemented in the OB30 cyclic interrupt block is shown in Figure 10.
In the TIA Portal interface, the PID compact function was used for speed regulation. The settings were configured based on the working scenario. Within the PID compact configuration window, the basic settings were defined. The controller type was set to ‘speed’. In the Input/Output parameters section, ‘Input’ and ‘Output_PER (analog)’ were selected, as the speed is continuously measured by the encoder, and the control signal for regulating frequency is analog. The setpoint for speed regulation was set to 1500 rpm.
After configuring the settings, the real/physical system was initialized. The setup window in PID compact was accessed, where initial and fine-tuning processes were performed. During system operation, the PLC calculated the appropriate Kp, Ki, and Kd values. The final values, after the initial setup and fine-tuning, are shown in Figure 11.

3.2. Fuzzy PID Controller

Traditionally, PID adjusts frequency but struggles with large and rapid changes. The fuzzy algorithm, combining PID fuzzy control, improves performance and was implemented in this research for fast, stable frequency control.
Using the fuzzy logic module in the MATLAB/Simulink platform, the proposed fuzzy PID controller was designed. Mamdani fuzzy inference system and the Centroid method were employed for fuzzification and defuzzification, respectively, as shown in Figure 12.
A Fuzzy PID controller is employed to automatically adjust the parameters of the PID controller—Kp, Ki, and Kd—in real-time operation based on the system’s error signals. This adjustment allows the performance of the controller to meet specific system requirements. As shown in Figure 13, the fuzzy logic controller takes two inputs—the error (e(t)) and the change in error (∆e(t))—and gives three outputs: Kp, Ki, and Kd.
The error signal is generated by comparing the actual speed with the desired speed of the stand-alone SG, while the change in error is calculated by differentiating the error signal. Both signals are then fed into the fuzzy logic controller block. The fuzzy logic controller generates correction coefficients (∆Kp, ∆Ki, and ∆Kd) to adjust the parameters of the PID controller accordingly, which subsequently adjusts the set point in the plant block.
The fuzzy design, depicted in Figure 14, uses seven linguistic membership functions (MF) for both the error and change in error inputs, along with the outputs (∆Kp, ∆Ki, and ∆Kd). These membership functions are ‘Negative Small’ (NS), ‘Negative Medium’ (NM), ‘Negative Big’ (NB), ‘Zero’ (ZE), ‘Positive Small’ (PS), ‘Positive Medium’ (PM), and ‘Positive Big’ (PB). Trapezoidal membership functions (trapmf) were employed for the ‘NB’ and ‘PB’ values of all the variables, while triangular membership functions (trimf) were used for the remaining variables. The input MF range for both inputs was normalized between [−0.5, 1], while the output ranges for (∆Kp, ∆Ki, and ∆Kd) were normalized within [−6, 6], [−10, 10], and [−1, 1], respectively.
In fuzzy control systems, the performance of membership functions has been widely investigated. In both industry-based applications, such as process control, motor control, and PLC-oriented control, and literature studies aimed at performance improvement, triangular and trapezoidal membership functions are commonly preferred. In [44], the impact of membership functions on the performance of fuzzy controller systems has been reviewed in detail. The step responses of controllers with different types of membership functions, including triangular, trapezoidal, and Gaussian, have been compared in terms of maximum overshoot, settling time, Integral of Absolute Error (IAE), and Integral of Squared Error (ISE). The fuzzy controller with a triangular membership function has been observed to perform better in these comparisons.
In [45], five popular methods for online tuning of PID controllers were compared. Experimental simulation results demonstrated that the fuzzy logic approach was the most successful method, enabling the dynamic adjustment of PID gain parameters over time and enhancing system robustness. This method significantly reduced both the settling time and the Integral of Time-weighted Absolute Error (ITAE).
In an Automatic Voltage Regulator (AVR) system, a fuzzy PID filter (FPIDF) controller was proposed in [46] to maintain the output voltage of the generation unit within permissible limits despite unexpected variations. Triangular membership functions were preferred in this controller. Similarly, in [47], a metaheuristic-based fuzzy PID method for AVR control also utilized triangular membership functions. The performance of the proposed method was evaluated based on two different objective functions, namely the Integral of Absolute Error (IAE) and the Integral of Time-weighted Absolute Error (ITAE), and it was found to be superior to the other compared methods.
In [48,49,50,51,52,53,54], fuzzy logic controllers utilizing triangular and trapezoidal membership functions were preferred for controlling various systems due to their simplicity, robustness, and effectiveness in producing reliable results.
In this study, triangular and trapezoidal membership functions were selected primarily due to computational efficiency and compatibility with industrial PLC-based implementations [55,56]. PLCs often have limited processing power and memory, making it impractical to use computationally complex functions such as generalized bell and Gaussian membership functions. Triangular and trapezoidal membership functions provide a good balance between accuracy and efficiency, ensuring real-time performance without excessive computational burden. Furthermore, systematic analyses [57,58] have proven triangular membership functions provide optimal performance for fuzzy control systems, particularly in induction motor drives and similar applications. Their simplicity and efficiency make them well-suited for applications requiring fast and adaptive response under limited computational resources. The fuzzy logic controller operates with 49 rule bases, derived from a detailed analysis of the dynamic behavior of SG and requirements for PID parameter adjustment, as described in Table 2. Although some previous studies have utilized fewer rules [59,60], decreasing the number of rules in this study would compromise the adaptability and accuracy of the controller, which are essential for frequency regulation in highly dynamic power systems.
By prioritizing efficiency and feasibility within industrial applications, this design ensures the Fuzzy-PID controller remains adaptable and effective under practical constraints while maintaining the computational efficiency suitable for PLC-based environments. Experimental results confirm that the chosen membership functions are sufficient in terms of accuracy and robustness without overloading computational complexity.
The fuzzy logic controller operates with 49 rule bases derived from a detailed analysis of the dynamic behavior of SG and PID parameter adjustment, as described in Table 2. These rules are essential for ensuring the performance of the controller across a range of operating conditions. The Mamdani-type inference system was used for fuzzification, and the “Centroid” method was applied for defuzzification. This design ensures that the Fuzzy PID controller adapts effectively to different system conditions. Figure 15 displays the surface viewer of the fuzzy logic system.
The implementation of the fuzzy logic system in MATLAB’s Fuzzy Logic Toolbox allowed the dynamic adjustment of PID parameters based on the error and error change, making the controller more adaptable to varying conditions. The 49-rule base, composed of seven membership functions per input, ensures a smooth and precise adaptation, maintaining control system stability. Reducing the number of rules could negatively impact the system’s adaptability and performance, especially in high-dynamic applications such as frequency control in stand-alone synchronous generators.

3.3. PSO-Fuzzy PID Controller

PSO was selected for its simplicity, fast convergence, and suitability for real-time implementation in industrial environments, efficiently tuning controller parameters without high computational overhead. While Fuzzy PID enables real-time adjustment of PID control parameters, its reliance on fixed fuzzy rules limits its ability to enhance optimal control. To enhance system stability and robustness, this paper employs PSO to adaptively optimize fuzzy control settings, resulting in a fuzzy PID coordination control approach. Through the optimization process, PSO determines the best parameters for the Fuzzy PID controller, ensuring an optimal control signal to the plant.

3.3.1. Particle Swarm Optimization Algorithm

PSO is a metaheuristic optimization technique inspired by the collective behavior of birds, iteratively refining candidate solutions to achieve optimal performance. Each particle in the swarm updates its position based on both its personal best-known position and the globally best-known position, facilitating the efficient exploration of large solution spaces [61]. The PSO method, widely used in nonlinear and power system applications [62,63], was initially proposed in 1995 [64] and later improved in 1998 with the introduction of an inertia weight coefficient to enhance performance [65]. In the swarm, each particle searches for an optimal position by continuously updating its location according to its best-found position and the global best position. In the PSO algorithm, each particle searches for an optimal position by continuously updating its velocity and position according to its best-found position and the global best position. The velocity and position updates follow these equations [66].
v i ( k + 1 ) = W   v i ( k ) + C 1 R 1 ( g b e s t X i ( k ) ) + C 2 R 2 ( P b e s t X i ( k ) )
x i ( k + 1 ) = x i ( k ) + v i ( k + 1 ) i = 1 ,   2 , ,   n
where
  • vi is the velocity of the ith particle,
  • w is the inertia weight factor,
  • k is the iteration number,
  • C 1 and C 2 are cognitive and social coefficients,
  • R 1 and R 2 are random variables from 0 to 1,
  • xi is the position of the ith particle,
  • p b e s t is the individual best position of particle i ,
  • g b e s t is the best global position of all particles in the swarm,
  • n is the total number of particles.
The position of a particle is updated if the following condition is met:
f x i k < f P b e s t
If it is true, the position update is given by
x i k = P b e s t
In optimization methods, system performance is typically assessed using a variety of fitness criteria, including integral square errors (ISE), integral absolute errors (IAE), integral time absolute errors (ITAE), and integral time square errors (ITSE). Parameters such as overshoot, undershoot, steady-state error, settling time, and general tightness of the control system are all considered by these fitness criteria [67].
The minimization objective fitness function, donated as f , is used to evaluate the performance of the system. In this study, the output response performance of the system is assessed using the ITAE fitness function, as given in Equation (8).
I T A E = 0 t t   | e ( t ) | · d t
where e ( t ) is the error signal at time t, and the integral is computed over the entire time period of interest. This fitness function is used to guide the optimization process in PSO. To enhance clarity, Algorithm 1 provides a step-by-step illustration of the PSO algorithm.
Algorithm 1: Strategy for the PSO algorithm
Applsci 15 03634 i001
Additionally, the parameters of the PSO algorithm, including the number of agents (Np), iterations (Ni), cognitive, social coefficient, and inertia weight, are summarized in Table 3. The PSO algorithm parameters listed in Table 3 were obtained from extensive experimentation with the mathematical model in Simulink (MATLAB). The decision for the number of agents (Np) and iterations (Ni) was made after testing various values to find the optimal configuration that balances computational efficiency with fast convergence. These chosen values were based on the performance consistency observed in various experimental runs, where these values led to optimal controller parameters (Kp, Ki, Kd) and exhibited improved response of the system. These hyperparameters were not arbitrary but were determined after a thorough process of experimentation to ensure the best results. These values ensure optimal control performance, with improved system stability and response time, as shown in Figure 16.
Figure 17, which includes a block diagram of the process, illustrates the optimization process for the PSO-Fuzzy PID system. The MATLAB program was used to find the optimal values of Fuzzy PID parameters. To search the domain of position and velocity of particles, the program uses a minimization algorithm. After 100 iterations, the optimal values of Fuzzy PID controller parameters are obtained.
As shown in the dashed box of Figure 17, the update and iteration of particles were separated into two sections in MATLAB. In the first section (A), the control system model of the Simulink platform was used, and the performance index was obtained for each sampling period. The second section (B) involved programming the PSO optimization in MATLAB executable code file (.m file). In this section, the particle position and velocity were updated based on the fitness value. The gBest, which represents the historical best position of the swarm, corresponds to the values for the three proportional and quantitative factors.

3.3.2. System Simulation for PSO-FPID Tuning of Frequency Control

This section presents the simulation results for frequency control of stand-alone synchronous generators. The simulation was performed using a mathematical model of the proposed method, with MATLAB/Simulink as the platform. The primary objective of the simulation was to optimize the Fuzzy PID controller using the PSO algorithm to determine appropriate values for Kp, Ki, and Kd and to implement the PSO-Fuzzy PID controller in real industrial systems for real-time operations.
The parameters of the PSO algorithm, including the number of agents (Np), iterations (Ni), cognitive, social coefficient, and inertia weight, are summarized in Table 3. The hyperparameters used for the PSO algorithm were selected through rigorous experimentation with the mathematical model in Simulink (MATLAB). Specifically, the PSO algorithm was executed with 50 agents (Np = 50) for 100 iterations (Ni = 100). These values were chosen because they provided a balance between computational efficiency and convergence speed, yielding optimal values for Kp, Ki, and Kd, as presented in Table 4.
Figure 18 illustrates the Simulink block diagram, where the controller block consists of the Fuzzy PID controller and the system model. A step trajectory was used as the reference input signal to evaluate the synchronous generator speed control system.
In this study, PSO was used to adjust the controller parameters, balancing optimization efficiency with low computational cost. The most significant PSO parameters—number of particles, cognitive and social coefficients, and inertia weight—were carefully chosen based on established optimization guidelines and validated through empirical tests. To evaluate the performance of the controller, the ITAE function was employed as the objective function. Figure 19 illustrates the effectiveness of the PSO-based optimization, as the ITAE values gradually decrease over successive generations, indicating improved control accuracy. A summary of optimal parameter values obtained through PSO for Fuzzy PID controllers is presented in Table 4.

4. Experimental Results and Discussion

After implementing the three different controller designs outlined in Section 3, experiments were conducted, including no-load operation (step response), loading, and unloading tests. The results obtained from the experiments were recorded through the PLC/SCADA interface, and corresponding graphs were generated. For the loading and unloading experiments, instantaneous loading and unloading were conducted instead of gradual changes. This approach aimed to evaluate the response parameters of the SG and controllers under more challenging operating conditions. This section presents the results of the following experiments: initial no-load operation, resistive 1100 W (110%) instantaneous loading and unloading, 550 W (55%) instantaneous loading and unloading, and inductive load 500 VA (pf = 0.8) instantaneous loading and unloading.
The results of the initial no-load operation (step response) experiment are shown in Figure 20. For the experiment using the conventional PID (PLC-PID) controller, the maximum frequency observed was 63.03 Hz, with a maximum overshoot of 26.06% relative to the nominal frequency (50 Hz), and the settling time was 28 s. For the experiment using the Fuzzy PID controller, the maximum frequency was 51.03 Hz, with a maximum overshoot of 2.06%, and the settling time was 17 s. In the experiment using the PSO-Fuzzy PID, no overshoot could be observed, and the settling time was reduced to 6 s.
Figure 21 and Figure 22 show the results of no-load to 1100 W load (0–110% loading) and 1100 W load to no-load (unloading) experiments, respectively.
In the 1100 W loading experiment with the PLC-PID controller, the minimum frequency observed was 48.1 Hz, with a maximum undershoot of 1.9 Hz and a settling time of 20 s. In the experiment with the Fuzzy PID controller, the minimum frequency was 49.07(Hz), with a maximum undershoot of 0.93 Hz and a settling time of 7 s. For the experiment using the PSO-Fuzzy PID controller, the minimum frequency was 49.17(Hz), with a maximum undershoot of 0.83 Hz and a settling time of 6 s.
In the 1100 W unloading experiment, the maximum frequency values were 52.3 Hz (maximum overshoot of 2.3 Hz) for the PLC-PID controller, 51.63 Hz (maximum overshoot of 1.63 Hz) for the Fuzzy PID controller, and 51.3 Hz (maximum overshoot of 1.3 Hz) for the PSO-Fuzzy PID controllers. The corresponding settling times were 19 s for the PLC-PID, 9 s for the Fuzzy PID, and 8 s for the PSO-Fuzzy PID controller.
Figure 23 and Figure 24 show the results of the no-load to 550 W load (0–55% loading) and 550 W load to no-load (unloading) experiments, respectively. In the 550 W instantaneous loading experiment, conducted with the PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers, the minimum frequency values observed were 49.13 Hz (with a maximum undershoot 0.87 Hz), 49.3 Hz (with a maximum undershoot 0.7 Hz) and 49.37 Hz (with a maximum undershoot 0.63 Hz), respectively. The settling time for PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers were 13 s, 5 s, and 4 s, respectively.
In the 550 W instantaneous unloading experiment, the maximum frequency values for PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers were 51.1 Hz (with a maximum overshoot of 1.1 Hz), 50.87 Hz (with a maximum overshoot of 0.87 Hz) and 50.57 Hz (with a maximum overshoot of 0.57 Hz), respectively. The settling times for PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers were 13 s, 6 s, and 5 s, respectively.
Figure 25 and Figure 26 display the results of the no-load to 500 VA (pF = 0.8) load and 500 VA (pF = 0.8) load to no-load (unloading) experiments, respectively. In the 500 VA instantaneous loading experiment, performed with PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers, the minimum frequency values were 49.17 Hz (with a maximum undershoot of 0.83 Hz), 49.37 Hz (with a maximum undershoot of 0.63 Hz), and 49.5 Hz (with a maximum undershoot of 0.5 Hz), respectively. The settling times for PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers were 15 s, 9 s, and 7 s, respectively.
In the 550 VA instantaneous unloading experiment, the maximum frequency values for PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers were 50.83 Hz (with a maximum overshoot of 0.83 Hz), 50.67 Hz (with a maximum overshoot of 0.67 Hz), and 50.63 Hz (with a maximum overshoot of 0.37 Hz), respectively. The settling times for PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers were 16 s, 12 s, and 8 s, respectively.
The results obtained using PLC-PID, Fuzzy PID, and PSO-Fuzzy PID controllers are given in Table 5 and Table 6 for loading and unloading, respectively.
The experimental results demonstrate that the PSO-Fuzzy PID controller is better than the Fuzzy PID and PLC-PID controllers. In the 1100 W (110%) instantaneous loading experiment, the PSO-Fuzzy PID controller achieved a settling time of 6 s and a maximum overshoot of 0.83 Hz, while the PLC-PID controller had values of 20 s and 1.9 Hz, respectively, and the Fuzzy PID controller showed 7 s and 0.93 Hz. Furthermore, the PSO-Fuzzy PID controller exhibited the lowest maximum oscillation and settling time in the 550 W (55%) and 500 VA inductive load experiments compared to all the methods.
During the experiments, loading and unloading experiments were conducted under harsh conditions with instantaneous and large load fluctuations (55% and 110% of nominal power). Such instantaneous load fluctuations in real power systems are rarely observed at these levels. With the proposed control method, under smaller or gradual load fluctuations (10% or 20% of nominal power), frequency fluctuations (overshoot and undershoot values) were observed to be 0.5 Hz or less, and the settling times were 3 s or more. It was observed that overshoot and settling time values were higher in experiments performed with inductive loads compared to experiments performed with resistive loads of the same or similar values.
Standard frequencies are defined in the IEC 60196-2009 standard [68]. Although national regulations may vary, power systems generally allow frequency fluctuations of ±1% (0.5 Hz). Therefore, frequency values ranging from 49.5 to 50.5 (Hz) are considered acceptable. Based on this, a settling time of less than 3 s is acceptable, even under the most challenging conditions (110% instantaneous load). In the 110% instantaneous load experiment conducted using the PSO-Fuzzy PID controller, the frequency was consistently maintained within the acceptable range. Additionally, the SGs used in the experiments were specifically designed for research purposes rather than commercial applications. Given the superior stability, efficiency, and optimized design of commercial SGs, even better frequency regulation can be expected when implementing the proposed controller in real-world applications.
The comparison of the results obtained from the use of PSO-Fuzzy PID in loading and unloading tests reveals that the system performance is significantly enhanced system performance compared to traditional PLC-PID and Fuzzy PID methods. Specifically,
Reduction in settling time:
  • In loading experiments, PSO-Fuzzy PID reduced settling time by 30% compared to Fuzzy PID and 50% compared to PLC-PID.
  • In unloading experiments, PSO-Fuzzy PID reduced settling time by 30% compared to Fuzzy PID and 42% compared to PLC-PID.
Reduction in maximum undershoot:
  • PSO-Fuzzy PID reduced the maximum undershoot by 10% compared to Fuzzy PID and 56% compared to PLC-PID.
Reduction in maximum overshoot:
  • In unloading experiments, PSO-Fuzzy PID reduced the maximum overshoot by 20% compared with Fuzzy PID and 43% compared with PLC-PID.
These results emphasize that PSO-Fuzzy PID is superior in performance and has a faster response time when compared to other control methods. Applying this technique to optimize the parameters of the Fuzzy PID controller can enhance the stability and performance of the system under changing loading and unloading conditions.

5. Conclusions and Future Work

This study successfully implemented an experimental framework to evaluate the frequency control of a stand-alone synchronous generator using a PSO-Fuzzy PID controller. Unlike previous studies that relied on purely simulation-based validation, this research incorporated real industrial hardware, utilizing a Siemens S7-1200 PLC and TIA Portal V17 software for real-time monitoring and control. Communication between the PLC and MATLAB was successfully established using the KEPServerEX interface and OPC UA protocol, ensuring precise data exchange and operational efficiency.
The proposed PSO-based metaheuristic algorithm proved to be highly effective in optimizing controller parameters and balancing computational efficiency with optimization accuracy. The selection of the ITAE function as the fitness criterion enabled the systematic determination of the best control parameters, significantly improving system stability and performance. Comparative analysis with conventional PLC-PID and Fuzzy PID controllers highlighted the superiority of the PSO-Fuzzy PID method, demonstrating the following:
  • A 30–50% reduction in settling time compared to PLC-PID and Fuzzy PID.
  • A 10–56% reduction in maximum undershoot under dynamic load conditions.
  • A 20–43% reduction in maximum overshoot during unloading experiments.
Considerable reductions in the overshoot, undershoot, and settling time under dynamic load variations are observed. By integrating an advanced yet computationally efficient optimization technique with an industrially viable control system, this research bridges the gap between theoretical development and practical application. The findings emphasize the potential of PSO-driven controller optimization for enhancing control precision in real-world industrial environments, paving the way for further research into adaptive and intelligent control techniques.
These improvements indicate the ability of the PSO-Fuzzy PID method to enhance control precision, robustness, and versatility under varying load conditions. While this study focused primarily on comparisons with conventional PID-based controllers, future research will investigate comprehensive and detailed comparative performance with other optimized control approaches, such as GA-PID and ANFIS-PID, for a broader perspective of optimization techniques.
Future research will also focus on further improving the controller’s performance under more challenging conditions and for higher-power SGs. The integration of predefined-time and event-triggered control strategies will be explored, to achieve maximum responsiveness of the system. Additionally, hybrid optimization approaches involving other metaheuristic algorithms, machine learning, and deep learning will be investigated to further enhance system performance and robustness for real-world industrial applications.

Author Contributions

Conceptualization, M.E. and H.A.; methodology, M.E. and H.A.; software, M.E. and H.A.; validation, M.E. and H.A.; formal analysis, M.E. and H.A.; investigation, M.E. and H.A.; resources, M.E. and H.A.; data curation, M.E.; writing—original draft preparation, M.E.; writing—review and editing, H.A.; visualization, H.A.; supervision, H.A.; project administration, H.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

PIDProportional-Integral-DerivativeAGCAutomatic Generation Control
PLCProgrammable Logic ControllerBESSBattery Energy Storage Systems
PSOParticle Swarm OptimizationTLBOTeaching Learning Based Optimization
LFCLoad Frequency ControlSBLStability Boundary Locus
COACoyote Optimization AlgorithmSGSynchronous Generator
GBMOGases Brownian Motion OptimizationFCFrequency Converter
SCADASupervisory Control And Data AcquisitionCTCurrent Transformers
MPCModel Predictive ControlOPC UAOpen Platform Communications Unified Architecture
IECInternational Electrotechnical CommissionITAEIntegral Time Absolute Error
SISystem IdentificationISEIntegral Square Errors
IAEIntegral Absolute ErrorsITSEIntegral Time Square Errors

References

  1. Zhao, C.; Topcu, U.; Li, N.; Low, S. Design and stability of load-side primary frequency control in power systems. IEEE Trans. Autom. Control 2014, 59, 1177–1189. [Google Scholar]
  2. Yaghoubi, E.; Yaghoubi, E.; Yusupov, Z.; Rahebi, J. Real-time techno-economical operation of preserving microgrids via optimal NLMPC considering uncertainties. Eng. Sci. Technol. Int. J. 2024, 57, 101823. [Google Scholar]
  3. Maghami, M.R.; Pasupuleti, J.; Sundaram, S. Impact of time of use program on widely distribution generation interconnection in urban power network. J. Energy Storage 2024, 101, 113789. [Google Scholar]
  4. Remon, D.; Cantarellas, A.M.; Mauricio, J.M.; Rodriguez, P. Power system stability analysis under increasing penetration of photovoltaic power plants with synchronous power controllers. IET Renew. Power Gener. 2017, 11, 733–741. [Google Scholar]
  5. Khamees, A.; Altınkaya, H. Real-Time Control of Thermal Synchronous Generators for Cyber-Physical Security: Addressing Oscillations with ANFIS. Processes 2024, 12, 2345. [Google Scholar] [CrossRef]
  6. Khan, I.A.; Mokhlis, H.; Mansor, N.N.; Illias, H.A.; Awalin, L.J.; Wang, L. New trends and future directions in load frequency control and flexible power system: A comprehensive review. Alex. Eng. J. 2023, 71, 263–308. [Google Scholar]
  7. Shankar, R.; Pradhan, S.R.; Chatterjee, K.; Mandal, R. A comprehensive state of the art literature survey on LFC mechanism for power system. Renew. Sustain. Energy Rev. 2017, 76, 1185–1207. [Google Scholar]
  8. Ranjan, M.; Shankar, R. A literature survey on load frequency control considering renewable energy integration in power system: Recent trends and future prospects. J. Energy Storage 2022, 45, 103717. [Google Scholar]
  9. Mbuli, N.; Ngaha, W.S. A survey of big bang big crunch optimisation in power systems. Renew. Sustain. Energy Rev. 2022, 155, 111848. [Google Scholar]
  10. Yusuf, S.S.; Kunya, A.B.; Abubakar, A.S.; Salisu, S. Review of load frequency control in modern power systems: A state-of-the-art review and future trends. Electr. Eng. 2024, 1–26. [Google Scholar]
  11. Gulzar, M.M.; Iqbal, M.; Shahzad, S.; Muqeet, H.A.; Shahzad, M.; Hussain, M.M. Load frequency control (LFC) strategies in renewable energy-based hybrid power systems: A review. Energies 2022, 15, 3488. [Google Scholar] [CrossRef]
  12. Yusupov, Z.; Yaghoubi, E.; Yaghoubi, E. Controlling and tracking the maximum active power point in a photovoltaic system connected to the grid using the fuzzy neural controller. In Proceedings of the 2023 14th International Conference on Electrical and Electronics Engineering (ELECO), Bursa, Turkey, 30 November–2 December 2023; pp. 1–5. [Google Scholar]
  13. Bompard, E.; Mazza, A.; Toma, L.; Monti, A.; Milano, F.; Guillaud, X. Classical grid control: Frequency and voltage stability. In Converter-Based Dynamics and Control of Modern Power Systems; Academic Press: Cambridge, MA, USA, 2021; pp. 31–65. [Google Scholar]
  14. Liu, T.; Song, Y.; Zhu, L.; Hill, D.J. Stability and control of power grids. Annu. Rev. Control. Robot. Auton. Syst. 2022, 5, 689–716. [Google Scholar]
  15. Demir, E.; Gulbudak, O. Performance Analysis of Three-Phase Grid-Connected Inverter with Model Predictive Control Method in PIL Test Environment. In Proceedings of the 2024 8th International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT), Ankara, Turkey, 7–9 November 2024; pp. 1–6. [Google Scholar]
  16. Keivanimehr, M.; Chamorro, H.R.; Zareian-Jahromi, M.; Segundo-Sevilla, F.R.; Guerrero, J.M.; Konstantinou, C. Load shedding frequency management of microgrids using hierarchical fuzzy control. In Proceedings of the 2021 World Automation Congress (WAC), Taipei, Taiwan, 1–5 August 2021; pp. 216–221. [Google Scholar]
  17. Maghami, M.R.; Pasupuleti, J.; Ekanayake, J. Energy storage and demand response as hybrid mitigation technique for photovoltaic grid connection: Challenges and future trends. J. Energy Storage 2024, 88, 111680. [Google Scholar]
  18. Zhu, L.; Yu, Y.; Ju, P. Frequency control of power systems under uncertain disturbances based on input-output finite-time stability. IET Gener. Transm. Distrib. 2024, 18, 2184–2192. [Google Scholar]
  19. Fyodorova, V.A.; Kirichenko, V.F.; Rusina, A.G.; Glazyrin, G.V. The Process of Primary Frequency Control of the Power Systems Investigation Using Modeling Methods. In Proceedings of the 2023 IEEE XVI International Scientific and Technical Conference Actual Problems of Electronic Instrument Engineering (APEIE), Novosibirsk, Russian, 10–12 November 2023; pp. 360–365. [Google Scholar]
  20. Konno, Y.; Takahashi, R.; Alsharif, F.; Umemura, A. Centralized control of large-scale wind farm for system frequency stabilization of the power system. Electr. Eng. Japn. 2024, 144, e23479. [Google Scholar]
  21. Thapa, J.; Ben-Idris, M. Real-time control of active distribution network for secondary frequency control: Design and experimental validation. Electr. Power Syst. Res. 2024, 233, 110457. [Google Scholar]
  22. Lauria, D.; Mottola, F.; Giannuzzi, G.; Pisani, C. An advanced secondary voltage control strategy for future power systems. Int. J. Electr. Power Energy Syst. 2024, 156, 109734. [Google Scholar]
  23. Kumar, V.; Sharma, V.; Kumar, A.V.P.; Arya, Y.; Chikkam, S. A state-of-the-art review on concurrent voltage and frequency regulation problems in renewable integrated power networks. Energy Sources Part A Recover. Util. Environ. Eff. 2025, 47, 16–49. [Google Scholar]
  24. Padhan, D.G.; Majhi, S. A new control scheme for PID load frequency controller of single-area and multi-area power systems. ISA Trans. 2013, 52, 242–251. [Google Scholar]
  25. Anwar, M.N.; Pan, S. A new PID load frequency controller design method in frequency domain through direct synthesis approach. Int. J. Electr. Power Energy Syst. 2015, 67, 560–569. [Google Scholar]
  26. Altinkaya, H.; Khamees, A.; Yaghoubi, E.; Yaghoubi, E. Control of Heat Exchanger Liquid Temperature Using PID Control and first Order Sliding Mode Control System. In Proceedings of the 2024 International Conference on Electrical, Computer and Energy Technologies (ICECET), Paris, France, 3–6 July 2024; pp. 1–6. [Google Scholar]
  27. Bano, F.; Ayaz, M.; Baig, D.-Z.; Rizvi, S.M.H. Intelligent control algorithms for enhanced frequency stability in single and interconnected power systems. Electronics 2024, 13, 4219. [Google Scholar] [CrossRef]
  28. Jangiri, S.; Jones, K.O. Optimizing an intelligent fuzzy-hybrid proportional-integral-derivative (pid) controller for load frequency control systems. In Proceedings of the 2024 International Conference on Information Technologies (InfoTech), Las Vegas, NV, USA, 17–19 September 2024; pp. 1–4. [Google Scholar]
  29. Abah, P.A.; Bakare, G.A.; Okereke, O.U.; Hassan, S.M.; Lawal, K.O. Load frequency control strategy for microgrid systems using computotional intelligent optimized PID controller. Niger. J. Trop. Eng. 2024, 18, 192–209. [Google Scholar]
  30. Liu, Z.; Zhu, L.; Li, B.; Wang, X. Load Frequency Control of Interconnected Microgrid Enhanced by Deep Reinforcement Learning SAC-PID. In Proceedings of the 2024 43rd Chinese Control Conference (CCC), Kunming, China, 28–31 July 2024; pp. 7222–7227. [Google Scholar]
  31. Faisal, M.; Muttaqi, K.M.; Sutanto, D.; Al-Shetwi, A.Q.; Ker, P.J.; Hannan, M.A. Control technologies of wastewater treatment plants: The state-of-the-art, current challenges, and future directions. Renew. Sustain. Energy Rev. 2023, 181, 113324. [Google Scholar]
  32. Vadi, S.; Bayindir, R.; Toplar, Y.; Colak, I. Induction motor control system with a Programmable Logic Controller (PLC) and Profibus communication for industrial plants—An experimental setup. ISA Trans. 2022, 122, 459–471. [Google Scholar]
  33. Bayindir, R.; Cetinceviz, Y. A water pumping control system with a programmable logic controller (PLC) and industrial wireless modules for industrial plants—An experimental setup. ISA Trans. 2011, 50, 321–328. [Google Scholar]
  34. Uysal, A.; Gokay, S.; Soylu, E.; Soylu, T.; Çaşka, S. Fuzzy proportional-integral speed control of switched reluctance motor with MATLAB/Simulink and programmable logic controller communication. Meas. Control 2019, 52, 1137–1144. [Google Scholar]
  35. Sehr, M.A.; Lohstroh, M.; Weber, M.; Ugalde, I.; Witte, M.; Neidig, J.; Hoeme, S.; Niknami, M.; Lee, E.A. Programmable Logic Controllers in the Context of Industry 4.0. IEEE Trans. Ind. Inform. 2021, 17, 3523–3533. [Google Scholar]
  36. Al Gizi, A.J.H. A particle swarm optimization, fuzzy PID controller with generator automatic voltage regulator. Soft Comput. 2019, 23, 8839–8853. [Google Scholar]
  37. Munoz-Aguilar, R.S.; Doria-Cerezo, A.; Fossas, E.; Cardoner, R. Sliding mode control of a stand-alone wound rotor synchronous generator. IEEE Trans. Ind. Electron. 2011, 58, 4888–4897. [Google Scholar]
  38. Khokhar, B.; Dahiya, S.; Parmar, K.P.S. A novel hybrid fuzzy PD-TID controller for load frequency control of a standalone microgrid. Arab. J. Sci. Eng. 2021, 46, 1053–1065. [Google Scholar]
  39. Modabbernia, M.; Alizadeh, B.; Sahab, A.; Moghaddam, M.M. A novel robust strategy for the concurrent control of frequency and voltage in the synchronous generator with real structured uncertainties. Electr. Power Compon. Syst. 2022, 50, 1029–1050. [Google Scholar] [CrossRef]
  40. Zishan, F.; Akbari, E.; Montoya, O.D.; Giral-Ramírez, D.A.; Molina-Cabrera, A. Efficient PID control design for frequency regulation in an independent microgrid based on the hybrid PSO-GSA algorithm. Electronics 2022, 11, 3886. [Google Scholar] [CrossRef]
  41. Chen, Y.; Luo, J.; Zhang, X.; Li, X.; Wang, W.; Ding, S. A Virtual Synchronous Generator Secondary Frequency Modulation Control Method Based on Active Disturbance Rejection Controller. Electronics 2023, 12, 4587. [Google Scholar] [CrossRef]
  42. Gurugubelli, V.; Ghosh, A.; Panda, A.K. Design of different classical controllers in the voltage control loop of a virtual synchronous machine in standalone mode. In Proceedings of the 2022 IEEE International Conference on Power Electronics, Smart Grid and Renewable Energy (PESGRE), Trivandrum, India, 2–5 January 2022; pp. 1–6. [Google Scholar]
  43. Siemens Industry Online Support. Available online: https://support.industry.siemens.com/cs/document/100746401/pid-control-with-pid_compact-for-simatic-s71200-s7-1500?dti=0&lc=en-WW (accessed on 10 May 2024).
  44. Subbaraj, P.; Godwin Anand, P.S. GA Optimized Knowledge Base of FLC for Complex Industrial Process. Int. J. Digit. Content Technol. Appl. 2010, 4, 123–136. [Google Scholar]
  45. Varshney, A.; Goyal, V. Re-evaluation on fuzzy logic controlled system by optimizing the membership functions. Mater. Today Proc. 2023, in press. [CrossRef]
  46. Eltag, K.; Zhang, B. Design Robust Self-tuning FPIDF Controller for AVR System. Int. J. Control Autom. Syst. 2021, 19, 910–920. [Google Scholar] [CrossRef]
  47. Chakraborty, S.; Mondal, A.; Das, C. Fuzzy Fractional Order PID Controller Design for AVR System. In Proceedings of the 2024 3rd International Conference on Control, Instrumentation, Energy and Communication (CIEC), Kolkata, India, 2–4 May 2024. [Google Scholar]
  48. Qin, H.; Wang, L.; Wang, S.; Ruan, W.; Jiang, F. A Fuzzy Adaptive PID Coordination Control Strategy Based on Particle Swarm Optimization for Auxiliary Power Unit. Energies 2024, 17, 5311. [Google Scholar] [CrossRef]
  49. Wu, T.-Y.; Jiang, Y.-Z.; Su, Y.-Z.; Yeh, W.-C. Using Simplified Swarm Optimization on Multiloop Fuzzy PID Controller Tuning Design for Flow and Temperature Control System. Appl. Sci. 2020, 10, 8472. [Google Scholar] [CrossRef]
  50. Liu, Z.; Dong, H.; Ma, X. Temperature Control Strategy for Hydrogen Fuel Cell Based on IPSO-Fuzzy-PID. Electronics 2024, 13, 4949. [Google Scholar] [CrossRef]
  51. Joshi, M.; Sharma, G.; Bokoro, P.N.; Krishnan, N. A Fuzzy-PSO-PID with UPFC-RFB Solution for an LFC of an Interlinked Hydro Power System. Energies 2022, 15, 4847. [Google Scholar] [CrossRef]
  52. Shouran, M.; Alsseid, A. Particle Swarm Optimization Algorithm-Tuned Fuzzy Cascade Fractional Order PI-Fractional Order PD for Frequency Regulation of Dual-Area Power System. Processes 2022, 10, 477. [Google Scholar] [CrossRef]
  53. Fu, J.; Gu, S.; Wu, L.; Wang, N.; Lin, L.; Chen, Z. Research on Optimization of Diesel Engine Speed Control Based on UKF-Filtered Data and PSO Fuzzy PID Control. Processes 2025, 13, 777. [Google Scholar] [CrossRef]
  54. Tang, H.; Ma, R.; Chen, Y.; Huang, L.; Jiao, R. Temperature Regulation of Hot Vapor Preservation Treatment of Litchi Based on PSO-Fuzzy PID. Appl. Sci. 2023, 13, 6888. [Google Scholar] [CrossRef]
  55. Azam, M.H.; Hasan, M.H.; Hassan, S.; Abdulkadir, S.J. A novel approach to generate type-1 fuzzy triangular and trapezoidal membership functions to improve the classification accuracy. Symmetry 2021, 13, 1932. [Google Scholar] [CrossRef]
  56. Kreinovich, V.; Kosheleva, O.; Shahbazova, S.N. Why triangular and trapezoid membership functions: A simple explanation. In Recent Developments in Fuzzy Logic and Fuzzy Sets; Springer: Cham, Switzerland, 2020; pp. 25–31. [Google Scholar]
  57. Zhao, J.; Bose, B.K. Membership function distribution effect on fuzzy logic controlled induction motor drive. In Proceedings of the IECON’03 29th Annual Conference of the IEEE Industrial Electronics Society (IEEE Cat. No.03CH37468), Roanoke, VA, USA, 2–6 November 2003; pp. 214–219. [Google Scholar]
  58. Alshammari, B.; Ben Salah, R.; Kahouli, O.; Kolsi, L. Design of fuzzy TS-PDC controller for electrical power system via rules reduction approach. Symmetry 2020, 12, 2068. [Google Scholar] [CrossRef]
  59. Chala, T.D.; Kóczy, L.T. Intelligent Fuzzy Traffic Signal Control System for Complex Intersections Using Fuzzy Rule Base Reduction. Symmetry 2024, 16, 1177. [Google Scholar] [CrossRef]
  60. Nguyen, L.V. Swarm Intelligence-Based Multi-Robotics: A Comprehensive Review. Appl. Math 2024, 4, 1192–1210. [Google Scholar]
  61. Muftah, M.N.; Faudzi, A.A.M.; Sahlan, S.; Mohamaddan, S. Fuzzy Fractional Order PID Tuned via PSO for a Pneumatic Actuator with Ball Beam (PABB) System. Fractal Fract. 2023, 7, 416. [Google Scholar] [CrossRef]
  62. Demir, M.H.; Demirok, M. Designs of particle-swarm-optimization-based intelligent PID controllers and DC/DC Buck converters for PEM fuel-cell-powered four-wheeled automated guided vehicle. Appl. Sci. 2023, 13, 2919. [Google Scholar] [CrossRef]
  63. Cukdar, I.; Yigit, T.; Celik, H. Balance Control of Brushless Direct Current Motor Driven Two-Rotor UAV. Appl. Sci. 2024, 14, 4059. [Google Scholar] [CrossRef]
  64. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95-International Conference on Neural Networks, Perth, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar]
  65. Shi, Y.; Eberhart, R. A modified particle swarm optimizer. In Proceedings of the 1998 IEEE International Conference on Evolutionary Computation Proceedings. IEEE World Congress on Computational Intelligence (Cat. No. 98TH8360), Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar]
  66. Mishra, A.K.; Das, S.R.; Ray, P.K.; Mallick, R.K.; Mohanty, A.; Mishra, D.K. PSO-GWO optimized fractional order PID based hybrid shunt active power filter for power quality improvements. IEEE Access 2020, 8, 74497–74512. [Google Scholar] [CrossRef]
  67. Shouran, M.; Anayi, F.; Packianather, M.; Habil, M. Different fuzzy control configurations tuned by the bees algorithm for LFC of two-area power system. Energies 2022, 15, 657. [Google Scholar] [CrossRef]
  68. Available online: https://webstore.iec.ch/en/publication/1017 (accessed on 23 March 2025).
Figure 1. Experimental setup.
Figure 1. Experimental setup.
Applsci 15 03634 g001
Figure 2. Components of the system.
Figure 2. Components of the system.
Applsci 15 03634 g002
Figure 3. (a) Input data and (b) output data.
Figure 3. (a) Input data and (b) output data.
Applsci 15 03634 g003
Figure 4. The measured and simulated model output.
Figure 4. The measured and simulated model output.
Applsci 15 03634 g004
Figure 5. (a) Poles and zeroes; (b) frequency response.
Figure 5. (a) Poles and zeroes; (b) frequency response.
Applsci 15 03634 g005
Figure 6. PLC-PID control scheme.
Figure 6. PLC-PID control scheme.
Applsci 15 03634 g006
Figure 7. Fuzzy PID and PSO-Fuzzy PID control scheme.
Figure 7. Fuzzy PID and PSO-Fuzzy PID control scheme.
Applsci 15 03634 g007
Figure 8. Flow chart of frequency control.
Figure 8. Flow chart of frequency control.
Applsci 15 03634 g008
Figure 9. PID block diagram for speed control using PLC.
Figure 9. PID block diagram for speed control using PLC.
Applsci 15 03634 g009
Figure 10. PID_Compact in TIA Portal.
Figure 10. PID_Compact in TIA Portal.
Applsci 15 03634 g010
Figure 11. PLC computed PID parameter values.
Figure 11. PLC computed PID parameter values.
Applsci 15 03634 g011
Figure 12. Fuzzy logic Structure.
Figure 12. Fuzzy logic Structure.
Applsci 15 03634 g012
Figure 13. Block diagram of the FLPID controller.
Figure 13. Block diagram of the FLPID controller.
Applsci 15 03634 g013
Figure 14. MFs of inputs and outputs.
Figure 14. MFs of inputs and outputs.
Applsci 15 03634 g014
Figure 15. The surface viewer of the fuzzy logic.
Figure 15. The surface viewer of the fuzzy logic.
Applsci 15 03634 g015
Figure 16. System response over time with optimized PSO-Fuzzy PID controller.
Figure 16. System response over time with optimized PSO-Fuzzy PID controller.
Applsci 15 03634 g016
Figure 17. The block diagram of the optimized Fuzzy PID controller.
Figure 17. The block diagram of the optimized Fuzzy PID controller.
Applsci 15 03634 g017
Figure 18. Simulink block diagram.
Figure 18. Simulink block diagram.
Applsci 15 03634 g018
Figure 19. ITAE value in successive generations of PSO-Fuzzy PID.
Figure 19. ITAE value in successive generations of PSO-Fuzzy PID.
Applsci 15 03634 g019
Figure 20. Step response.
Figure 20. Step response.
Applsci 15 03634 g020
Figure 21. The 0–1100 W loading experiment.
Figure 21. The 0–1100 W loading experiment.
Applsci 15 03634 g021
Figure 22. The 1100–0 W unloading experiment.
Figure 22. The 1100–0 W unloading experiment.
Applsci 15 03634 g022
Figure 23. The 0–550 W loading experiment.
Figure 23. The 0–550 W loading experiment.
Applsci 15 03634 g023
Figure 24. The 550–0 W unloading experiment.
Figure 24. The 550–0 W unloading experiment.
Applsci 15 03634 g024
Figure 25. The 0–500 VA (pf = 0.8) loading experiment.
Figure 25. The 0–500 VA (pf = 0.8) loading experiment.
Applsci 15 03634 g025
Figure 26. The 500–0 VA (pf = 0.8) unloading experiment.
Figure 26. The 500–0 VA (pf = 0.8) unloading experiment.
Applsci 15 03634 g026
Table 1. Comparison of control methods and technologies in power system control studies.
Table 1. Comparison of control methods and technologies in power system control studies.
FactorsReferencesThis Study
[36][37][38][39][40][41][42]
Using Industrial ToolsNoNoNoYesNoNoYesYes
Classical ControllerYesNoYesNoYesNoYesYes
Using AIYesNoYesNoYesNoNoYes
Real-Time OperationNoYesNoNoNoYesNoYes
Implemented in a Real SystemNoYesNoNoNoYesNoYes
Table 2. Fuzzy controller design linguistic rules.
Table 2. Fuzzy controller design linguistic rules.
Error RateError e(t)
∆e(t)NBNMNSZEPSPMPB
NBNBNBNMNMNSNSZE
NMNBNMNMNSNSZEPS
NSNBNMNSNSZEPSPS
ZENMNSNSZEPSPSPM
PSNSNSZEPSPSPMPM
PMNSZEPSPSPMPMPB
PBZEPSPSPMPMPBPB
Table 3. The parameters of the PSO algorithm.
Table 3. The parameters of the PSO algorithm.
ParameterNo. IterationNo. ParticlesSocial CoefficientCognitive CoefficientInertia
Weight
Value10050220.7
Table 4. Optimal parameter values found via PSO for Fuzzy PID controllers.
Table 4. Optimal parameter values found via PSO for Fuzzy PID controllers.
CriteriaKpKiKd
PSO-Fuzzy PID4.8589.7510.849
Table 5. PID and aABC Fuzzy PID comparison for loading experiments.
Table 5. PID and aABC Fuzzy PID comparison for loading experiments.
ExperimentSettling Time (s)Max. Undershoot (%)
PLC-
PID
Fuzzy
PID
PSO-Fuzzy
PID
PLC-
PID
Fuzzy
PID
PSO-Fuzzy
PID
0–1100 W20763.81.861.66
0–550 W13541.741.41.26
0–500 VA15971.661.261
Table 6. PID and aABC Fuzzy PID comparison for unloading experiments.
Table 6. PID and aABC Fuzzy PID comparison for unloading experiments.
ExperimentSettling Time (s)Max. Overshoot (%)
PLC-
PID
Fuzzy
PID
PSO-Fuzzy
PID
PLC-
PID
Fuzzy
PID
PSO-Fuzzy
PID
1100–0 W19984.63.262.6
550–0 W13652.21.741.14
500–0 VA161281.661.341.26
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Elhawat, M.; Altınkaya, H. Frequency Regulation of Stand-Alone Synchronous Generator via Induction Motor Speed Control Using a PSO-Fuzzy PID Controller. Appl. Sci. 2025, 15, 3634. https://doi.org/10.3390/app15073634

AMA Style

Elhawat M, Altınkaya H. Frequency Regulation of Stand-Alone Synchronous Generator via Induction Motor Speed Control Using a PSO-Fuzzy PID Controller. Applied Sciences. 2025; 15(7):3634. https://doi.org/10.3390/app15073634

Chicago/Turabian Style

Elhawat, Masoud, and Hüseyin Altınkaya. 2025. "Frequency Regulation of Stand-Alone Synchronous Generator via Induction Motor Speed Control Using a PSO-Fuzzy PID Controller" Applied Sciences 15, no. 7: 3634. https://doi.org/10.3390/app15073634

APA Style

Elhawat, M., & Altınkaya, H. (2025). Frequency Regulation of Stand-Alone Synchronous Generator via Induction Motor Speed Control Using a PSO-Fuzzy PID Controller. Applied Sciences, 15(7), 3634. https://doi.org/10.3390/app15073634

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop