9 Main Programs in AI
9 Main Programs in AI
9 Main Programs in AI
6, 2017
1Abstract—This paper presents the results of an PID parameters, GA and DEA approaches are
investigation based on the use of artificial bee colony (ABC) comparatively used for three different systems namely high
algorithm to determine the optimum PID parameters for order, with time delay and the non-minimum phase. The
higher order oscillatory systems. For this aim, several
study presented in [20] considers the values of mean squared
oscillatory systems with different orders from the literature
were selected. In order to achieve the desired closed loop error (MSE) and the integral of absolute error (IAE) for
system response, the PID parameters were tuned by the ABC performance evaluation of these algorithms.
algorithm using an appropriate objective function. To In the study of Bagis [18], a modified GA based approach
demonstrate the effectiveness of the considered approach, is used for optimal PID parameters. Karaboga and Kalinli
performance of the ABC algorithm was compared with that of [23] employed the TSA to find the PID parameters for a
the conventional PID tuning methods given in the literature
given process. In a study by Bagis and Savascihabes [24],
and two popular heuristic optimization algorithms namely
particle swarm optimization (PSO) algorithm and genetic the PID tuning operation is performed by the DEA for the
algorithm (GA). desired closed loop system response. A PSO based
application for robust PID controller design is given by
Index Terms—Artificial bee colony algorithm; PID Zhao et al. [28]. Chang and Shih [27] presented a PID
controller design; PID tuning, population based metaheuristics. controller design method for nonlinear systems by using an
improved PSO approach based on modified velocity and
I. INTRODUCTION position updating equations. In another study on the PSO
In the design of the control systems, Proportional- algorithm, useful information on algorithm performance was
Integral-Derivative (PID) type controllers have an exclusive obtained in the modelling problem of high order oscillatory
and important position. To achieve a desired system systems [30]. In this conference paper presented by Bagis, in
response, the controller parameters should be carefully order to define the five different high order processes, the
determined by an appropriate tuning approach. For higher parameters of three different model structures are
order and/or oscillatory systems with complex dynamics, determined by a typical PSO algorithm. Karaboga and Akay
this operation can be quite difficult and time-consuming. reported a comparison of the ABC algorithm, harmony
The performance of the designed control system is directly search, and the bees’ algorithms for the PID design problem
affected by various main factors such as the definition of an [29].
acceptable process model, consideration of the time or The main aim of this study is to investigate the
frequency domain for the controller design, selection of a performance of the ABC algorithm to solve a difficult
suitable objective function for control purposes, or controller design problem based on the use of the PID
determination of a controller tuning method. controller. Another key contribution of this paper is that it
There are many classical approaches and methods in the examines the main idea of how the ABC algorithm can be
literature which use the time or frequency domain response used as an efficient alternative and/or supportive approach
of the systems [1]–[17]. On the other hand, by using PID to improve the performance of the system under control. At
tuning approaches based on artificial intelligence this, several oscillatory systems with different orders in the
optimization algorithms such as genetic algorithms (GAs) literature were selected. The performance of the ABC
[18]–[21], the tabu search algorithm (TSA) [22], [23], algorithm was compared with those of the conventional PID
differential evolution algorithm (DEA) [20], [24], ant colony tuning methods given in the literature and two popular
optimization algorithm [25], particle swarm optimization heuristic optimization algorithms, namely the PSO and GA.
(PSO) [26]-[28], and the artificial bee colony (ABC) The definition of the PID control problem for the ABC
algorithm [29], fast and efficient control solutions can be algorithm based controller design is given in Section II. In
obtained. Wang and Kwok presented a GA based PID Section III, the ABC, GA and PSO algorithms and the
tuning study for a pH neutralization process [21]. In the control parameters used in this study are briefly presented.
study reported by Saad et al. [20], to achieve the optimal The comparison of simulation results is given in Section IV.
Discussion and conclusion are given in the last sections.
Manuscript received 2 March, 2017; accepted 15 September, 2017. II. PID DESIGN PROBLEM
This work was supported by Research Fund of the Erciyes University.
Project Number: FBA-2015-6236. The basic principle in PID tuning is to adjust the
3
ELEKTRONIKA IR ELEKTROTECHNIKA, ISSN 1392-1215, VOL. 23, NO. 6, 2017
controller parameters fast and accurately as possible for ABC algorithm having an efficient objective function for
aims of the control design. These parameters are entitled by controlling the higher order systems. The similar structures
proportional tuning constant, Kp, integral tuning constant, to this function type were used in our previous studies, and
Ki, and derivative tuning constant, Kd. For a typical PID impressive results were obtained [18], [19], [22], [24]. Thus,
controller, the controller output signal u(t) can be written as it is preferred to use such a weighted objective function that
the following in time and s domain [18]: is formed different performance specifications. In this study,
because minimization of the ITAE value is primarily aimed
t de(t ) in the step response of the closed loop system under control
u t Kp e t Ki 0 e(t )dt Kd , (1)
dt action, the coefficient of this performance index was
Ki selected as 10.
U s Kp Kd s E s , (2)
s III. ALGORITHMS USED IN STUDY
where e(t) is the error signal, and calculated by difference A. ABC Algorithm
between the reference input, r(t), and system output, y(t); s One of the quite successful optimization algorithms is the
is a complex variable which has a real part and an imaginary artificial bee colony (ABC) algorithm presented by
part. The variables of s and (1/s) in (2) can be considered as Karaboga [29], [31]–[33]. This population based approach
differential and integral operators in time domain, presents efficient solutions for numerical optimization
respectively. It is a well-known fact that parameter tuning problems especially. In main procedure of the algorithm,
approach directly affects behaviour of the PID controller foraging behaviours of bee colonies are simulated by three
and satisfactoriness of the control system designed for the groups of the bees. These are employed, onlooker, and scout
control aims. Therefore, in order to meet the desired closed bees. Locations of food sources are evaluated as possible
loop system specifications in time and/or frequency domain, solutions for the problem. The possible and new solutions
PID controller parameters must be carefully determined. For are determined by the employed bees. Nectar amounts
this purpose, one of the efficient approaches is to use the (fitness values) in the food sources define the qualities of the
specifications of the system’s step response. Thus, a solutions. The new possible food sources are selected by the
controller design strategy that provides the aims of the onlooker bees according to information of nectar amounts.
control system can be proposed by analysing the step Selection procedure of the scout bees is controlled by an
response of the controlled system. Definition of an important control parameter called “limit” which is the
appropriate objective function based on the use of important value of predetermined number of cycles.
performance indicators such as the overshoot, settling time, To improve the quality of the solution, generally, a
and the integral time absolute error (ITAE) value can mathematical description is used by the algorithm as the
provide the remarkable solutions for the controller tuning. following [32], [33]
In this study, an ABC algorithm based design mechanism
for PID control of higher order oscillatory systems is Vij X ij rand (-1,1)( X ij - X ). (5)
proposed as shown in Fig. 1. kj
4
ELEKTRONIKA IR ELEKTROTECHNIKA, ISSN 1392-1215, VOL. 23, NO. 6, 2017
iteration number, and w is the inertia weight factor. The best the minimized objective functions were obtained.
position values for the particles and swarm are represented
by P and G symbols. Cognitive and social parameters are TABLE I. CONTROL PARAMETER VALUES.
Control Parameter PSO GA ABC
specified with the constants of c1 and c2, respectively.
Population (or colony) size 30
Random variables of r1 and r2 are in the interval of [0-1].
Cognitive and social parameters c1 = c2 = 2 - -
The variables of v and x are (population size optimized
Limit - - 45
parameters number)-dimensional vectors. In this study, the 0.9 /
size of these vectors is (30 3): Crossover and Mutation Rate - -
0.3
Number of Generation (maxit) 100
vi k 1 wi vi c1 r1 w = (maxit-
Inertia weight factor - -
iteration)/maxit
Pi - xi k c2 r2 G - xi k , (6) Parameter Search
[0-100]
Interval for PID
xi k 1 xi k vi k 1 . (7)
5
ELEKTRONIKA IR ELEKTROTECHNIKA, ISSN 1392-1215, VOL. 23, NO. 6, 2017
TABLE II. PID CONTROLLER PARAMETERS [36]–[38] AND STEP studies as compared with other approaches. Similarly, all the
RESPONSE SPECIFICATIONS.
processes exhibit the best behavior in terms of ITAE. As
PID seen in Table II, in the PID control of G2, the best
Step response specifications
Parameters
(minimum) overshoot values are obtained. When the ABC
Pr Method
Kp, algorithm is used, this value is 5.0021 % for G2.
Ki, ITAE ts OS % OF
Kd
1.3039
Malwatkar
1.3104 6.1999 6.2875 0.3143 94.3796
et al. [37]
1.3351
1.5030
Wang et al.
1.3660 6.1833 6.6230 0.6808 96.9898
[38]
1.7150
2.1470
Ho et al.
1.4840 7.2006 9.4044 3.5306 129.620
[38]
0.7770
4.2331
G1 ZN 1.6277 8.0067 11.6359 2.4391 145.564
2.7522
2.7106
PSO 2.2147 2.6440 3.1886 1.8618 47.9686
2.8134
(a)
2.7131
GA 2.2389 2.6312 3.1698 1.9619 48.0472
2.8597
2.7121
ABC 2.2136 2.6452 3.1883 1.8582 47.9683
2.8118
0.78
Malwatkar
0.3708 69.269 20.782 16.257 845.37
et al. [37]
0.8964
0.5996
Wang et al.
0.6299 216.52 53.313 48.14 2576.16
[37]
2.281
1.959
Ho et al.
0.5727 48.045 23.778 30.106 689.66
[37]
1.676
2.3702
G2 ZN 0.4356 29.329 21.716 14.466 445.27 (b)
3.2245
1.9742
PSO 0.4919 23.575 13.058 4.9997 316.04
3.033
1.9814
GA 0.4943 23.554 13.060 5.3497 316.89
3.0328
1.9738
ABC 0.4923 23.576 13.055 5.0021 316.04
3.0306
Kappa- 4.5 1
Tau 0.9756 38.0459 16.6627 0 463.7730
[36] 0.1485
4.93
Karimi et
15.6013 15.6880 8.6716 0.6982 202.3331
al. [36]
0.6162 (c)
17.562 Fig. 2. Step responses of different methods for process: (a) G1(s),
Wang et al.
22.485 10.0070 9.1222 5.1766 161.2102 (b) G2(s), (c) G3(s).
[38]
14.13
43.1985 In addition to other step response specifications, these
G3 ZN 14.37 35.1072 22.8617 0.6884 467.446 striking reductions in the overshoots are clear indicators of
32.465
the algorithm’s power. On the other hand, although the
29.177
PSO 25.729 6.0179 4.6798 1.3326 87.576
maximum overshoots of the ABC method are not the best
20.632 values for all the processes, these are quite satisfactory
29.2213 values when considering the long settling times of the other
GA 25.745 6.0178 4.6758 1.3585 87.633 methods.
20.7187
In this study, the time domain specifications of the PID
29.148
ABC 25.706 6.0205 4.6845 1.3162 87.576 controlled systems are considered for PID tuning based
20.573 control system design. On the other hand, in frequency
response based approaches, some important performance
In particular, again for all processes, the best values for indicators such as sensitivity, gain and phase margin (GM,
settling time are obtained by ABC, PSO and GA based PM) values are often used [11]–[13], [16], [28], [40], [41].
6
ELEKTRONIKA IR ELEKTROTECHNIKA, ISSN 1392-1215, VOL. 23, NO. 6, 2017
In terms of the stability of the systems, two main sensitivity show that the computation time of the ABC algorithm is
values are important. These are the maximum and maximum dramatically longer than those for the PSO and genetic
complementary sensitivities (Ms and Mp). Although these algorithms. Admittedly this situation is a disadvantage of the
indicators do not exist in the objective function, the values ABC algorithm.
of these robustness characteristics for PID controlled Furthermore, in order to demonstrate the convergence
systems are also presented in Table III. speed of the ABC, PSO and genetic algorithms, the
iteration-objection function (OF) variation curves of the PID
TABLE III. ROBUSTNESS CHARACTERISTICS OF PID controlled systems obtained by the algorithms for each
CONTROLLED PROCESSES.
process are given in Fig. 3.
Characteristic of Robustness
Pr Method
Ms Mp GM PM (deg)
Malwatkar et al. [37] 1.2843 0.9999 8.9310 70.0145
Wang et al. [38] 1.2534 0.9999 7.8182 71.9707
Ho et al. [38] 1.7883 0.9998 2.7680 70.6715
G1
PSO 1.5288 1.0000 4.3452 66.1671
GA 1.5265 1.0000 4.3428 65.8825
ABC 1.5294 1.0000 4.3426 66.1943
Malwatkar et al. [37] 1.6332 1.1247 4.1004 52.7666
Wang et al. [37] 2.7116 2.2370 4.8544 27.132
Ho et al. [37] 2.2397 1.4879 1.9991 45.358
G2
PSO 1.9358 1.0010 2.1266 64.3008
GA 1.9417 1.0076 2.1200 64.1526 (a)
ABC 1.9363 1.0014 2.126 64.328
Kappa-Tau [36] 1.3449 1.0000 4.2933 72.5729
Karimi et al. [36] 1.5763 0.9999 3.0140 63.9997
Wang et al. [38] 1.5989 1.0020 3.1451 60.6215
G3
PSO 1.7226 1.0000 2.4134 62.4362
GA 1.7236 1.0000 2.4104 62.4415
ABC 1.7228 0.9999 2.413 62.446
the performance ranking in terms of convergence in a low 4. In this study, to define the objective function, three
number of iterations is observed as ABC, GA, and PSO. main performance indicators in the time domain are
Nevertheless, from the simulation results, it can be observed preferred. There is no any robustness specification in the
that, especially in terms of the eventual best outcome objective function. Thus, robustness characteristics
obtained from the PID controlled systems, the ABC, PSO provided perfectly by the controlled systems are not
and GAs have similar ability and comparable convergence expected. However, satisfactory or acceptable results in
rates. terms of the robustness requirements are desired. From
the simulation results, we can say that the robustness
V. DISCUSSION characteristics of the controlled systems are reasonable
In this study, the performance of ABC, PSO and GA but in need of improvement at the same time. More
approaches in the PID based control of the higher order detailed investigations of the robustness considerations
oscillatory systems is investigated. For this research, a are left for subsequent studies.
simple but effective objective function including the basic It is also an undeniable fact that it is important to develop
step response properties was used. The results of the the design considering the different dynamic characteristics
simulations clearly show that all of these algorithms are in the design of a control system and to observe the
extremely successful in identifying the PID parameters to achievement of the results obtained in a more realistic
achieve the desired control objectives. The GA that provides control setup [9], [11], [12], [14], [15], [17]. This work is
the shortest calculation times requires more control one of the first steps of a long-running project. Accordingly,
parameters and procedures to identify the problem. In the main objectives are to investigate the benefits of
addition, more iterations than the other algorithms are different algorithms in the design of control systems, and to
needed by the GA to achieve the minimum objective orient themselves to practical work out of the feasible
function value. In the PSO approach, which requires more outcomes. Hence, more realistic practices will be taken into
parameters to be stored and updated when compared to the account in future studies.
GA, good solutions are achieved with slightly longer
calculation times. The calculation times in PSO are about VI. CONCLUSIONS
1.5 times higher than those in GA. In the PSO algorithm, as The main contribution of this study is to incorporate the
in GA, optimum PID parameters are obtained in high PID control of the higher order oscillatory systems with the
iterations. Unlike other algorithms, the appropriate PID ABC algorithm. In this paper, the results of a PID controller
parameters in the ABC approach can be provided in low design approach based on the use of ABC algorithm are
iterations. Moreover, this algorithm has a simple structure presented for higher order oscillatory systems. In order to
consisting of few control parameters. This provides ease of achieve this aim, the simulation results of different high
application to the user. On the other hand, the most striking order systems existing in the literature are comparatively
disadvantage of this algorithm is the long computation time given.
which is 7–10 times higher than other algorithms. According to simulation results, it can notify that the
According to the simulation results, a general ABC based PID tuning method can be easily and
summarization can be drawn as follows: successfully applied to the higher order oscillatory systems.
1. The main benefit of using the ABC algorithm based Furthermore, the interesting results of this method prove that
method is that the controller tuning can be easily done to they exhibit the competitive solutions to effectively achieve
perform the desired control objectives. Fast and easy the presented control problem. Moreover, to obtain the high
reconfiguration of the algorithm structure or search performance specifications from the PID controlled system,
procedure can be achieved by the users. objective function used by the algorithm can be easily
2. The simulations show that, as compared with the PSO modified for control aims. By considering the time or
and GA, the ABC algorithm cannot rapidly reach optimal frequency domain requirements of the system under control,
controller performance for kinds of higher oscillatory performance parameters and/or robustness measurements
systems considered in this study. Also, to improve the can be inserted into the objective function. Thus, the
quality of the solutions, the ABC algorithm needs long computations needed to meet the goals of control design can
computation times in the iterations. However, the be done without repeated use of the complex or time
algorithm can provide the high improvements on the consuming mathematical operations, which is a significant
solutions for low iteration numbers. Furthermore, the advantage.
ABC algorithm always provides the competitive
outcomes with high quality.
REFERENCES
On the other hand, an important advantage of the ABC
[1] J. G. Ziegler, N. B. Nichols, ‘‘Optimum settings for automatic
algorithm is that it also has fewer control parameters than controllers’’, Transactions of ASME, vol. 64, pp. 759–768, 1942.
the PSO and genetic algorithms. [Online]. Available: http://dx.doi.org/10.1115/1.2899060
3. It is clear that the performance of the controlled [2] G. H. Cohen, G .A. Coon, ‘‘Theoretical consideration of retarded
systems depends directly on the type of objective control’’, Transactions of ASME, vol. 75, pp. 827–834, 1953.
[3] D. W. Pessen, ‘‘A new look at PID-controller tuning’’, Trans. ASME.
function. For non-expert users, this property can provide a Journal of Dynamical Systems Measures and Control, vol. 116,
significant advantage. The advantage of the objective pp. 553–557, 1994. [Online]. Available: http://dx.doi.org/
function used in this study is that the PID parameters can 10.1115/1.2899252
[4] M. Zhuang, D. P. Atherton, ‘‘Automatic tuning of optimum PID
be adjusted effectively by modifying the adjustment controllers’’, IEE Proc. Control and Applications, vol. 140, pp. 216–
coefficients for desired step response specifications. 224, 1993. [Online]. Available: http://dx.doi.org/10.1049/ip-
8
ELEKTRONIKA IR ELEKTROTECHNIKA, ISSN 1392-1215, VOL. 23, NO. 6, 2017