SlideShare a Scribd company logo
Bulletin of Electrical Engineering and Informatics
Vol. 10, No. 6, December 2021, pp. 3422~3431
ISSN: 2302-9285, DOI: 10.11591/eei.v10i6.3244 3422
Journal homepage: http://beei.org
Using particle swarm optimization to solve test functions
problems
Issa Ahmed Abed, May Mohammed Ali, Afrah Abood Abdul Kadhim
Basrah Engineering Technical College, Southern Technical University, Iraq
Article Info ABSTRACT
Article history:
Received May 22, 2021
Revised Aug 17, 2021
Accepted Oct 6, 2021
In this paper the benchmarking functions are used to evaluate and check the
particle swarm optimization (PSO) algorithm. However, the functions utilized
have two dimension but they selected with different difficulty and with
different models. In order to prove capability of PSO, it is compared with
genetic algorithm (GA). Hence, the two algorithms are compared in terms of
objective functions and the standard deviation. Different runs have been taken
to get convincing results and the parameters are chosen properly where the
Matlab software is used. Where the suggested algorithm can solve different
engineering problems with different dimension and outperform the others in
term of accuracy and speed of convergence.
Keywords:
Best solution
Comparison
Operators
Optimization
Warm This is an open access article under the CC BY-SA license.
Corresponding Author:
Issa Ahmed Abed
Department of Automation and Control Technologies Engineering
Basrah Engineering Technical College
Southern Technical University, Basrah, Iraq
Email: issaahmedabed@stu.edu.iq
1. INTRODUCTION
A large number of real-life optimization problems in science, engineering, economics, and business
are complex and difficult to solve. They cannot be solved in an exact manner within a reasonable amount of
time. Using approximate algorithms is the main alternative to solve this class of problems [1], [2]. The
optimization process involves finding a single or a series of optimal solutions from among a very large
number of possibilities. In this process, the space of potential solutions is reduced to one or a few of the best
ones [3], [4]. Many researchers constructed different methods to get the best solution because it is difficult to
find the solution in many problems in engineering. Particle swarm optimization (PSO) is stochastic method
depends on behavior of animals. Wang et al. [5] gave the basic and the details of PSO. They analyzed the
method from various views of that are the structure, parameters, discrete PSO, parallel PSO, and multi-
objective. Ozdemir [6] used the PSO to reach to the global minimum of the function suggested. He applied
the method on different benchmark functions. The author proved that PSO is a successful algorithm to solve
various problems. Jumaa et al. [7] suggested a method for scheduling optimization and running of distributed
generator to reduce the loss of power, revamp voltage profile as well as the reliability of the whole network.
They proposed particle swarm optimization in order to estimate the better site and the size of distributed
generation. Garcia et al. [8] estimated a technique utilizing genetic algorithm (GA) to evaluate the relation
maximum of differentiable functions. The authors introduced Python library contains components from the
algorithm. Alyoutbaki and Al-Rawi [9] introduced a method to extend the fault tolerance of the system. Ant
colony optimization (ACO) is used to enhance the suggested strategy. ACO can select better virtual machine
where is to emigrate the cloudlet in order to decrease the consumption of energy and the time.
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed)
3423
This paper presents the particle swarm optimization to solve some suggested test functions. The rest
of the paper is organized as; section 2 is the overview of genetic algorithm and PSO; comparison between the
both algorithms is introduced in section 3; the simulation results are in section 4; section 5 is the conclusion.
2. THE PROPOSED METHODS
2.1. Genetic algorithm
In order to solve many optimization problems, genetic algorithm is used which is considered as an
adaptive technique. According to the selection of natural and the survival of fittest the population will
promote through different iterations. If the genetic algorithm has been encoded properly in that case it is able
to transfer the solution from simulation to the real applications where the GA will simulate the selection and
survival [10], [11]. In this algorithm, the size of population of individuals is fixed constant, where the GA
goes generation after generation. During the iterations of GA, it will pass through various operations such as
reproduction, crossover, and mutation which produce new individuals offspring. The new population is rated
by the function which is called objective function. The best new solutions are calculated by these procedures
[12]-[14].
2.2. Particle swarm optimization
Particle swarm optimization is first given by Erberhart and Kennedy. It is an individual’s population
which are called particles. PSO is inspired from the behavior of flocking bird and the schooling fish [15],
[16]. It is a technique depends on the relation between the particles of swarm where it is an optimization
stochastic and the population intellects in the search space. Here, there is position and velocity for each
particle. These values are changed through the generations where the best position is the particles of best
experience and the global position is the best achieved experience of all particles [17], [18]. Also, the
particles have vectors of numbers which are real and every vector position is called dimension. Two relations
are there, first for velocity and the second for position which are illustrated in (1) and (2) [19], [20]:
𝑣𝑒𝑙𝑖,𝑗
𝑔𝑒𝑛+1
= 𝑤𝑒𝑖𝑔ℎ𝑡 ∗ 𝑣𝑒𝑙𝑖,𝑗
𝑔𝑒𝑛
+ 𝑎𝑐𝑐1 ∗ 𝑟𝑎𝑛𝑑1 ∗ (𝑝𝑒𝑟𝑏𝑒𝑠𝑡𝑖,𝑗
𝑔𝑒𝑛
− 𝑝𝑎𝑟𝑖,𝑗
𝑔𝑒𝑛
) + 𝑎𝑐𝑐2
∗ 𝑟𝑎𝑛𝑑2 ∗ (𝑔𝑙𝑜𝑏𝑎𝑙𝑏𝑒𝑠𝑡𝑖,𝑗
𝑔𝑒𝑛
− 𝑝𝑎𝑟𝑖,𝑗
𝑔𝑒𝑛
)
(1)
𝑝𝑎𝑟𝑖,𝑗
𝑔𝑒𝑛+1
= 𝑝𝑎𝑟𝑖,𝑗
𝑔𝑒𝑛
+ 𝑣𝑒𝑙𝑖,𝑗
𝑔𝑒𝑛+1
(2)
Where 𝑝𝑎𝑟𝑖 represents the particles in the population of size (𝑝𝑜𝑝) with the dimension of (𝑑𝑖𝑚) and
𝑝𝑎𝑟𝑖 = {𝑝𝑎𝑟𝑖,1, 𝑝𝑎𝑟𝑖,2, … … … . . , 𝑝𝑎𝑟𝑖,𝑑𝑖𝑚}. In addition, the population has velocity (𝑣𝑒𝑙) and it is written as,
𝑣𝑒𝑙𝑖 = {𝑣𝑒𝑙𝑖,1, 𝑣𝑒𝑙𝑖,2, … … … . . , 𝑣𝑒𝑙𝑖,𝑑𝑖𝑚}. The (𝑖) is from 1 to (𝑝𝑜𝑝), ( 𝑗) from 1 to (𝑑𝑖𝑚) and (𝑔𝑒𝑛) is the
iteration number. The (𝑝𝑒𝑟𝑏𝑒𝑠𝑡𝑖,𝑗
𝑔𝑒𝑛
) is the personal best with (𝑗𝑡ℎ
) parameter of (𝑖𝑡ℎ
) individual and the
(𝑔𝑙𝑜𝑏𝑎𝑙𝑏𝑒𝑠𝑡𝑗) means the 𝑗𝑡ℎ
parameter of the best one of population to (𝑔𝑒𝑛). Finally, the (𝑤𝑒𝑖𝑔ℎ𝑡), (𝑎𝑐𝑐),
and (𝑟𝑎𝑛𝑑) are the weight parameter, acceleration parameter and the random number between [0,1] [21]-
[23]. Figure 1 shows the overall algorithm.
2.3. The difference between PSO and some other algorithms
The difference between PSO and some other algorithms. The following steps are found in many
evolutionary methods:
− In the initialization there is a random individual.
− The range to reach to the optimum will be the base for the objective function which is calculated for each
part.
− The objective value is also the base for the reproduction of population.
− These procedures can stop or continue.
In that case the PSO has the same points like many algorithms. Therefore, they are generated the
population randomly. They are depended on the objective function to calculate the best solution. All of them
goes from step to step to reach to the best, but they do not pledge the winning. Hence, the PSO for example
does not contains processes like crossover or mutation. Where it is enhancing their particles by the internal
velocity and PSO contains memory. However, there are some differences between PSO and other algorithms
such as GA. Where all the individuals in GA translate the information between them while the in the PSO
only globalbest provides the information to the other individuals [24].
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431
3424
Figure 1. PSO procedures
3. RESULTS AND DISCUSSION
The tests have been done on the PC Intel Core i7 processor 2.7 GHz and windows 7 professional
with 4 GB RAM. All the results are simulated using Matlab 2008a. The population size was 10 while the
number of iterations are equal to 100. In addition, 𝑝𝑚 = 0.5 in GA and in PSO the inertia weight between 0.4
and 0.9 while the acceleration coefficients are 2. In order to test the ability of PSO, the following functions
have been used in this paper where all of them are two dimensional [25].
3.1. Beale function
This is the first function suggested here. The mathematical formula is:
𝑓(𝑥) = (1.5 − 𝑥1 + 𝑥1𝑥2)2
+ (2.25 − 𝑥1 + 𝑥1𝑥2
2)2
+ (2.625 − 𝑥1 + 𝑥1𝑥2
3
)2
(3)
Which is a multimodal function. The 𝑥1,2 ∈ [−4.5,4.5] with 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0 𝑎𝑡 𝑥𝑏𝑒𝑠𝑡
= (3,0.5). The
details of this function are shown in Figure 2. The particle swarm optimization has been tested through the
Beale function and it is compared with genetic algorithm as illustrated in Figure 3. It is obvious that the PSO
is faster that GA as well it is more accurate to use in this function.
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed)
3425
Figure 2. The image of Beale function Figure 3. Functions comparison
3.2. McCormick function
The common relation for this function is:
𝑓(𝑥) = sin(𝑥1 + 𝑥2) + (𝑥1 − 𝑥2)2
− 1.5𝑥1 + 2.5𝑥2 + 1 (4)
The boundary of dimensions 𝑥1 ∈ [−1.5, 4], 𝑥2 ∈ [−3, 4] while the optimum 𝑓(𝑥𝑏𝑒𝑠𝑡
) ≈
−1.9133 𝑎𝑡 𝑥𝑏𝑒𝑠𝑡
= (−0.547, −1.547). Figure 4 presents this function. Also, the algorithms are tested
through McCormick function to show the ability of each method as shown in Figure 5. From the figure it can
be seen, there is a big comparable between the methods but still the PSO outperforms the GA and can reach
the best solution.
Figure 4. The image of McCormick function Figure 5. The PSO comparison
3.3. Matyas function
The expression for this function is:
𝑓(𝑥) = 0.26(𝑥1
2
+ 𝑥2
2
) − 0.48𝑥1𝑥2 (5)
Where the parameters 𝑥1,2 ∈ [−10,10] and the best function 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0 at 𝑥𝑏𝑒𝑠𝑡
= (0,0). The
graph of Matyas function is given in Figure 6. From Figure 7 which shows the value for the two methods
during the generations. The value by using the PSO converges generation by generation to reach to the target
point in very suitable time.
-1
0
1
2
3
4
5
0 50 100 150
Average
Value
Iterations
GA PSO
-2,5
-2
-1,5
-1
-0,5
0
0 50 100 150
Average
Value
Iterations
GA PSO
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431
3426
Figure 6. The 3-D graph for matyas Figure 7. The convergence of the methods
3.4. Mishra bird function
It is a function with formula:
𝑓(𝑥) = sin(𝑥1) 𝑒(1−cos (𝑥2))2
+ cos(𝑥2) 𝑒(1−sin(𝑥1))2
+ (𝑥1 − 𝑥2)2
(6)
The dimensions should be 𝑥1,2 ∈ [−2𝜋, 2𝜋] while the fuction is 𝑓(𝑥𝑏𝑒𝑠𝑡) = −106.764537 at
𝒙𝒃𝒆𝒔𝒕
= (4.70104, 3.15294)𝑎𝑛𝑑 𝑥𝑏𝑒𝑠𝑡
= (−1.58214, −3.13024) . The graph for this function is given in
Figure 8. The PSO still has the best position in terms of the error and the speed and the GA cannot overcome
this algorithm as presented in Figure 9.
Figure 8. The function of mishra Figure 9. The comparison curves between the two
in Mishra bird
3.5. Holder table function
The mathematical equation for this function is:
𝑓(𝑥) = − |sin(𝑥1) cos(𝑥2) exp (|1 −
√𝑥1
2+𝑥2
2
𝜋
|)| (7)
-0,2
0
0,2
0,4
0,6
0,8
1
1,2
1,4
0 50 100 150
Average
Value
Iterations
GA PSO
-120
-100
-80
-60
-40
-20
0
0 50 100 150
Average
Value
Iterations
GA PSO
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed)
3427
In that case 𝑥1,2 ∈ [−10, 10] 𝑎𝑛𝑑 𝑓(𝑥𝑏𝑒𝑠𝑡) = − 19.2085 𝑎𝑡 𝑥𝑏𝑒𝑠𝑡
= (8.05502,9.66459),
(−8.05502, 9.66459), (8.05502, −9.66459), (−8.05502, −9.66459). The graph of holder function is
illustrated in Figure 10. In this test which seems to be difficult for PSO which is trapped in local optima
where the accuracy is less than the other algorithm as shown in Figure 11.
Figure 10. The function of holder table Figure 11. The comparison between the two
algorithms
3.6. Eggholder function
The equation is:
𝑓(𝑥) = −(𝑥2 + 47)𝑠𝑖𝑛 (√|𝑥2 +
𝑥1
2
+ 47|) − 𝑥1𝑠𝑖𝑛(√|𝑥1 − (𝑥2 + 47)| (8)
At 𝑥1,2 ∈ [−512, 512] with 𝑓(𝑥𝑏𝑒𝑠𝑡) = −959.6407 for 𝑥𝑏𝑒𝑠𝑡
= (512, 404.2319) and the graph for
this function is introduced in Figure 12. Figure 13 shown the GA is still dominant on GA and they are very
comparative in terms of the speed.
Figure 12. The graph Egg function Figure 13. The objective curves
3.7. Schaffer function
The Mathematical equation is:
-25
-20
-15
-10
-5
0
0 50 100 150
Average
Value
Iterations
GA PSO
-1000
-800
-600
-400
-200
0
0 50 100 150
Average
Value
Iterations
GA PSO
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431
3428
𝑓(𝑥) = 0.5 +
𝑠𝑖𝑛2(𝑥1
2−𝑥2
2)−0.5
[1+0.001(𝑥1
2+𝑥2
2)]2 (9)
Where 𝑥1,2 ∈ [−100,100] and 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0, with 𝑥 𝑏𝑒𝑠𝑡
= (0,0) as shown in Figure 14. In this function,
even if PSO is better, but both algorithms need more improvement to approximate to the optimum value which
is 0 as shown in Figure 15.
Figure 14. The function of Schaffer Figure 15. The approximation of the algorithms
3.8. Booth function
This function is:
𝑓(𝑥) = (𝑥1 + 2𝑥2 − 7)2
+ (2𝑥1 + 𝑥2 − 5)2
(10)
The dimensions 𝑥1,2 ∈ [−10,10] and 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0 at 𝑥𝑏𝑒𝑠𝑡
= (1,3) as shown in Figure 16. In this
function the PSO won to reach faster and gets the optimal solution as given in Figure 17.
Figure 16. Booth image Figure 17. Function approximation
3.9. Easom function
The mathematical expression for this function is:
0
0,1
0,2
0,3
0,4
0,5
0,6
0 50 100 150
Average
Value
Iterations
GA PSO
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed)
3429
𝑓(𝑥) = −𝑐𝑜𝑠(𝑥1)𝑐𝑜𝑠(𝑥2)𝑒𝑥𝑝(−(𝑥1 − 𝜋)2
− (𝑥2 − 𝜋)2
) (11)
It is a unimodal with 𝑥1,2 ∈ [−100,100] with 𝑓(𝑥𝑏𝑒𝑠𝑡) = −1, at 𝑥𝑏𝑒𝑠𝑡
= (𝜋, 𝜋) as shown in
Figure 18. In this function, the GA do very bad while the PSO is excellent and it is reached the target solution
in better way as presented in Figure 19.
Figure 18. The easom function Figure 19. Comparision function
Table 1 is the summary for average value and the deviation for both the algorithms with different
suggested test functions where it is clearly that the PSO is dominant. Additional results are given in Table 2
for one check during the work.
Table 1. The SD and the average for different functions
Function
Particle swarm optimization Genetic algorithm
Standard deviation Average Standard deviation Average
Beale 0 0 0.330022 0.20556
McCormick 2.48E-16 -1.9132 0.005451 -1.9086
Matyas 0 0 0.000572 0.00058
Mishra bird 0 -106.788 0.158935 -106.614
Holder table 1.814672 -17.5691 0 -19.2014
Eggholder 69.2471 -891.251 74.95725 -909.32
Schaffer 0.003303 0.29434 0 0.3002
Booth 0 0 0.214113 0.18532
Easom 5.48E-5 -1 0.740961 0.40972
Table 2. Different results for suggested problems
Function
Particle swarm optimization Genetic algorithm
Best value Best variables Best value Best variable
Beale 1.45e-008 3.0002, 0.5 0.2303 2.2412, 0.2647
McCormick - 1.9132 - 0.5472, - 1.5472 - 1.9121 - 0.5294, - 1.5176
Matyas 7.229e-012 - 0.1353, - 0.1163 6.1515e-005 0.0392, 0.0392
Mishra bird - 106.7877 - 3.1229, - 1.5895 - 106.7139 3.0980, - 1.6059
Holder table - 19.2085 8.055, 9.6646 - 19.2014 8.0392, 9.6863
Eggholder - 959.6407 512.00, 404.2318 - 950.5854 475.8588, 431.6863
Schaffer 0.2923 1.2651, 0.1700 0.3002 - 1.1765, - 3.5294
Booth 3.0702e-010 1.00, 3.00 0.1576 1.2941, 2.7843
Easom - 1.00 3.1417, 3.1416 - 1.2162 - 0.3922, - 0.3922
4. CONCLUSION
Particle swarm optimization test has been done to highlight the ability of the algorithm to optimize
the difficult problems. The experiments have included various mathematical functions with details presents in
this paper. In addition to that, it is compared with other algorithm to be sure that this algorithm can
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431
3430
outperform the others in terms of the accuracy and the speed. Hence, this method can be used to solve any
optimization problem in all the fields.
ACKNOWLEDGEMENTS
Many thanks for everybody in Southern Technical University how help us to complete this paper.
REFERENCES
[1] T. El-Ghazali, "Metaheuristics: from design to implementation," vol. 74, John Wiley & Sons, 2009.
[2] H. W. Abdulrazak, I. A. Abed, and D. K. Shary. "Management of Microgrid System Based on Optimization
Algorithm," Journal of Physics: Conference Series, vol. 1773. no. 1, 2021.
[3] Z. Jozef, "Optimization Problems and Genetic Algorithms," Review of Business Information Systems, vol. 14, no. 3
2010, doi: 10.19030/rbis.v14i3.491.
[4] G. M. Fadhil, I. A. Abed and R. S. Jasim, "Genetic Algorithm Utilization to Fine Tune the Parameters of PID
Controller," Kufa Journal of Engineering, vol. 12, no. 2, pp. 1-12, 2021, doi: 10.30572/2018/KJE/120201.
[5] D. Wang , D. Tan and L. Lie, "Particle swarm optimization algorithm: an overview," Soft Computing, vol. 22, pp.
387-408, 2018.
[6] M. Ozdemir, "Particle swarm optimization for continuous function optimization problems," International Journal of
Applied Mathematics Electronics and Computers, vol. 5, no. 3, pp. 47-52, 2017, doi: 10.18100/ijamec.2017331879.
[7] F. A. Jumaa, O. M. Neda, and M. A. Mhawesh, "Optimal distributed generation placement using artificial
intelligence for improving active radial distribution system," Bulletin of Electrical Engineering and Informatics, vol.
10, no. 5, pp. 2345-2354, doi: 10.11591/eei.v10i5.2949.
[8] J. M. Garcia, C. A. Acosta and M. J. Mesa, "Genetic algorithms for mathematical optimization," Journal of Physics:
Conference Series, vol. 1448, no. 1, 2020.
[9] Y. A. G. Alyouzbaki and M. F. Al-Rawi, "Novel load balancing approach based on ant colony optimization
technique in cloud computing," Bulletin of Electrical Engineering and Informatics, vol. 10, no. 4, pp. 2320-2326,
2021, doi: 10.11591/eei.v10i4.2947.
[10] M. S. Sami, and H. A. Kubba, "Genetic algorithm based load flow solution problem in electrical power systems,"
Journal of Engineering, vol. 15 no. 4, pp. 4142-4162, 2009.
[11] B. Tarek, L. Slimani, and M. Belkacemi, "A genetic algorithm for solving the optimal power flow problem,"
Leonardo Journal of Sciences, vol. 4, pp. 44-58, 2004.
[12] Younes, Mimoun, and Mostefa Rahli, "On the choice genetic parameters with Taguchi method applied in economic
power dispatch," Leonardo journal of sciences, vol. 9, pp. 9-24, 2006.
[13] D. Hermawanto, "Genetic algorithm for solving simple mathematical equality problem," arXiv preprint
arXiv:1308.4675, 2013.
[14] ABM. Nasiruzzaman, and MG. Rabbani, "A Genetic Algorithm Based Approach for Solving Optimal Power Flow
Problem," International Conference on Electronics, Computer and Communication, 2008.
[15] J. Kennedy and R. Eberhart, "Particle swarm optimization," Proceedings of ICNN'95 - International Conference on
Neural Networks, 1995, vol. 4, pp. 1942-1948, doi: 10.1109/ICNN.1995.488968.
[16] E. A. Kaur and E. K. Mandeep, "A comprehensive survey of test functions for evaluating the performance of particle
swarm optimization algorithm," International Journal of Hybrid Information Technology, vol. 8, no. 5, pp. 97-104,
2015.
[17] M. Khesti and L. Ding, "Particle Swarm Optimization Solution for Power System Operation Problems," Particle
Swarm Optimization with Applications. IntechOpen, 2017.
[18] S. M. Majercik, "GREEN-PSO: Conserving Function Evaluations in Particle Swarm Optimization," IJCCI, 2013.
[19] G. Tomasseti and L. Cagnina, "Particle swarm algorithms to solve engineering problems: a comparison of
performance," Journal of Engineering, vol. 2013, no. 435104, 2013, doi: 10.1155/2013/435104.
[20] M. R. Bonyadi and Z. Michalewicz, "Particle Swarm Optimization for Single Objective Continuous Space
Problems: A Review," Evolutionary Computation, vol. 25, no. 1, pp. 1-54, 2017, doi: 10.1162/EVCO_r_00180.
[21] MN. Alam, "Particle swarm optimization: Algorithm and its codes in matlab," ResearchGate, pp. 1-10, 2016.
[22] P. Erdoğmus, "Particle swarm optimization performance on special linear programming problems," Scientific
Research and Essays, vol. 5, no. 12, pp. 1506-1518, 2013.
[23] BSG. D. Almeida and VC. Leite, "Particle Swarm Optimization: A Powerful Technique for Solving Engineering
Problems," Swarm Intelligence-Recent Advances, New Perspectives and Applications, IntechOpen, 2019.
[24] M. Najjarzadeh and A. Ayatollahi, "A comparison between Genetic Algorithm and PSO for linear phase FIR digital
filter design," 9th International Conference on Signal Processing, 2008, pp. 2134-2137, doi:
10.1109/ICOSP.2008.4697568.
[25] I. A. Abed, S. P. Koh, K. S. M. Sahari, S. K. Tiong, M. M. Ali and A. A. A. Kadhim, "A New Proposed Pendulum-
Like with Attraction-Repulsion mechanism Algorithm for Solving Optimization Problems," IOP Conference Series:
Materials Science and Engineering, vol. 881, no. 1, p. 012132, 2020.
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed)
3431
BIOGRAPHIES OF AUTHORS
Issa Ahmed Abed received his BSc. and MSc. in Control and Computing from the
Department of Electrical Engineering, University of Basrah, Iraq in 2002 and 2005,
respectively. While his PhD is also in Control and Computing from University Tenaga
Nasional, Malaysia in 2014. Currently, he is an Asst. Prof. and the head of control and
automation department at Engineering Technical College Basrah, Southern Technical
University, Iraq. His areas of interest include Artificial Intelligence, Solar energy, control
systems, robotics, and image processing.
May Mohammed Ali received the B.Sc. and M.Sc. degrees in electrical engineering from Al-
Basrah University, Basrah, Iraq, in 1996 and 2000, respectively. She is currently an assistant
lecturer of control and automation, Southern Technical University, Engineering Technical
College Basrah, Iraq. She can be contacted at email: may.mohammed@stu.edu.iq
Afrah Abood Abdul Kadhim received her BSc. and MSc. in Power and Machine from the
Department of Electrical Engineering, University of Basrah, Iraq in 2002 and 2006,
respectively. Currently, she is an assistant lecturer at Basrah Engineering Technical College,
Southern Technical University, Iraq. Her areas of interest include Power, Machine, Control,
and Artificial Intelligence.

