| Literature DB >> 33924067 |
Sajjad Amiri Doumari1, Hadi Givi2, Mohammad Dehghani3, Zeinab Montazeri3, Victor Leiva4, Josep M Guerrero5.
Abstract
Optimization seeks to find inputs for an objective function that result in a maximum or minimum. Optimization methods are divided into exact and approximate (algorithms). Several optimization algorithms imitate natural phenomena, laws of physics, and behavior of living organisms. Optimization based on algorithms is the challenge that underlies machine learning, from logistic regression to training neural networks for artificial intelligence. In this paper, a new algorithm called two-stage optimization (TSO) is proposed. The TSO algorithm updates population members in two steps at each iteration. For this purpose, a group of good population members is selected and then two members of this group are randomly used to update the position of each of them. This update is based on the first selected good member at the first stage, and on the second selected good member at the second stage. We describe the stages of the TSO algorithm and model them mathematically. Performance of the TSO algorithm is evaluated for twenty-three standard objective functions. In order to compare the optimization results of the TSO algorithm, eight other competing algorithms are considered, including genetic, gravitational search, grey wolf, marine predators, particle swarm, teaching-learning-based, tunicate swarm, and whale approaches. The numerical results show that the new algorithm is superior and more competitive in solving optimization problems when compared with other algorithms.Entities:
Keywords: Friedman test; machine learning; population-based optimization; swarm intelligence
Year: 2021 PMID: 33924067 PMCID: PMC8073940 DOI: 10.3390/e23040491
Source DB: PubMed Journal: Entropy (Basel) ISSN: 1099-4300 Impact factor: 2.524
Figure 1Flowchart of the TSO algorithm.
Unimodal objective functions and their variables’ interval.
| Objective Function | Variables’ Interval |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
High-dimension multimodal objective functions and their variables’ interval.
| Objective Function | Variables’ Interval |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
Fixed-dimension multimodal test functions and their variables’ interval.
| Objective Function | Variables’ Interval |
|---|---|
|
|
|
|
|
|
|
|
|
|
| [−5, 10] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Results of applying the indicated algorithm on the listed unimodal objective function.
| Genetic | PSO | GS | TLBO | GWO | WO | TS | MP | TSO | ||
|---|---|---|---|---|---|---|---|---|---|---|
|
| AV | 13.2405 | 1.7740 × 10−5 | 2.0255 × 10−17 | 8.3373 × 10−60 | 1.09 × 10−58 | 2.1741 × 10−9 | 7.71 × 10−38 | 3.2715 × 10−21 | 1.2 × 10−163 |
| SD | 4.7664 × 10−15 | 6.4396 × 10−21 | 1.1369 × 10−32 | 4.9436 × 10−76 | 5.1413 × 10−74 | 7.3985 × 10−25 | 7.00 × 10−21 | 4.6153 × 10−21 | 2.65 × 10−180 | |
|
| AV | 2.4794 | 0.3411 | 2.3702 × 10−8 | 7.1704 × 10−35 | 1.2952 × 10−34 | 0.5462 | 8.48 × 10−39 | 1.57 × 10−12 | 2.29 × 10−86 |
| SD | 2.2342 × 10−15 | 7.4476 × 10−17 | 5.1789 × 10−24 | 6.6936 × 10−50 | 1.9127 × 10−50 | 1.7377 × 10−16 | 5.92 × 10−41 | 1.42 × 10−12 | 1.05 × 10−99 | |
|
| AV | 1536.896 | 589.492 | 279.3439 | 2.7531 × 10−15 | 7.4091 × 10−15 | 1.7634 × 10−8 | 1.15 × 10−21 | 0.0864 | 5.83 × 10−70 |
| SD | 6.6095 × 10−13 | 7.1179 × 10−13 | 1.2075 × 10−13 | 2.6459 × 10−31 | 5.6446 × 10−30 | 1.0357 × 10−23 | 6.70 × 10−21 | 0.1444 | 4.06 × 10−77 | |
|
| AV | 2.0942 | 3.9634 | 3.2547 × 10−9 | 9.4199 × 10−15 | 1.2599 × 10−14 | 2.9009 × 10−5 | 1.33 × 10−23 | 2.6 × 10−8 | 1.91 × 10−70 |
| SD | 2.2342 × 10−15 | 1.9860 × 10−16 | 2.0346 × 10−24 | 2.1167 × 10−30 | 1.0583 × 10−29 | 1.2121 × 10−20 | 1.15 × 10−22 | 9.25 × 10−9 | 4.56 × 10−83 | |
|
| AV | 310.4273 | 50.26245 | 36.10695 | 146.4564 | 36.8607 | 41.7767 | 28.8615 | 46.049 | 28.4397 |
| SD | 2.0972 × 10−13 | 1.5888 × 10−14 | 3.0982 × 10−14 | 1.9065 × 10−14 | 2.6514 × 10−14 | 2.5421 × 10−24 | 4.76 × 10−3 | 0.4219 | 1.83 × 10−15 | |
|
| AV | 14.55 | 20.25 | 0 | 0.4435 | 0.6423 | 1.6085 × 10−9 | 7.10 × 10−21 | 0.398 | 0 |
| SD | 3.1776 × 10−15 | 1.2564 | 0 | 4.2203 × 10−16 | 6.2063 × 10−17 | 4.6240 × 10−25 | 1.12 × 10−25 | 0.1914 | 0 | |
|
| AV | 5.6799 × 10−3 | 0.1134 | 0.0206 | 0.0017 | 0.0008 | 0.0205 | 3.72 × 10−4 | 0.0018 | 2.75 × 10−5 |
| SD | 7.7579 × 10−19 | 4.3444 × 10−17 | 2.7152 × 10−18 | 3.87896 × 10−19 | 7.2730 × 10−20 | 1.5515 × 10−18 | 5.09 × 10−5 | 0.001 | 8.49 × 10−20 | |
Where AV: average and SD: standard deviation.
Results of applying the indicted algorithm on the listed high-dimension multimodal objective function.
| Genetic | PSO | GS | TLBO | GWO | WO | TS | MP | TSO | ||
|---|---|---|---|---|---|---|---|---|---|---|
|
| AV | −8184.4142 | −6908.6558 | −2849.0724 | −7408.6107 | −5885.1172 | −1663.9782 | −5740.3388 | −3594.16321 | −12536.9 |
| SD | 833.2165 | 625.6248 | 264.3516 | 513.5784 | 467.5138 | 716.3492 | 41.5 | 811.3265 | 1.30 × 10−11 | |
|
| AV | 62.4114 | 57.0613 | 16.2675 | 10.2485 | 8.5265 × 10−15 | 4.2011 | 5.70 × 10−3 | 140.1238 | 0 |
| SD | 2.5421 × 10−14 | 6.3552 × 10−15 | 3.1776 × 10−15 | 5.5608 × 10−15 | 5.6446 × 10−30 | 4.3692 × 10−15 | 1.46 × 10−3 | 26.3124 | 0 | |
|
| AV | 3.2218 | 2.1546 | 3.5673 × 10−9 | 0.2757 | 1.7053 × 10−14 | 0.3293 | 9.80 × 10−14 | 9.6987 × 10−12 | 4.44 × 10−15 |
| SD | 5.1636 × 10−15 | 7.9441 × 10−16 | 3.6992 × 10−25 | 2.5641 × 10−15 | 2.7517 × 10−29 | 1.9860 × 10−16 | 4.51 × 10−12 | 6.1325 × 10−12 | 7.06 × 10−31 | |
|
| AV | 1.2302 | 0.0462 | 3.7375 | 0.6082 | 0.0037 | 0.1189 | 1.00 × 10−7 | 0 | 0 |
| SD | 8.4406 × 10−16 | 3.1031 × 10−18 | 2.7804 × 10−15 | 1.9860 × 10−16 | 1.2606 × 10−18 | 8.9991 × 10−17 | 7.46 × 10−7 | 0 | 0 | |
|
| AV | 0.047 | 0.4806 | 0.0362 | 0.0203 | 0.0372 | 1.7414 | 0.0368 | 0.0851 | 7.42 × 10−4 |
| SD | 4.6547 × 10−18 | 1.8619 × 10−16 | 6.2063 × 10−18 | 7.7579 × 10−19 | 4.3444 × 10−17 | 8.1347 × 10−12 | 1.5461 × 10−2 | 0.0052 | 1.75 × 10−18 | |
|
| AV | 1.2085 | 0.5084 | 0.002 | 0.3293 | 0.5763 | 0.3456 | 2.9575 | 0.4901 | 1.08 × 10−4 |
| SD | 3.2272 × 10−16 | 4.9650 × 10−17 | 4.2617 × 10−14 | 2.1101 × 10−16 | 2.4825 × 10−16 | 3.25391 × 10−12 | 1.5682 × 10−12 | 0.1932 | 3.41 × 10−17 | |
Where AV: average and SD: standard deviation.
Results of applying the indicated algorithm on the listed fixed-dimension multimodal objective function.
| Genetic | PSO | GS | TLBO | GWO | WO | TS | MP | TSO | ||
|---|---|---|---|---|---|---|---|---|---|---|
|
| AV | 0.9986 | 2.1735 | 3.5913 | 2.2721 | 3.7408 | 0.998 | 1.9923 | 0.998 | 0.998 |
| SD | 1.5640 × 10−15 | 7.9441 × 10−16 | 7.9441 × 10−16 | 1.9860 × 10−16 | 6.4545 × 10−15 | 9.4336 × 10−16 | 2.6548 × 10−7 | 4.2735 × 10−16 | 8.69 × 10−16 | |
|
| AV | 5.3952 × 10−2 | 0.0535 | 0.0024 | 0.0033 | 0.0063 | 0.0049 | 0.0004 | 0.003 | 0.0003 |
| SD | 7.0791 × 10−18 | 3.8789 × 10−19 | 2.9092 × 10−19 | 1.2218 × 10−17 | 1.1636 × 10−18 | 3.4910 × 10−18 | 9.0125 × 10−4 | 4.0951 × 10−15 | 1.82 × 10−19 | |
|
| AV | −1.0316 | −1.0316 | −1.0316 | −1.0316 | −1.0316 | −1.0316 | −1.0316 | −1.0316 | −1.0316 |
| SD | 7.9441 × 10−16 | 3.4755 × 10−16 | 5.9580 × 10−16 | 1.4398 × 10−15 | 3.9720 × 10−16 | 9.9301 × 10−16 | 2.6514 × 10−16 | 4.4652 × 10−16 | 8.65 × 10−17 | |
|
| AV | 0.4369 | 0.7854 | 0.3978 | 0.3978 | 0.3978 | 0.4047 | 0.3991 | 0.3979 | 0.3978 |
| SD | 4.9650 × 10−17 | 4.9650 × 10−17 | 9.9301 × 10−17 | 7.4476 × 10−17 | 8.6888 × 10−17 | 2.4825 × 10−17 | 2.1596 × 10−16 | 9.1235 × 10−15 | 9.93 × 10−17 | |
|
| AV | 4.3592 | 3 | 3 | 3.0009 | 3 | 3 | 3 | 3 | 3 |
| SD | 5.9580 × 10−16 | 3.6741 × 10−15 | 6.9511 × 10−16 | 1.5888 × 10−15 | 2.0853 × 10−15 | 5.6984 × 10−15 | 2.6528 × 10−15 | 1.9584 × 10−15 | 4.97 × 10−16 | |
|
| AV | −3.85434 | −3.8627 | −3.8627 | −3.8609 | −3.8621 | −3.8627 | −3.8066 | −3.8627 | −3.8627 |
| SD | 9.9301 × 10−17 | 8.9371 × 10−15 | 8.3413 × 10−15 | 7.3483 × 10−15 | 2.4825 × 10−15 | 3.1916 × 10−15 | 2.6357 × 10−15 | 4.2428 × 10−15 | 6.95 × 10−16 | |
|
| AV | −2.8239 | −3.2619 | −3.0396 | −3.2014 | −3.2523 | −3.2424 | −3.3206 | −3.3211 | −3.3219 |
| SD | 3.97205 × 10−16 | 2.9790 × 10−16 | 2.1846 × 10−14 | 1.7874 × 10−15 | 2.1846 × 10−15 | 7.9441 × 10−16 | 5.6918 × 10−15 | 1.1421 × 10−11 | 1.89 × 10−15 | |
|
| AV | −4.3040 | −5.3891 | −5.1486 | −9.1746 | −9.6452 | −7.4016 | −5.5021 | −10.1532 | −10.1532 |
| SD | 1.5888 × 10−15 | 1.4895 × 10−15 | 2.9790 × 10−16 | 8.5399 × 10−15 | 6.5538 × 10−15 | 2.3819 × 10−11 | 5.4615 × 10−13 | 2.5361 × 10−11 | 5.96 × 10−16 | |
|
| AV | −5.1174 | −7.6323 | −9.0239 | −10.0389 | −10.4025 | −8.8165 | −5.0625 | −10.4029 | −10.4029 |
| SD | 1.2909 × 10−15 | 1.5888 × 10−15 | 1.6484 × 10−12 | 1.5292 × 10−14 | 1.9860 × 10−15 | 6.7524 × 10−15 | 8.4637 × 10−14 | 2.8154 × 10−11 | 1.79 × 10−15 | |
|
| AV | −6.5621 | −6.1648 | −8.9045 | −9.2905 | −10.1302 | −10.0003 | −10.3613 | −10.5364 | −10.5364 |
| SD | 3.8727 × 10−15 | 2.7804 × 10−15 | 7.1497 × 10−14 | 1.1916 × 10−15 | 4.5678 × 10−15 | 9.1357 × 10−15 | 7.6492 × 10−12 | 3.9861 × 10−11 | 9.33 × 10−16 | |
Figure 2Plots of the objective function average with y-axis in logarithm scale for the indicated algorithm and function.
Results of the Friedman rank test for evaluating the indicated algorithm and type of objective function.
| Function | TSO | MP | TS | WO | GWO | TLBO | GS | PSO | Genetic | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Unimodal | Friedman value | 7 | 37 | 16 | 42 | 27 | 28 | 37 | 56 | 57 |
| Friedman rank | 1 | 5 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | ||
| 2 | High-dimension multimodal | Friedman value | 6 | 33 | 27 | 38 | 24 | 25 | 32 | 37 | 40 |
| Friedman rank | 1 | 6 | 4 | 8 | 2 | 3 | 5 | 7 | 9 | ||
| 3 | Fixed-dimension multimodal | Friedman value | 10 | 15 | 33 | 33 | 31 | 35 | 38 | 45 | 55 |
| Friedman rank | 1 | 2 | 4 | 4 | 3 | 5 | 6 | 7 | 8 | ||
| 4 | All 23 functions | Friedman value | 23 | 85 | 76 | 113 | 82 | 88 | 107 | 138 | 152 |
| Friedman rank | 1 | 4 | 2 | 7 | 3 | 5 | 6 | 8 | 9 | ||