SlideShare a Scribd company logo
International Journal of Electrical and Computer Engineering (IJECE)
Vol. 11, No. 1, February 2021, pp. 794~801
ISSN: 2088-8708, DOI: 10.11591/ijece.v11i1.pp794-801  794
Journal homepage: http://ijece.iaescore.com
Design of spark ignition engine speed control using
bat algorithm
Herlambang Setiadi1
, Karl O. Jones2
, Teguh Aryo Nugroho3
,
Muhammad Abdillah4
, Herri Trilaksana5
, Tahta Amrillah6
1,6
School of Advanced Technology and Multidiciplinary, Universitas Airlangga, Indonesia
2
Department of Electronics and Electrical Engineering, Liverpool John Moores University, United Kingdom
3,4
Department of Electrical Engineering, Universitas Pertamina, Indonesia
5
Department of Physics, Faculty of Science and Technology, Universitas Airlangga, Indonesia
Article Info ABSTRACT
Article history:
Received Jun 11, 2020
Revised Jul 19, 2020
Accepted Jul 28, 2020
The most common problem in spark ignition engine is how to increase
the speed performance. Commonly researchers used traditional mathematical
approaches for designing speed controller of spark ignition engine. However,
this solution may not be sufficient. Hence, it is important to design the speed
controller using smart methods. This paper proposes a method for designing
speed controller of a spark ignition engine using the bat algorithm (BA).
The simulation is carried out using the MATLAB/SIMULINK environment.
Time domain simulation is carried out to investigate the efficacy of
the proposed method. From the simulation results, it is found that by
designing speed controller of spark ignition engine using PI based bat
algorithm, the speed performance of spark ignition engine can be enhanced
both in no load condition and load condition compared to conventional PI
controler.
Keywords:
Bat algorithm
Load torque
PI controller
Spark ignition engine
Speed response
Transportation services This is an open access article under the CC BY-SA license.
Corresponding Author:
Herlambang Setiadi,
School of Advanced Technology and Multidiciplinary,
Universitas Airlangga,
Campus C UNAIR Gedung Nanizar, Mulyorejo, Surabaya, Indonesia.
Email: h.setiadi@stmm.unair.ac.id
1. INTRODUCTION
Spark ignition engine is one type of ignition engine that is widely used in motor vehicles around
the world. Along with development of technology, research and development of this machine continues to be
carried out starting from the construction of the machine to its management electronics. The most frequently
discussed problems in spark ignition engines are engine performance and fuel efficiency. In engine
performance, researchers focused on controlling the engine speed and manifold pressure as reported in [1, 2].
In that research, the authors are focused on designing the engine speed controller using a traditional
mathematical approach. However, using a traditional mathematical approach may not be sufficient as
the spark ignition engine model includes high non linearity. Hence, it is essential to design the engine speed
controller based on smart methods such as using artificial intelligence methods.
Artificial intelligence methods are divided into three category: artificial neural network, fuzzy logic,
and nature inspired metaheuristic algorithms. Nature inspired metaheuristic algorithms have gained
significant attention as they could provide optimal and efficient ways for handling engineering problems.
The application of a metaheuristic algorithm on power system problems is reported in [3]. In that research,
the differential evolution algorithm was used to design the resilient wide area oscillation damping. From that
Int J Elec & Comp Eng ISSN: 2088-8708 
Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi)
795
research, it was reported that the differential evolution algorithm provided satisfactory results in optimizing
resilient wide-area oscillation damping. Research effort in [4] attempted to use particle swarm optimization
for workflow scheduling. From their research it was found that workflow scheduling can be set optimally by
using particle swarm optimization. Authors in [5], proposed a solution for making optimal itinerary using ant
colony optimization. The application of hybrid particle swarm optimization (PSO) and weed optimization
(WO) for designing PID controller of marine diesel engine speed control is reported in [6]. From
the simulation results, it is found that by combining between PSO and WO the PID controller can be
designed optimally. Research effort in [7] explained the application of adaptive safe experimentation
dynamics for data-driven neuroendocrine-PID control of multi input multi output. Authors on [8], proposed
a method for designing PID controller tuning based on safe experimentation on liquid slosh. The application
of ant colony optimization nelder mead (ACO-NM) for designing PI controller is reported in [9]. In those
research off-road electric vehicle is used as the test bed system. From the results, it this found that by
designing PI controller based on the ACO-NM algorithm could achive the maximum overshoot average
<10%. Furthermore, ACO-NM algorithm could provide high quality solutions for lower computational cost.
A genetic algorithm was used to detect the network intrusions [10]. An attempt to use firefly
algorithm for placing reactive power compensation in distribution network is reported in [11]. From
the results, it is found that by using firefly algorithm as a method, the balance between active and reactive
power in distribution network. Among numerous types of nature inspired metaheuristic algorithms, the bat
algorithm is becoming favorable due to its simple coding and fast computational process [12]. Hence, this
paper proposes a method for optimally design speed controller of spark ignition engine using bat algorithm
(BA) as BA can provide a low computational cost and reliable results. The rest of the paper is organized as
follows: Section 2 provides the fundamental theory of spark ignition engine, PI controller and bat algorithm.
The method for designing spark ignition engine using bat algorithm is presented in Section 3. Section 4
focuses on analyzing the simulation results. The last section highlight the contribution, conclusions and
future direction of the research.
2. FUNDAMENTAL THEORY
2.1. Spark ignition engine
To simulate four-cylinder spark ignition engine, the most important part is capturing the dynamic of
each component in the system. This dynamic can be captured through mathematical representation. The first
component of the system is the throttle body. In this paper the angle of the throttle plate is the control input.
The mathematical representation of throttle body can be described using (1)-(3) [13-17].
   
ai m
m f g P

 (1)
2 3
( ) 2.821 0.0523 0.10299 0.00063
f    
    (2)
2
2
1,
2
2
( ) ,
2
2
, 2
1, 2
amb
m
amb
m m amb m m amb
amb
m amb amb amb m amb
m
m amb
P
P
P
g P P P P P P
P
P P P P P P
P
P P

   
   
 













(3)
Where mai, θ, Pm, and Pamb are mass flow rate into manifold, throttle angle, manifold pressure and
ambient pressure. The next dynamic is intake manifold of spark ignition engine. This dynamic is very similar
to manifold pressure. The difference is in the incoming and outgoing mass flow rates representing the net rate
of change of air mass with respect to time. The mathematical representation of intake manifold can be
described using (4) [13-17].
 ISSN: 2088-8708
Int J Elec & Comp Eng, Vol. 11, No. 1, February 2021 : 794 - 801
796
 
0
m ai a
m
RT
P m m
V
  (4)
In (4), R, T, Vm, and ma0 are specific gas constant, temperature, manifold volume, and mass flow rate
of air out of manifold pressure. The mass flow rate itself is a function of the engine speed and manifold
pressure as described in (5). The final dynamic model for simulating spark ignition engine is the torque
developed by the engine. The torque produced by the engine depends upon the engine speed, the spark
advance, mass of the air charge and the air/fuel mixture ratio. The mathematical representation of torque of
engine can be described using (5) [13-17].
   2 2