More Related Content

What's hot

The pertinent single-attribute-based classifier for small datasets classific...
The pertinent single-attribute-based classifier  for small datasets classific...The pertinent single-attribute-based classifier  for small datasets classific...
The pertinent single-attribute-based classifier for small datasets classific...
IJECEIAES
 
Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm
iosrjce
 
Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...
Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...
Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...
CSCJournals
 
USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...
USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...
USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...
IJDKP
 
Master's Thesis Presentation
Master's Thesis PresentationMaster's Thesis Presentation
Master's Thesis Presentation
●๋•máńíکhá Gőýálツ
 
GCUBE INDEXING
GCUBE INDEXINGGCUBE INDEXING
GCUBE INDEXING
IJDKP
 
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITYSOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
IJDKP
 
T180203125133
T180203125133T180203125133
T180203125133
IOSR Journals
 
An enhanced pairwise search approach for generating
An enhanced pairwise search approach for generatingAn enhanced pairwise search approach for generating
An enhanced pairwise search approach for generating
Alexander Decker
 
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary AlgorithmAutomatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
aciijournal
 
Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...
IRJET Journal
 
A CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSE
A CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSEA CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSE
A CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSE
IJDKP
 
Improving K-NN Internet Traffic Classification Using Clustering and Principle...
Improving K-NN Internet Traffic Classification Using Clustering and Principle...Improving K-NN Internet Traffic Classification Using Clustering and Principle...
Improving K-NN Internet Traffic Classification Using Clustering and Principle...
journalBEEI
 
Opinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classicationOpinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classication
IJECEIAES
 
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary AlgorithmAutomatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
aciijournal
 
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
cscpconf
 
New proximity estimate for incremental update of non uniformly distributed cl...
New proximity estimate for incremental update of non uniformly distributed cl...New proximity estimate for incremental update of non uniformly distributed cl...
New proximity estimate for incremental update of non uniformly distributed cl...
IJDKP
 

What's hot (18)

The pertinent single-attribute-based classifier for small datasets classific...
The pertinent single-attribute-based classifier  for small datasets classific...The pertinent single-attribute-based classifier  for small datasets classific...
The pertinent single-attribute-based classifier for small datasets classific...
 
Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm Particle Swarm Optimization based K-Prototype Clustering Algorithm
Particle Swarm Optimization based K-Prototype Clustering Algorithm
 
Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...
Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...
Data Preparation and Reduction Technique in Intrusion Detection Systems: ANOV...
 
50120130406007
5012013040600750120130406007
50120130406007
 
USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...
USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...
USING ONTOLOGIES TO IMPROVE DOCUMENT CLASSIFICATION WITH TRANSDUCTIVE SUPPORT...
 
Master's Thesis Presentation
Master's Thesis PresentationMaster's Thesis Presentation
Master's Thesis Presentation
 
