Controlling parameters proportional integral derivative of DC motor using a gradient-based optimizer
Controlling parameters proportional integral derivative of DC motor using a gradient-based optimizer
Corresponding Author:
Widi Aribowo
Departement of Electrical Engineering, Faculty of Vocational, Universitas Negeri Surabaya
St. Ketintang, Gayungan, Surabaya, East Java 61256, Indonesia
Email: [email protected]
1. INTRODUCTION
There are various sorts of control actions in a control system, including proportional, integral, and
derivative control actions [1]–[4]. There are benefits to each of these control measures. Fast research is a benefit
of proportional control action, minimizing errors is a benefit of integral control action, and lowering errors or
overshoot/undershoot is a benefit of derivative control action [5].
The industry uses proportional integral derivative (PID) control extensively, which improves the
system's transient and steady-state behavior [6]–[8]. To accomplish the conditions as per the anticipated
setpoint, this control system processes computations based on the control variables Kp, Ki, and Kd. The DC
motor rotational speed can be controlled by this control system to generate a satisfactory output response.
However, in practice, when the setpoint changes, this PID control system has not been able to deliver a good
output response in accordance with the intended circumstances [9]–[13].
Only linear conditions will allow a PID control system to function. DC motor convert electrical energy
into mechanical energy [14]–[16]. A DC motor, however, exhibits a non-linearity effect. A single PID control
system cannot generate an output response with the same characteristics under multiple setpoint values due to
the variance in properties. A technique that can remove this non-linearity effect must be used in order to provide
an output response with the same properties from various setpoints. A DC motor's rotational speed can be
managed using an adaptive PID control, which is one method of removing this non-linearity impact.
In recent years, several improving PID control methods using artificial intelligence have been
presented, such as the neural network [17]–[20], henry gas solubility optimization algorithm [21], [22], transit
search optimization algorithm [23], gray wolf optimization [24], salp swarm algorithm [25], slime mould
algorithm [26], and particle swarm optimization [27]. This paper will present DC motor control using PID
which is optimized using the gradient-based optimizer (GBO) algorithm. The GBO was introduced by
Ahmadianfar et al. in 2020 [28]. The method was inspired by Newton's gradient-based search method. To test
the performance of the proposed method, this paper will make a comparison with the ant colony optimizer
(ACO) method. The contributions of this research are: i) Application of the gradient-based optimizer (GBO)
algorithm method to tune parameter PID as DC motor control and ii) Comparison of the GBO method with the
ACO method applied to PID as DC motor control.
This paper is divided into some sections: i) Section 2, which is about the concept of DC motor and
the gradient-based optimizer (GBO) method; ii) The section 3 is the results and discussion; and iii) The last
section is to draw conclusions from the research.
2. METHOD
2.1. DC motor
DC motor is controlling by armature and field [29]. Stator and rotor are important parts of a DC motor.
The non-rotating part of the DC motor is called the stator. While the rotating part is the rotor. DC motor with
anchor control uses armature current as the controlling variable. Current coils or permanent magnets can
generate a stator field. When a fixed field current pours in the field coil, the motor torque (τ_m) shown as (1).
Where, 𝐾𝑚 is the permeability function of the magnetic material. The relationship between the armature current
(𝐼𝑎 ) and the input voltage (𝑉𝑎 ) in the armature circuit can be formulated as (3) and (4).
Where Ra and La are armature resistance and armature inductance. 𝑒𝑏 is back electromotive force. The torque
in the motor is the same as the torque delivered to the load.
Where 𝜏L is the torque connected to the load. 𝜏d is fault torque. J and B is inertia of the DC motor and damping
friction ratio. Schematically of the DC motor are shown in Figure 1.
τd (s)
+ τm (s) -
Vs(s) + τ (s) ω (s)
- L
Kb
In first stage, the vector was randomly selected in the prospecting zone. This could be formulated as (8).
Where the limit of the decision variable is represented by 𝑋𝑚𝑖𝑛 and 𝑋𝑚𝑎x.
Where random numbers that are normally distributed are represented as 𝑟𝑎𝑛𝑑𝑛. The small number in the range
[0, 0,1] is 𝜀. The best solution is 𝑥best. 𝑥worst is the worst solution.
The optimization method must maintain a balance motion to probe a hopeful area in the prospecting
zone that leads to a globally best completion. In the GSR, the adaptive coefficient is used to equilibrium
processes. This could be formulated as (10)-(20).
𝜌1 = 2 × 𝑟𝑎𝑛𝑑 ×∝ −∝ (10)
3𝜋 3𝜋
∝= |𝛽 × 𝑠𝑖𝑛 ( + sin (𝛽 × ))| (11)
2 2
2
𝑚 2
𝛽 = 𝛽𝑚𝑖𝑛 + (𝛽𝑚𝑎𝑥 − 𝛽𝑚𝑖𝑛 ) × (1 − ( ) ) (12)
𝑀
To make better use of the nearby area, a direction of movement (DM) parameter was added as (18) and (19).
𝜌2 = 2 × 𝑟𝑎𝑛𝑑 ×∝ −∝ (19)
Int J Pow Elec & Dri Syst, Vol. 15, No. 2, June 2024: 696-703
Int J Pow Elec & Dri Syst ISSN: 2088-8694 699
Where the random number in [0, 1] is denoted 𝑟𝑎𝑛𝑑. The random variable helps each vector have a diverse
pace measure is represented by 𝜌2. The current vector position in (20) can be updated based on GSR and DM.
𝑋1𝑚 𝑚
𝑛 = 𝑥𝑛 − 𝐺𝑆𝑅 + 𝐷𝑀 (20)
ITAE
Kb
The DC motor speed step response for the GBO-PID and ACO-PID controllers is shown in Figure 4.
Details regarding the step respond of GBO-PID and ACO-PID can be seen in Table 2. The proposed GBO-
PID has the best reaction step because it has the fastest constancy. The performance index used as a comparison
is ITAE. ITAE has been widely used in several studies. the mathematical formula of the ITAE index is as (26).
𝑡
𝐼𝑇𝐴𝐸 = ∫0 𝑡 . 𝑒 (𝑡) 𝑑𝑡 (26)
Table 3 is a comparison of the ITAE values of the ACO-PID and GBO-PID methods. The ITAE value
of the proposed method, namely GBO-PID, has a value of 0.0292. This value is better than the value of the
ACO-PID method. To test the robustness of the proposed method, three tests were carried out. The test by
changing the parameters of the DC motor. The details data of the variables can be seen in Table 4.
Figure 5(a) is the output from test 1 with parameters Ra=1 and K=1. The settling time value of the
proposed method is 0.625% better than the ACO method. In test 2, it was found that the settling time value of
the proposed method was 0.24% better than the ACO method. Test 2 graph can be seen in Figure 5(b).
Figure 5(c) displays the results of test 3 with the settling time value of the proposed method being 2.77% better
than ACO. The proposed GBO-PID has the best reaction step because it has the fastest constancy. From
Tables 5-7 and Figure 5, that changes in system parameters result in different responses. However, GBO-PID
has the fastest rise and settling time. The experimental results with various test variants validate the toughness
of the GBO-PID control applied to the system.
Int J Pow Elec & Dri Syst, Vol. 15, No. 2, June 2024: 696-703
Int J Pow Elec & Dri Syst ISSN: 2088-8694 701
Table 6. Comparison of results for test 2 Table 7. Comparison of results for test 3
Controller Rise time Settling time Controller Rise time Settling time
ACO-PID 3.318 4.6340 ACO-PID 2.3968 4.0227
GBO-PID 3.205 4.6227 GBO-PID 2.2444 3.9116
(a) (b)
(c)
Figure 5. Comparison step response of (a) test 1, (b) test 2, and (c) test 3
4. CONCLUSION
PID parameter optimization is an interesting area to research. Weak optimization of parameters will
affect the performance of the control. In addition, this results in an inefficient system. This research proposes
the A gradient-based optimizer (GBO) method to adjust the PID parameters on a DC motor. For DC motor by
PID, GBO is used to minimize ITAE. Performance comparisons were performed with the PID set with ACO.
From the simulation, it was found that the ITAE value of the proposed method was 11.25% better. By using
several experiments with various problems, it was found that the GBO-PID method had an average settling
time of 1.139% better than the ACO-PID method. The results of the comparative analysis show that the
proposed method GBO-PID has the optimum performance.
REFERENCES
[1] J. Han, X. Shan, H. Liu, J. Xiao, and T. Huang, “Fuzzy gain scheduling PID control of a hybrid robot based on dynamic
characteristics,” Mechanism and Machine Theory, vol. 184, p. 105283, Jun. 2023, doi: 10.1016/j.mechmachtheory.2023.105283.
[2] M. Y. Coskun and M. İtik, “Intelligent PID control of an industrial electro-hydraulic system,” ISA Transactions, vol. 139, pp. 484–
498, Aug. 2023, doi: 10.1016/j.isatra.2023.04.005.
[3] W. Dong et al., “A segmented optimal PID method to consider both regulation performance and damping characteristic of
hydroelectric power system,” Renewable Energy, vol. 207, pp. 1–12, May 2023, doi: 10.1016/j.renene.2023.02.091.
[4] S. Lim, Y. Yook, J. P. Heo, C. G. Im, K. H. Ryu, and S. W. Sung, “A new PID controller design using differential operator for the
integrating process,” Computers & Chemical Engineering, vol. 170, p. 108105, Feb. 2023, doi:
10.1016/j.compchemeng.2022.108105.
[5] M. Zadehbagheri, A. Ma’arif, R. Ildarabadi, M. Ansarifard, and I. Suwarno, “Design of Multivariate PID Controller for Power
Networks Using GEA and PSO,” Journal of Robotics and Control (JRC), vol. 4, no. 1, pp. 108–117, Mar. 2023, doi:
10.18196/jrc.v4i1.15682.
[6] J. Dong and X. Duan, “A Robust Control via a Fuzzy System with PID for the ROV,” Sensors, vol. 23, no. 2, p. 821, Jan. 2023,
doi: 10.3390/s23020821.
[7] M. Al-Dhaifallah, “Fuzzy fractional-order PID control for heat exchanger,” Alexandria Engineering Journal, vol. 63, pp. 11–16,
BIOGRAPHIES OF AUTHORS
Int J Pow Elec & Dri Syst, Vol. 15, No. 2, June 2024: 696-703
Int J Pow Elec & Dri Syst ISSN: 2088-8694 703