2 2
181.3 379.36 21.91 / 0.85 / 0.26 0.0028
0.027 0.000107 0.00048 2.55 0.05
eng a
a a
Torque m A F A F
N N N m m
 
  
      
    
(5)
In (5), ma and A/F are mass of air in cylinder for combustion and air fuel ration. While ϑ and
Torqueeng are spark advance and torque produced by the engine. Furthermore, the engine speed of spark
ignition engine can be described using (6), where J and N are moment of inertia and engine speed [13-17].
eng load
Torque Torque
N
J

 (6)
2.2. PI controller
In the control system domain, there are many ways to control a system, one way is by using
a proportional and integral controller. Each controller structure has its own advantages and disadvantages.
A proportional controller has an advantage in making the system have a faster rise time. While integral
control has the advantages of reducing the error of the system. By combining both type of controller,
the system will have faster rise time and smaller error compared to the other systems without proportional
and integral control. Usually this controller is called a PI controller [18, 19].
The output of a proportional controller is the multiplication between an error value and
the proportional gain. The proportional gain cannot be entered randomly as it has certain value limits.
The system will not reach the steady state condition if the proportional gain value is too high. Furthermore,
the system will have steady state value different with the set point if proportional gain is too low. Hence, it is
crucial to set the proportional gain controller optimally. The integral controller can be used to reduce the error
of the system response by using integration procedure on the error signal. The integral controller can be also used
to speed up time in eliminating offsets. Figure 1 shows the block diagram of a PI controller [18, 19].
+
-
input
Output
 
p
i
1
K e t dt
T

E(s)
+
p
K
+
Feedback
Figure 1. Block diagram of a PI controller [19, 20]
2.3. Bat algorithm
In 2010, Dr Xin She Yang from Cambridge University introduced a new type of metaheuristic
algorithm called bat algorithm. The bat algorithm was developed by analyzing the behavior of bats finding
their prey. Bats use some kind of sonar signals called echolocation to locate their nest, detect food, and avoid
obstacles in the dark (bats are nocturnal animals, and so are active at night). To use the behavior of bats for
Int J Elec & Comp Eng ISSN: 2088-8708 
Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi)
797
solving optimization problems, describing the bats activity via mathematical representation is crucial.
The mathematical representation of bat position and velocity can be described as (7), (8) and (9) [21-23].
 
min max min
i
f f f f 
   (7)
 
1 *
t t t
i i i i
v v x x f

   (8)
1
t t t
i i i
x x v

  (9)
In (7) and (8), the optimal location of the whole solution and random vector taken from a uniform
distribution are presented as x* and β. Furthermore, the velocity of the bats can be increased by multiplying λi
and fi. Hence, λi and fi can be used to adjust the velocity of the bats. Moreover, the value of fmin and fmax are set
depending on user requirements (generally, the values are 0 and 1) [21-23].
The pulse and noise level (Ai) from bats are updated in each iteration. Furthermore, the noise level
of bats are decreased when bats find their prey. The user can choose the value of maximum and minimum
noise. For simplicity, the minimum and maximum value of noise can be set to 0 and 1 assuming that noise
level becomes 0 when bats stop emitting sound (because the bats have already found their prey). This activity
can be modeled by the mathematical representation in (10) and (11) [21-23].
1
t t
i i
A A


 (10)
 
1 0
1 exp
t
i i
r r t


 
  
  (11)
Pulse emission and a constant value in (10) and (11) are presented as ri, α and γ. For every 0< α <1
and γ>0, the mathematical representation can be described in (12). The value of α and γ can be set with
the same value between 0 to 1, for simplicity. In this paper bat position is described as the PI controller
parameters [21-23].
0
0, , ~
t t
i i i
A r r t
   (12)
3. METHOD
In this section, the procedure of designing speed control of spark ignition engine is explained.
The system is simulated using the MATLAB/SIMULINK environment. Moreover, the objective of the bat
algorithm is to reduce the engine speed of the spark ignition engine. The mathematical representation of
the bat algorithm objective function is described using (13) [24-26]. With e, t, Kp, Ki are error of
the investigated signal, time, proportional controller gain and integral controller gain.
 
0
time
t e t dt
ITAE 
 (13)
Subject to:
min max
p p p
K K K
  (14)
min max
i i i
K K K
  (15)
The procedure of designing a PI controller for spark ignition engine speed controller based on
the bat algorithm includes the following steps:
Step 1. Input parameter of the bat algorithm and dynamic data of spark ignition engine.
Step 2. Start the bat algorithm by initializing the number of bats (population), pulse emission rate, loudness
and frequency.
Step 3. Generate the random position of the bats.
Step 4. Evaluate the objective function of each bat’s position using (13).
Step 5. Move the bats using (7), (8) and (9).
 ISSN: 2088-8708
Int J Elec & Comp Eng, Vol. 11, No. 1, February 2021 : 794 - 801
798
Step 6. If random value is smaller than noise level and if new frequency is smaller than the old frequency,
store the solution and update the loudness and pulse rate.
Step 7. Evaluate the objective function of new population using (13).
Step 8. If random value is smaller than noise level and if new frequency is smaller than old frequency, store
the solution and update the loudness and pulse rate.
Step 9. Rank the bats and obtain the best solution.
Step 10. If the termination criteria is satisfied then proceed to step 11, otherwise return to step 5.
Step 11. Apply the best position of bats Kp(s) and Ki(s) in the PI controller.
Step 12. Print the results (PI controller value).
4. RESULTS AND ANALYSIS
In this section, two different case studies are carried out to investigate the efficacy of the proposed
method (PI controller design based on the bat algorithm). The first case study, is to test the system under
different speed variation. The second case study is focused on system performance under load conditions.
Furthermore, two scenarios are considered in this paper. The first scenario is a traditional speed controller
using a PI controller. While the second scenario is the proposed method on this paper (PI controller design based
on the bat algorithm). Furthermore, Table 1 shows the optimal PI parameter based on the bat algorithm.
Table 1. Optimum parameters values obtained using bat algorithm
Variable Value
Kp 0.07199
Ki 0.06089
4.1. Speed reference variation
In the first case study, the performance of the system is tested against speed reference variation.
For the start, the speed reference is set at 3000 rpm. After 5 seconds, the speed reference is changed from
3000 rpm to 6000 rpm. It should be noted that in this case study, no disturbances are considered. Figure 2
shows the spark ignition engine speed response owing to the speed reference variation. It is noted that system
with a conventional PI controller experiences higher overshoot and slower settling time. It should be noted
that the conventional PI controller design is using PI tuner application in MATLAB/SIMULINK.
Furthermore, when the PI controller is tuned using bat algorithm, the speed response of spark ignition engine
is better than a conventional PI controller. This is indicated by the smaller overshoot and faster settling time.
This happens because the PI controller based on the bat algorithm provides optimal control signal for
the throttle. Furthermore, Tables 2 and 3 illustrate the detailed features of Figure 2.
Figure 2. Spark ignition engine speed response
Table 2. Detailed features of spark ignition engine speed response 3000 rpm
Variable PI controller PI-BA
Overshoot (rpm) 288 224
Settling time (second) 3.72 3.54
0 2 4 6 8 10
2000
3000
4000
5000
6000
7000
T (s)
Speed
Deviation(rpm)
PI-BA
PI Conventional
Int J Elec & Comp Eng ISSN: 2088-8708 
Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi)
799
Table 3. Detailed features of spark ignition engine speed response 6000 rpm
Variable PI controller PI-BA
Overshoot (rpm) 319 18
Settling time (second) 3.89 3.66
4.2. Drag torque variation
In this section, the drag torque variation is considered to determine the impact of drag torque in
speed performance of spark ignition engine. The drag torque was first set at 25 N/m, then between 2 seconds
and 8 seconds the drag torque is set at 20 N/m, after that the drag torque is once again set at 25 N/m. Figure 3
depicts the spark ignition engine speed response due to drag torque variation. It is observed that by using PI
controller based on bat algorithm, the speed performance of the spark ignition engine is better than using
a conventional PI controller. This is indicated by the small overshoot and fast settling time of the spark
ignition engine speed response.
Figure 3. Spark ignition engine speed response due to drag torque
4.3. Control system index measurement
In this section, the spark ignition engine speed response is assessed by using ITAE, IAE and ISE.
The best performance of the spark ignition speed response is indicated by the minimum value of IAE,
ISE and ITAE. Table 4 shows the ITAE, IAE and ISE for the system without drag torque variation. While
Table 5 illustrates the ITAE, IAE and ISE with drag torque variation. It is noticeable that for both condition
the proposed method (design PI controller based on bat algorithm) provides the best results on ITAE, IAE
and ISE assessment. The mathematical representation of ITAE, IAE and ISE are described in appendix.
Table 4. ITAE, IAE and ISE performance assesement without load
Variable PI-BA PI controller
ITAE 2.567x105
2.598x105
IAE 4.389x104
4.439x104
ISE 2.139x108
2.198x108
Table 5. ITAE, IAE and ISE performance assesement with load
Variable PI-BA PI controller
ITAE 2.559x105
2.597x105
IAE 4.339x104
4.412x104
ISE 2.108x108
2.186x108
5. CONCLUSION
This paper proposed an optimal design of PI controller based on the bat algorithm for speed
controller of spark ignition engine. From the case study, 1) It is noted that PI controller can be used to control
the throttle of spark ignition engine to produce appropriate speed response. 2) It is noticeable that by
designing a PI controller using the bat algorithm, the speed response of the spark ignition engine can
0 2 4 6 8 10
2000
3000
4000
5000
6000
7000
T (s)
Speed
Deviation(rpm)
PI-BA
PIConventional
 ISSN: 2088-8708
Int J Elec & Comp Eng, Vol. 11, No. 1, February 2021 : 794 - 801
800
be enhanced. Further research is required to investigate the fuel consumption comparison between system
with smart controller and using conventional controller. Furthermore, the controller can also be designed by
using fuzzy and adaptive to speed reference and load variation.
APPENDIX
- Measuring system performance
To measure the controller performance, some indices can be used. Thypically, integral squared error
(ISE) and integral absolute error (IAE) are used as the indices for assesing the system performance [23-25].
Furthermore, for assesing the system more comprehensive, a indices that also considering time in
the calculation is designed. This indices is called as integral time absolute error (ITAE). Hence, for this paper
all of the indices (IAE, ISE and ITAE) are used to thoroughly investigate the system performance. Those
indices can be modeled as mathematical representation as described in (7)-(9) [27-29].
 
0
time
e t dt
IAE 
 (16)
 
 2
0
time
e t dt
ISE 
 (17)
 
0
time
t e t dt
ITAE 
 (18)
ACKNOWLEDMENT
The corresponding author would like to thanks to Universitas Airlangga for funding this research
through “Riset Kolaborasi Mitra Luar Negeri” grant.
REFERENCES
[1] A. Nugroho, "Speed Control System Compensator Design on the Spark Ignition Engine using QFT (in Bahasa),"
Bachelor Thesis, Department of Electrical Engineering, Institut Teknologi Sepuluh Nopember, 2005.
[2] A. Salim, " Compensator Design as Robust Control in Spark Ignition Engine Ignition System (in Bahasa)," Master
Thesis, Department of Electrical Engineering, Institut Teknologi Sepuluh Nopember, 2005.
[3] H. Setiadi, N. Mithulananthan, and R. Shah, "Design of Wide-Area POD with Resiliency using Modified DEA for
Power System with High Penetration of Renewable Energy," IET Renewable Power Generation, vol. 13, no. 2,
pp. 342-351, 2018.
[4] T. P. Thanh, et al., "An Effective PSO-inspired Alorithm for Workflow Scheduling," International Journal of
Electrical and Computer Engineering (IJECE), vol. 8, no. 5, pp. 3853-3859, 2018.
[5] Z. K. A. Baizal, et al., "Generating Travel Itenerary using Ant Collony Optimization," TELKOMNIKA
Telecommunication, Computing, Electronics and Control, vol. 16, no. 3, pp. 1208-1216, 2018.
[6] Ghazali, M. R. B., Ahmad, M. A. B. and Raja Ismail, R. M. T. B., "Adaptive safe experimentation dynamics for
data-driven neuroendocrine-PID control of MIMO systems," IETE Journal of Research, pp. 1-14, 2019.
[7] Shukor, N.S.A., et. al., "Data-driven PID tuning based on safe experimentation dynamics for control of liquid
slosh," IEEE 8th
Control and System Graduate Research Colloquium (ICSGRC), pp. 62-66, 2017.
[8] Alkhafaji, A. S., Al-hayder, A. A. and Hassooni, A. S., "Hybrid IWOPSO optimization based marine engine
rotational speed control automatic system," International Journal of Electrical and Computer Engineering (IJECE),
vol. 10, no. 1, pp. 840-848, 2020.
[9] Blondin, M. J. and Trovão, J. P., "Soft-computing techniques for cruise controller tuning for an off-road electric
vehicle," IET Electrical Systems in Transportation, vol. 9, no. 4, pp. 196-205, 2019.
[10] H. Suhaimi, et al., "Network Intruison detection System by using Genetic Algorithm," Indonesian Journal of
Electrical Engineering and Computer Science (IJEECS), vol. 16, no. 1, pp. 1593-1599, 2019.
[11] V. Z. Manusov, P. V. Matrenin, and L. S. Atabaeva, "Firefly algorithm to optimal distribution of rective power
compensation units," International Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 3,
pp. 1758-1765, 2018.
[12] X. S. Yang, "Bat Algorithm: Literature Review and Applications," International Journal Bio-Inspired
Computattion, vol. 5, no. 3, pp. 141-149, 2013.
[13] D. Khiar, et al., "Robust Takagi-Sugeno Fuzzy Control of a Spark Ignition Engine," Control Engineering Practice,
vol. 15, no. 12, pp. 1446-1456, 2007.
[14] A. Triwiyatno, M. Nuh, A. Santoso, and I. N. Sutantra, "Engine torque control of spark ignition engine using robust
fuzzy logic control," IACSIT International Journal of Engineering and Technology, vol. 3, pp. 352-358, 2011.
Int J Elec & Comp Eng ISSN: 2088-8708 
Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi)
801
[15] A. Triwiyatno, M. Nuh, A. Santoso, and I. N. Sutantra, "Fuzzy State Observer Design for Engine Torque Control
System of Spark Ignition Engine," TRANSMISI, vol. 11, no. 3, pp. 159-165, 2011.
[16] A. Triwiyatno, M. Nuh, A. Santoso, and I. N. Sutantra, "Engine Torque Control of SI Engine using Linear
Quadratic Integral Tracking (LQIT) Optimal Control," IPTEK, The Journal for Technologu and Science, vol. 22,
no. 4, pp. 159-165, 2011.
[17] A. V. R. Muhammad, A. Triwiyatno, and B Setiyono, "Desain Kontroller Air Fuel Ratio (AFR) pada Model Spark
Ignition Engine dengan Metode Hybrid Fuzzy PID," TRANSIENT Jurnal Ilmiah Teknik Elektro, vol. 2, no. 2,
pp. 216-224, 2013.
[18] Barnard, P., T. Liefeld, and S. Quinn, "Using Simulink and Stateflow in Automotive Applications," The
MathWorks Inc.1998.
[19] K. Ogata, Yanjuan Yang., "Modern Control Engineering," Prentice-Hall, 2002.
[20] D. Lastomo, H. Setiadi, and M. R. Djalal, "Optimization Pitch Angle Controller of Rocket System using Improved
Differential Evolution Algorithm," International Journal of Advances in Intelligent Informatics, vol. 3, no. 1,
pp. 27-34, 2017.
[21] S. R. Borra, G. J Reddy, and E. S. Reddy, "An Efficient Fingerprint Identification using Neural Network and Bat
Algorithm," International Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 2, pp. 1194-1213,
2018.
[22] Z. Boulouard, et al., "Bat-Cluster: A Bat Algorithm-based Automated Graph CLustering Approach," International
Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 2 pp. 1122-1130, 2018.
[23] R. Mohamed, et al., "Bat Algorithm and K-Means Techniques for Classification Performance Improvement,"
Indonesian Journal of Electrical Engineering and Computer Science (IJEECS), vol. 15, no. 3, pp. 1411-1418,
2018.
[24] H. Setiadi, N. Mithulananthan, R. Shah, K. Y. Lee, "Resilient Wide-area Multi-mode Controller Design based on
Bat Algorithm for Power Systems with Renewable Power Generation and Battery Energy Storage Systems,"
IET Generation, Transmission, and Distribution, vol. 13, no. 10, pp. 1884-1894, 2019.
[25] H. Setiadi, N. Mithulananthan, A. U. Krismanto, I. Kamwa, "Optimization based Design of Dual Input PSS for
Improving Small Signal Stability of Power System with RESs," Internasional Journal of Electrical Engineering &
Informatics, vol. 11, no. 4, pp. 778-795, 2019.
[26] M. R. Djalal, I Robandi, "Optimization of PID Controller Design for DC Motor based on Flower Pollination
Algorithm," Internasional Conference on Electrical Telecommunication and Computer Engineering, 2015.
[27] T. E. Marlin, "Process Control: Designing Process and Control Systems for Dynamic Performance,"
McGraw-Hill, 1995.
[28] T. F. Edgard and D. E. Seborg, "Process Dynamic and Control," Wiley, 2010.
[29] M. C. Khoo, "Physiological Control Systems," IEEE Press, 2009.