GCUBE INDEXING
GCUBE INDEXINGGCUBE INDEXING
GCUBE INDEXING
 
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITYSOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
SOURCE CODE RETRIEVAL USING SEQUENCE BASED SIMILARITY
 
T180203125133
T180203125133T180203125133
T180203125133
 
An enhanced pairwise search approach for generating
An enhanced pairwise search approach for generatingAn enhanced pairwise search approach for generating
An enhanced pairwise search approach for generating
 
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary AlgorithmAutomatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
 
Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...
 
A CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSE
A CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSEA CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSE
A CONCEPTUAL METADATA FRAMEWORK FOR SPATIAL DATA WAREHOUSE
 
Improving K-NN Internet Traffic Classification Using Clustering and Principle...
Improving K-NN Internet Traffic Classification Using Clustering and Principle...Improving K-NN Internet Traffic Classification Using Clustering and Principle...
Improving K-NN Internet Traffic Classification Using Clustering and Principle...
 
Opinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classicationOpinion mining framework using proposed RB-bayes model for text classication
Opinion mining framework using proposed RB-bayes model for text classication
 
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary AlgorithmAutomatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
Automatic Unsupervised Data Classification Using Jaya Evolutionary Algorithm
 
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
PROGRAM TEST DATA GENERATION FOR BRANCH COVERAGE WITH GENETIC ALGORITHM: COMP...
 
New proximity estimate for incremental update of non uniformly distributed cl...
New proximity estimate for incremental update of non uniformly distributed cl...New proximity estimate for incremental update of non uniformly distributed cl...
New proximity estimate for incremental update of non uniformly distributed cl...
 

Similar to Using particle swarm optimization to solve test functions problems

A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...
A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...
A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...
International Journal of Science and Research (IJSR)
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
irjes
 
A02610106
A02610106A02610106
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
inventionjournals
 
A02610106
A02610106A02610106
Performance Analysis of GA and PSO over Economic Load Dispatch Problem
Performance Analysis of GA and PSO over Economic Load Dispatch ProblemPerformance Analysis of GA and PSO over Economic Load Dispatch Problem
Performance Analysis of GA and PSO over Economic Load Dispatch Problem
IOSR Journals
 
Optimization of Economic Load Dispatch Problem by GA and PSO - A Comparison
Optimization of Economic Load Dispatch Problem by GA and PSO - A ComparisonOptimization of Economic Load Dispatch Problem by GA and PSO - A Comparison
Optimization of Economic Load Dispatch Problem by GA and PSO - A Comparison
IRJET Journal
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test Functions
IJMERJOURNAL
 
Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Editor IJARCET
 
Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Editor IJARCET
 
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
IOSR Journals
 
M017127578
M017127578M017127578
M017127578
IOSR Journals
 
Software Effort Estimation Using Particle Swarm Optimization with Inertia Weight
Software Effort Estimation Using Particle Swarm Optimization with Inertia WeightSoftware Effort Estimation Using Particle Swarm Optimization with Inertia Weight
Software Effort Estimation Using Particle Swarm Optimization with Inertia Weight
Waqas Tariq
 
Efficient evaluation of flatness error from Coordinate Measurement Data using...
Efficient evaluation of flatness error from Coordinate Measurement Data using...Efficient evaluation of flatness error from Coordinate Measurement Data using...
Efficient evaluation of flatness error from Coordinate Measurement Data using...
Ali Shahed
 
Optimal rule set generation using pso algorithm
Optimal rule set generation using pso algorithmOptimal rule set generation using pso algorithm
Optimal rule set generation using pso algorithm
csandit
 
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATABINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
ijejournal
 
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATABINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
acijjournal
 
APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL
APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL
APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL
IJCSEA Journal
 
Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...
Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...
Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...
Dr. Rajdeep Chatterjee
 

Similar to Using particle swarm optimization to solve test functions problems (20)

A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...
A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...
A Case Study of Economic Load Dispatch for a Thermal Power Plant using Partic...
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
A02610106
A02610106A02610106
A02610106
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
A02610106
A02610106A02610106
A02610106
 
