SSRN Id4378784
SSRN Id4378784
Abstract:
This research paper presents a comparative study of the performance of two optimization
algorithms, namely the Firefly Algorithm (FFA) and Fminsearch, for the PID tuning of a
DC motor speed control system. The performance of the two algorithms is evaluated based
on the time-domain response of the DC motor speed control system. The Integral of Time
multiplied by the Absolute value of the Error (ITAE) is used as the objective function here.
The results show that the Fminsearch algorithm outperforms the FFA in terms of the rate
of convergence, computation time and settling time. The proposed approach provides an
effective and efficient way for the design and tuning of PID controllers in DC motor speed
control systems. This study contributes to the ongoing efforts in developing more efficient
and reliable control systems for DC motors, which are widely used in various industrial
applications.
1. Introduction:
DC motors are widely used in various industrial applications, such as robotics, aerospace, and
manufacturing. The performance of the DC motor is highly dependent on the speed control
system, which plays a crucial role in maintaining the motor speed at a desired level. The PID
controller is a popular control method for DC motor speed control, which provides a simple
and effective way of regulating the motor speed.
The design and tuning of the PID controller are critical for achieving the desired performance
of the DC motor speed control system. The optimization algorithms have been widely used
for the design and tuning of PID controllers, which automate the process of finding the
optimal PID parameters that can achieve the desired performance.
In this paper, we present a comparative study of two optimization algorithms, namely the
Firefly Algorithm (FFA) [1] and Fminsearch for the PID tuning of a DC motor speed control
system. The FFA is a metaheuristic optimization algorithm inspired by the flashing behaviour
of fireflies which is effective in solving various optimization problems [2]. Fminsearch is a
built-in optimization algorithm in MATLAB, which is widely used for the design and tuning
of PID controllers. It is based on Nelder-Mead simplex method [3].
2. Literature Review:
3. Methodology:
The DC motor speed control system using the PID controller is modelled using the transfer
functions given below.
The transfer function for the speed control of the DC motor is modelled as follows:
𝐺(𝑠)= 2
𝐾
(1)
𝐽𝑏𝑠 +𝐽𝑠+𝐾
Here,
𝐺(𝑠)= (2)
0.
where 𝐾𝑝, 𝐾𝑖, and 𝐾𝑑 are the proportional, integral, and derivative gains of the PID controller,
respectively.
The arrangement of the controller and the dc motor for the speed control system of the DC
motor is given in Fig.1. The objective of the optimization is to find the optimal values of 𝐾𝑝,
𝐾𝑖, and 𝐾𝑑 that can minimize the error between the reference speed and the actual speed of the
DC motor.
The FFA and Fminsearch algorithms are used for the optimization of the PID controller
parameters. The FFA algorithm is implemented using the following steps:
1. Initialize the population of fireflies with random values of 𝐾𝑝, 𝐾𝑖, and 𝐾𝑑
2. Calculate the fitness value of each firefly based on the objective function.
3. Update the light intensity of each firefly based on its fitness value and the distance
between the fireflies.
4. Move each firefly towards the brighter fireflies.
5. Evaluate the fitness value of the new population.
6. Repeat steps 3-5 until the stopping criterion is met.
The parameters selected for this work are given below – •
Total number of fireflies=20
• Total number of iterations=600
The convergence plots obtained by running both the Fminsearch and FFA are provided in
Fig.2.
As can be seen from Fig.2, up until near the 200 th function evaluation the convergence plots
of both the algorithms were approximately the same but at and after the 200 th function
evaluation there is a sudden dip in the convergence plot of the Fminsearch, which remained
nearly constant for the rest of the iterations whereas, near the same function evaluation value
of 200, FFA started converging at a constant pace and achieved the same level of error that of
the Fminsearch at around 600th iteration. Hence, the Fminsearch algorithm converged quicker
Table 1: Computed PID tuning parameters and the computation time of the algorithms
The PID tuning parameters obtained from both the algorithms were set into the PID controller
and step response of the system was taken. The step response is shown in Fig.3 and the
parameters obtained from the Fig.3 are shown in Table. 2.
Fig.2. Step responses of the system with FFA and Fminsearch tuned PID parameters
PID Name Percentage of Settling Time Rise Time (𝑡𝑟) Steady State
Overshoot (𝑡𝑠) Value
(%OS)
Fmin-PID 6.48 0.116 0.00814 1
5. Conclusion:
In this paper, we have presented a comparative study of two optimization algorithms, namely
the FFA and Fminsearch, for the PID tuning of a DC motor speed control system. ITAE is
used as the objective function. The performance of the two algorithms is evaluated based on
the time-domain response of the DC motor speed control system. The results show that the
Fminsearch algorithm outperforms the FFA in terms of the convergence rate, the computation
time and the settling time. The proposed approach provides an effective and efficient way for
the design and tuning of PID controllers in DC motor speed control systems. This study
contributes to the ongoing efforts in developing more efficient and reliable control systems
for DC motors, which are widely used in various industrial applications.
Future work includes the investigation of other optimization algorithms and their performance
for PID tuning of DC motor speed control systems. The effects of various disturbances and
uncertainties on the performance of the optimized controllers can also be studied. Finally, the
proposed approach can be extended to other types of motors and control systems.
References: