Abstract
With the increasing complexity and difficulty of numerical optimization problems in the real world, many efficient meta-heuristic optimization methods have been proposed to solve these problems. An improved Fireworks Algorithm (FWA) with elitism-based selection and optimal particle guidance strategies (EO-FWA) was proposed to address the limitations of the traditional FWA in terms of optimization accuracy and convergence speed, which not only improves the efficiency of the searching agent but also accelerates its convergence speed. In addition, by adopting boundary-based mapping rules, EO-FWA eliminates the randomness of traditional modulo operation mapping rules, which improves its stability and reliability. Twelve benchmark functions in CEC-BC-2022 are used to test the performance of EO-FWA, and the welded beam design problem is optimized at the end. The results show that EO-FWA exhibits stronger competitiveness than other algorithms in dealing with high-dimensional optimization problems and engineering optimization problem, and it can balance exploitation and exploration effectively so as to prevent the algorithm from falling into local optimal solutions.
Keywords
Introduction
The demand for solving complex problems has been increasing over time. In recent years, bionic-based meta-heuristic algorithms have emerged as a research hotspot, providing faster methods for solving complex optimization problems [1]. Genetic Algorithm (GA), proposed by Prof. Holland in 1975, is the pioneer of bionic algorithms [2]. Since then, algorithms such as Particle Swarm Algorithm (PSO) proposed by Dorigo in 1995 [3], Artificial Bee Colony Algorithm (ABC) proposed by Karabog in 2005 [4], and Cat Swarm Algorithm (CSO) [5] proposed by Shu-An Chu in 2006 are typical bionic algorithms for solving optimization problems.In 2009, Xin-She Yang and Suash Deb proposed the Cuckoo Search (CS) [6] inspired by the unique breeding and Lévy flight characteristics of cuckoos. In 2015, Mirjalili et al. proposed Ant-Lion Optimizer (ALO) [7], which shows superiority in solving complex optimization problems. In 2016, Mirjalili proposed Sine Cosine Algorithm (SCA) [8], which utilizes the sine and cosine functions to perform the individual updating, and the parameter settings are less. In 2023, Shoyab Ali et al. proposed a new hybrid meta-heuristic algorithm combining the marine predator algorithm and the sine-cosine algorithm to optimize the hybrid active power filter parameters and improve power filtering for power generators [9]. In the same year, Rabia et al. fused GA and CS to develop a deep learning model to effectively detect fraudulent transactions and improve detection efficiency and performance [10].
Although there are many complex optimization problems for which it is still difficult to find the best solutions, it is this challenge that motivates researchers and scholars to keep exploring real-world optimization problems [11–13]. The wide application of swarm intelligence algorithms, such as in the fields of combinatorial optimization [14], function optimization [15], multi-objective function optimization [16], three-bar truss problem [17], cantilever beam design problem [18], and gear train design problem [19], fully proves the great contribution of such algorithms in solving optimization problems. However, these algorithms still show certain limitations and unreliability when dealing with practical problems. These limitations have prompted scholars to carry out more in-depth research and improvement to enhance the efficiency and reliability of the algorithms [20].
In order to solve the common problem of falling into local optimal in meta-heuristic algorithms, many scholars have conducted in-depth studies and proposed innovative improvement schemes [21–23]. Among them, Firework Algorithm (FWA) [24], proposed by Mirjalili et al. in 2010, is particularly good at solving function optimization problems. FWA is inspired by the phenomenon of numerous sparks produced when fireworks explode, and an efficient search mechanism is established by simulating this process. With the development of FWA, researchers have proposed a variety of improvement methods. Li et al. optimized the explosion effect of FWA by adaptive amplitude method and proposed the adaptive fireworks algorithm (AFWA) [25]. Zheng et al. on the other hand, improved its search capability by utilizing dynamic explosion amplitude through dynamic search in FWA (dynFWA) [26]. In order to enhance the directionality of the search operator and to utilize the location information of the optimal individuals, Tao et al. proposed an improved FWA with directional function [27]. In addition, to address the inefficiency and uneven resource allocation problem of cloud computing resource task scheduling, Chen et al. fused the improved FWA with ABC to form IFWA-ABC, which effectively improves the allocation efficiency of cloud computing resources [28]. Aiming at the problem of slow convergence in the late stage of FWA, Teng et al. proposed an improved method based on the μ-law characteristic curve, which balances the local and global searching ability and enhances the searching efficiency through the information exchange strategy [29]. For the problem of coagulant dosage control in waterworks, Li et al. proposed an improved FWA (IFWA) to optimize the weights and thresholds of BP neural network, which improves its search ability and optimization accuracy [30].
In this paper, an improved FWA (EO-FWA) was proposed, whose design concept is based on elitism-based selection strategy and optimal particle guidance mechanism, aiming to address the limitations of traditional FWA in terms of optimization accuracy and convergence speed. Although previous improved algorithms, such as Adaptive Fireworks Algorithm (AFWA) and Dynamic Search Fireworks Algorithm (dynFWA), have achieved remarkable results in improving the search efficiency and reinforcing the explosion effect, they are still deficient in maintaining the balance between the search accuracy and efficiency. EO-FWA effectively achieves such a balance by integrating the elitist-based selection strategy and the optimal particle guidance mechanism, thus enhancing the overall performance of the algorithm. In order to comprehensively evaluate the performance of EO-FWA, it was compared with some recent state-of-the-art algorithms, including Arithmetic Optimization Algorithm (AOA), Sparrow Search Algorithm (SSA), Student Psychological Optimization Algorithm (SPBO) and Trapped Swarm Optimization Algorithm (TSA). During the comparison process, 12 test functions from CEC-BC-2022 are selected, which are widely recognized as comprehensive tests of the convergence ability of optimization algorithms. This series of tests aim to verify the effectiveness and efficiency of EO-FWA in dealing with complex optimization problems.
Fireworks algorithm
Inspiration of fireworks algorithm
Simple principles that exist in nature and life can be used as inspiration for heuristic algorithms, as are fireworks algorithms. The moment firework explodes in the air creates sparks, and FWA is inspired by this phenomenon. The process of fireworks explosions has the characteristics of instantaneous, concurrent and widely distributed. Regarding the sky as the search space for optimization problems and the sparks generated by the explosion as search agents, the process of fireworks explosion can be simply converted into the mathematical model of FWA. Thus, random factors and selection strategies are introduced to generate a firework algorithm with a parallel search method. The inspiration of FWA is shown in Fig. 1. It shows that fireworks will explode within a certain range to produce sparks. FWA has the advantages of instantaneity and concurrent by simulating the explosion process.

Inspiration of firework algorithm.
In order to create a mathematical model based on the phenomenon of fireworks explosion, FWA is designed with four components, namely the explosion operator, Gaussian mutation operation, modulus operation mapping, and selection strategy. The composition of the firework algorithm is shown in Fig. 2.

The composition of the firework algorithm.
Firstly, the explosion operator is the core of FWA, which includes the explosion radius, the number of explosion sparks, and displacement operations. Fireworks can generate a certain number of sparks within the radius of the explosion through the operation of the explosion operator. Secondly, the Gaussian mutation operation makes the distribution of search agents more ergodic. Thirdly, if the search agent is beyond the scope of the search space, the modulo operation can map the search agent back into the search space. Finally, the algorithm selects eligible search agents as the next-generation population to continue execution by selecting strategies. The selection strategy of FWA is a distance-based selection strategy, which guarantees the diversity of the population.
As the core part of FWA, the explosion operator can initially realize the phenomenon of fireworks explosion. Explosion operator include explosion radius, number of sparks, and displacement operations. The explosion radius defines the scope of the fireworks explosion, and the number of sparks defines the number of sparks generated by the explosion. The equations for calculating the explosion radius and the number of sparks are described as follows:
After the above operations, fireworks can generate sparks within the explosion range. However, the locations of sparks are not randomly distributed, and the distribution of search agents may be too concentrated or scattered. Therefore, the displacement operation is used to make the sparks randomly distributed in the explosion range, which increases the traversal of the population. The operation is defined as:
In general, the optimization problems define constraints that divide the search space into feasible and unfeasible domains. Optimization problems are ineffective in the unfeasible domain. The sparks may exceed the search space through the explosion operator and Gaussian mutation operation. Sparks in the unfeasible domain are invalid, so a method needs to be taken to pull them back into the search space. FWA adopts modulo operation mapping rules to handle sparks outside the feasible region, which can be described as:
The can select eligible search agents to continue execution by selecting strategies. FWA first saves the search agent with the best fitness value, and the rest of the search agents adopt the distance-based selection strategy. The distance-based selection strategy needs to calculate the distance between the search agent and other agents, that is to say:
It can be seen from Equation (6)-(7) that the farther a spark is from other sparks, the greater the probability of being selected as the next generation. The distance-based selection strategy enables search agents to remain in the search space as widely as possible so as to ensure the traversal of the population.
Local exploitation and global exploration are two indispensable stages of the optimization algorithm. In the exploitation phase, the search agent searches towards the most promising area in the solution space in order to ensure the optimization accuracy of the algorithm. However, an excessively high exploitation capability will make the algorithm miss the global optimal value and fall into the local optimal. In the exploration stage, search agents are distributed as widely as possible in the search space so as to ensure the traversal of search agents and avoiding falling into local optimal values. However, an excessively high global exploration capability will reduce the convergence speed of the algorithm. Finding the right balance between local exploitation and global exploration can take into account the optimization accuracy and convergence speed of the algorithm. FWA also designed the adaptive balancing strategies for exploitation and exploration. It can be seen from Equation (1)-(2) that the explosion radius is inversely proportional to the fitness value of the fireworks. The number of sparks is directly proportional to the fitness value of the fireworks. In other words, if the fitness value of the fireworks is excellent, the explosion radius is small and the number of sparks is large. A careful search within a small range reflects the exploitative capabilities of the algorithm. The comparison of the fireworks explosion effect is shown in Fig. 3. The explosion effect produced by a excellent fitness value is shown Fig. 3 (a). If the firework fitness value is poor, the explosion radius is large, and the number of sparks is small. The extensive search reflects the exploration capabilities of the algorithm. The explosion effect caused by poor fitness value is shown in Fig. 3 (b). It shows that the explosion radius and the number of sparks can be adaptively changed according to the fitness value in order to ensure a balance between exploitation and exploration.

Comparison of fireworks explosion effects.
It can be known from the mathematical model and pseudo code that FWA initializes a set of random solutions through an explosion operator, and then continuously improves this set of random solutions through Gaussian mutation and selection strategy. The fireworks algorithm has a simple structure and is easy to implement. At the same time, FWA can produce different explosion effects according to the fitness value, which can balance the exploration and exploitation stages. It saves the best search agent in each iteration. Even if the quality of other search agents becomes worse, it can ensure that the current optimal solution is in the population. However, the basic strategy of FWA has flaws, and it is necessary to introduce improved strategies to improve the optimization ability of the algorithm. In addition, the influence of the main parameters (a, b, L) on the performance of the algorithm also needs further study. The flow chart of FWA is shown in Fig. 4.

The flow chart of FWA.
Elite-based selection strategy
Generally, after iterative searching, the quality and location of search agents in the solution space are different. The optimization algorithm saves the eligible search agents through selection strategy and continues to execute. FWA uses a distance-based selection strategy. The farther an individual is from other individuals, the greater the probability that it will be selected as the next generation. The purpose of the distance-based selection strategy is to allow search agents to be distributed as widely as possible in the solution space so as to increase the global explorability of the algorithm. However, calculating the distance between every two individuals increases the computational cost and may reduce the convergence speed of the algorithm. Genetic algorithm (GA) [2] is inspired by Darwin’s theory of evolution. Through combination, crossover, and mutation, the best individuals are retained and the poor individuals are eliminated. This mechanism ensures that the new population is always better than the previous generation. In order to ensure the quality of the next generation population and improve the convergence speed, inspired by genetic algorithm, this paper proposes a selection strategy based on elitism. The idea of selection strategy based on elitism is to save only the first N elite individuals with the best fitness value, so the probability of an individual being selected as the next generation is only related to the fitness value based on Equation (8).
It can be seen from Equation (8) that the better the individual’s fitness value, the greater the probability of being selected as the next generation. This mechanism guarantees that the first N elite individuals with the best fitness value can be used as the next generation. Elitism-based selection strategy not only improves the quality of the population through selective selection, but also overcomes the shortcomings of the original algorithm, which results in slow convergence due to the large amount of computation. It should be noted that there are usually a large number of local optimal values over the optimization problems. The selection strategy based on elitism only selects the first N optimal individuals, which may destroy the diversity of the population and cause the algorithm to fall into the local optimal value. Increasing parameters a and b appropriately can avoid the above problems. Increasing the explosion radius and the number of sparks can enhance the effect of fireworks explosions and prevent search agents from falling into local optimums. The discussion of parameters a and b will be discussed in details in Section 4.2.
In swarm intelligence-based algorithms, search agents usually communicate through information in the search space. For example, the Ant Colony Optimization (ACO) [31] simulates the ant colony to release information by releasing pheromones to find the shortest path to the food source in different environments. The Gray Wolf Optimizer (GWO) [32] assigns individual levels based on fitness values, and higher-level individuals guide lower-level individuals to perform optimization. The information exchange mechanism enables search agents to explore different regions based on the return value of the solution space, so the SI-based algorithm has better optimization performance. However, there is no information exchange mechanism in FWA. The development trend of search agents towards excellent areas is too slow, which will reduce the optimization accuracy and convergence speed of the algorithm. Inspired by the swarm intelligence-based algorithms, this paper proposes an optimal particle guidance mechanism to enable FWA to achieve information exchange between individuals. First, calculate the fitness value of each search agent, and use the search agent with the best fitness value as the optimal particle. Then, calculate the distance between other search agents and the optimal particle. Finally, the search agent moves closer to the optimal particle based on the distance. This strategy can be described as follows.