Performance Analysis of GA and PSO over Economic Load Dispatch Problem
Performance Analysis of GA and PSO over Economic Load Dispatch ProblemPerformance Analysis of GA and PSO over Economic Load Dispatch Problem
Performance Analysis of GA and PSO over Economic Load Dispatch Problem
 
Optimization of Economic Load Dispatch Problem by GA and PSO - A Comparison
Optimization of Economic Load Dispatch Problem by GA and PSO - A ComparisonOptimization of Economic Load Dispatch Problem by GA and PSO - A Comparison
Optimization of Economic Load Dispatch Problem by GA and PSO - A Comparison
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test Functions
 
Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138
 
Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138
 
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
 
M017127578
M017127578M017127578
M017127578
 
Software Effort Estimation Using Particle Swarm Optimization with Inertia Weight
Software Effort Estimation Using Particle Swarm Optimization with Inertia WeightSoftware Effort Estimation Using Particle Swarm Optimization with Inertia Weight
Software Effort Estimation Using Particle Swarm Optimization with Inertia Weight
 
Efficient evaluation of flatness error from Coordinate Measurement Data using...
Efficient evaluation of flatness error from Coordinate Measurement Data using...Efficient evaluation of flatness error from Coordinate Measurement Data using...
Efficient evaluation of flatness error from Coordinate Measurement Data using...
 
IJCSI-2015-12-2-10138 (1) (2)
IJCSI-2015-12-2-10138 (1) (2)IJCSI-2015-12-2-10138 (1) (2)
IJCSI-2015-12-2-10138 (1) (2)
 
Optimal rule set generation using pso algorithm
Optimal rule set generation using pso algorithmOptimal rule set generation using pso algorithm
Optimal rule set generation using pso algorithm
 
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATABINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
 
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATABINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
BINARY SINE COSINE ALGORITHMS FOR FEATURE SELECTION FROM MEDICAL DATA
 
APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL
APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL
APPLYING GENETIC ALGORITHMS TO INFORMATION RETRIEVAL USING VECTOR SPACE MODEL
 
Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...
Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...
Newtonian Law Inspired Optimization Techniques Based on Gravitational Search ...
 

More from riyaniaes

Remote sensing and GIS application for monitoring drought vulnerability in In...
Remote sensing and GIS application for monitoring drought vulnerability in In...Remote sensing and GIS application for monitoring drought vulnerability in In...
Remote sensing and GIS application for monitoring drought vulnerability in In...
riyaniaes
 
Comparative review on information and communication technology issues in educ...
Comparative review on information and communication technology issues in educ...Comparative review on information and communication technology issues in educ...
Comparative review on information and communication technology issues in educ...
riyaniaes
 
The development and implementation of an android-based saving and loan cooper...
The development and implementation of an android-based saving and loan cooper...The development and implementation of an android-based saving and loan cooper...
The development and implementation of an android-based saving and loan cooper...
riyaniaes
 
Online medical consultation: covid-19 system using software object-oriented a...
Online medical consultation: covid-19 system using software object-oriented a...Online medical consultation: covid-19 system using software object-oriented a...
Online medical consultation: covid-19 system using software object-oriented a...
riyaniaes
 
Successful factors determining the significant relationship between e-governa...
Successful factors determining the significant relationship between e-governa...Successful factors determining the significant relationship between e-governa...
Successful factors determining the significant relationship between e-governa...
riyaniaes
 
Non-linear behavior of root and stem diameter changes in monopodial orchid
Non-linear behavior of root and stem diameter changes in monopodial orchidNon-linear behavior of root and stem diameter changes in monopodial orchid
Non-linear behavior of root and stem diameter changes in monopodial orchid
riyaniaes
 
Cucumber disease recognition using machine learning and transfer learning
Cucumber disease recognition using machine learning and transfer learningCucumber disease recognition using machine learning and transfer learning
Cucumber disease recognition using machine learning and transfer learning
riyaniaes
 
Android mobile application for wildfire reporting and monitoring
Android mobile application for wildfire reporting and monitoringAndroid mobile application for wildfire reporting and monitoring
Android mobile application for wildfire reporting and monitoring
riyaniaes
 
An empirical assessment of different kernel functions on the performance of s...
An empirical assessment of different kernel functions on the performance of s...An empirical assessment of different kernel functions on the performance of s...
An empirical assessment of different kernel functions on the performance of s...
riyaniaes
 
An effective classification approach for big data with parallel generalized H...
An effective classification approach for big data with parallel generalized H...An effective classification approach for big data with parallel generalized H...
An effective classification approach for big data with parallel generalized H...
riyaniaes
 

More from riyaniaes (10)

Remote sensing and GIS application for monitoring drought vulnerability in In...
Remote sensing and GIS application for monitoring drought vulnerability in In...Remote sensing and GIS application for monitoring drought vulnerability in In...
Remote sensing and GIS application for monitoring drought vulnerability in In...
 
Comparative review on information and communication technology issues in educ...
Comparative review on information and communication technology issues in educ...Comparative review on information and communication technology issues in educ...
Comparative review on information and communication technology issues in educ...
 
The development and implementation of an android-based saving and loan cooper...
The development and implementation of an android-based saving and loan cooper...The development and implementation of an android-based saving and loan cooper...
The development and implementation of an android-based saving and loan cooper...
 
Online medical consultation: covid-19 system using software object-oriented a...
Online medical consultation: covid-19 system using software object-oriented a...Online medical consultation: covid-19 system using software object-oriented a...
Online medical consultation: covid-19 system using software object-oriented a...
 
Successful factors determining the significant relationship between e-governa...
Successful factors determining the significant relationship between e-governa...Successful factors determining the significant relationship between e-governa...
Successful factors determining the significant relationship between e-governa...
 
Non-linear behavior of root and stem diameter changes in monopodial orchid
Non-linear behavior of root and stem diameter changes in monopodial orchidNon-linear behavior of root and stem diameter changes in monopodial orchid
Non-linear behavior of root and stem diameter changes in monopodial orchid
 
Cucumber disease recognition using machine learning and transfer learning
Cucumber disease recognition using machine learning and transfer learningCucumber disease recognition using machine learning and transfer learning
Cucumber disease recognition using machine learning and transfer learning
 
Android mobile application for wildfire reporting and monitoring
Android mobile application for wildfire reporting and monitoringAndroid mobile application for wildfire reporting and monitoring
Android mobile application for wildfire reporting and monitoring
 
An empirical assessment of different kernel functions on the performance of s...
An empirical assessment of different kernel functions on the performance of s...An empirical assessment of different kernel functions on the performance of s...
An empirical assessment of different kernel functions on the performance of s...
 
An effective classification approach for big data with parallel generalized H...
An effective classification approach for big data with parallel generalized H...An effective classification approach for big data with parallel generalized H...
An effective classification approach for big data with parallel generalized H...
 

Recently uploaded

Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 

Recently uploaded (20)

Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 

