Utilizing the Honeybees Mating-Inspired Firefly Algorithm to Extract Parameters of the Wind Speed Weibull Model

: This study introduces a novel adjustment to the firefly algorithm (FA) through the integration of rare instances of cannibalism among fireflies, culminating in the development of the honeybee mating-based firefly algorithm (HBMFA). The IEEE Congress on Evolutionary Computation (CEC) 2005 benchmark functions served as a rigorous testing ground to evaluate the efficacy of the new algorithm in diverse optimization scenarios. Moreover, thorough statistical analyses, including two-sample t -tests and fitness function evaluation analysis, the algorithm’s optimization capabilities were robustly validated. Additionally, the coefficient of determination, used as an objective function, was utilized with real-world wind speed data from the SR-25 station in Brazil to assess the algorithm’s applicability in modeling wind speed parameters. Notably, HBMFA achieved superior solution accuracy, with enhancements averaging 0.025% compared to conventional FA, despite a moderate increase in execution time of approximately 18.74%. Furthermore, this dominance persisted when the algorithm’s performance was compared with other common optimization algorithms. However, some limitations exist, including the longer execution time of HBMFA, raising concerns about its practical applicability in scenarios where computational efficiency is critical. Additionally, while the new algorithm demonstrates improvements in fitness values, establishing the statistical significance of these differences compared to FA is not consistently achieved, which warrants further investigation. Nevertheless, the added value of this work lies in advancing the state-of-the-art in optimization algorithms, particularly in enhancing solution accuracy for critical engineering applications.