The process of the agents moving close to the optimal particle.
It can be seen from Equation (9) that the search agent guided by the optimal particle can develop towards a promising area in the search space. This mechanism increases the local exploitation capability of the algorithm. However, there are a large number of local optimal values in the search space. When the optimal particles fall into the local optimal values, it may mislead the entire population to move closer to the local optimal values. At this time, the global exploration capability and optimization accuracy of the algorithm will decrease. Therefore, this paper introduces the balance factor c3 into Equation (9), so that the optimal particle guidance mechanism can balance local exploitation and global exploration. It can be defined as:
At this time, the search agent can explore the area outside the optimal particle, so that the search agent reduces the probability of falling into the local optimal value, and increases the global exploration ability of the algorithm. The influence of the balance factor c3 on the next search area of the search agent is shown in Fig. 6. It shows that the search agent can search different areas according to c3. When c3 = 1, the search agent moves closer to the area where the optimal particle is located. When c3 = –1, the search agent explores the area outside the optimal particle. The introduction of the balance factor c3 enables the optimal particle guidance mechanism to balance exploitation and exploration.

Impact of parameter c3 on searching agents.
During the optimization process, search agents may be out of the search space. Search agents that exceed the search space are invalid. Ineffective search agents will reduce the number of populations and reduce the search ability of the algorithm. Therefore, the optimization algorithm needs to process search agents outside the feasible domain. Generally, the algorithm can map search agents outside the feasible domain back to the feasible domain or newly generate the same number of search agents to ensure that the number of populations remains unchanged. For search agents outside the feasible domain, FWA adopts modulo operation mapping rules. However, it may map search agents outside the feasible region to near the optimal value, which will inadvertently increase the optimization precision of the algorithm. This advantage is not brought by the algorithm itself, but a coincidence. In order to reduce the convenience brought by accident to the algorithm, this paper proposes a boundary-based mapping rule shown in Equation (14) to deal with search agents outside the feasible region.
The modulo operation mapping rules of the original FWA are shown in Fig. 7(a). The boundary-based mapping rules are shown in Fig. 7(b). It can be seen from Fig. 7 that if the search agent exceeds the range of the search space, the modulo operation mapping rule may map the search agent to near the optimal value. The boundary-based mapping rules map search agents near the boundary, witch will avoid the impact of randomness on the algorithm. This mapping rule shows the optimization ability of the algorithm more objectively.

Comparison of two mapping rules.
Aiming at the shortcomings of FWA, such as slow convergence speed and low optimization accuracy, this paper proposes an improved fireworks algorithm based on elitism-based selection strategy and optimal particle guidance (EO-FWA). It firstly introduced a selection strategy based on elitism. This selection strategy can not only improve the quality of search agents, but also reduce the amount of calculations and improve the convergence speed, which makes up for the shortcomings of distance-based selection strategies. Secondly, this paper proposes an optimal particle-guided information exchange mechanism that enables search agents to exploit and explore based on the location of the optimal particle. This mechanism guarantees the algorithm can balance between exploitation and exploration. Finally, EO-FWA improves the mapping rules of the original algorithm, and uses the boundary-based mapping rules to eliminate the contingency brought by the modulo operation mapping rules. The flowchart of EO-FWA is shown in Fig. 8.

Flow chart of EO-FWA.
Time complexity is the calculation workload required to execute the algorithm, and it has important reference value for evaluating the time cost of the algorithm. The time complexity is usually expressed in big O symbols. In meta-heuristic algorithms, the time complexity depends on the number of operating units of the algorithm. For FWA, the time complexity mainly depends on the number of initial populations, the number of iterations, and the composition of FWA. The time complexity of the improved firework algorithm EO-FWA depends not only on the structure of the original algorithm, but also on the improvement strategy. In order to evaluate the impact of the improved strategy on the time cost of the algorithm, the time complexity of the FWA and EO-FWA was analyzed.
The time complexity of each operation unit of the FWA is defined as: Initialize N populations to be distributed in a D-dimensional search space, which needs to run ND times. Calculate the explosion radius A
i
and the number of sparks S
i
of each firework, which needs to be run 2.ND times. The explosion operator is executed to generate M sparks in the D-dimensional search space, which needs to be run M.D times. Select L sparks to perform Gaussian mutation operation, which needs to be run L.D times. The distance-based selection strategy saves N of the N + M search agents, which needs to be run log(N + M)!times. Select the optimal value output from the current population, which needs to be run [N.(N–1)]/2times.
Each of the above operation units goes through T iterations, so the total time complexity of the FWA is
Pseudo-code: Initialize fireworks position Initialize parameters X
i
(i = 1,2, . . . ,n), Max_iter, etc. Calculate the Fitness Function for the candidate solutions (X) t = 1 While (t < Max_iter) do For each firework agent do Update A, and S using Eq. (1)and (2) Fireworks perform explosion operator to generate sparks Perform Gaussian mutation on L sparks using Eq. (4) If sparks out of search space then Perform the boundary-based mapping rule by using Eq.(14) End if End for Select the next-generation search agents by the Eq.(8) Calculate the fitness of each search agent Select the optimal particle F
t
Update the position of the search agents by the Eq.(12) t = t+1 End while Return the best solution (Best(X)).
Simulation experiments and result analysis
In order to verify the effectiveness of the improved FWA in optimizing performance, 12 test functions of CEC-BC-2022 are used for detailed comparative analysis. The experimental design is described as follows. The experiments of each test function are carried out independently for 30 times, and the average value is taken to ensure the reliability and consistency of the results. In each experiment, the number of iterations of the improved algorithm was limited to 1000, while the size of the population was set as 40. In order to fully evaluate the performance of the improved algorithm, it was compared with several known state-of-the-art optimization algorithms, including Arithmetic Optimization Algorithm (AOA), Sparrow Search Algorithm (SSA), Student Psychological Optimization Algorithm (SPBO) and Tucked Swarm Optimization Algorithm (TSA). In this part of the experiment, each algorithm was run under the same conditions. 30 experiments were executed independently, the population size was set as 40, and the number of iterations was capped at 1000. Such a design aims to ensure fairness and consistency in the comparison. In addition, this study further explores the application of the improved FWA to real engineering optimization problem. By finding optimal solutions to these problems, we further verify the effectiveness and practicality of the improved FWA based on elitism and optimal particle guidance strategy in practical applications.
CEC-BC-2022
In this study, the experiments were conducted by using 12 benchmark functions from the CEC-BC-2022 suite, as detailed in Table 1. These functions are categorized into different types, each serving a specific purpose in evaluating the algorithm’s capabilities. Function F1 is a unimodal function, characterized by a single global optimum within its solution space. This type of function is crucial for assessing the algorithm’s search precision and convergence speed. Functions F2 to F5 are multimodal, featuring multiple local optima. This characteristic makes algorithms prone to getting trapped in local optima, thus serving as a stringent test of the algorithm’s optimization ability. Functions F6 to F8 are hybrid functions, and Functions F9 to F12 are composition functions. The inclusion of these diverse function types provides a comprehensive evaluation of the algorithm’s performance across different problem landscapes, illustrating its efficacy in various optimization scenarios.
Properties and summary of the CEC2022 test functions
Properties and summary of the CEC2022 test functions
In exploring the performance optimization of the FWA, three key parameters were focused on: the frequency at which Gaussian mutations are performed (L), the parameter controlling the radius of the explosion (a), and the parameter for the number of sparks (b). A detailed comparative analysis of these parameters was performed by comparing tests by using 12 test functions of the CEC-BC-2022 functional test set, with each set of experiments run independently for 30 runs and averaged, and the results of the experiments are shown in Table 2-3. For the Gaussian mutation frequency parameter L, three different settings of L = 10, L = 15 and L = 20 were tested. The Gaussian mutation serves to provide excellent localized search capability by enabling the search process to focus on the local region around the current solution. Experimental results show that FWA performs best in terms of optimization accuracy and convergence speed at L = 15. We infer that an appropriate increase in the value of L can improve the local search efficiency of the algorithm without compromising the global convergence. For parameter a, which controls the blast radius, and parameter b, which controls the number of sparks, three sets of settings were compare, that is, a = 5, b = 10; a = 10, b = 20; a = 15, b = 30. Different combinations of parameters a and b have a significant effect on the explosion effectiveness and search range of the algorithm. If a is too large and b is too small, it will lead to the explosion effect being too sparse, which in turn reduces the algorithm’s ability to utilize locally. On the contrary, if a is too small and b is too large, the explosion effect is too centralized, which may weaken the global search ability of the algorithm. Through our experiments, we find that the setting of a = 15, b = 30 outperforms other combinations in terms of optimization accuracy and convergence speed, suggesting that the appropriate explosion intensity and number of sparks can help to balance the exploitation and exploration capabilities of the algorithm.
Performance comparison results of CEC-2022 function optimization
Performance comparison results of CEC-2022 function optimization
Performance comparison results of CEC-2022 function optimization
The Fireworks Algorithm (FWA), as an emerging swarm intelligence optimization algorithm, has demonstrated excellent performance in various fields. Nevertheless, the potential of FWA remains to be further explored in the face of complex optimization problems. In this study, four improvement schemes are proposed around the performance enhancement of FWA: FWA Change parameters, E-FWA, O-FWA and EO-FWA, focusing on enhancing its efficiency and accuracy in dealing with high-dimensional and multi-peak problems. Firstly, FWA with variable parameters improves the flexibility and adaptability of the algorithm by adjusting its parameters. Immediately after, E-FWA employs an elitist-based selection strategy aimed at enhancing the algorithm’s global search capability. O-FWA introduces an optimal particle guidance mechanism to strengthen the directionality and efficiency of the search. Ultimately, EO-FWA combines elitism and optimal particle guidance, and is committed to achieving a comprehensive performance optimization.
In order to verify the effectiveness of these strategies, 30 test functions of CEC-BC-2022 are selected for comparative testing in this study. Each group of experiments was run independently for 30 times, and the performance was measured by the average value, setting the maximum number of iterations to 1000 and the number of populations to 40. The experimental results are shown in Fig. 9 and Table 4. The experimental results show that all the improved strategies effectively improve the performance of FWA. Particularly noteworthy is that O-FWA outperforms FWA with only changing parameters on most of the tested functions, which indicates that the optimal particle-guided selection strategy has a significant advantage in improving the performance of the algorithm. Compared to O-FWA, E-FWA demonstrates the effectiveness of the elite-based selection strategy in compensating for the inadequacy of the distance-based selection strategy, while improving the search accuracy and efficiency. Among all the strategies, EO-FWA performs the best in both optimization accuracy and convergence speed, which fully validates the importance of combining multiple improvement strategies. The comprehensive advantages of EO-FWA emphasize the importance of introducing optimal particle guidance and elitist strategies in FWA. This combined strategy not only improves the global search capability of the algorithm, but also balances the dynamics of the algorithm between exploration and exploitation, ensuring an efficient and accurate optimization process. In addition, the excellent performance of EO-FWA demonstrates that when solving complex optimization problems, the combination of multiple strategies can significantly improve the performance of FWA more than a single strategy. These findings provide valuable guidance for future research and applications in FWA and lay the foundation for solving more complex optimization problems.

Convergence curves on optimization functions.
Performance comparison results of CEC-2022 function optimization
Figure 10 shows the convergence of the EO-FWA compared to FWA, AOA [33], SSA [34], SPBO [35] and TSA [36]. Table 5 lists the mean and standard deviation of these algorithms. Each algorithm is averaged over 30 runs, with a maximum number of 1000 iterations and a population size of 40. The multi-peak function has multiple local optima, which makes the algorithms easily fall into the local optima, and the test results of the multi-peak function can be a good indication of the algorithm’s ability to optimize the function. Compared with other algorithms, the improved FWA based on elitism and optimal particle bootstrapping is very effective, and the mean value of 11 out of 12 tested functions achieves the best result, and all the remaining ones achieve the best result except for the hybrid function F6, so the proposed algorithm has a very obvious advantage in solving function optimization. Meanwhile, nearly half of the EO-FWA was optimized with very good stability, except for F3, F6 and F12, the algorithms perform very well in terms of solution stability. Finally, this paper provides a comprehensive ranking of the optimization performance of each algorithm on the test functions based on the number of times the average value appears. By comparing their average rankings, it can be intuitively seen that EO-FWA has the best optimization performance and ranks first, AOA and FWA rank second and third, respectively.

Convergence curves of optimization functions.
Performance comparison results of CEC-2022 function optimization
In order to verify the effectiveness of EO-FWA in engineering optimization problem, this study applies it to the optimization of welded beam design. Engineering optimization problems usually involve a variety of constraints, so it is crucial to choose an appropriate constraint handling method. Among the many methods, penalty functions are widely adopted due to their low cost and easy operation. There are numerous types of penalty functions, including static, dynamic, annealing, adaptive, co-evolutionary and death penalty functions. In this study, the death penalty function was used to handle the constraints because it can effectively eliminate infeasible solutions in the optimization process. The main objective of the welded beam optimization is to minimize its fabrication cost while satisfying four important optimization constraints: shear stress, bending stress of the beam, buckling load and end deflection of the beam. The optimized variables include weld thickness, welded splint beam length, beam material height and beam material thickness. By setting these variables reasonably, not only the cost optimization can be achieved, but also the structural strength and functionality of the beam can be ensured. The objective function, constraints and optimization variables of the welded beam optimization problem can be expressed in Equation (15).
In order to comprehensively evaluate the performance of EO-FWA in solving complex engineering optimization problems, a variety of state-of-the-art optimization algorithms were selected for comparative analysis. These algorithms include Whale Optimization Algorithm (WOA) [33], Gravitational Search Algorithm (GSA) [34], Genetic Algorithm (GA) [35, 36] and Harmony Search (HS) [37]. In addition, some traditional optimization methods, such as stochastic, simplex, Davidon-Fletcher-Powell and continuous linear approximation methods [38] were introduced to increase the diversity and comprehensiveness of the comparison. In conducting the experiments for the welded beam optimization problem, the performance metrics of each algorithm are recorded in details. These metrics include convergence speed, solution quality, stability of the algorithms and adaptability to different problem sizes.
The results presented in Table 6 clearly show that EO-FWA excels in most of the metrics, and its performance is second only to that of WOA.This finding is particularly important because it indicates that EO-FWA is highly effective and reliable in dealing with complex real-world engineering problems. Further analyzing the performance of EO-FWA, it is particularly good at avoiding local optimal stagnation. This feature is especially critical for complex optimization problems, which are often filled with a large number of local optimal solutions, easily causing the algorithm to fall into local optimality instead of reaching the global optimum. EO-FWA effectively overcomes this problem through its unique search mechanism and adaptive tuning strategy, and is able to maintain a good balance of exploration and exploitation in a wide range of search spaces. Moreover, the superiority of EO-FWA is further demonstrated by comparing it with traditional optimization methods. Compared with traditional methods, such as the simplex method and the continuous linear approximation method, EO-FWA not only has a significant improvement in solution accuracy, but also is more efficient and flexible in dealing with complex, multivariate optimization problems. Overall, the experimental results show that EO-FWA is a powerful and reliable optimization tool. It is not only capable of solving engineering optimization problems efficiently, but also demonstrates excellent performance in a wide range of performance metrics. This is clearly demonstrated in comparisons with a wide range of modern and traditional optimization algorithms. Therefore, EO-FWA is a valuable choice for solving complex engineering optimization problems.
Simulation performance comparison
As a novel meta-heuristic algorithm, FWA has demonstrated excellent development capabilities in optimization problems in numerous domains. The improved fireworks algorithm (EO-FWA) proposed in this paper makes important innovations and optimizations based on the original algorithm. Firstly, an elitism-based selection strategy was introduced, which is centered on improving the quality and convergence speed of search agents. With the elitist selection strategy, the algorithm is able to efficiently filter out the dominant solutions and use them as the basis for subsequent iterations, thus accelerating the convergence process. Although this strategy increases the computational cost, the performance improvement it brings is obvious. Secondly, to address the lack of effective communication among search agents in traditional FWA, a novel information exchange mechanism was designed, that is, the optimal particle guidance mechanism. This mechanism allows the search agent to refer to and utilize known optimal solutions when exploring the space as a way to guide the search direction. This not only improves the search efficiency, but also maintains the balance between exploration and exploitation, and avoids the algorithm from over-focusing on the local region and neglecting the global search. In addition, in order to solve the instability that may be brought by random mapping in traditional FWA, EO-FWA improves the mapping rules and adopts a boundary-based mapping method. This approach reduces the uncertainty brought by randomness and enhances the robustness of the algorithm.
In experimental simulations, the algorithm was tested from multiple angles and verified the effects of the number of Gaussian mutations, explosion radius and number of sparks on the performance of the algorithm. The results show that increasing these parameters appropriately can significantly enhance the explosion effect and thus improve its exploitation. Through these experiments, it can be observed that diverse improvement strategies not only improve the optimization accuracy of FWA, but also significantly accelerate its convergence speed. Finally, the application of EO-FWA to high-dimensional function optimization and engineering optimization problem shows that it can effectively avoid falling into local optimums and exhibit strong performance in complex optimization problems. These experimental results not only enrich the theoretical study of FWA, but also provide a solid theoretical and empirical foundation for its promotion in practical applications.
In summary, the improved fireworks algorithm (EO-FWA) proposed in this paper shows significant advantages in both theory and practice, and provides an efficient and reliable new tool for solving complex optimization problems.
Footnotes
Acknowledgments
This work was supported by the Project by Liaoning Provincial Natural Science Foundation of China (Grant No. 20180550700).