More Related Content

PDF
Development of back propagation neural network model to predict performance a...
PDF
Speed Control of Three Phase Induction Motor Using Neural Network
PDF
Short-term wind speed forecasting system using deep learning for wind turbine...
PDF
IRJET- Current Reduction for Power Assisted Steering Control in Electric Vehi...
PDF
Fuzzy driver command interpreter
PDF
Autotuning of pid controller for robot arm and magnet levitation plant
PDF
TUNING OF DC MOTOR BY USING PSO & PID
Development of back propagation neural network model to predict performance a...
Speed Control of Three Phase Induction Motor Using Neural Network
Short-term wind speed forecasting system using deep learning for wind turbine...
IRJET- Current Reduction for Power Assisted Steering Control in Electric Vehi...
Fuzzy driver command interpreter
Autotuning of pid controller for robot arm and magnet levitation plant
TUNING OF DC MOTOR BY USING PSO & PID

What's hot (20)

PDF
IRJET- A Review of Testing of Multi Cylinder S.I. Petrol Engine
PDF
A Concise Review of Control Techniques for Reliable and Efficient Control of...
PDF
Energies 08-06820
PDF
Speed Control of Dual Induction Motor using Fuzzy Controller
PDF
Optimization of PID for industrial electro-hydraulic actuator using PSOGSA
PDF
Career Episode_3
PDF
Configuration of pid controller for speed control of dc motor utilizing optim...
PDF
17 swarnkarpankaj 154-162
PDF
Electromagnetic Braking System using Ultrasonic Sensor
PDF
Ijmet 10 01_034
PDF
Mechatronics students manual 2013 reg updated
PDF
F013153140
PDF
Control of IC Engine: Design a Novel MIMO Fuzzy Backstepping Adaptive Based F...
PDF
IJSETR-VOL-4-ISSUE-5-1231-1236
PDF
Objective functions modification of GA optimized PID controller for brushed D...
PDF
Speed limiter integrated fatigue analyzer (SLIFA): engineering design and con...
PDF
Data-based PID control of flexible joint robot using adaptive safe experiment...
PDF
40220130405012 2
PDF
Latest Transmission Technologies In Passenger Cars- A Review
PDF
Design of automatic navigation control system for agricultural vehicle
IRJET- A Review of Testing of Multi Cylinder S.I. Petrol Engine
A Concise Review of Control Techniques for Reliable and Efficient Control of...
Energies 08-06820
Speed Control of Dual Induction Motor using Fuzzy Controller
Optimization of PID for industrial electro-hydraulic actuator using PSOGSA
Career Episode_3
Configuration of pid controller for speed control of dc motor utilizing optim...
17 swarnkarpankaj 154-162
Electromagnetic Braking System using Ultrasonic Sensor
Ijmet 10 01_034
Mechatronics students manual 2013 reg updated
F013153140
Control of IC Engine: Design a Novel MIMO Fuzzy Backstepping Adaptive Based F...
IJSETR-VOL-4-ISSUE-5-1231-1236
Objective functions modification of GA optimized PID controller for brushed D...
Speed limiter integrated fatigue analyzer (SLIFA): engineering design and con...
Data-based PID control of flexible joint robot using adaptive safe experiment...
40220130405012 2
Latest Transmission Technologies In Passenger Cars- A Review
Design of automatic navigation control system for agricultural vehicle
Ad

Similar to Design of spark ignition engine speed control using bat algorithm (20)