Introduction
Renewables are a new dawn in energy production, having demonstrated practicality and efficacy.They are projected to surpass coal, the largest global source of electricity generation, by early 2025 [1].According to the International Energy Agency (IEA), nearly 60% of the newly installed power capacities by 2040 will be clean and renewable energy technologies [2].The Sun, as the most environmentally friendly power source, converts approximately 1-2% of its intensity reaching Earth into wind energy, accounting for around 10 million megawatts [3].Perez and Perez estimated that the global wind potential is five times greater than that of a fully electrified global future scenario [4].Therefore, this tremendous energy reservoir should be harnessed if a sustainable and better world is the overriding target.Wind technologies are green and mature power producers that have shown their effectiveness in producing electricity.They are continuously experiencing increases in their total installed capacity, as demonstrated in Figure 1, provided by the Global Wind Energy Council (GWEC) in their 2023 report [5].The figure indicates a recent decline in added capacity over the last two years, attributed to delayed project decline in added capacity over the last two years, attributed to delayed project commissioning caused by COVID-19 restrictions; however, experts anticipate a rebound [6].The GWEC's report highlights a total global installed wind capacity of 906 GW, with onshore turbines dominating and offshore technology concentrated in Europe and the Asia-Pacific region, representing 99% of global installations [5].In a related study, Tong et al. explored the reliability of renewable energy technologies in 42 countries, addressing a significant concern associated with clean energy machinery.Their findings indicate that wind systems are the most reliable electricity generators, capable of meeting 72-91% of the countries' demand in hours [7].Wind resource assessment is pivotal during the planning phase, particularly for large-scale projects involving multiple megawatts.In other words, evaluating the wind potential at the candidate site is essential, relying on a comprehensive range of models [8].Parametric statistical distribution models have long been established to represent or characterize wind speed, serving as a milestone in evaluating the resource efficiency of a prospective area [9].The most widely used models for this purpose in the literature include Exponential, Gamma, Generalized Extreme Value, Inverse Gaussian, Lognormal, Rayleigh, and Weibull distributions [10,11].Generally, these frequently used parametric models are categorized into unimodal, where only one model is utilized (such as those mentioned above), and multimodal, which involves a combination of the same models, such as the Gamma-Weibull or the Weibull-Weibull models [12,13].The two-parameter Weibull distribution model, initially introduced by the Swedish physicist Weibull [14], stands out as the most utilized model in the pertinent literature for characterizing wind speed across diverse global locations [15][16][17][18].This preference is attributed to its straightforward and highly flexible density functions, along with efficiently calculable parameters [19].However, a notable limitation of this renowned statistical distribution model lies in its inability to effectively forecast or fit low wind speeds below 2 m/s, commonly referred to as null wind speeds.In such instances, the three-parameter Weibull distribution proves to be more effective than the conventional two-parameter model [20].It is worth noting that Wang and Okaze showed that the two and three-parameter models described the strong winds around tall buildings with the same accuracy [21].
Among the numerous methods employed for estimating the parameters of statistical distribution models, numerical methods, notably the maximum likelihood method (MLM), the least squares method (LSE), and the method of moments (MOM), are commonly used [22][23][24][25][26].Additionally, artificial intelligence (AI) methods, primarily driven by heuristic algorithms, have demonstrated superiority over other methods in terms of solution accuracy and wind speed characterization [27][28][29][30][31][32].In this category, the Cuckoo Search (CS) algorithm was the most frequently used [33,34] followed by, in some cases, Wind resource assessment is pivotal during the planning phase, particularly for largescale projects involving multiple megawatts.In other words, evaluating the wind potential at the candidate site is essential, relying on a comprehensive range of models [8].Parametric statistical distribution models have long been established to represent or characterize wind speed, serving as a milestone in evaluating the resource efficiency of a prospective area [9].The most widely used models for this purpose in the literature include Exponential, Gamma, Generalized Extreme Value, Inverse Gaussian, Lognormal, Rayleigh, and Weibull distributions [10,11].Generally, these frequently used parametric models are categorized into unimodal, where only one model is utilized (such as those mentioned above), and multimodal, which involves a combination of the same models, such as the Gamma-Weibull or the Weibull-Weibull models [12,13].The two-parameter Weibull distribution model, initially introduced by the Swedish physicist Weibull [14], stands out as the most utilized model in the pertinent literature for characterizing wind speed across diverse global locations [15][16][17][18].This preference is attributed to its straightforward and highly flexible density functions, along with efficiently calculable parameters [19].However, a notable limitation of this renowned statistical distribution model lies in its inability to effectively forecast or fit low wind speeds below 2 m/s, commonly referred to as null wind speeds.In such instances, the three-parameter Weibull distribution proves to be more effective than the conventional two-parameter model [20].It is worth noting that Wang and Okaze showed that the two and three-parameter models described the strong winds around tall buildings with the same accuracy [21].
Among the numerous methods employed for estimating the parameters of statistical distribution models, numerical methods, notably the maximum likelihood method (MLM), the least squares method (LSE), and the method of moments (MOM), are commonly used [22][23][24][25][26].Additionally, artificial intelligence (AI) methods, primarily driven by heuristic algorithms, have demonstrated superiority over other methods in terms of solution accuracy and wind speed characterization [27][28][29][30][31][32].In this category, the Cuckoo Search (CS) algorithm was the most frequently used [33,34] followed by, in some cases, the genetic algorithm (GA) [35][36][37].Figure 2 shows the share of each parameter estimation method in 46 studies reviewed by Jung and Schindler [38].Furthermore, the literature presents various innovative machine learning approaches aimed at achieving similar objectives in wind speed forecasting, such as long short-term memory (LSTM) neural networks fine-tuned using the modified reptile search algorithm [39].Notably, efforts such as those by Ala et al. [40] have examined and ranked off-the-shelf algorithms based on their ability to generate highly accurate solutions for optimization problems in the field of wind energy.The typical objective functions employed with metaheuristic algorithms to address minimization optimization problems include the root mean square error (RMSE) [41][42][43][44] or the mean square error (MSE) [45,46].In some instances, researchers relied on maximizing the objective function.For example, Guedes et al. used the coefficient of determination (R 2 ) to identify the relevant distribution model parameters [47], and Shin et al. maximized the log-likelihood function [48].
Forecasting 2024, 6, FOR PEER REVIEW 3 the genetic algorithm (GA) [35][36][37].Figure 2 shows the share of each parameter estimation method in 46 studies reviewed by Jung and Schindler [38].Furthermore, the literature presents various innovative machine learning approaches aimed at achieving similar ob jectives in wind speed forecasting, such as long short-term memory (LSTM) neural net works fine-tuned using the modified reptile search algorithm [39].Notably, efforts such as those by Ala et al. [40] have examined and ranked off-the-shelf algorithms based on their ability to generate highly accurate solutions for optimization problems in the field o wind energy.The typical objective functions employed with metaheuristic algorithms to address minimization optimization problems include the root mean square error (RMSE [41][42][43][44] or the mean square error (MSE) [45,46].In some instances, researchers relied on maximizing the objective function.For example, Guedes et al. used the coefficient of de termination (R 2 ) to identify the relevant distribution model parameters [47], and Shin e al. maximized the log-likelihood function [48].
Figure 2. Share of the parameter estimation method in 46 literature studies [38].
The firefly algorithm (FA), inspired by the bioluminescent communication between fireflies [49], is considered an essential tool in the swarm intelligence category.It is char acterized by its simplicity, flexibility, and proven efficacy against different optimization problems [50].However, it is also known for issues such as stagnation, often associated with unbalanced exploration and exploitation [51], slow convergence or solution speed [52,53], and high dependence on control parameters [54].To address these flaws, extensive research has been conducted to either hybridize or improve the classic algorithm, seeking variants with better performance [55][56][57].Figure 3, adapted from the work of Kumar and Kumar [58], illustrates a general template for all FA variants.Rizk-Allah et al. hybridized ant colony optimization with FA to benefit from the former's merits in improving explo ration by initializing the ants that wander the entire search space [59].The resulting algo rithm demonstrated comparable performance to other algorithms when solving bench mark optimization problems.Fister et al. reviewed chaos map-enhanced FA algorithms which led to high population diversity and improved exploration [60].Wang et al. intro duced an FA algorithm with adaptive control parameters that produced comparable re sults to other famous FA variants when tested with benchmark functions [54].Hassan de veloped a chaotic sine-cosine FA that overcame the computational complexity of the standard algorithm, tested against benchmark functions, as customary in this research line [53].Ghasemi et al. introduced an enhanced version of the FA that uses different move ments to improve global exploration, adding more strength to the algorithm in facing complex engineering problems [61].On the exploitation side, Bazi et al. developed a fas version of the FA in which the convergence to the optimal solution was faster than the basic one, while solution accuracy was almost maintained.These results were obtained after testing the algorithm with benchmark functions [62].Altabeeb et al. introduced a hybrid version of FA that integrates local search and genetic operators to achieve fast con vergence and highly accurate solutions.When tested using benchmark datasets, this new The firefly algorithm (FA), inspired by the bioluminescent communication between fireflies [49], is considered an essential tool in the swarm intelligence category.It is characterized by its simplicity, flexibility, and proven efficacy against different optimization problems [50].However, it is also known for issues such as stagnation, often associated with unbalanced exploration and exploitation [51], slow convergence or solution speed [52,53], and high dependence on control parameters [54].To address these flaws, extensive research has been conducted to either hybridize or improve the classic algorithm, seeking variants with better performance [55][56][57].Figure 3, adapted from the work of Kumar and Kumar [58], illustrates a general template for all FA variants.Rizk-Allah et al. hybridized ant colony optimization with FA to benefit from the former's merits in improving exploration by initializing the ants that wander the entire search space [59].The resulting algorithm demonstrated comparable performance to other algorithms when solving benchmark optimization problems.Fister et al. reviewed chaos map-enhanced FA algorithms, which led to high population diversity and improved exploration [60].Wang et al. introduced an FA algorithm with adaptive control parameters that produced comparable results to other famous FA variants when tested with benchmark functions [54].Hassan developed a chaotic sine-cosine FA that overcame the computational complexity of the standard algorithm, tested against benchmark functions, as customary in this research line [53].Ghasemi et al. introduced an enhanced version of the FA that uses different movements to improve global exploration, adding more strength to the algorithm in facing complex engineering problems [61].On the exploitation side, Bazi et al. developed a fast version of the FA in which the convergence to the optimal solution was faster than the basic one, while solution accuracy was almost maintained.These results were obtained after testing the algorithm with benchmark functions [62].Altabeeb et al. introduced a hybrid version of FA that integrates local search and genetic operators to achieve fast convergence and highly accurate solutions.When tested using benchmark datasets, this new hybridization outperformed other innovative FA approaches [63].Wang et al. incorporated a probability method similar to that in this research, which depends on the fitness value obtained from the classic FA to accelerate convergence.The newly developed FA algorithm was tested against recognized benchmark functions and proved superior performance [64].
Many applications have relied on the FA to identify the parameters of their relevant models, such as the hybrid model of the solar charging station [65], the capacitated vehicle routing problem [63], civil engineering, meteorological optimization, and other relevant engineering applications [58].It is worth mentioning that the FA algorithm and its variants are not commonly used in wind energy research, with a few exceptions, such as the work conducted by Younis et al. to forecast wind speed based on data from Khartoum, Sudan [66]; and the study by Shan et al., where they developed a hybrid FA variant used to tune the parameters of a variable pitch wind turbine PID controller [52].
Forecasting 2024, 6, FOR PEER REVIEW hybridization outperformed other innovative FA approaches [63].Wang rated a probability method similar to that in this research, which depend value obtained from the classic FA to accelerate convergence.The newly algorithm was tested against recognized benchmark functions and prove formance [64].
Many applications have relied on the FA to identify the parameters models, such as the hybrid model of the solar charging station [65], the cap routing problem [63], civil engineering, meteorological optimization, and engineering applications [58].It is worth mentioning that the FA algorithm are not commonly used in wind energy research, with a few exceptions, s conducted by Younis et al. to forecast wind speed based on data from Kh [66]; and the study by Shan et al., where they developed a hybrid FA varia the parameters of a variable pitch wind turbine PID controller [52].The current study utilizes the honeybees mating optimizer (HBMO) tion to calculate a conditional value representing the small proportion o that engage in cannibalism instead of mating.This intricate simulation o tions between organisms leads to the development of a more robust algor solution accuracy, termed the honeybees mating-inspired firefly algorithm algorithm represents a significant step towards garnering attention for fi (FA) variants, especially for those seeking straightforward implementatio mizers.The methodology of this work focuses on determining the value and integrating it as a condition in the algorithm structure.The newly in ment compares the calculated value with an empirical reference value ob extensive experimentation or fine-tuning, representing the segment of fl flies.The efficacy of the HBMFA was evaluated through various experim testing on benchmark functions.Statistical analyses, such as two-sample tfunction evaluations, were conducted to validate the optimization cap The current study utilizes the honeybees mating optimizer (HBMO) annealing function to calculate a conditional value representing the small proportion of firefly insects that engage in cannibalism instead of mating.This intricate simulation of biotic interactions between organisms leads to the development of a more robust algorithm in terms of solution accuracy, termed the honeybees mating-inspired firefly algorithm (HBMFA).This algorithm represents a significant step towards garnering attention for firefly algorithm (FA) variants, especially for those seeking straightforward implementation in future optimizers.The methodology of this work focuses on determining the value of this function and integrating it as a condition in the algorithm structure.The newly introduced statement compares the calculated value with an empirical reference value obtained through extensive experimentation or fine-tuning, representing the segment of flesh-eating fireflies.The efficacy of the HBMFA was evaluated through various experiments, including testing on benchmark functions.Statistical analyses, such as two-sample t-tests and fitness function evaluations, were conducted to validate the optimization capabilities of the algorithm.The study also involved comparing the performance of HBMFA with conventional FA and other optimization algorithms.Additionally, a real-world application using wind speed data from Station SCR-25 in São João do Cariri, Brazil, in 2008 [47], was conducted to assess the algorithm's effectiveness, fine-tune control parameters, and achieve optimal solution accuracy for wind speed characterization.The significant contribution of this study is bridging the gap in developing optimization algorithms for wind speed forecasting, aiming for improved accuracy, robustness against various factors such as changing weather conditions and terrain features, and computational efficiency for real-time applications.This endeavor involves effectively incorporating algorithmic modifications and establishing benchmark datasets for fair comparisons.Addressing this research void will not only enhance wind speed forecasting accuracy but also contribute to the more efficient utilization of renewable energy sources.Specifically, employing this innovative FA variant to achieve an accurate global best solution maximizing R 2 as an objective function exemplifies this effort to narrow the disparity.
Therefore, the remaining sections of this article are organized as follows: Section 2 introduces the new metaheuristic algorithm and the objective function used throughout the study.Section 3 showcases the wind speed model and benchmark data functions, Section 4 presents and discusses the results, and Section 5 concludes.

Objective Function
The coefficient of determination (R 2 ), represented by Equation (1) [67,68] is used here as an objective function for the maximization problem intended to be solved using the HBMFA.The range of variability for this coefficient is between 0 and 1, with the upper bound representing the optimal value.R 2 is highly interpretable and facilitates the comparison between different models and their selection.However, some limitations exist, such as the coefficient's sensitivity to outliers and its inappropriateness when facing nonlinearity [69].According to Guedes et al., the maximization of R 2 resulted in the best solution in 55.68% of cases, which led the research team to endorse its equation as the objective function for characterizing their wind speed data based on different statistical distribution models [47].In the current work, the authors also maximize R 2 between the observed and predicted CDF values based on the same wind data to enhance the algorithm's assessment by comparing the obtained results with those presented by earlier researchers, employing proper goodness of fit measures.
where F i is the observed CDF, Fi is the predicted CDF, F is the mean value of the observed CDF.

Standard Firefly Algorithm
The biotic behavior of fireflies is as complicated as that of other species, making it necessary to establish some assumptions for developing an algorithm that mimics the swarm intelligence of these beetles [49,60]: 1.
The fireflies are unisex.

2.
The attractiveness is proportional to the firefly's brightness.

3.
The fitness value is the indicator of the brightness.
As with other metaheuristic algorithms, the initialization of the first generation or population is accomplished using Equation (2) [66,70], as shown in Figure 4 [70].This is followed by the FA update function given in Equation ( 3), which represents the movement of the i firefly towards j firefly, in which the distance between them (r ij ) is given in Equation ( 4) [71].It should be briefly noted here that the primary control parameters in the basic FA, which directly influence the algorithm, include the randomization parameter (α) typically static but with a dynamic version in some FA variants [72]; the light absorption coefficient (γ); and the attractiveness (β), often denoted as β 0 when there is no distance between fireflies (i.e., when r = 0) [50].Figure 5 provides the pseudo-code of the classic FA [50,66].
where X i is the candidate solution, ub is the upper bound, lb is the lower bound, rand is a random number between 0 and 1, ∈ is a random number drawn from the Gaussian distribution, x i,m is the mth component of X i or the design variable.
where  is the candidate solution,  is the upper bound,  is the lower bound,  is a random number between 0 and 1, ∈ is a random number drawn from the Gaussian distribution,  , is the mth component of  or the design variable.

Honeybees Mating Inspired Firefly Algorithm (HBMFA)
The current work implements an algorithm hybrid from the standard FA with some features of the HBMO for wind speed characterization.The HBMO was first introduced by Haddad et al. to simulate the mating event between the bee queen and a drone, yet another swarm-intelligence algorithm comparable in performance to the genetic algorithm [73].The probabilistic mating between the queen and any random drone is described by the annealing function in Equation (5) [73,74].The importance of this equation to this effort is that it represents the marginal percentage of this intraspecies mating event to occur, which is analogous to the rare occasion of a female firefly, also known as femmes fatales fireflies [75], feeding on males from other firefly-species instead of breeding after luring one in using the exact brightness attractiveness mechanism, as shown in the photograph in Figure 6.Accordingly, this algorithm incorporates a fourth biotic interaction, which accounts for rare incidences of cannibalism in addition to the three behaviors listed in the standard FA above.Henceforth, the developed HBMFA adheres to the algorithmic flowchart outlined in Figure 7, which involves the removal of consumed fireflies and the introduction of new ones.Additionally, Figure 8 presents the pseudocode of the innovative algorithm.To clarify, the HBMFA incorporates an additional step following the update of firefly positions, contingent upon the probability derived from the annealing function.Specifically, if this probability surpasses a predetermined mating threshold, the algorithm decides whether to introduce new fireflies to compensate for consumed ones.Alternatively, if the probability falls below this threshold, this step is skipped.The control parameters detailed in Table 1 were fine-tuned to optimize their values for achieving the best solution.The selection of a mating threshold percentage of 99.99% (i.e., annealing function probability > 99.99% in the maximization problem) is justified by the rarity of the

Honeybees Mating Inspired Firefly Algorithm (HBMFA)
The current work implements an algorithm hybrid from the standard FA with some features of the HBMO for wind speed characterization.The HBMO was first introduced by Haddad et al. to simulate the mating event between the bee queen and a drone, yet another swarm-intelligence algorithm comparable in performance to the genetic algorithm [73].The probabilistic mating between the queen and any random drone is described by the annealing function in Equation (5) [73,74].The importance of this equation to this effort is that it represents the marginal percentage of this intraspecies mating event to occur, which is analogous to the rare occasion of a female firefly, also known as femmes fatales fireflies [75], feeding on males from other firefly-species instead of breeding after luring one in using the exact brightness attractiveness mechanism, as shown in the photograph in Figure 6.Accordingly, this algorithm incorporates a fourth biotic interaction, which accounts for rare incidences of cannibalism in addition to the three behaviors listed in the standard FA above.Henceforth, the developed HBMFA adheres to the algorithmic flowchart outlined in Figure 7, which involves the removal of consumed fireflies and the introduction of new ones.Additionally, Figure 8 presents the pseudocode of the innovative algorithm.To clarify, the HBMFA incorporates an additional step following the update of firefly positions, contingent upon the probability derived from the annealing function.Specifically, if this probability surpasses a predetermined mating threshold, the algorithm decides whether to introduce new fireflies to compensate for consumed ones.Alternatively, if the probability falls below this threshold, this step is skipped.The control parameters detailed in Table 1 were fine-tuned to optimize their values for achieving the best solution.The selection of a mating threshold percentage of 99.99% (i.e., annealing function probability > 99.99% in the maximization problem) is justified by the rarity of the cannibalism occurrence.Additionally, the number of fireflies was determined based on available wind speed data points and their corresponding speed classes, as delineated in Table 2.
where ∆(F) is the absolute fitness difference between the queen and the drone of firefly i and firefly j, S(t) is the speed of the queen or the pair-eater firefly and is assumed to be a random number between 0 and 1.
Forecasting 2024, 6, FOR PEER REVIEW cannibalism occurrence.Additionally, the number of fireflies was determined b available wind speed data points and their corresponding speed classes, as delin Table 2.

𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 = 𝑒 ∆( ) ( )
where ∆() is the absolute fitness difference between the queen and the drone  and firefly , () is the speed of the queen or the pair-eater firefly and is ass be a random number between 0 and 1.

Weibull Distribution
The two-parameter Weibull frequency distribution model, represented by its proba bility (PDF) and cumulative (CDF) density functions, is the most popular in wind energy research and industry for characterizing and forecasting wind speed [20,76,77].The PDF () of this distribution is given by Equation ( 6), the CDF () by Equation (7), and the mean () and variance ( ) are given by Equation (8) and Equation (9), respectively [66,78].

Weibull Distribution
The two-parameter Weibull frequency distribution model, represented by its probability (PDF) and cumulative (CDF) density functions, is the most popular in wind energy research and industry for characterizing and forecasting wind speed [20,76,77].The PDF ( f ) of this distribution is given by Equation ( 6), the CDF (F) by Equation (7), and the mean (µ) and variance (σ 2 ) are given by Equation (8) and Equation (9), respectively [66,78].
where V ≥ 0 is the wind speed (m/s), Γ() is the Gamma function, and k ≥ 0 and c ≥ 0 are the shape and scale (m/s) parameters, respectively.

Benchmark Data
The SR-25 station dataset was obtained from the online databank of the Brazilian National Environmental Data Organization System (SONDA) [79].The wind speed data recorded by the 50 m height anemometer was averaged every 10 min for the São João Do Cariri station (SR-25) from that data network for 2008.This specific dataset is the same one used by Guedes et al. [47] in their analysis, enabling a comparative investigation as intended in this paper.The table categorizes the wind speed and provides the average for each category, along with the corresponding frequency, frequency percentage, and cumulative frequency percentage.It is worth noting that the SONDA database was validated according to the quality control protocol adopted by the Baseline Surface Radiation Network (BSRN) [80].

Benchmark Functions
Given that the HBMFA algorithm is a variant of the FA used in this study for extracting parameters of the two-parameter Weibull distribution model, it was important to choose functions from the IEEE Congress on Evolutionary Computation (CEC) 2005 benchmark suite that closely resemble the characteristics of wind speed data and are suitable for parameter estimation tasks.Specifically, functions that are multimodal, non-linear, and share characteristics similar to real-world data were sought.Based on these considerations, the following functions were deemed suitable for testing the algorithm [81]: CEC 2005 Function 11 (Shifted Rotated Weierstrass Function): where x represents the input vector of dimension D, a and b where a ∈ (0,1) and b ∈ (1,10), and K is the number of harmonics and is typically set to 20, o is the shifted global optimum vector.

Results and Discussion
The provided results in Table 3 detail the testing of two optimization algorithms, HBMFA and FA, on the four CEC 2005 benchmark functions (i.e., Function 11 to Function 14).Both algorithms achieved similar best fitness values for each function, indicating comparable performance in optimizing them.However, it is notable that HBMFA consistently demonstrated slightly better performance in terms of best fitness values compared to FA across all tested functions, suggesting its potential for more accurate optimization results.Conversely, FA consistently exhibited faster execution times compared to HBMFA across all tested functions, reflecting its superior computational efficiency.Furthermore, convergence graphs and box plots of the CEC benchmark functions over independent runs were generated to gain deeper insights into the optimization process.Figures 9-12 depict convergence charts illustrating the progression of the relevant function's best fitness value over iterations or function evaluations for both HBMFA and FA algorithms.These figures provide visualized information about their convergence behavior and speed.Additionally, Figure 13 shows box plots summarizing the distribution of the CEC functions' values obtained from multiple independent runs of the algorithms, allowing for a quantitative assessment of their performance in terms of solution quality and robustness.To assess the statistical significance of the observed differences, two-sample t-tests were conducted.These tests aimed to determine whether there were significant differences between the algorithms' best fitness values and execution times.For best fitness values, the t-test results showed t-statistic values within the range of (−1.00000458, −0.00837452), and p-values ranging from (0.35591564, 0.99358968).These results indicated that there was no significant difference between HBMFA and FA in terms of best fitness values, with p-values greater than 0.05 suggesting comparable optimization capabilities.However, for execution times, the t-test results showed a significant difference between HBMFA and FA.The t-statistic value for execution times was within the range of (171.78802293),indicating a notable difference in performance.This was corroborated by very low p-values (close to 0), suggesting that the difference in execution times between the two algorithms was statistically significant.
Additionally, fitness function evaluations (FFE) analysis revealed that both algorithms exhaustively utilized the allowed function evaluations, reaching the maximum of 10,000 for all tested functions.This analysis indicates that both algorithms thoroughly explored the solution space within the given computational constraints.
As the analysis in this study continues to excavate the potentials of the innovative FA variant, the emphasis was put on examining how often the condition of fireflies consuming each other occurs throughout the total number of iterations.Table 4 provides the mean, median, and mode of instances where the algorithm had to replace eaten fireflies or execute the additional step in the HBMFA.It is evident from these statistics that the predation phenomenon is closely linked to the number of fireflies themselves, which is 13 in our case.The slight variation in statistical measures across a wide range of iterations, such as a difference of three in maximum and minimum averages, is logical, as more fireflies inherently lead to more instances of cannibalism, and vice versa.The values presented in Table 5 depict the computational outcomes of the HBMFA algorithm, aimed at maximizing R 2 , the objective function in the case of Weibull model parameters extraction based on the earlier mentioned benchmark data.Here, the mating threshold percentage is set to 99.99%, indicating a rare occurrence of cannibalism between firefly pairs.Evidently, the most accurate solution has been consistently achieved since 1000 iterations.When considering both accuracy and execution time, the optimal solution arises at 10,000 iterations, with the time per single iteration being the lowest among the two.This reduction in computational time can be attributed to the algorithm's memory feature, a common trait in AI, wherein previous iteration results or updated positions are utilized as input for subsequent iterations.Continuing the investigation into the new algorithm's performance based on the Brazil benchmark data, it was crucial to compare the results of the HBMFA with those of the standard FA, as presented in Table 6, to ascertain any performance improvements.Table 7 provides percentages comparing both algorithms in terms of increased solution accuracy and total execution time across different numbers of iterations.From this table, it is evident that solution accuracy has indeed improved, with an average increase percentage of 0.025%.However, for the second criterion, execution time, the HBMFA lags behind the FA, as illustrated in Figure 14, with an average increase of 18.74%.For transparency and scientific integrity, it is important to note that the computational study was conducted using a computer equipped with an Intel(R) Core(TM) i9-10850K CPU @ 3.60 GHz processor and 32.0 GB of installed RAM, operating on a 64-bit system.zil benchmark data, it was crucial to compare the results of the HBMFA with those o standard FA, as presented in Table 6, to ascertain any performance improvements.T 7 provides percentages comparing both algorithms in terms of increased solution a racy and total execution time across different numbers of iterations.From this table evident that solution accuracy has indeed improved, with an average increase percen of 0.025%.However, for the second criterion, execution time, the HBMFA lags behind FA, as illustrated in Figure 14, with an average increase of 18.74%.For transparency scientific integrity, it is important to note that the computational study was condu using a computer equipped with an Intel(R) Core(TM) i9-10850K CPU @ 3.60 GHz pr sor and 32.0 GB of installed RAM, operating on a 64-bit system.The stability observed in the R 2 values with increasing iterations, as evidenced b results thus far, along with the consistent k and c values depicted in Figure 15, sugge correlation between the increase in the number of iterations and solution stability or vergence.Furthermore, Figure 16 demonstrates that varying mating thresholds can e tively maximize R 2 to the desired value, particularly at high iterations.It is worth no that, across all cases, the 99.99% threshold consistently yields the highest quality solu Put simply, the HBMFA is capable of generating similar solutions across a broad spec of cannibalism probabilities, especially when the threshold is set at 90% or higher.The stability observed in the R 2 values with increasing iterations, as evidenced by the results thus far, along with the consistent k and c values depicted in Figure 15, suggests a correlation between the increase in the number of iterations and solution stability or convergence.Furthermore, Figure 16 demonstrates that varying mating thresholds can effectively maximize R 2 to the desired value, particularly at high iterations.It is worth noting that, across all cases, the 99.99% threshold consistently yields the highest quality solution.Put simply, the HBMFA is capable of generating similar solutions across a broad spectrum of cannibalism probabilities, especially when the threshold is set at 90% or higher.Comparative analysis is also crucial for thoroughly assessing the quality and performance of any newly introduced optimization algorithm.In Table 8, a comparison is provided between the computational results of popular metaheuristic optimization algorithms and HBMFA, all applied to the task of extracting the shape and scale parameters of the two-parameter Weibull model using the same benchmark data, with a unified population size of 13 and a number of iterations of 10,000.The algorithms tested include cuckoo search (CS), genetic algorithm (GA), grey wolf optimizer (GWO), and particle swarm optimization (PSO).Notably, HBMFA achieved the highest R 2 value of 0.999998196, signifying exceptional performance in maximizing the objective function However, this advantage is accompanied by a longer execution time of 143.317 s compared to other algorithms such as PSO, which achieved a comparable R 2 value with a significantly lower execution time of 0.02336 s.Despite its longer runtime, HBMFA demonstrates promising potential for accurately optimizing the parameters of the Weibull model offering a trade-off between computational efficiency and optimization effectiveness when compared to existing metaheuristic algorithms.Comparative analysis is also crucial for thoroughly assessing the quality and performance of any newly introduced optimization algorithm.In Table 8, a comparison is provided between the computational results of popular metaheuristic optimization algorithms and HBMFA, all applied to the task of extracting the shape and scale parameters of the two-parameter Weibull model using the same benchmark data, with a unified population size of 13 and a number of iterations of 10,000.The algorithms tested include cuckoo search (CS), genetic algorithm (GA), grey wolf optimizer (GWO), and particle swarm optimization (PSO).Notably, HBMFA achieved the highest R 2 value of 0.999998196, signifying exceptional performance in maximizing the objective function.However, this advantage is accompanied by a longer execution time of 143.317 s compared to other algorithms such as PSO, which achieved a comparable R 2 value with a significantly lower execution time of 0.02336 s.Despite its longer runtime, HBMFA demonstrates promising potential for accurately optimizing the parameters of the Weibull model, offering a trade-off between computational efficiency and optimization effectiveness when compared to existing metaheuristic algorithms.Comparative analysis is also crucial for thoroughly assessing the quality and performance of any newly introduced optimization algorithm.In Table 8, a comparison is provided between the computational results of popular metaheuristic optimization algorithms and HBMFA, all applied to the task of extracting the shape and scale parameters of the two-parameter Weibull model using the same benchmark data, with a unified population size of 13 and a number of iterations of 10,000.The algorithms tested include cuckoo search (CS), genetic algorithm (GA), grey wolf optimizer (GWO), and particle swarm optimization (PSO).Notably, HBMFA achieved the highest R 2 value of 0.999998196, signifying exceptional performance in maximizing the objective function.However, this advantage is accompanied by a longer execution time of 143.317 s compared to other algorithms such as PSO, which achieved a comparable R 2 value with a significantly lower execution time of 0.02336 s.Despite its longer runtime, HBMFA demonstrates promising potential for accurately optimizing the parameters of the Weibull model, offering a trade-off between computational efficiency and optimization effectiveness when compared to existing metaheuristic algorithms.Finally, in Table 9, the conveyed R 2 and 1 − R 2 results show that the HBMFA performance exceeds the MBO algorithm in the Guedes et al. [47] paper by a considerable margin concerning the solution accuracy in the case of excluding the null wind speeds, as the earlier researchers did in their work to ensure the best results out of the two-parameter Weibull model.It is worth noting that due to the unavailability of information regarding the computational time in the study of Guedes et al., the comparison between the two algorithms was conducted only based on solution accuracy.

Conclusions
The new HBMFA introduced a novel adjustment to the FA algorithm by incorporating rare instances of cannibalism among fireflies, modeled through a probability threshold.Testing the new algorithm on the CEC 2005 benchmark functions confirmed its efficacy and demonstrated superior performance compared to conventional FA and other common optimization algorithms.Additionally, statistical analyses, including two-sample t-tests and FFE analysis, provided robust validation of the algorithm's optimization capabilities.
Moreover, the introduced adjustment significantly improved solution accuracy compared to both the conventional FA and the MBO in maximizing the R 2 based on the two-parameter Weibull distribution model when the analysis was conducted using wind speed data from the SR-25 station in Brazil for 2008, revealing a notable enhancement in solution accuracy, with an average improvement of 0.025% in the R 2 values.Despite an increase in execution time, approximately 18.74%, the HBMFA exhibited outstanding results, yielding an optimal solution with parameters of k = 2.1655 and c = 5.4338 m/s, and R 2 values of 0.999998196 and 0.999998825 with and without null speeds, respectively.The HBMFA revealed remarkable stability in solution accuracy, with minimal variation, indicating its robustness across diverse scenarios.The algorithm's efficient exploitation of the search area led to enhanced R 2 values compared to both literature and FA results, underscoring its effectiveness.Nevertheless, higher probabilities of predation between fireflies correlated with decreased solution accuracy.
In summary, this work advanced the state-of-the-art in optimization algorithms by introducing the HBMFA.The integration of rare instances of cannibalism among fireflies enhanced the algorithm's ability to explore and exploit the search space effectively.Thorough statistical analyses and real-world application using wind speed data demonstrated the algorithm's robustness and applicability in diverse optimization scenarios.Despite some limitations regarding execution time and statistical significance, the HBMFA's distinguished solution accuracy underscored its potential for critical engineering applications.Further research will focus on addressing these limitations and exploring the algorithm's applicability across various engineering domains, ensuring its effectiveness and practical utility.

Figure 2 .
Figure 2. Share of the parameter estimation method in 46 literature studies [38].

Figure 3 .
Figure 3. Universal structure of the firefly algorithms.

Figure 3 .
Figure 3. Universal structure of the firefly algorithms.

Figure 5 .
Figure 5.An algorithm (Pseudo-code) of the basic FA for the maximization problem [50,6

Figure 6 .
Figure 6.Female Photuris firefly feeds on a small male Photinus firefly E. Lloyd).

Figure 6 . 8 Figure 6 .
Figure 6.Female Photuris firefly feeds on a small male Photinus firefly (photo by Professor James E. Lloyd).

Figure 8 .
Figure 8.An algorithm (Pseudo-code) of the HBMFA for the maximization problem.

INPUTFigure 8 .
Figure 8.An algorithm (Pseudo-code) of the HBMFA for the maximization problem.

Figure 9 .
Figure 9. Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 11.

Figure 10 .
Figure 10.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 12.

Figure 11 .
Figure 11.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 13.

Figure 9 .
Figure 9. Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 11.

Figure 10 .
Figure 10.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 12.

Figure 11 .
Figure 11.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 13.

Figure 10 . 12 Figure 9 .
Figure 10.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 12.

Figure 10 .
Figure 10.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 12.

Figure 11 .
Figure 11.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 13.

Figure 11 .
Figure 11.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 13.

Figure 12 .
Figure 12.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 14.

Figure 13 .
Figure 13.Convergence box plots of HBMFA and FA across CEC 2005 benchmark functions.

Figure 12 . 13 Figure 12 .
Figure 12.Convergence chart showing the optimization progress of HBMFA and FA algorithms on CEC 2005 Function 14.

Figure 13 .
Figure 13.Convergence box plots of HBMFA and FA across CEC 2005 benchmark functions.Figure 13.Convergence box plots of HBMFA and FA across CEC 2005 benchmark functions.

Figure 13 .
Figure 13.Convergence box plots of HBMFA and FA across CEC 2005 benchmark functions.Figure 13.Convergence box plots of HBMFA and FA across CEC 2005 benchmark functions.

Figure 15 .
Figure 15.Scale and shape parameters vs. iterations produced by HBMFA on a 99.99% threshold percentage.

Figure 16 .
Figure 16.Impact of various mating thresholds on solution accuracy.

Figure 16 .
Figure 16.Impact of various mating thresholds on solution accuracy.

Figure 16 .
Figure 16.Impact of various mating thresholds on solution accuracy.

Table 1 .
Control parameters for the FA and HBMFA algorithms.

Table 1 .
Control parameters for the FA and HBMFA algorithms.

Table 3 .
Summary of Optimization Results: HBMFA vs. FA on CEC 2005 benchmark functions.

Table 4 .
Cannibalism event occurrences for each iteration.

Table 5 .
Computational results for the HBMFA on 99.99% threshold percentage.

Table 6 .
Computational results for the conventional FA.

Table 7 .
Comparison between HBMFA and FA performances.

Table 6 .
Computational results for the conventional FA.

Table 7 .
Comparison between HBMFA and FA performances.

Table 8 .
Computational results for HMBFA and popular metaheuristic optimization algorithms at 13 population sizes and 10,000 iterations.

Table 9 .
Comparison between the HBMFA and the MBO results.