Abstract
To address the issues of lacking ability, loss of population diversity, and tendency to fall into the local extreme value in the later stage of optimization searching, resulting in slow convergence and lack of exploration ability of the artificial gorilla troops optimizer algorithm (AGTO), this paper proposes a gorilla search algorithm that integrates the positive cosine and Cauchy's variance (SCAGTO). Firstly, the population is initialized using the refractive reverse learning mechanism to increase species diversity. A positive cosine strategy and nonlinearly decreasing search and weight factors are introduced into the finder position update to coordinate the global and local optimization ability of the algorithm. The follower position is updated by introducing Cauchy variation to perturb the optimal solution, thereby improving the algorithm's ability to obtain the global optimal solution. The SCAGTO algorithm is evaluated using 30 classical test functions of Test Functions 2018 in terms of convergence speed, convergence accuracy, average absolute error, and other indexes, and two engineering design optimization problems, namely, the pressure vessel optimization design problem and the welded beam design problem, are introduced for verification. The experimental results demonstrate that the improved gorilla search algorithm significantly enhances convergence speed and optimization accuracy, and exhibits good robustness. The SCAGTO algorithm demonstrates certain solution advantages in optimizing the pressure vessel design problem and welded beam design problem, verifying the superior optimization ability and engineering practicality of the SCAGTO algorithm.
Similar content being viewed by others
Introduction
In scientific and engineering design, there are numerous complex optimization problems that are non-convex, highly nonlinear, multi-peaked, and multi-variable. Intelligent optimization algorithms have the advantages of simple programming, flexible operation, and high efficiency in optimization searches1. They have become a research hotspot in handling various complex optimization problems in engineering applications and have been successfully applied to solve practical problems such as neural networks2, resource allocation3, and target tracking4. In production life, nonlinear, high-dimensional, and irreducible multi-objective complex optimization problems often occur. These optimization problems have conflicting optimization objectives but need to be optimized simultaneously, and are therefore called multi-objective optimization problems5,6. In engineering practice, it is difficult to obtain optimal solutions for multiple objectives due to multiple factors. To better obtain the optimal solution set for multi-objective optimization, multi-objective evolutionary algorithms that can obtain multiple solutions after one learning process have been widely researched and applied in recent years7,8,9. Swarm intelligence optimization algorithms have the advantages of few parameters, simple implementation, and no gradient information. By simulating the behaviors of plants and animals in nature, such as courtship and foraging, the optimal solutions of these problems can be found well within a reasonable time and under highly complex constraints10,11,12. Classical swarm intelligence algorithms include particle swarm optimization (PSO)13, artificial bee colony (ABC)14, grey wolf optimization (GWO)15, harris hawk algorithm (HHO)16, and whale optimization algorithm (WOA)17. With the continuous development and update of technology, swarm intelligence algorithms have excelled in problems such as positioning computation18, path planning for travelers19, support vector machine optimization20, robotic route finding21, power system control22, and optimization of routing protocols for the Internet of Things (IoT)23.
Artificial Gorilla Troops Optimizer (AGTO) was proposed in 2021 by Abdollahzadeh et al.24. It simulates gorilla foraging and mate competition in nature25. Though having advantages like simple principle, easy implementation, and few adjustment parameters, it also has drawbacks like prone to local optima and slow convergence. Since its proposal, many scholars have made improvements26. Compared to most intelligent optimization algorithms, AGTO has certain advantages in optimization, but still has problems like low convergence accuracy and difficulty in escaping local extremes. For example, El Houd et al.27 proposed a mirror-opposite and adaptive mountain climbing-based gorilla optimization algorithm, using convex lens imaging reverse learning to expand the search range and avoiding local optima. Meanwhile, an adaptive mountain climbing algorithm is combined with AGTO to improve solution accuracy. Xiao et al. proposed a reverse-learning and parallel-strategy-based artificial gorilla optimization algorithm, expanding the exploration space through reverse learning and improving the global search ability28. The parallel strategy divides the population into multiple groups for exploration, increasing population diversity. Wu et al. utilized quadratic interpolation-based longhorn whisker search to enhance position diversity of silver-backed gorillas. They introduced a teaching and optimization algorithm with a 50% probability to update behavior following silver-backed gorillas. Finally, quasi-reflective learning generates the quasi-reflective position of silver-backed gorillas29. Wang et al. proposed an enhanced gorilla, using circle chaotic mapping to increase gorilla population diversity and applying it to clustering protocols in unmanned aerial vehicle-assisted intelligent vehicle networks30. Mostafa et al.31 introduced elite reverse learning to enhance population diversity, using the fusion of Cauchy inverse cumulative distribution operator and tangent flight to improve population development ability, thereby increasing convergence speed.
The motivation of this study is that, despite the aforementioned research having enhanced the optimization accuracy and speed of the gorilla algorithm, there are still shortcomings due to the short proposal time and incomplete improvement methods32. (1) Initial population before algorithm iteration update relies heavily on initial conditions, resulting in insufficient robustness. (2) Iterating and updating individual populations' strategies are relatively single and mechanical, failing to achieve targeted treatment and lacking a reasonable balance between global and local search; (3) The algorithm is still prone to local optimal traps, resulting in low convergence accuracy; (4) Diversity of evaluation indicators for individual populations is poor, relying solely on the fitness function to reject individual populations; (5) Individual population position update methods are not detailed enough. Therefore, further research is needed to improve the gorilla algorithm33.
The contributions of this study can be summarized as follows: 1. In the realm of intelligent optimization algorithms, enhancing population diversity, harmonizing global and local search, and optimizing the process of updating individual population positions are all effective approaches to enhance algorithm optimization performance. 2. This study presents an AGTO based on Sine Cosine and Cauchy Mutation (SCAGTO), which integrates sine cosine and Cauchy mutations. Firstly, refracted reverse learning is employed to generate the initial population, thereby increasing the diversity of the initial population. Secondly, in the algorithm optimization stage, the Sine Cosine Algorithm (SCA) is introduced to update the position of the discoverer. By leveraging the oscillation characteristics of the sine cosine model to influence the position of the discoverer, the diversity of the discoverer is maintained, consequently enhancing the global search ability and convergence speed of the AGTO. 3. Finally, Cauchy mutation is utilized to perturb individuals in the gorilla position updates, expanding the search scale of the gorilla algorithm and improving the algorithm's capacity to escape local optima and update individual positions, thereby enhancing convergence accuracy. The superiority of the algorithm is verified through the analysis of the benchmark test function. Finally, via the analysis of experimental results on engineering application problems, the SCAGTO algorithm is demonstrated to be more feasible compared to other algorithms.
Artificial gorilla troops optimizer algorithm
The artificial gorilla troop optimization algorithm (AGTO) is a population intelligence optimization algorithm proposed based on the collective lifestyle and social behavior of gorillas34. Gorilla live in a group called "troops", consisting of a group of adult male or silver backed guerillas and several adult female gorillas and their descendants. The silver backed gorilla is the core of the group, making all decisions, mediating battles, determining group actions, guiding the gorilla in finding food sources, and taking responsibility for the safety and well-being of the group35,36. In the AGTO algorithm, five different operators are used to simulate the collective behavior of gorillas, mainly divided into two stages: exploration stage and development stage. The exploration phase employed three different mechanisms, namely migration to unknown locations, migration to other gorilla locations, and migration to known locations37. During the development phase, two social behaviors were adopted: following the silver backed gorilla and competing with adult female gorillas. Figure 1 shows the exploration and development mechanism of optimization algorithms for artificial gorilla troops.
The position update of gorillas during the exploration phase is shown in Eqs. (1), (2), (3):
In the formula, GX(t + 1) is the candidate position for the gorilla in the next iteration, and X(t) is the current position of the gorilla. In addition, r1, r2, r3, and rand are random values with values of (0,1). s is a parameter that must be given a value before optimizing operations, usually with a value of 0.03. This parameter determines the probability of the gorilla migrating to an unknown location38. ub and lb represent the upper and lower limits of variables, respectively. Xr and GXr are individual positions of a gorilla randomly selected from a population. The parameters C, L, and H are represented by formulas (4), (5), and (6) respectively:
In Eq. (4), the parameter of It is the current iteration value, and MaxIt is the total iteration value for executing the optimization operation. r4 is a random value with a value of (0,1). In Eq. (5), the parameter of l is a random value with a value of (− 1, 1). In Eq. (6), the parameter of Z is a random value with a value of [− C, C] in the problem dimension. During the development phase, gorillas choose to follow the silver backed gorilla mechanism, and their behavior is shown in Eq. (7):
In Eq. (7), Xsilverback is the position of the silver backed gorilla (best solution), and the parameter of L is a parameter that must be given a value before optimization operation, used to switch the development stage mechanism. The parameter of M is represented by Eq. (8), where GXi(t) represents the position of the i-th candidate gorilla at the t-th iteration, the parameter of N represents the total number of gorillas, and g is represented by Eq. (9). During the development phase, gorillas choose to compete with adult female gorilla mechanisms, and their behavior is shown in Eq. (10):
In Eq. (10), the parameter of Q is used to simulate the impact force, represented by Eq. (11), the parameter of A is the coefficient of the degree of violence in the conflict, represented by Eq. (12). In Eq. (11), r5 is a random value with a value of (0,1); In Eq. (12), \(\beta\) is the parameter value given before the optimization operation. The parameter of E is used to simulate the impact of violence on the dimensions of the solution, represented by Eq. (13). If rand is 0.5, the parameter of E will be equal to the normal distribution and the random value in the problem dimension. Conversely, the parameter of E will be equal to the random value in the normal distribution. When improving the multi-objective gorilla troop optimization algorithm in this article, the calculation of gorilla troop coding, population initialization, coding factor, and crowding distance is shown in Fig. 2. Figure 2 shows the optimization algorithm flowchart for the gorilla unit.
AGTO algorithm integrates sine and cosine and Cauchy mutation
Refractive reverse learning strategy
In view of the loss of population diversity of AGTO algorithm in the late stage of optimization, which increases the probability of falling into local extremum and leads to the problem of insufficient convergence accuracy, this paper uses a refraction reverse learning mechanism to initialize the gorilla force algorithm population39. Reverse learning is an optimization strategy proposed by tizhoosh. The basic idea is to expand the search scope by calculating the reverse solution of the current solution, so as to find a better alternative solution for a given problem. The combination of intelligent algorithm and reverse learning can effectively improve the accuracy of the algorithm40. At the same time, reverse learning still has some shortcomings. The introduction of reverse learning in the early stage of optimization can strengthen the convergence performance of the algorithm, but it is easy to make the algorithm fall into premature convergence in the later stage. Therefore, a refraction principle is introduced into the reverse learning strategy to reduce the probability of premature convergence in the later stage of the search. The principle of refraction reverse learning is shown in Fig. 3.
Where, the optimisation range of the solution above the x-axis is [l, u], the y-axis is the normal line, α and β denote the angles of incidence and refraction, h and h* are the lengths of the incident and refracted light rays respectively, and the parameter O is the midpoint of the optimisation range [l, u]. According to the geometric relationship of lines in mathematics, the following is obtained:
According to the definition of refractive index, \(n = \sin \alpha /\sin \beta\), the formula for refractive index n is obtained as:
Let the scaling factor \(k = h/h^{*}\) be substituted into (15) to obtain the deformation equation as
When n = 1 and k = 1, Eq. (16) can be converted to a reverse learning formula:
Equation (16) when generalized to the high dimensional space of the Gorilla Force algorithm, making n = 1 gives
In Eq. (18), the parameter \(x_{i,j}\) is the i-th gorilla in the population in the j-th dimensional position (i = 1, 2, 3,\(\cdots\),D, j = 1, 2, 3,\(\cdots\),D), the parameter D is the number of populations, the spatial dimensionality of the N solution, and \(x^{*}_{i,j}\) is the \(x_{i,j}\) refractive direction position. the parameters lj and uj are the minimum and maximum values in the j-th dimension of the search space respectively.
Sine–cosine strategy
In the process of gorilla predation, the location of food source plays a very important role, affecting the direction of the whole gorilla population. However, considering that the food sources may be different and the locations may be different, when the food that the discoverer is searching for is at the local optimum, a large number of followers will pour into the location. At this time, the discoverer and the whole population stagnate, resulting in the loss of population position diversity, and then increasing the possibility of falling into local extremum. In view of this phenomenon, this paper introduces sine cosine algorithm (SCA) in the location update of the discoverer of gorilla search algorithm41, which can maintain the individual diversity of the discoverer and improve the global search ability of agto by using the oscillation characteristics of the sine cosine model. The central idea of SCA is to seek global and local optimizations according to the oscillation changes of the sine and cosine model to obtain the global optimal value42.
For the step size search factor r1 = a -at/Itermax (a is a constant, t is the number of iterations, and this paper sets a = 1) of the basic sine and cosine algorithm shows a linear decreasing trend, which is not conducive to further balancing the global search and local development capabilities of AGTO algorithm. Inspired by literature43, the step size search factor is improved, and the transformation curve is shown in Fig. 4. The new nonlinear decreasing search factor is shown in Eq. (19), which has a large weight in the early stage and a slow decreasing speed, It is beneficial to improve the global optimization ability. When the weight factor is small, it enhances the advantages of the algorithm in local development and speeds up the speed of obtaining the optimal solution.
wherein, \(\eta\) is the adjustment coefficient,\(\eta\) \(\ge\) 1, a = 1.
In the whole search process of the AGTO algorithm, the update of individual position of population is often affected by the current position. Therefore, the nonlinear weighting factor ω of Eq. (20) is introduced. It is used to adjust the dependence of the individual position update of the population on the individual information currently. In the early stage of optimization, the smaller ω It reduces the influence of individual location update on the current solution location, and improves the global optimization ability of the algorithm. In the later stage, the larger ω Taking advantage of the high dependence of current location information and individual location update, the convergence speed of the algorithm is accelerated, and the change curve is shown in Fig. 4. Then a new finder location update formula is obtained, as shown in formula (21):
wherein, a random number of r2 ∈ [0, 2π] determines the distance moved by the gorilla, and a random number of r3 ∈ [0, 2π] controls the effect of the optimal individual on the latter position of the gorilla.
Cauchy variation strategy
In the process of foraging, followers often forage around the best discoverer, and there may also be food competition, making themselves discoverers44. To avoid the algorithm falling into local optimization, Cauchy mutation strategy is introduced into the follower update formula to improve the global optimization ability. The new follower position is updated as follows:
where \(cauchy(0,1)\) is the standard Cauchy distribution function and \(\oplus\) denotes the multiplicative implication.
The one-dimensional Cauchy variation function centered at the origin is as follows:
The Cauchy distribution is similar to the standard normal distribution, which is a continuous probability distribution with small values at the origin, relatively flat and long at both ends, and the rate of approaching zero is slow, so it can produce greater disturbance than the normal distribution45. Therefore, Cauchy mutation is used to perturb the individuals in the gorilla position update, so as to expand the search scale of gorilla algorithm, and then improve the ability of the algorithm to jump out of the local optimum.
Implementation steps of the SCAGTO algorithm
The development method of the gorilla force involves selecting several vectors of the silverback gorilla for position optimization to achieve the optimization of position vectors close to itself. The detailed steps of the optimization improvement mechanism are as follows:
-
1.
Initialize relevant parameters: Set the population size to N, the dimension to dim, the maximum number of iterations to MaxIt, the population search range to ub and lb, the exploration phase switching probability to s, the development phase switching probability to w, and the parameter β.
-
2.
Initialize the population X using the refraction reverse learning strategy.
-
3.
Calculate the fitness value of each gorilla individual X, and select the individual with the smallest fitness as the silverback gorilla Xsilverback.
-
4.
Calculate the values of parameters C and L according to formulas (4) and (5).
-
5.
Update the gorilla candidate location GX based on formulas (1), (2), (10), and the switching probability s in the exploration phase, and check the boundary of the updated candidate location GX. According to the gorilla search algorithm, the sine and cosine algorithm is introduced into the location update of the discoverer. By utilizing the oscillation characteristics of the sine and cosine model, the location of the discoverer is influenced to maintain the individual diversity of the discoverer, thereby enhancing the global search ability of the AGTO algorithm. Update the position of the gorilla X, and select the gorilla with the least fitness as the silverback gorilla Xsilverback.
-
6.
Update the gorilla candidate location GX according to formulas (7) and (10) and the development phase switching probability w, check the boundary of the updated location GX, update the gorilla location x using the dimension-by-dimension update strategy, and select the gorilla with smaller fitness as the silverback gorilla Xsilverback.
-
7.
Apply the Cauchy mutation strategy to the individual that may fall into the local optimum according to formulas (22) and (23), enhance the global optimization ability, update the position of the gorilla again based on the dimension-by-dimension update strategy, and select the gorilla with smaller fitness as the silverback gorilla Xsilverback.
-
8.
Determine whether the iteration termination conditions are met. If so, output the silverback gorilla position Xsilverback and its fitness value. Otherwise, proceed to step 4 to continue.
Complexity analysis of the SCAGTO algorithm
The time complexity indirectly reflects the convergence speed of the algorithm. In the gorilla force algorithm, the time complexity of the initialization process (population size n, maximum number of iterations T, search space dimension D is O(N), and all solutions are updated to the optimal solution in the exploration and development phase. The time complexity of this process is O(T × N) + O(T × N × D) × 2. Then the time complexity of the standard artificial gorilla force is:
In the improved gorilla force algorithm, the initialization parameters are consistent with the standard artificial gorilla force algorithm. If the external file set is used to store the non-dominated solution, the time complexity of the initialization process is O(N).
In the stage of algorithm exploration and development, the SCAGTO algorithm introduces refraction reverse learning strategy to replace random initialization with O(N × D). The individual fitness is the same as the AGTO algorithm, the introduction of sine and cosine phase requires O(N × D), and the complexity of Cauchy variation phase is O(N × D). Therefore, the total complexity of the improved SCAGTO algorithm is:
The improved artificial gorilla force algorithm has the same time complexity as the standard artificial gorilla force algorithm. The improved strategy proposed in this paper does not increase the time complexity of the standard artificial gorilla force algorithm.
Simulation comparison and performance test
Test function experiment comparison
To validate the performance of the proposed SCAGTO algorithm, which combines sine and cosine with Cauchy mutations, a detailed comparison was conducted with six algorithms, including the whale optimization algorithm (WOA)46, harris hawks optimization (HHO)47, grey wolf optimization algorithm (GWO)48, ant lion colony optimization algorithm (ALO)49, African vultures optimization algorithm (AVOA)50, and the basic Artificial gorilla troops optimizer (AGTO)24. A comprehensive comparison was carried out under 30 classic test functions in the CEC2018 test suite presented in Table 1. The CEC2018 encompasses a total of 14 test functions: DF1-DF14, with DF1-DF9 being two-objective and DF10-DF14 being three-objective51. Table 2 presents the primary parameter configurations for the seven algorithms. The experimental environment utilized is Windows 10, a 64-bit operating system, with the processor being an Intel® Core™ i7-10870H CPU operating at a frequency of 2.75 GHz. The algorithm is based on MATLAB 2022b and implemented in the M language. The CEC2018 test suite consists of a total of 30 single-objective test functions, with search intervals ranging between [− 100, 100]52. All the test functions aim to solve the minimization problem, with D representing the dimension (30 dimensions), as follows:
In order to present a detailed account of the convergence of diverse algorithms, a convergence curve chart will be employed to accomplish this. To ensure fairness in the comparison, the population size of the seven algorithms was fixed at 30, the dimension dim was set to 30, and the maximum number of iterations was set to 500. A convergence curve of 100 independent runs was derived, and Fig. 5 illustrates the convergence curve of the 30 functions. Among them, Fig. 2 depicts the program error, and it is recognized that there is an issue with this function, thus no image of it is provided. As illustrated in Fig. 5, the base-10 logarithm is utilized as the y-axis. When the curve ceases to be displayed as the number of iterations increases, it signifies that the algorithm has attained the theoretical optimal solution of 0.
As can be seen from the single-peak convergence curve in Fig. 5, the convergence performance of AGTO is slightly better than that of WOA, HHO, GWO, ALO and AVOA algorithms, but the convergence curves also show a flat trend, stagnation, low accuracy of optimality search, and fall into the local optimum. The improved algorithm of SCAGTO has significant improvement in convergence speed and accuracy compared with that of AGTO, and it also verifies the ability of the sine–cosine strategy and the Cauchy variant to jump out of the In the overall comparison between SCAGTO and AGTO, the two are comparable in convergence speed, while SCAGTO finally shows higher convergence accuracy, mainly because of the mutation performance when searching for the optimum with the help of Cauchy's variation. The convergence speed and accuracy of SCAGTO are further improved compared to AGTO, and both obtain the theoretical optimal solution.
In terms of optimisation accuracy, AGTO algorithm has better optimisation accuracy than WOA, HHO, GWO, ALO and AVOA algorithms in different dimensions of each test function, and AGTO algorithm achieves the theoretical optimal value of 0 when solving F4, F15, F19, and F27, and AGTO achieves a better extreme value when solving F30, which is not optimal, but is still significantly better than WOA, HHO, GWO, ALO and AVOA algorithms. The SCAGTO algorithm, which is an improved strategy to AGTO, shows an advantage in solving the function when SCAGTO solves dim = 300, with the order of magnitude of the mean value improved by at least 12 and up to 30 orders of magnitude compared to AGTO. In the whole test function, the overall convergence accuracy of SCAGTO is significantly improved, and it also shows that the positive cosine strategy and the Cauchy variation strategy have a positive effect on the AGTO algorithm's ability to find the global optimum, and reduce the chance of AGTO falling into the local optimum.
In order to test the optimisation accuracy of SCAGTO, the above seven algorithms are optimized under 30 test functions (spatial dimension dim = 30), in which each algorithm is run independently under the function for 100 times, and the results are evaluated using six performance metrics, namely, Min, Mean, standard deviation of Std, Median, Max, and running time, and experimental comparative results are obtained, as shown in Tables 2, 3, 4, 5, 6, and 7.
From Tables 2, 3, 4, 5, 6, and 7, it can be observed that the SCAGTO algorithm presented in this paper fails to achieve the theoretical optimal value only under the functions F1-F8, and achieves the theoretical optimal value in the remaining 22 test functions in various dimensions, demonstrating a strong ability to identify the optimal value. Regarding the 30 test functions, the SCAGTO algorithm exhibits a disadvantage only in the robustness of F1–F5. The standard deviation of the optimization results in all dimensions of the remaining test functions is 0, indicating the strong stability of the SCAGTO algorithm. Analyzed in terms of dimensionality, as the dimensionality of the test functions increases, the optimization ability and robustness of the algorithms AGTO, WOA, GWA, and ALO show an overall decreasing trend. In terms of the standard deviation, the value of the SCAGTO algorithm is generally smaller than that of the AGTO algorithm, also indicating that the introduction of the positive cosine strategy and Cauchy's variant has enhanced the robustness of the AGTO algorithm.
Typically, the time complexity of an algorithm can be assessed based on the time it takes to run. The time complexity reflects the superiority of the algorithm. As the complexity of the algorithm increases, it indicates that the algorithm operates less efficiently. With 30 test functions, the complexity of solving the problem rises as the dimensionality increases, resulting in a longer overall execution time. In terms of algorithm comparison, the AVOA algorithm takes the shortest time overall, and the SCAGTO algorithm takes longer compared to the improved AGTO, WOA, GWA, and ALO algorithms. This indicates that the introduction of the improved strategy does not enhance the complexity of the AGTO and reduces the execution efficiency. The SCAGTO algorithm takes longer than the AGTO algorithm because it combines both global search and local exploitation. However, for some functions with different dimensions, the AGTO algorithm exhibits a time consumption comparable to the SCAGTO algorithm. This is primarily attributed to the introduction of several improvement strategies, which expands the range of optimisation search of the SCAGTO algorithm, requiring more time and consequently increasing the time consumption. To summarize, the effectiveness of the improvement strategies proposed in this paper is analyzed and verified based on the conclusions in Fig. 5 and Tables 2, 3, 4, 5, 6, and 7.
Applications to engineering optimisation problems
Swarm intelligence optimization algorithms offer several advantages in engineering applications, including efficiency in finding optimal solutions for large-scale problems, adaptability through automatic search strategy adjustments, robustness in handling complex engineering issues, suitability for distributed computing, and ease of implementation. These algorithms find applications in various fields such as logistics and supply chain management, electrical engineering, mechanical engineering, communication engineering, chemical engineering, transportation, financial engineering, image processing, and computer vision, as well as bioinformatics. The ability to optimize processes, designs, and scheduling, along with handling tasks like wireless network planning, signal processing, and risk management, makes them valuable in these domains. This article applies the proposed improved gorilla optimization algorithm to the pressure vessel design optimization (PVD) in engineering design and the classic problem of optimized design problem for welded beams, and compares it with other algorithms, in order to solve practical engineering problems.
Pressure vessel design optimisation (PVD)
To verify the superiority of SCAGTO in real engineering, the pressure vessel design optimisation problem is selected and compared by validation with six other algorithms. The pressure vessel design problem is a classical engineering optimisation design problem that aims to reduce the manufacturing cost by reducing the consumables of the pressure vessel53. The pressure vessel is capped at both ends by a lid and the head end consists of a hemispherical lid. The design problem consists of four main variables: i.e. the cross-sectional length (L) of the cylindrical portion that is not the head, the inner wall diameter (R), the wall thickness (Ts) and the wall thickness of the head (Th)54. The main objective of the pressure vessel design problem is to minimize the manufacturing cost while ensuring the functionality of the pressure vessel by choosing four variables: shell thickness (Ts), head thickness (Th), inner wall radius (R), and cylindrical section length (L). The mathematical model is represented as follows:
(1) Variable design:
(2) Objective function:
(3) Constraints:
(4) Boundary constraints:
\(0 \le x_{1} \le 99, \, 0 \le x_{2} \le 99\), \(10 \le x_{3} \le 220, \, 10 \le x_{4} \le 200\).
The iterative process of finding the optimal solution of the seven algorithms is shown in Fig. 6. The previous simulation experiments have verified that scagto algorithm has good performance in unconstrained test functions, and the pressure vessel design problem as a classical constraint problem can prove that scagto algorithm also has advantages in solving constrained problems. In the experiment, Table 8 lists the experimental results of scagto and other six algorithms in solving pressure vessel design problems.
From Table 8, the SCAGTO algorithm obtains the optimal solution 6059.71 at Ts = 1.15, Th = 6.03, R = 40.32, L = 179.21, which are all significantly better than six algorithms such as whale optimisation algorithm (WOA), harris hawk algorithm (HHO), grey wolf optimisation algorithm (GWO), ALO algorithm and AVOA algorithm. It is shown that the SCAGTO algorithm is able to solve the pressure vessel design problem with the lowest cost, which is suitable for solving this type of constrained engineering design problem, and has more superior performance compared with other algorithms. The proposed improved the SCAGTO algorithm can circumvent the shortcomings of the basic AGTO algorithm in the constrained optimisation problem, and better solve the constrained optimisation problem in pressure vessel design. In summary, SCAGTO has good performance on both unconstrained and constrained problems, and can be applied to solving mathematical problems as well as real-world problems.
Optimized design problem for welded beams
The objective of the welded beam design problem is to reduce the manufacturing cost of the welded beam while ensuring safety performance, and the four variables to be optimized for this problem are the weld seam width h, the length of the connecting beam Ls, the height of the connecting beam ts, and the thickness of the connecting beam b55.
The objective function is
The internal constraint parameters include shear stress τ, beam bending stress σ, beam deflection β, buckling load W, internal pressure E on the welded beam, external pressure G on the welded beam, external length of the beam L, partial load amount M, and axial surface force U. The internal constraint parameters are as follows: τmax is 13,600 N, σmax is 30,000 N, βmax is 0.25 m, W is 6,000 N, G is 1.2 × 107 N. The relationship between partial parameters and variables is56: τmax is 14 cm, and E is 3 × 107 N. The relationship between partial parameters and variables is Ref.56: τmax is 1.2 × 107 N. L is 14 cm, and E is 3 × 107 N. Some of the parameters are related to the variables as Ref.56.
The constraints are:
Boundary constraints:
The SCAGTO algorithm is compared with six algorithms, including Whale Optimisation Algorithm (WOA), Harris Hawk Algorithm (HHO), Grey Wolf Optimisation Algorithm (GWO), ALO and AVOA. Each algorithm is run independently for 50 times, and the average of the results is taken as the optimal solution. The iterative process of the seven algorithms to find the optimal solution is shown in Fig. 7. The simulation experiments in the previous section have verified that the SCAGTO algorithm has a good performance on the unconstrained test function, and the welded beam design problem as a classical constrained problem can prove that the SCAGTO algorithm is also superior in solving the constrained problem. In the experiments Table 9 lists the experimental results of SCAGTO and other six algorithms in solving the welded beam design problem.
It can be seen that the SCAGTO algorithm obtains the largest weld seam width, the smallest beam length, the moderate beam width and beam thickness, and the smallest minimum cost, which indicates that SCAGTO is more advantageous in solving the welded beam design problem.
By solving the above two engineering problems, it is further verified that the SCAGTO algorithm can find a better solution in the actual engineering problems, which has a high value of engineering applications.
Conclusions
In this paper, an improved artificial gorilla troop optimization algorithm (SCAGTO) that combines the sine–cosine algorithm and the Cauchy variant is proposed. To overcome the problem of gorilla stasis in the later stages of the search caused by insufficient population diversity, a refractive backward learning mechanism is introduced in the population initialization. Additionally, a positive cosine mechanism, a nonlinear decreasing search factor, and a weight factor are added to the gorilla discoverer's position to better address the shortcomings of the AGTO algorithm in balancing global and local optimization. Cauchy's variation in the gorilla follower is utilized to mutate the current optimal individual, thereby expanding the feeding range of the gorillas and consequently enhancing the global optimization accuracy and speed of the AGTO algorithm. The SCAGTO algorithm is examined using 30 classical test functions and compared in terms of convergence speed and accuracy tests with other algorithms and the latest gorilla algorithm improvement strategies. The results indicate that the Gorilla search algorithm, which incorporates positive cosine and Cauchy variants, exhibits enhanced performance in global optimization and local exploitation, thereby validating the effectiveness and reliability of the improvement strategy.
The simulation experiments employ higher-dimensional benchmark functions to test the optimization performance of the improved algorithm, while other improved SCAGTO algorithms and popular algorithms are selected for comparison. The experimental results reveal that SCAGTO demonstrates better convergence speed and accuracy for different types of test functions, showcasing a certain degree of competitiveness and stability. Finally, we verify the practical problem-solving capabilities of the improved algorithm through two classical engineering design problems, namely, pressure vessel optimization and welded beam design. The results show that SCAGTO can be applied to solve practical problems and holds promise for engineering applications. The SCAGTO algorithm exhibits certain advantages in optimizing the pressure vessel design problem and the welded beam design problem, confirming the superior optimization capabilities and engineering practicality of the SCAGTO algorithm. However, the introduction of SCAGTO inevitably leads to an increase in running time. Therefore, the future work direction is to make continuous improvements on the existing basis, ensuring optimization performance while reducing running time overhead and enhancing computational efficiency. Secondly, SCAGTO can be applied to multi-objective optimization and further explored in conjunction with practical problems. The follow-up work considers the in-depth application of SCAGTO to other mechanical process optimization designs for the resolution of practical problems.
Data availability
The data that support the findings of this study are available from the corresponding author upon request. There are no restrictions on data availability.
References
Tang, J., Liu, G. & Pan, Q. A review on representative swarm intelligence algorithms for solving optimization problems: Applications and trends. IEEE/CAA J. Autom. Sin. 8(10), 1627–1643 (2021).
Moayedi, H., Nguyen, H. & Kok, F. L. Nonlinear evolutionary swarm intelligence of grasshopper optimization algorithm and gray wolf optimization for weight adjustment of neural network. Eng. Comput. 37(2), 1265–1275 (2021).
Yue, Y. et al. Review and empirical analysis of sparrow search algorithm. Artif. Intell. Rev. 56(10), 10867–10919 (2023).
Arafat, M. Y. & Moh, S. Localization and clustering based on swarm intelligence in UAV networks for emergency communications. IEEE Internet Things J. 6(5), 8958–8976 (2019).
El-shafeiy, E. et al. A clustering based Swarm Intelligence optimization technique for the Internet of Medical Things. Expert Syst. Appl. 173, 114648 (2021).
Nama, S. et al. Boosting particle swarm optimization by backtracking search algorithm for optimization problems. Swarm Evol. Comput. 79, 101304 (2023).
Yue, Y. et al. Towards an optimal KELM using the PSO-BOA optimization strategy with applications in data classification. Biomimetics 8(3), 306 (2023).
Nama, S. & Saha, A. K. A bio-inspired multi-population-based adaptive backtracking search algorithm. Cogn. Comput. 14(2), 900–925 (2022).
Cao, L. et al. An energy-saving and efficient deployment strategy for heterogeneous wireless sensor networks based on improved seagull optimization algorithm. Biomimetics 8(2), 231 (2023).
Saha, A., Nama, S. & Ghosh, S. Application of HSOS algorithm on pseudo-dynamic bearing capacity of shallow strip footing along with numerical analysis. Int. J. Geotech. Eng. 4, 1298–1311 (2019).
Nama, S. & Saha, A. K. A new parameter setting-based modified differential evolution for function optimization. Int. J. Model. Simul. Sci. Comput. 11(04), 2050029 (2020).
Nama, S. A novel improved SMA with quasi reflection operator: Performance analysis, application to the image segmentation problem of Covid-19 chest X-ray images. Appl. Soft Comput. 118, 108483 (2022).
Sharma, S. et al. mLBOA: A modified butterfly optimization algorithm with lagrange interpolation for global optimization. J. Bionic Eng. 19(4), 1161–1176 (2022).
Sharma, S. et al. A mixed sine cosine butterfly optimization algorithm for global optimization and its application. Clust. Comput. 25(6), 4573–4600 (2022).
Nama, S., Saha, A. K. & Sharma, S. A hybrid TLBO algorithm by quadratic approximation for function optimization and its application. In Recent trends and Advances in Artificial Intelligence and Internet of Things (eds Balas, V. E. et al.) 291–341 (Springer International Publishing, 2020).
Nama, S. et al. Hybrid moth-flame optimization algorithm with slime mold algorithm for global optimization. In Handbook of Moth-Flame Optimization Algorithm: Variants, Hybrids, Improvements, and Applications (ed. Nama, S.) 155–176 (CRC Press, 2022).
Chakraborty, S. et al. HSWOA: An ensemble of hunger games search and whale optimization algorithm for global optimization. Int. J. Intell. Syst. 37(1), 52–104 (2022).
Cao, L., Chen, H., Chen, Y., Yue, Y. & Zhang, X. Bio-inspired swarm intelligence optimization algorithm-aided hybrid TDOA/AOA-based localization. Biomimetics 8(2), 186 (2023).
Wang, X. et al. Path planning of scenic spots based on improved A* algorithm. Sci. Rep. 12(1), 1320 (2022).
Xia, J. et al. Performance optimization of support vector machine with oppositional grasshopper optimization for acute appendicitis diagnosis. Comput. Biol. Med. 143, 105206 (2022).
Zhang, X. et al. Many-objective evolutionary algorithm based agricultural mobile robot route planning. Comput. Electron. Agric. 200, 107274 (2022).
Aribowo, W. et al. Intelligent control of power system stabilizer based on archimedes optimization algorithm-feed forward neural network. Int. J. Intell. Eng. Syst. 14(3), 43–53 (2021).
Bai, Y., Cao, L., Chen, B., Chen, Y. & Yue, Y. A novel topology optimization protocol based on an improved crow search algorithm for the perception layer of the internet of things. Biomimetics 8(2), 165 (2023).
Abdollahzadeh, B., Soleimanian Gharehchopogh, F. & Mirjalili, S. Artificial gorilla troops optimizer: A new nature-inspired metaheuristic algorithm for global optimization problems. Int. J. Intell. Syst. 36(10), 5887–5958 (2021).
Ramadan, A. et al. The probabilistic optimal integration of renewable distributed generators considering the time-varying load based on an artificial gorilla troops optimizer. Energies 15(4), 1302 (2022).
El-Dabah, M. A. et al. Robust parameters tuning of different power system stabilizers using a quantum artificial gorilla troops optimizer. IEEE Access 10, 82560–82579 (2022).
El Houd, A. et al. Swarm intelligence-based framework for accelerated and optimized assembly line design in the automotive industry. J. Intell. Manuf. 7(1), 1–15 (2023).
Xiao, Y. et al. An improved gorilla troops optimizer based on lens opposition-based learning and adaptive β-hill climbing for global optimization. Cmes-Comput. Model. Eng. Sci. 131(2), 815–850 (2022).
Wu, T. et al. A modified gorilla troops optimizer for global optimization problem. Appl. Sci. 12(19), 10144 (2022).
Wang, L., Han, S. & Pang, M. Improved artificial gorilla troops optimizer with chaotic adaptive parameters-application to the parameter estimation problem of mixed additive and multiplicative random error models. Meas. Sci. Technol. 35(2), 025203 (2023).
Mostafa, R. R. et al. An improved gorilla troops optimizer for global optimization problems and feature selection. Knowl.-Based Syst. 269, 110462 (2023).
Gomaa, I. et al. A novel enhanced gorilla troops optimizer algorithm for global optimization problems. Int. J. Ind. Eng. Prod. Res. 34(1), 1–9 (2023).
Rizk-Allah, R. M. & Hassanien, A. E. A comprehensive survey on the sine–cosine optimization algorithm. Artif. Intell. Rev. 56(6), 4801–4858 (2023).
Elymany, M. M., Enany, M. A. & Elsonbaty, N. A. Hybrid optimized-ANFIS based MPPT for hybrid microgrid using zebra optimization algorithm and artificial gorilla troops optimizer. Energy Convers. Manag. 299, 117809 (2024).
Shaheen, A. M. et al. Optimal parameters extraction of photovoltaic triple diode model using an enhanced artificial gorilla troops optimizer. Energy 283, 129034 (2023).
Gürses, D. et al. Artificial gorilla troops algorithm for the optimization of a fine plate heat exchanger. Mater. Test. 64(9), 1325–1331 (2022).
Alsolai, H. et al. Enhanced artificial gorilla troops optimizer based clustering protocol for UAV-assisted intelligent vehicular network. Drones 6(11), 358 (2022).
Fathy, A. & Yousri, D. An efficient artificial gorilla troops optimizer-based tracker for harvesting maximum power from thermoelectric generation system. Appl. Thermal Eng. 234, 121290 (2023).
Singh, M. K. & Verma, Y. K. Refraction reverse learning based hybrid Namib Antenna Beetle Optimization for resource allocation in NB-IoT platform. Multim. Tools Appl. 11(1), 1–27 (2023).
Long, W. et al. Refraction-learning-based whale optimization algorithm for high-dimensional problems and parameter estimation of PV model. Eng. Appl. Artif. Intell. 89, 103457 (2020).
Al-Betar, M. A. et al. Economic load dispatch using memetic sine cosine algorithm. J. Ambient Intell. Humaniz. Comput. 14(9), 11685–11713 (2023).
Seyyedabbasi, A. WOASCALF: A new hybrid whale optimization algorithm based on sine cosine algorithm and levy flight to solve global optimization problems. Adv. Eng. Softw. 173, 103272 (2022).
Shang, C., Zhou, T. & Liu, S. Optimization of complex engineering problems using modified sine cosine algorithm. Sci. Rep. 12(1), 20528 (2022).
Li, K. et al. Grey Wolf Optimization algorithm based on Cauchy-Gaussian mutation and improved search strategy. Sci. Rep. 12(1), 18961 (2022).
Fan, M. et al. Improved multi-objective differential evolution algorithm based on a decomposition strategy for multi-objective optimization problems. Sci. Rep. 12(1), 21176 (2022).
Chakraborty, S. et al. A novel improved whale optimization algorithm to solve numerical optimization and real-world applications. Artif. Intell. Rev. https://doi.org/10.1007/s10462-021-10114-z (2022).
Alabool, H. M. et al. Harris hawks optimization: A comprehensive review of recent variants and applications. Neural Comput. Appl. 33, 8939–8980 (2021).
Al Thobiani, F. et al. A hybrid PSO and Grey Wolf Optimization algorithm for static and dynamic crack identification. Theor. Appl. Fract. Mech. 118, 103213 (2022).
Abualigah, L. et al. Ant lion optimizer: A comprehensive survey of its variants and applications. Arch. Computat. Methods Eng. 28, 1397–1416 (2021).
Abdollahzadeh, B., Gharehchopogh, F. S. & Mirjalili, S. African vultures optimization algorithm: A new nature-inspired metaheuristic algorithm for global optimization problems. Comput. Ind. Eng. 158, 107408 (2021).
Piotrowski, A. P., Napiorkowski, J. J. & Piotrowska, A. E. Choice of benchmark optimization problems does matter. Swarm Evol. Computat. 83, 101378 (2023).
Mohamed, A. W. et al. Evaluating the performance of meta-heuristic algorithms on CEC 2021 benchmark problems. Neural Comput. Appl. 35(2), 1493–1517 (2023).
Zhou, W. et al. Review on optimization design, failure analysis and non-destructive testing of composite hydrogen storage vessel. Int. J. Hydrogen Energy 47(91), 38862–38883 (2022).
Zhang, L., Yu, C. & Liu, B. Surrogate-based structural optimization design of large-scale rectangular pressure vessel using radial point interpolation method. Int. J. Press. Vessels Pip. 197, 104638 (2022).
Bhadoria, A., Marwaha, S. & Kamboj, V. K. A solution to statistical and multidisciplinary design optimization problems using hGWO-SA algorithm. Neural Comput. Appl. 33, 3799–3824 (2021).
Kaveh, A., Almasi, P. & Khodagholi, A. Optimum design of castellated beams using four recently developed meta-heuristic algorithms. Iran. J. Sci. Technol. Trans. Civil Eng. 47(2), 713–725 (2023).
Acknowledgements
This work was supported in part by the Natural Science Foundation of Zhejiang Province under Grant LY23F010002, the Industrial Science and Technology Project of Yueqing City under Grant 2022G007, in part by Major scientific and technological innovation projects of Wenzhou Science and Technology Plan under Grant ZG2021021, Key Education Reform Projects for Shanghai Vocational Education of 2023.
Author information
Authors and Affiliations
Contributions
Conceptualization, S.W.; writing—review and editing, Y.Y.; validation, L.C.; data curation, Y.C.; writing—original draft preparation, Y.Y. methodology, C.C.; software, W.Z.; All authors read and agreed to the published version of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Wang, S., Cao, L., Chen, Y. et al. Gorilla optimization algorithm combining sine cosine and cauchy variations and its engineering applications. Sci Rep 14, 7578 (2024). https://doi.org/10.1038/s41598-024-58431-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-024-58431-x
Keywords
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.