PDF
Fault Analysis and Prediction in Gas Turbine using Neuro-Fuzzy System
PDF
Comparison Analysis of Indirect FOC Induction Motor Drive using PI, Anti-Wind...
PDF
PDF
Indirect Vector Control of Induction Motor Using Pi Speed Controller and Neur...
PDF
Cuckoo search algorithm based for tunning both PI and FOPID controllers for ...
PDF
REMAPPING AND SIMULATION OF EFI SYSTEM FOR SI ENGINE USING PIGGYBACK ECU
PDF
Comperative Performance Analysis of PMSM Drive Using MPSO and ACO Techniques
PDF
Speed controller design for three-phase induction motor based on dynamic ad...
PDF
A Novel Technique for Tuning PI-controller in Switched Reluctance Motor Drive...
PDF
Speed Control of PMDCM Based GA and DS Techniques
PDF
Performance evaluation of a hybrid fuzzy logic controller based on genetic al...
PDF
Hybrid controller design using gain scheduling approach for compressor systems
PDF
IRJET- Fuzzy predictive control of Variable Speed Wind Turbines using Fuzzy T...
PDF
I012435863
PDF
Coal-Fired Boiler Fault Prediction using Artificial Neural Networks
PDF
COMBUSTION MONITORING THROUGH VIBRATIONAL DATA IN A TURBOCHARGED CITY CAR ENGINE
PDF
Self_evolving_neural_network_based_algor.pdf
PDF
Optimization of Organic Rankine Cycle’s thermal efficiency based on Grey rela...
PDF
IRJET- Speed Control of DC Motor using PID Controller - A Review
PDF
PORTFOLIO_MJ
Fault Analysis and Prediction in Gas Turbine using Neuro-Fuzzy System
Comparison Analysis of Indirect FOC Induction Motor Drive using PI, Anti-Wind...
Indirect Vector Control of Induction Motor Using Pi Speed Controller and Neur...
Cuckoo search algorithm based for tunning both PI and FOPID controllers for ...
REMAPPING AND SIMULATION OF EFI SYSTEM FOR SI ENGINE USING PIGGYBACK ECU
Comperative Performance Analysis of PMSM Drive Using MPSO and ACO Techniques
Speed controller design for three-phase induction motor based on dynamic ad...
A Novel Technique for Tuning PI-controller in Switched Reluctance Motor Drive...
Speed Control of PMDCM Based GA and DS Techniques
Performance evaluation of a hybrid fuzzy logic controller based on genetic al...
Hybrid controller design using gain scheduling approach for compressor systems
IRJET- Fuzzy predictive control of Variable Speed Wind Turbines using Fuzzy T...
I012435863
Coal-Fired Boiler Fault Prediction using Artificial Neural Networks
COMBUSTION MONITORING THROUGH VIBRATIONAL DATA IN A TURBOCHARGED CITY CAR ENGINE
Self_evolving_neural_network_based_algor.pdf
Optimization of Organic Rankine Cycle’s thermal efficiency based on Grey rela...
IRJET- Speed Control of DC Motor using PID Controller - A Review
PORTFOLIO_MJ
Ad

More from IJECEIAES (20)

PDF
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
PDF
Embedded machine learning-based road conditions and driving behavior monitoring
PDF
Advanced control scheme of doubly fed induction generator for wind turbine us...
PDF
Neural network optimizer of proportional-integral-differential controller par...
PDF
An improved modulation technique suitable for a three level flying capacitor ...
PDF
A review on features and methods of potential fishing zone
PDF
Electrical signal interference minimization using appropriate core material f...
PDF
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
PDF
Bibliometric analysis highlighting the role of women in addressing climate ch...
PDF
Voltage and frequency control of microgrid in presence of micro-turbine inter...
PDF
Enhancing battery system identification: nonlinear autoregressive modeling fo...
PDF
Smart grid deployment: from a bibliometric analysis to a survey
PDF
Use of analytical hierarchy process for selecting and prioritizing islanding ...
PDF
Enhancing of single-stage grid-connected photovoltaic system using fuzzy logi...
PDF
Enhancing photovoltaic system maximum power point tracking with fuzzy logic-b...
PDF
Adaptive synchronous sliding control for a robot manipulator based on neural ...
PDF
Remote field-programmable gate array laboratory for signal acquisition and de...
PDF
Detecting and resolving feature envy through automated machine learning and m...
PDF
Smart monitoring technique for solar cell systems using internet of things ba...
PDF
An efficient security framework for intrusion detection and prevention in int...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Embedded machine learning-based road conditions and driving behavior monitoring
Advanced control scheme of doubly fed induction generator for wind turbine us...
Neural network optimizer of proportional-integral-differential controller par...
An improved modulation technique suitable for a three level flying capacitor ...
A review on features and methods of potential fishing zone
Electrical signal interference minimization using appropriate core material f...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Bibliometric analysis highlighting the role of women in addressing climate ch...
Voltage and frequency control of microgrid in presence of micro-turbine inter...
Enhancing battery system identification: nonlinear autoregressive modeling fo...
Smart grid deployment: from a bibliometric analysis to a survey
Use of analytical hierarchy process for selecting and prioritizing islanding ...
Enhancing of single-stage grid-connected photovoltaic system using fuzzy logi...
Enhancing photovoltaic system maximum power point tracking with fuzzy logic-b...
Adaptive synchronous sliding control for a robot manipulator based on neural ...
Remote field-programmable gate array laboratory for signal acquisition and de...
Detecting and resolving feature envy through automated machine learning and m...
Smart monitoring technique for solar cell systems using internet of things ba...
An efficient security framework for intrusion detection and prevention in int...

Recently uploaded (20)

PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Digital Logic Computer Design lecture notes
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Geodesy 1.pptx...............................................
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Digital Logic Computer Design lecture notes
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Mechanical Engineering MATERIALS Selection
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
UNIT 4 Total Quality Management .pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Internet of Things (IOT) - A guide to understanding
additive manufacturing of ss316l using mig welding
Foundation to blockchain - A guide to Blockchain Tech
Safety Seminar civil to be ensured for safe working.
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Geodesy 1.pptx...............................................
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