Using particle swarm optimization to solve test functions problems

  • 1. Bulletin of Electrical Engineering and Informatics Vol. 10, No. 6, December 2021, pp. 3422~3431 ISSN: 2302-9285, DOI: 10.11591/eei.v10i6.3244 3422 Journal homepage: http://beei.org Using particle swarm optimization to solve test functions problems Issa Ahmed Abed, May Mohammed Ali, Afrah Abood Abdul Kadhim Basrah Engineering Technical College, Southern Technical University, Iraq Article Info ABSTRACT Article history: Received May 22, 2021 Revised Aug 17, 2021 Accepted Oct 6, 2021 In this paper the benchmarking functions are used to evaluate and check the particle swarm optimization (PSO) algorithm. However, the functions utilized have two dimension but they selected with different difficulty and with different models. In order to prove capability of PSO, it is compared with genetic algorithm (GA). Hence, the two algorithms are compared in terms of objective functions and the standard deviation. Different runs have been taken to get convincing results and the parameters are chosen properly where the Matlab software is used. Where the suggested algorithm can solve different engineering problems with different dimension and outperform the others in term of accuracy and speed of convergence. Keywords: Best solution Comparison Operators Optimization Warm This is an open access article under the CC BY-SA license. Corresponding Author: Issa Ahmed Abed Department of Automation and Control Technologies Engineering Basrah Engineering Technical College Southern Technical University, Basrah, Iraq Email: issaahmedabed@stu.edu.iq 1. INTRODUCTION A large number of real-life optimization problems in science, engineering, economics, and business are complex and difficult to solve. They cannot be solved in an exact manner within a reasonable amount of time. Using approximate algorithms is the main alternative to solve this class of problems [1], [2]. The optimization process involves finding a single or a series of optimal solutions from among a very large number of possibilities. In this process, the space of potential solutions is reduced to one or a few of the best ones [3], [4]. Many researchers constructed different methods to get the best solution because it is difficult to find the solution in many problems in engineering. Particle swarm optimization (PSO) is stochastic method depends on behavior of animals. Wang et al. [5] gave the basic and the details of PSO. They analyzed the method from various views of that are the structure, parameters, discrete PSO, parallel PSO, and multi- objective. Ozdemir [6] used the PSO to reach to the global minimum of the function suggested. He applied the method on different benchmark functions. The author proved that PSO is a successful algorithm to solve various problems. Jumaa et al. [7] suggested a method for scheduling optimization and running of distributed generator to reduce the loss of power, revamp voltage profile as well as the reliability of the whole network. They proposed particle swarm optimization in order to estimate the better site and the size of distributed generation. Garcia et al. [8] estimated a technique utilizing genetic algorithm (GA) to evaluate the relation maximum of differentiable functions. The authors introduced Python library contains components from the algorithm. Alyoutbaki and Al-Rawi [9] introduced a method to extend the fault tolerance of the system. Ant colony optimization (ACO) is used to enhance the suggested strategy. ACO can select better virtual machine where is to emigrate the cloudlet in order to decrease the consumption of energy and the time.
  • 2. Bulletin of Electr Eng & Inf ISSN: 2302-9285  Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed) 3423 This paper presents the particle swarm optimization to solve some suggested test functions. The rest of the paper is organized as; section 2 is the overview of genetic algorithm and PSO; comparison between the both algorithms is introduced in section 3; the simulation results are in section 4; section 5 is the conclusion. 2. THE PROPOSED METHODS 2.1. Genetic algorithm In order to solve many optimization problems, genetic algorithm is used which is considered as an adaptive technique. According to the selection of natural and the survival of fittest the population will promote through different iterations. If the genetic algorithm has been encoded properly in that case it is able to transfer the solution from simulation to the real applications where the GA will simulate the selection and survival [10], [11]. In this algorithm, the size of population of individuals is fixed constant, where the GA goes generation after generation. During the iterations of GA, it will pass through various operations such as reproduction, crossover, and mutation which produce new individuals offspring. The new population is rated by the function which is called objective function. The best new solutions are calculated by these procedures [12]-[14]. 2.2. Particle swarm optimization Particle swarm optimization is first given by Erberhart and Kennedy. It is an individual’s population which are called particles. PSO is inspired from the behavior of flocking bird and the schooling fish [15], [16]. It is a technique depends on the relation between the particles of swarm where it is an optimization stochastic and the population intellects in the search space. Here, there is position and velocity for each particle. These values are changed through the generations where the best position is the particles of best experience and the global position is the best achieved experience of all particles [17], [18]. Also, the particles have vectors of numbers which are real and every vector position is called dimension. Two relations are there, first for velocity and the second for position which are illustrated in (1) and (2) [19], [20]: 𝑣𝑒𝑙𝑖,𝑗 𝑔𝑒𝑛+1 = 𝑤𝑒𝑖𝑔ℎ𝑡 ∗ 𝑣𝑒𝑙𝑖,𝑗 𝑔𝑒𝑛 + 𝑎𝑐𝑐1 ∗ 𝑟𝑎𝑛𝑑1 ∗ (𝑝𝑒𝑟𝑏𝑒𝑠𝑡𝑖,𝑗 𝑔𝑒𝑛 − 𝑝𝑎𝑟𝑖,𝑗 𝑔𝑒𝑛 ) + 𝑎𝑐𝑐2 ∗ 𝑟𝑎𝑛𝑑2 ∗ (𝑔𝑙𝑜𝑏𝑎𝑙𝑏𝑒𝑠𝑡𝑖,𝑗 𝑔𝑒𝑛 − 𝑝𝑎𝑟𝑖,𝑗 𝑔𝑒𝑛 ) (1) 𝑝𝑎𝑟𝑖,𝑗 𝑔𝑒𝑛+1 = 𝑝𝑎𝑟𝑖,𝑗 𝑔𝑒𝑛 + 𝑣𝑒𝑙𝑖,𝑗 𝑔𝑒𝑛+1 (2) Where 𝑝𝑎𝑟𝑖 represents the particles in the population of size (𝑝𝑜𝑝) with the dimension of (𝑑𝑖𝑚) and 𝑝𝑎𝑟𝑖 = {𝑝𝑎𝑟𝑖,1, 𝑝𝑎𝑟𝑖,2, … … … . . , 𝑝𝑎𝑟𝑖,𝑑𝑖𝑚}. In addition, the population has velocity (𝑣𝑒𝑙) and it is written as, 𝑣𝑒𝑙𝑖 = {𝑣𝑒𝑙𝑖,1, 𝑣𝑒𝑙𝑖,2, … … … . . , 𝑣𝑒𝑙𝑖,𝑑𝑖𝑚}. The (𝑖) is from 1 to (𝑝𝑜𝑝), ( 𝑗) from 1 to (𝑑𝑖𝑚) and (𝑔𝑒𝑛) is the iteration number. The (𝑝𝑒𝑟𝑏𝑒𝑠𝑡𝑖,𝑗 𝑔𝑒𝑛 ) is the personal best with (𝑗𝑡ℎ ) parameter of (𝑖𝑡ℎ ) individual and the (𝑔𝑙𝑜𝑏𝑎𝑙𝑏𝑒𝑠𝑡𝑗) means the 𝑗𝑡ℎ parameter of the best one of population to (𝑔𝑒𝑛). Finally, the (𝑤𝑒𝑖𝑔ℎ𝑡), (𝑎𝑐𝑐), and (𝑟𝑎𝑛𝑑) are the weight parameter, acceleration parameter and the random number between [0,1] [21]- [23]. Figure 1 shows the overall algorithm. 2.3. The difference between PSO and some other algorithms The difference between PSO and some other algorithms. The following steps are found in many evolutionary methods: − In the initialization there is a random individual. − The range to reach to the optimum will be the base for the objective function which is calculated for each part. − The objective value is also the base for the reproduction of population. − These procedures can stop or continue. In that case the PSO has the same points like many algorithms. Therefore, they are generated the population randomly. They are depended on the objective function to calculate the best solution. All of them goes from step to step to reach to the best, but they do not pledge the winning. Hence, the PSO for example does not contains processes like crossover or mutation. Where it is enhancing their particles by the internal velocity and PSO contains memory. However, there are some differences between PSO and other algorithms such as GA. Where all the individuals in GA translate the information between them while the in the PSO only globalbest provides the information to the other individuals [24].
  • 3.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431 3424 Figure 1. PSO procedures 3. RESULTS AND DISCUSSION The tests have been done on the PC Intel Core i7 processor 2.7 GHz and windows 7 professional with 4 GB RAM. All the results are simulated using Matlab 2008a. The population size was 10 while the number of iterations are equal to 100. In addition, 𝑝𝑚 = 0.5 in GA and in PSO the inertia weight between 0.4 and 0.9 while the acceleration coefficients are 2. In order to test the ability of PSO, the following functions have been used in this paper where all of them are two dimensional [25]. 3.1. Beale function This is the first function suggested here. The mathematical formula is: 𝑓(𝑥) = (1.5 − 𝑥1 + 𝑥1𝑥2)2 + (2.25 − 𝑥1 + 𝑥1𝑥2 2)2 + (2.625 − 𝑥1 + 𝑥1𝑥2 3 )2 (3) Which is a multimodal function. The 𝑥1,2 ∈ [−4.5,4.5] with 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0 𝑎𝑡 𝑥𝑏𝑒𝑠𝑡 = (3,0.5). The details of this function are shown in Figure 2. The particle swarm optimization has been tested through the Beale function and it is compared with genetic algorithm as illustrated in Figure 3. It is obvious that the PSO is faster that GA as well it is more accurate to use in this function.
  • 4. Bulletin of Electr Eng & Inf ISSN: 2302-9285  Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed) 3425 Figure 2. The image of Beale function Figure 3. Functions comparison 3.2. McCormick function The common relation for this function is: 𝑓(𝑥) = sin(𝑥1 + 𝑥2) + (𝑥1 − 𝑥2)2 − 1.5𝑥1 + 2.5𝑥2 + 1 (4) The boundary of dimensions 𝑥1 ∈ [−1.5, 4], 𝑥2 ∈ [−3, 4] while the optimum 𝑓(𝑥𝑏𝑒𝑠𝑡 ) ≈ −1.9133 𝑎𝑡 𝑥𝑏𝑒𝑠𝑡 = (−0.547, −1.547). Figure 4 presents this function. Also, the algorithms are tested through McCormick function to show the ability of each method as shown in Figure 5. From the figure it can be seen, there is a big comparable between the methods but still the PSO outperforms the GA and can reach the best solution. Figure 4. The image of McCormick function Figure 5. The PSO comparison 3.3. Matyas function The expression for this function is: 𝑓(𝑥) = 0.26(𝑥1 2 + 𝑥2 2 ) − 0.48𝑥1𝑥2 (5) Where the parameters 𝑥1,2 ∈ [−10,10] and the best function 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0 at 𝑥𝑏𝑒𝑠𝑡 = (0,0). The graph of Matyas function is given in Figure 6. From Figure 7 which shows the value for the two methods during the generations. The value by using the PSO converges generation by generation to reach to the target point in very suitable time. -1 0 1 2 3 4 5 0 50 100 150 Average Value Iterations GA PSO -2,5 -2 -1,5 -1 -0,5 0 0 50 100 150 Average Value Iterations GA PSO
  • 5.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431 3426 Figure 6. The 3-D graph for matyas Figure 7. The convergence of the methods 3.4. Mishra bird function It is a function with formula: 𝑓(𝑥) = sin(𝑥1) 𝑒(1−cos (𝑥2))2 + cos(𝑥2) 𝑒(1−sin(𝑥1))2 + (𝑥1 − 𝑥2)2 (6) The dimensions should be 𝑥1,2 ∈ [−2𝜋, 2𝜋] while the fuction is 𝑓(𝑥𝑏𝑒𝑠𝑡) = −106.764537 at 𝒙𝒃𝒆𝒔𝒕 = (4.70104, 3.15294)𝑎𝑛𝑑 𝑥𝑏𝑒𝑠𝑡 = (−1.58214, −3.13024) . The graph for this function is given in Figure 8. The PSO still has the best position in terms of the error and the speed and the GA cannot overcome this algorithm as presented in Figure 9. Figure 8. The function of mishra Figure 9. The comparison curves between the two in Mishra bird 3.5. Holder table function The mathematical equation for this function is: 𝑓(𝑥) = − |sin(𝑥1) cos(𝑥2) exp (|1 − √𝑥1 2+𝑥2 2 𝜋 |)| (7) -0,2 0 0,2 0,4 0,6 0,8 1 1,2 1,4 0 50 100 150 Average Value Iterations GA PSO -120 -100 -80 -60 -40 -20 0 0 50 100 150 Average Value Iterations GA PSO
  • 6. Bulletin of Electr Eng & Inf ISSN: 2302-9285  Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed) 3427 In that case 𝑥1,2 ∈ [−10, 10] 𝑎𝑛𝑑 𝑓(𝑥𝑏𝑒𝑠𝑡) = − 19.2085 𝑎𝑡 𝑥𝑏𝑒𝑠𝑡 = (8.05502,9.66459), (−8.05502, 9.66459), (8.05502, −9.66459), (−8.05502, −9.66459). The graph of holder function is illustrated in Figure 10. In this test which seems to be difficult for PSO which is trapped in local optima where the accuracy is less than the other algorithm as shown in Figure 11. Figure 10. The function of holder table Figure 11. The comparison between the two algorithms 3.6. Eggholder function The equation is: 𝑓(𝑥) = −(𝑥2 + 47)𝑠𝑖𝑛 (√|𝑥2 + 𝑥1 2 + 47|) − 𝑥1𝑠𝑖𝑛(√|𝑥1 − (𝑥2 + 47)| (8) At 𝑥1,2 ∈ [−512, 512] with 𝑓(𝑥𝑏𝑒𝑠𝑡) = −959.6407 for 𝑥𝑏𝑒𝑠𝑡 = (512, 404.2319) and the graph for this function is introduced in Figure 12. Figure 13 shown the GA is still dominant on GA and they are very comparative in terms of the speed. Figure 12. The graph Egg function Figure 13. The objective curves 3.7. Schaffer function The Mathematical equation is: -25 -20 -15 -10 -5 0 0 50 100 150 Average Value Iterations GA PSO -1000 -800 -600 -400 -200 0 0 50 100 150 Average Value Iterations GA PSO
  • 7.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431 3428 𝑓(𝑥) = 0.5 + 𝑠𝑖𝑛2(𝑥1 2−𝑥2 2)−0.5 [1+0.001(𝑥1 2+𝑥2 2)]2 (9) Where 𝑥1,2 ∈ [−100,100] and 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0, with 𝑥 𝑏𝑒𝑠𝑡 = (0,0) as shown in Figure 14. In this function, even if PSO is better, but both algorithms need more improvement to approximate to the optimum value which is 0 as shown in Figure 15. Figure 14. The function of Schaffer Figure 15. The approximation of the algorithms 3.8. Booth function This function is: 𝑓(𝑥) = (𝑥1 + 2𝑥2 − 7)2 + (2𝑥1 + 𝑥2 − 5)2 (10) The dimensions 𝑥1,2 ∈ [−10,10] and 𝑓(𝑥𝑏𝑒𝑠𝑡) = 0 at 𝑥𝑏𝑒𝑠𝑡 = (1,3) as shown in Figure 16. In this function the PSO won to reach faster and gets the optimal solution as given in Figure 17. Figure 16. Booth image Figure 17. Function approximation 3.9. Easom function The mathematical expression for this function is: 0 0,1 0,2 0,3 0,4 0,5 0,6 0 50 100 150 Average Value Iterations GA PSO
  • 8. Bulletin of Electr Eng & Inf ISSN: 2302-9285  Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed) 3429 𝑓(𝑥) = −𝑐𝑜𝑠(𝑥1)𝑐𝑜𝑠(𝑥2)𝑒𝑥𝑝(−(𝑥1 − 𝜋)2 − (𝑥2 − 𝜋)2 ) (11) It is a unimodal with 𝑥1,2 ∈ [−100,100] with 𝑓(𝑥𝑏𝑒𝑠𝑡) = −1, at 𝑥𝑏𝑒𝑠𝑡 = (𝜋, 𝜋) as shown in Figure 18. In this function, the GA do very bad while the PSO is excellent and it is reached the target solution in better way as presented in Figure 19. Figure 18. The easom function Figure 19. Comparision function Table 1 is the summary for average value and the deviation for both the algorithms with different suggested test functions where it is clearly that the PSO is dominant. Additional results are given in Table 2 for one check during the work. Table 1. The SD and the average for different functions Function Particle swarm optimization Genetic algorithm Standard deviation Average Standard deviation Average Beale 0 0 0.330022 0.20556 McCormick 2.48E-16 -1.9132 0.005451 -1.9086 Matyas 0 0 0.000572 0.00058 Mishra bird 0 -106.788 0.158935 -106.614 Holder table 1.814672 -17.5691 0 -19.2014 Eggholder 69.2471 -891.251 74.95725 -909.32 Schaffer 0.003303 0.29434 0 0.3002 Booth 0 0 0.214113 0.18532 Easom 5.48E-5 -1 0.740961 0.40972 Table 2. Different results for suggested problems Function Particle swarm optimization Genetic algorithm Best value Best variables Best value Best variable Beale 1.45e-008 3.0002, 0.5 0.2303 2.2412, 0.2647 McCormick - 1.9132 - 0.5472, - 1.5472 - 1.9121 - 0.5294, - 1.5176 Matyas 7.229e-012 - 0.1353, - 0.1163 6.1515e-005 0.0392, 0.0392 Mishra bird - 106.7877 - 3.1229, - 1.5895 - 106.7139 3.0980, - 1.6059 Holder table - 19.2085 8.055, 9.6646 - 19.2014 8.0392, 9.6863 Eggholder - 959.6407 512.00, 404.2318 - 950.5854 475.8588, 431.6863 Schaffer 0.2923 1.2651, 0.1700 0.3002 - 1.1765, - 3.5294 Booth 3.0702e-010 1.00, 3.00 0.1576 1.2941, 2.7843 Easom - 1.00 3.1417, 3.1416 - 1.2162 - 0.3922, - 0.3922 4. CONCLUSION Particle swarm optimization test has been done to highlight the ability of the algorithm to optimize the difficult problems. The experiments have included various mathematical functions with details presents in this paper. In addition to that, it is compared with other algorithm to be sure that this algorithm can
  • 9.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 6, December 2021 : 3422 – 3431 3430 outperform the others in terms of the accuracy and the speed. Hence, this method can be used to solve any optimization problem in all the fields. ACKNOWLEDGEMENTS Many thanks for everybody in Southern Technical University how help us to complete this paper. REFERENCES [1] T. El-Ghazali, "Metaheuristics: from design to implementation," vol. 74, John Wiley & Sons, 2009. [2] H. W. Abdulrazak, I. A. Abed, and D. K. Shary. "Management of Microgrid System Based on Optimization Algorithm," Journal of Physics: Conference Series, vol. 1773. no. 1, 2021. [3] Z. Jozef, "Optimization Problems and Genetic Algorithms," Review of Business Information Systems, vol. 14, no. 3 2010, doi: 10.19030/rbis.v14i3.491. [4] G. M. Fadhil, I. A. Abed and R. S. Jasim, "Genetic Algorithm Utilization to Fine Tune the Parameters of PID Controller," Kufa Journal of Engineering, vol. 12, no. 2, pp. 1-12, 2021, doi: 10.30572/2018/KJE/120201. [5] D. Wang , D. Tan and L. Lie, "Particle swarm optimization algorithm: an overview," Soft Computing, vol. 22, pp. 387-408, 2018. [6] M. Ozdemir, "Particle swarm optimization for continuous function optimization problems," International Journal of Applied Mathematics Electronics and Computers, vol. 5, no. 3, pp. 47-52, 2017, doi: 10.18100/ijamec.2017331879. [7] F. A. Jumaa, O. M. Neda, and M. A. Mhawesh, "Optimal distributed generation placement using artificial intelligence for improving active radial distribution system," Bulletin of Electrical Engineering and Informatics, vol. 10, no. 5, pp. 2345-2354, doi: 10.11591/eei.v10i5.2949. [8] J. M. Garcia, C. A. Acosta and M. J. Mesa, "Genetic algorithms for mathematical optimization," Journal of Physics: Conference Series, vol. 1448, no. 1, 2020. [9] Y. A. G. Alyouzbaki and M. F. Al-Rawi, "Novel load balancing approach based on ant colony optimization technique in cloud computing," Bulletin of Electrical Engineering and Informatics, vol. 10, no. 4, pp. 2320-2326, 2021, doi: 10.11591/eei.v10i4.2947. [10] M. S. Sami, and H. A. Kubba, "Genetic algorithm based load flow solution problem in electrical power systems," Journal of Engineering, vol. 15 no. 4, pp. 4142-4162, 2009. [11] B. Tarek, L. Slimani, and M. Belkacemi, "A genetic algorithm for solving the optimal power flow problem," Leonardo Journal of Sciences, vol. 4, pp. 44-58, 2004. [12] Younes, Mimoun, and Mostefa Rahli, "On the choice genetic parameters with Taguchi method applied in economic power dispatch," Leonardo journal of sciences, vol. 9, pp. 9-24, 2006. [13] D. Hermawanto, "Genetic algorithm for solving simple mathematical equality problem," arXiv preprint arXiv:1308.4675, 2013. [14] ABM. Nasiruzzaman, and MG. Rabbani, "A Genetic Algorithm Based Approach for Solving Optimal Power Flow Problem," International Conference on Electronics, Computer and Communication, 2008. [15] J. Kennedy and R. Eberhart, "Particle swarm optimization," Proceedings of ICNN'95 - International Conference on Neural Networks, 1995, vol. 4, pp. 1942-1948, doi: 10.1109/ICNN.1995.488968. [16] E. A. Kaur and E. K. Mandeep, "A comprehensive survey of test functions for evaluating the performance of particle swarm optimization algorithm," International Journal of Hybrid Information Technology, vol. 8, no. 5, pp. 97-104, 2015. [17] M. Khesti and L. Ding, "Particle Swarm Optimization Solution for Power System Operation Problems," Particle Swarm Optimization with Applications. IntechOpen, 2017. [18] S. M. Majercik, "GREEN-PSO: Conserving Function Evaluations in Particle Swarm Optimization," IJCCI, 2013. [19] G. Tomasseti and L. Cagnina, "Particle swarm algorithms to solve engineering problems: a comparison of performance," Journal of Engineering, vol. 2013, no. 435104, 2013, doi: 10.1155/2013/435104. [20] M. R. Bonyadi and Z. Michalewicz, "Particle Swarm Optimization for Single Objective Continuous Space Problems: A Review," Evolutionary Computation, vol. 25, no. 1, pp. 1-54, 2017, doi: 10.1162/EVCO_r_00180. [21] MN. Alam, "Particle swarm optimization: Algorithm and its codes in matlab," ResearchGate, pp. 1-10, 2016. [22] P. Erdoğmus, "Particle swarm optimization performance on special linear programming problems," Scientific Research and Essays, vol. 5, no. 12, pp. 1506-1518, 2013. [23] BSG. D. Almeida and VC. Leite, "Particle Swarm Optimization: A Powerful Technique for Solving Engineering Problems," Swarm Intelligence-Recent Advances, New Perspectives and Applications, IntechOpen, 2019. [24] M. Najjarzadeh and A. Ayatollahi, "A comparison between Genetic Algorithm and PSO for linear phase FIR digital filter design," 9th International Conference on Signal Processing, 2008, pp. 2134-2137, doi: 10.1109/ICOSP.2008.4697568. [25] I. A. Abed, S. P. Koh, K. S. M. Sahari, S. K. Tiong, M. M. Ali and A. A. A. Kadhim, "A New Proposed Pendulum- Like with Attraction-Repulsion mechanism Algorithm for Solving Optimization Problems," IOP Conference Series: Materials Science and Engineering, vol. 881, no. 1, p. 012132, 2020.
  • 10. Bulletin of Electr Eng & Inf ISSN: 2302-9285  Using particle swarm optimization to solve test functions problems (Issa Ahmed Abed) 3431 BIOGRAPHIES OF AUTHORS Issa Ahmed Abed received his BSc. and MSc. in Control and Computing from the Department of Electrical Engineering, University of Basrah, Iraq in 2002 and 2005, respectively. While his PhD is also in Control and Computing from University Tenaga Nasional, Malaysia in 2014. Currently, he is an Asst. Prof. and the head of control and automation department at Engineering Technical College Basrah, Southern Technical University, Iraq. His areas of interest include Artificial Intelligence, Solar energy, control systems, robotics, and image processing. May Mohammed Ali received the B.Sc. and M.Sc. degrees in electrical engineering from Al- Basrah University, Basrah, Iraq, in 1996 and 2000, respectively. She is currently an assistant lecturer of control and automation, Southern Technical University, Engineering Technical College Basrah, Iraq. She can be contacted at email: may.mohammed@stu.edu.iq Afrah Abood Abdul Kadhim received her BSc. and MSc. in Power and Machine from the Department of Electrical Engineering, University of Basrah, Iraq in 2002 and 2006, respectively. Currently, she is an assistant lecturer at Basrah Engineering Technical College, Southern Technical University, Iraq. Her areas of interest include Power, Machine, Control, and Artificial Intelligence.