Design of spark ignition engine speed control using bat algorithm

  • 1. International Journal of Electrical and Computer Engineering (IJECE) Vol. 11, No. 1, February 2021, pp. 794~801 ISSN: 2088-8708, DOI: 10.11591/ijece.v11i1.pp794-801  794 Journal homepage: http://ijece.iaescore.com Design of spark ignition engine speed control using bat algorithm Herlambang Setiadi1 , Karl O. Jones2 , Teguh Aryo Nugroho3 , Muhammad Abdillah4 , Herri Trilaksana5 , Tahta Amrillah6 1,6 School of Advanced Technology and Multidiciplinary, Universitas Airlangga, Indonesia 2 Department of Electronics and Electrical Engineering, Liverpool John Moores University, United Kingdom 3,4 Department of Electrical Engineering, Universitas Pertamina, Indonesia 5 Department of Physics, Faculty of Science and Technology, Universitas Airlangga, Indonesia Article Info ABSTRACT Article history: Received Jun 11, 2020 Revised Jul 19, 2020 Accepted Jul 28, 2020 The most common problem in spark ignition engine is how to increase the speed performance. Commonly researchers used traditional mathematical approaches for designing speed controller of spark ignition engine. However, this solution may not be sufficient. Hence, it is important to design the speed controller using smart methods. This paper proposes a method for designing speed controller of a spark ignition engine using the bat algorithm (BA). The simulation is carried out using the MATLAB/SIMULINK environment. Time domain simulation is carried out to investigate the efficacy of the proposed method. From the simulation results, it is found that by designing speed controller of spark ignition engine using PI based bat algorithm, the speed performance of spark ignition engine can be enhanced both in no load condition and load condition compared to conventional PI controler. Keywords: Bat algorithm Load torque PI controller Spark ignition engine Speed response Transportation services This is an open access article under the CC BY-SA license. Corresponding Author: Herlambang Setiadi, School of Advanced Technology and Multidiciplinary, Universitas Airlangga, Campus C UNAIR Gedung Nanizar, Mulyorejo, Surabaya, Indonesia. Email: h.setiadi@stmm.unair.ac.id 1. INTRODUCTION Spark ignition engine is one type of ignition engine that is widely used in motor vehicles around the world. Along with development of technology, research and development of this machine continues to be carried out starting from the construction of the machine to its management electronics. The most frequently discussed problems in spark ignition engines are engine performance and fuel efficiency. In engine performance, researchers focused on controlling the engine speed and manifold pressure as reported in [1, 2]. In that research, the authors are focused on designing the engine speed controller using a traditional mathematical approach. However, using a traditional mathematical approach may not be sufficient as the spark ignition engine model includes high non linearity. Hence, it is essential to design the engine speed controller based on smart methods such as using artificial intelligence methods. Artificial intelligence methods are divided into three category: artificial neural network, fuzzy logic, and nature inspired metaheuristic algorithms. Nature inspired metaheuristic algorithms have gained significant attention as they could provide optimal and efficient ways for handling engineering problems. The application of a metaheuristic algorithm on power system problems is reported in [3]. In that research, the differential evolution algorithm was used to design the resilient wide area oscillation damping. From that
  • 2. Int J Elec & Comp Eng ISSN: 2088-8708  Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi) 795 research, it was reported that the differential evolution algorithm provided satisfactory results in optimizing resilient wide-area oscillation damping. Research effort in [4] attempted to use particle swarm optimization for workflow scheduling. From their research it was found that workflow scheduling can be set optimally by using particle swarm optimization. Authors in [5], proposed a solution for making optimal itinerary using ant colony optimization. The application of hybrid particle swarm optimization (PSO) and weed optimization (WO) for designing PID controller of marine diesel engine speed control is reported in [6]. From the simulation results, it is found that by combining between PSO and WO the PID controller can be designed optimally. Research effort in [7] explained the application of adaptive safe experimentation dynamics for data-driven neuroendocrine-PID control of multi input multi output. Authors on [8], proposed a method for designing PID controller tuning based on safe experimentation on liquid slosh. The application of ant colony optimization nelder mead (ACO-NM) for designing PI controller is reported in [9]. In those research off-road electric vehicle is used as the test bed system. From the results, it this found that by designing PI controller based on the ACO-NM algorithm could achive the maximum overshoot average <10%. Furthermore, ACO-NM algorithm could provide high quality solutions for lower computational cost. A genetic algorithm was used to detect the network intrusions [10]. An attempt to use firefly algorithm for placing reactive power compensation in distribution network is reported in [11]. From the results, it is found that by using firefly algorithm as a method, the balance between active and reactive power in distribution network. Among numerous types of nature inspired metaheuristic algorithms, the bat algorithm is becoming favorable due to its simple coding and fast computational process [12]. Hence, this paper proposes a method for optimally design speed controller of spark ignition engine using bat algorithm (BA) as BA can provide a low computational cost and reliable results. The rest of the paper is organized as follows: Section 2 provides the fundamental theory of spark ignition engine, PI controller and bat algorithm. The method for designing spark ignition engine using bat algorithm is presented in Section 3. Section 4 focuses on analyzing the simulation results. The last section highlight the contribution, conclusions and future direction of the research. 2. FUNDAMENTAL THEORY 2.1. Spark ignition engine To simulate four-cylinder spark ignition engine, the most important part is capturing the dynamic of each component in the system. This dynamic can be captured through mathematical representation. The first component of the system is the throttle body. In this paper the angle of the throttle plate is the control input. The mathematical representation of throttle body can be described using (1)-(3) [13-17].     ai m m f g P   (1) 2 3 ( ) 2.821 0.0523 0.10299 0.00063 f         (2) 2 2 1, 2 2 ( ) , 2 2 , 2 1, 2 amb m amb m m amb m m amb amb m amb amb amb m amb m m amb P P P g P P P P P P P P P P P P P P P P                         (3) Where mai, θ, Pm, and Pamb are mass flow rate into manifold, throttle angle, manifold pressure and ambient pressure. The next dynamic is intake manifold of spark ignition engine. This dynamic is very similar to manifold pressure. The difference is in the incoming and outgoing mass flow rates representing the net rate of change of air mass with respect to time. The mathematical representation of intake manifold can be described using (4) [13-17].
  • 3.  ISSN: 2088-8708 Int J Elec & Comp Eng, Vol. 11, No. 1, February 2021 : 794 - 801 796   0 m ai a m RT P m m V   (4) In (4), R, T, Vm, and ma0 are specific gas constant, temperature, manifold volume, and mass flow rate of air out of manifold pressure. The mass flow rate itself is a function of the engine speed and manifold pressure as described in (5). The final dynamic model for simulating spark ignition engine is the torque developed by the engine. The torque produced by the engine depends upon the engine speed, the spark advance, mass of the air charge and the air/fuel mixture ratio. The mathematical representation of torque of engine can be described using (5) [13-17].    2 2 2 2 181.3 379.36 21.91 / 0.85 / 0.26 0.0028 0.027 0.000107 0.00048 2.55 0.05 eng a a a Torque m A F A F N N N m m                  (5) In (5), ma and A/F are mass of air in cylinder for combustion and air fuel ration. While ϑ and Torqueeng are spark advance and torque produced by the engine. Furthermore, the engine speed of spark ignition engine can be described using (6), where J and N are moment of inertia and engine speed [13-17]. eng load Torque Torque N J   (6) 2.2. PI controller In the control system domain, there are many ways to control a system, one way is by using a proportional and integral controller. Each controller structure has its own advantages and disadvantages. A proportional controller has an advantage in making the system have a faster rise time. While integral control has the advantages of reducing the error of the system. By combining both type of controller, the system will have faster rise time and smaller error compared to the other systems without proportional and integral control. Usually this controller is called a PI controller [18, 19]. The output of a proportional controller is the multiplication between an error value and the proportional gain. The proportional gain cannot be entered randomly as it has certain value limits. The system will not reach the steady state condition if the proportional gain value is too high. Furthermore, the system will have steady state value different with the set point if proportional gain is too low. Hence, it is crucial to set the proportional gain controller optimally. The integral controller can be used to reduce the error of the system response by using integration procedure on the error signal. The integral controller can be also used to speed up time in eliminating offsets. Figure 1 shows the block diagram of a PI controller [18, 19]. + - input Output   p i 1 K e t dt T  E(s) + p K + Feedback Figure 1. Block diagram of a PI controller [19, 20] 2.3. Bat algorithm In 2010, Dr Xin She Yang from Cambridge University introduced a new type of metaheuristic algorithm called bat algorithm. The bat algorithm was developed by analyzing the behavior of bats finding their prey. Bats use some kind of sonar signals called echolocation to locate their nest, detect food, and avoid obstacles in the dark (bats are nocturnal animals, and so are active at night). To use the behavior of bats for
  • 4. Int J Elec & Comp Eng ISSN: 2088-8708  Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi) 797 solving optimization problems, describing the bats activity via mathematical representation is crucial. The mathematical representation of bat position and velocity can be described as (7), (8) and (9) [21-23].   min max min i f f f f     (7)   1 * t t t i i i i v v x x f     (8) 1 t t t i i i x x v    (9) In (7) and (8), the optimal location of the whole solution and random vector taken from a uniform distribution are presented as x* and β. Furthermore, the velocity of the bats can be increased by multiplying λi and fi. Hence, λi and fi can be used to adjust the velocity of the bats. Moreover, the value of fmin and fmax are set depending on user requirements (generally, the values are 0 and 1) [21-23]. The pulse and noise level (Ai) from bats are updated in each iteration. Furthermore, the noise level of bats are decreased when bats find their prey. The user can choose the value of maximum and minimum noise. For simplicity, the minimum and maximum value of noise can be set to 0 and 1 assuming that noise level becomes 0 when bats stop emitting sound (because the bats have already found their prey). This activity can be modeled by the mathematical representation in (10) and (11) [21-23]. 1 t t i i A A    (10)   1 0 1 exp t i i r r t          (11) Pulse emission and a constant value in (10) and (11) are presented as ri, α and γ. For every 0< α <1 and γ>0, the mathematical representation can be described in (12). The value of α and γ can be set with the same value between 0 to 1, for simplicity. In this paper bat position is described as the PI controller parameters [21-23]. 0 0, , ~ t t i i i A r r t    (12) 3. METHOD In this section, the procedure of designing speed control of spark ignition engine is explained. The system is simulated using the MATLAB/SIMULINK environment. Moreover, the objective of the bat algorithm is to reduce the engine speed of the spark ignition engine. The mathematical representation of the bat algorithm objective function is described using (13) [24-26]. With e, t, Kp, Ki are error of the investigated signal, time, proportional controller gain and integral controller gain.   0 time t e t dt ITAE   (13) Subject to: min max p p p K K K   (14) min max i i i K K K   (15) The procedure of designing a PI controller for spark ignition engine speed controller based on the bat algorithm includes the following steps: Step 1. Input parameter of the bat algorithm and dynamic data of spark ignition engine. Step 2. Start the bat algorithm by initializing the number of bats (population), pulse emission rate, loudness and frequency. Step 3. Generate the random position of the bats. Step 4. Evaluate the objective function of each bat’s position using (13). Step 5. Move the bats using (7), (8) and (9).
  • 5.  ISSN: 2088-8708 Int J Elec & Comp Eng, Vol. 11, No. 1, February 2021 : 794 - 801 798 Step 6. If random value is smaller than noise level and if new frequency is smaller than the old frequency, store the solution and update the loudness and pulse rate. Step 7. Evaluate the objective function of new population using (13). Step 8. If random value is smaller than noise level and if new frequency is smaller than old frequency, store the solution and update the loudness and pulse rate. Step 9. Rank the bats and obtain the best solution. Step 10. If the termination criteria is satisfied then proceed to step 11, otherwise return to step 5. Step 11. Apply the best position of bats Kp(s) and Ki(s) in the PI controller. Step 12. Print the results (PI controller value). 4. RESULTS AND ANALYSIS In this section, two different case studies are carried out to investigate the efficacy of the proposed method (PI controller design based on the bat algorithm). The first case study, is to test the system under different speed variation. The second case study is focused on system performance under load conditions. Furthermore, two scenarios are considered in this paper. The first scenario is a traditional speed controller using a PI controller. While the second scenario is the proposed method on this paper (PI controller design based on the bat algorithm). Furthermore, Table 1 shows the optimal PI parameter based on the bat algorithm. Table 1. Optimum parameters values obtained using bat algorithm Variable Value Kp 0.07199 Ki 0.06089 4.1. Speed reference variation In the first case study, the performance of the system is tested against speed reference variation. For the start, the speed reference is set at 3000 rpm. After 5 seconds, the speed reference is changed from 3000 rpm to 6000 rpm. It should be noted that in this case study, no disturbances are considered. Figure 2 shows the spark ignition engine speed response owing to the speed reference variation. It is noted that system with a conventional PI controller experiences higher overshoot and slower settling time. It should be noted that the conventional PI controller design is using PI tuner application in MATLAB/SIMULINK. Furthermore, when the PI controller is tuned using bat algorithm, the speed response of spark ignition engine is better than a conventional PI controller. This is indicated by the smaller overshoot and faster settling time. This happens because the PI controller based on the bat algorithm provides optimal control signal for the throttle. Furthermore, Tables 2 and 3 illustrate the detailed features of Figure 2. Figure 2. Spark ignition engine speed response Table 2. Detailed features of spark ignition engine speed response 3000 rpm Variable PI controller PI-BA Overshoot (rpm) 288 224 Settling time (second) 3.72 3.54 0 2 4 6 8 10 2000 3000 4000 5000 6000 7000 T (s) Speed Deviation(rpm) PI-BA PI Conventional
  • 6. Int J Elec & Comp Eng ISSN: 2088-8708  Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi) 799 Table 3. Detailed features of spark ignition engine speed response 6000 rpm Variable PI controller PI-BA Overshoot (rpm) 319 18 Settling time (second) 3.89 3.66 4.2. Drag torque variation In this section, the drag torque variation is considered to determine the impact of drag torque in speed performance of spark ignition engine. The drag torque was first set at 25 N/m, then between 2 seconds and 8 seconds the drag torque is set at 20 N/m, after that the drag torque is once again set at 25 N/m. Figure 3 depicts the spark ignition engine speed response due to drag torque variation. It is observed that by using PI controller based on bat algorithm, the speed performance of the spark ignition engine is better than using a conventional PI controller. This is indicated by the small overshoot and fast settling time of the spark ignition engine speed response. Figure 3. Spark ignition engine speed response due to drag torque 4.3. Control system index measurement In this section, the spark ignition engine speed response is assessed by using ITAE, IAE and ISE. The best performance of the spark ignition speed response is indicated by the minimum value of IAE, ISE and ITAE. Table 4 shows the ITAE, IAE and ISE for the system without drag torque variation. While Table 5 illustrates the ITAE, IAE and ISE with drag torque variation. It is noticeable that for both condition the proposed method (design PI controller based on bat algorithm) provides the best results on ITAE, IAE and ISE assessment. The mathematical representation of ITAE, IAE and ISE are described in appendix. Table 4. ITAE, IAE and ISE performance assesement without load Variable PI-BA PI controller ITAE 2.567x105 2.598x105 IAE 4.389x104 4.439x104 ISE 2.139x108 2.198x108 Table 5. ITAE, IAE and ISE performance assesement with load Variable PI-BA PI controller ITAE 2.559x105 2.597x105 IAE 4.339x104 4.412x104 ISE 2.108x108 2.186x108 5. CONCLUSION This paper proposed an optimal design of PI controller based on the bat algorithm for speed controller of spark ignition engine. From the case study, 1) It is noted that PI controller can be used to control the throttle of spark ignition engine to produce appropriate speed response. 2) It is noticeable that by designing a PI controller using the bat algorithm, the speed response of the spark ignition engine can 0 2 4 6 8 10 2000 3000 4000 5000 6000 7000 T (s) Speed Deviation(rpm) PI-BA PIConventional
  • 7.  ISSN: 2088-8708 Int J Elec & Comp Eng, Vol. 11, No. 1, February 2021 : 794 - 801 800 be enhanced. Further research is required to investigate the fuel consumption comparison between system with smart controller and using conventional controller. Furthermore, the controller can also be designed by using fuzzy and adaptive to speed reference and load variation. APPENDIX - Measuring system performance To measure the controller performance, some indices can be used. Thypically, integral squared error (ISE) and integral absolute error (IAE) are used as the indices for assesing the system performance [23-25]. Furthermore, for assesing the system more comprehensive, a indices that also considering time in the calculation is designed. This indices is called as integral time absolute error (ITAE). Hence, for this paper all of the indices (IAE, ISE and ITAE) are used to thoroughly investigate the system performance. Those indices can be modeled as mathematical representation as described in (7)-(9) [27-29].   0 time e t dt IAE   (16)    2 0 time e t dt ISE   (17)   0 time t e t dt ITAE   (18) ACKNOWLEDMENT The corresponding author would like to thanks to Universitas Airlangga for funding this research through “Riset Kolaborasi Mitra Luar Negeri” grant. REFERENCES [1] A. Nugroho, "Speed Control System Compensator Design on the Spark Ignition Engine using QFT (in Bahasa)," Bachelor Thesis, Department of Electrical Engineering, Institut Teknologi Sepuluh Nopember, 2005. [2] A. Salim, " Compensator Design as Robust Control in Spark Ignition Engine Ignition System (in Bahasa)," Master Thesis, Department of Electrical Engineering, Institut Teknologi Sepuluh Nopember, 2005. [3] H. Setiadi, N. Mithulananthan, and R. Shah, "Design of Wide-Area POD with Resiliency using Modified DEA for Power System with High Penetration of Renewable Energy," IET Renewable Power Generation, vol. 13, no. 2, pp. 342-351, 2018. [4] T. P. Thanh, et al., "An Effective PSO-inspired Alorithm for Workflow Scheduling," International Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 5, pp. 3853-3859, 2018. [5] Z. K. A. Baizal, et al., "Generating Travel Itenerary using Ant Collony Optimization," TELKOMNIKA Telecommunication, Computing, Electronics and Control, vol. 16, no. 3, pp. 1208-1216, 2018. [6] Ghazali, M. R. B., Ahmad, M. A. B. and Raja Ismail, R. M. T. B., "Adaptive safe experimentation dynamics for data-driven neuroendocrine-PID control of MIMO systems," IETE Journal of Research, pp. 1-14, 2019. [7] Shukor, N.S.A., et. al., "Data-driven PID tuning based on safe experimentation dynamics for control of liquid slosh," IEEE 8th Control and System Graduate Research Colloquium (ICSGRC), pp. 62-66, 2017. [8] Alkhafaji, A. S., Al-hayder, A. A. and Hassooni, A. S., "Hybrid IWOPSO optimization based marine engine rotational speed control automatic system," International Journal of Electrical and Computer Engineering (IJECE), vol. 10, no. 1, pp. 840-848, 2020. [9] Blondin, M. J. and Trovão, J. P., "Soft-computing techniques for cruise controller tuning for an off-road electric vehicle," IET Electrical Systems in Transportation, vol. 9, no. 4, pp. 196-205, 2019. [10] H. Suhaimi, et al., "Network Intruison detection System by using Genetic Algorithm," Indonesian Journal of Electrical Engineering and Computer Science (IJEECS), vol. 16, no. 1, pp. 1593-1599, 2019. [11] V. Z. Manusov, P. V. Matrenin, and L. S. Atabaeva, "Firefly algorithm to optimal distribution of rective power compensation units," International Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 3, pp. 1758-1765, 2018. [12] X. S. Yang, "Bat Algorithm: Literature Review and Applications," International Journal Bio-Inspired Computattion, vol. 5, no. 3, pp. 141-149, 2013. [13] D. Khiar, et al., "Robust Takagi-Sugeno Fuzzy Control of a Spark Ignition Engine," Control Engineering Practice, vol. 15, no. 12, pp. 1446-1456, 2007. [14] A. Triwiyatno, M. Nuh, A. Santoso, and I. N. Sutantra, "Engine torque control of spark ignition engine using robust fuzzy logic control," IACSIT International Journal of Engineering and Technology, vol. 3, pp. 352-358, 2011.
  • 8. Int J Elec & Comp Eng ISSN: 2088-8708  Design of spark ignition engine speed control using bat algorithm (Herlambang Setiadi) 801 [15] A. Triwiyatno, M. Nuh, A. Santoso, and I. N. Sutantra, "Fuzzy State Observer Design for Engine Torque Control System of Spark Ignition Engine," TRANSMISI, vol. 11, no. 3, pp. 159-165, 2011. [16] A. Triwiyatno, M. Nuh, A. Santoso, and I. N. Sutantra, "Engine Torque Control of SI Engine using Linear Quadratic Integral Tracking (LQIT) Optimal Control," IPTEK, The Journal for Technologu and Science, vol. 22, no. 4, pp. 159-165, 2011. [17] A. V. R. Muhammad, A. Triwiyatno, and B Setiyono, "Desain Kontroller Air Fuel Ratio (AFR) pada Model Spark Ignition Engine dengan Metode Hybrid Fuzzy PID," TRANSIENT Jurnal Ilmiah Teknik Elektro, vol. 2, no. 2, pp. 216-224, 2013. [18] Barnard, P., T. Liefeld, and S. Quinn, "Using Simulink and Stateflow in Automotive Applications," The MathWorks Inc.1998. [19] K. Ogata, Yanjuan Yang., "Modern Control Engineering," Prentice-Hall, 2002. [20] D. Lastomo, H. Setiadi, and M. R. Djalal, "Optimization Pitch Angle Controller of Rocket System using Improved Differential Evolution Algorithm," International Journal of Advances in Intelligent Informatics, vol. 3, no. 1, pp. 27-34, 2017. [21] S. R. Borra, G. J Reddy, and E. S. Reddy, "An Efficient Fingerprint Identification using Neural Network and Bat Algorithm," International Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 2, pp. 1194-1213, 2018. [22] Z. Boulouard, et al., "Bat-Cluster: A Bat Algorithm-based Automated Graph CLustering Approach," International Journal of Electrical and Computer Engineering (IJECE), vol. 8, no. 2 pp. 1122-1130, 2018. [23] R. Mohamed, et al., "Bat Algorithm and K-Means Techniques for Classification Performance Improvement," Indonesian Journal of Electrical Engineering and Computer Science (IJEECS), vol. 15, no. 3, pp. 1411-1418, 2018. [24] H. Setiadi, N. Mithulananthan, R. Shah, K. Y. Lee, "Resilient Wide-area Multi-mode Controller Design based on Bat Algorithm for Power Systems with Renewable Power Generation and Battery Energy Storage Systems," IET Generation, Transmission, and Distribution, vol. 13, no. 10, pp. 1884-1894, 2019. [25] H. Setiadi, N. Mithulananthan, A. U. Krismanto, I. Kamwa, "Optimization based Design of Dual Input PSS for Improving Small Signal Stability of Power System with RESs," Internasional Journal of Electrical Engineering & Informatics, vol. 11, no. 4, pp. 778-795, 2019. [26] M. R. Djalal, I Robandi, "Optimization of PID Controller Design for DC Motor based on Flower Pollination Algorithm," Internasional Conference on Electrical Telecommunication and Computer Engineering, 2015. [27] T. E. Marlin, "Process Control: Designing Process and Control Systems for Dynamic Performance," McGraw-Hill, 1995. [28] T. F. Edgard and D. E. Seborg, "Process Dynamic and Control," Wiley, 2010. [29] M. C. Khoo, "Physiological Control Systems," IEEE Press, 2009.