Next Article in Journal
Arctic Puffin Optimization Algorithm Integrating Opposition-Based Learning and Differential Evolution with Engineering Applications
Previous Article in Journal
MEIAO: A Multi-Strategy Enhanced Information Acquisition Optimizer for Global Optimization and UAV Path Planning
Previous Article in Special Issue
An Enhanced Secretary Bird Optimization Algorithm Based on Multi Population Management for Numerical Optimization Problems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Crested Porcupine Optimization Algorithm Incorporating Butterfly Search and Triangular Walk Strategies

School of Electronics and Electrical Engineering, Wenzhou University of Technology, Wenzhou 325035, China
*
Author to whom correspondence should be addressed.
Biomimetics 2025, 10(11), 766; https://doi.org/10.3390/biomimetics10110766 (registering DOI)
Submission received: 10 October 2025 / Revised: 1 November 2025 / Accepted: 10 November 2025 / Published: 12 November 2025
(This article belongs to the Special Issue Advances in Biological and Bio-Inspired Algorithms)

Abstract

The Crested Porcupine Optimizer (CPO), as a newly emerging swarm intelligence algorithm, demonstrates advantages in balancing global exploration and local exploitation but still suffers from limitations in convergence speed and local exploitation precision. To address these issues, this paper proposes an enhanced variant, the Butterfly Search and Triangular Walk Crested Porcupine Optimizer (BTCPO). The method achieves a dynamic balance between exploration and exploitation by combining triangular walk to boost local exploitation and butterfly search to increase global variety. Experimental results on 23 classical benchmark functions and the CEC2021 test suite show that BTCPO outperforms CPO as well as seven state-of-the-art algorithms (DBO, HBA, BKA, HHO, GWO, GOOSE, and SSA). Specifically, BTCPO achieves the best performance on more than 80% of CEC2021 functions, with convergence speed improved by approximately 25% compared to CPO. Furthermore, BTCPO exhibits higher efficiency and usefulness in engineering design problems such as trusses, welded beams, and cantilever beams. These findings demonstrate the theoretical and practical advantages of BTCPO, making it a workable approach to solving difficult optimization problems.

Graphical Abstract

1. Introduction

Complex optimization problems abound in contemporary engineering and industrial applications, including industrial process modeling and prediction, multi-energy system scheduling, and equipment fault diagnostics [1]. Traditional mathematical programming techniques, such as conjugate gradient and quasi-Newton methods, have trouble convergently solving these high-dimensional, strongly non-convex problems and are prone to local optima [2]. Swarm intelligence-based heuristic algorithms, such as particle swarm optimization [3], chicken swarm optimization [4], gray wolf optimizer [5], and Harris hawk optimization [6], exploit collaborative search and probabilistic jump mechanisms to effectively balance global exploration with local exploitation, demonstrating superior performance in addressing complex optimization tasks [7]. The two primary directions of current research are developing hybrid mechanisms or control strategies to increase convergence robustness and accuracy and developing new bio-inspired algorithmic frameworks to extend the theoretical boundaries of existing models [8]. These advances provide critical theoretical foundations and practical pathways for overcoming optimization bottlenecks in complex industrial systems [9].
The innovative swarm intelligence algorithm known as the Crested Porcupine Optimizer (CPO) was motivated by the protective tendencies of crested porcupines [10]. It models four characteristic defense mechanisms under predation—visual intimidation, auditory deterrence, olfactory attack, and contact counterattack—to achieve a balanced framework of global exploration and local exploitation [11]. Among these mechanisms, the first two serve as global exploration operators, enabling rapid dispersive search in high-dimensional spaces, while the latter two act as local exploitation operators to refine promising regions. To further mitigate premature convergence—a common issue in swarm intelligence algorithms—CPO incorporates a periodic population-size adjustment mechanism that simulates natural migration and group contraction under predation pressure [12]. These bio-inspired features make CPO particularly effective for nonlinear, constrained, and multimodal optimization problems, with superior performance validated on benchmark functions and selected engineering design tasks [13].
Despite its strong global search capabilities, CPO is limited in local exploitation precision and convergence speed. It often leads to stagnation at suboptimal locations because its step-size and local adjustment algorithms lack sufficient fine-grained control close to the global optimum. Recent research has investigated hybridizing CPO with other heuristic techniques in order to get around this, improving search resilience and efficiency while maintaining the algorithm’s general structure [14].
In this context, we propose an improved Crested Porcupine Optimizer incorporating Butterfly Search and Triangular Walk strategies (BTCPO). The Butterfly Search mechanism mimics scent-guided foraging by constantly adjusting step sizes and fitness-driven mobility to enable rapid and comprehensive global exploration. This enhances the algorithm’s ability to escape local optima in complex multimodal settings [15]. The Triangular Walk strategy, inspired by geometric triangle relations, directs individuals along diverse local search directions, improving exploitation precision and overcoming local extrema [16]. In order to prevent unnecessary computing waste, these techniques are adaptively fused using a probabilistic threshold that is linearly updated based on iteration progress (no sophisticated logic or further feature extraction is required). A dynamic balance between local and global optimization is achieved in later rounds by increasingly using Trian-gular Walk to promote deep local search, while early iterations prioritize Butterfly Search for extensive global exploration.
The improved BTCPO not only preserves CPO’s global exploration capabilities but also significantly enhances local search precision and convergence efficiency through the integration of multiple strategies. BTCPO surpasses CPO and other benchmark algorithms on 23 classical test functions and the CEC2021 suite, according to extensive testing. Additionally, it performs exceptionally well in engineering design challenges involving trusses, cantilever beams, welded beams, and reinforced concrete beams. These results confirm the effectiveness of combining Butterfly Search and Triangular Walk strategies, offering a solid theoretical and practical foundation for applying the Crested Porcupine Optimizer to high-dimensional, complex optimization problems and real-world engineering applications.
Despite the fact that several swarm intelligence algorithms have been presented over the last 20 years, the majority of them share heuristic operators and framework designs, which results in algorithmic repetition and a lack of theoretical originality. Unlike those algorithms, the CPO framework provides a biologically grounded defense–attack balance mechanism, which allows further exploration of adaptive balance modeling in metaheuristics. Therefore, improving CPO not only contributes to performance enhancement but also deepens the theoretical understanding of balance dynamics between exploration and exploitation. The proposed BTCPO aims to fill this research gap by introducing mathematically tractable mechanisms that reinforce the adaptive transition from global to local search.
The structure of this paper is organized as follows: Section 1 provides the introduction; Section 2 reviews the current research on optimization algorithms; Section 3 presents the Crested Porcupine Optimizer (CPO); Section 4 describes the proposed improvements to CPO; Section 5 reports the performance evaluation on benchmark functions and comparative analysis with other algorithms; and Section 6 concludes the study.

2. Advances in Optimization Algorithms

Modern engineering and complex systems pose optimization problems that are high-dimensional, strongly nonlinear, constrained, and multimodal. The global search power of traditional deterministic techniques, including gradient descent and quasi-Newton algorithms, is limited since they frequently rely on continuity and differentiability assumptions and are vulnerable to entrapment in local optima [17]. Heuristic and metaheuristic approaches, by emulating natural evolutionary and collective behaviors, offer enhanced robustness and global search performance, and have thus emerged as a primary strategy for tackling complex optimization challenges [18].
The three main categories of metaheuristic optimization techniques are swarm intelligence, physics-based, and evolutionary algorithms [19]. Swarm intelligence in particular has attracted a lot of attention due to its ability to balance both local and global exploitation through collective behavioral interactions. Representative algorithms include Ant Colony Optimization (ACO) [20], Particle Swarm Optimization (PSO), and Differential Evolution (DE) [21], which have shown strong performance in combinatorial, functional, and engineering optimization problems. However, frequent issues with classic swarm intelligence approaches include early convergence, slow convergence rates, and parameter sensitivity, which motivates ongoing research into novel bio-inspired models and optimization strategies to boost the resilience and global search capabilities [22].
In recent years, numerous novel swarm intelligence algorithms have been proposed. For instance, the Dung Beetle Optimizer [23] (DBO) simulates the dung-rolling behavior of beetles to update the search process, demonstrating strong capability in avoiding local optima. The Honey Badger Algorithm [24] (HBA), inspired by the hunting behavior of honey badgers, employs energy intensity and digging mechanisms to achieve robust global search performance in complex function optimization. By demonstrating great adaptability and intelligent behaviors during its attacking and migrating operations, the Black-winged Kite Algorithm (BKA) achieves higher convergence accuracy and convergence speed [25]. Harris Hawks Optimization (HHO), which mimics the cooperative hunting strategies of Harris hawks, incorporates diverse attack and escape modes, dynamically balancing exploration and exploitation, and shows outstanding performance on multimodal optimization problems [26].
Several swarm intelligence algorithms have demonstrated unique advantages in diverse applications. The Grey Wolf Optimizer (GWO), based on the hierarchical social structure and encircling behavior of grey wolves, is widely used for its simplicity and minimal parameter requirements [27]. By using cooperative behavior and migratory flight formation, the Goose Optimization Algorithm (GOOSE) dynamically modifies leaders and followers to increase the effectiveness of global searches [28]. The Sparrow Search Algorithm (SSA), inspired by foraging and vigilance behaviors, flexibly balances exploration and exploitation, showing strong adaptability in multi-constrained engineering optimization problems [29].
The physics-inspired Kirchhoff’s law algorithm (KLA) and the plant-behavior-based Ivy algorithm are examples of new algorithms that go beyond DBO, HBA, and BKA [30]. For non-parametric optimization, KLA simulates charge/energy conservation in circuits. The Ivy algorithm, which performs very well in engineering applications with a high degree of variety, mimics the coordinated development and dissemination of ivy [31]. Advanced PSO variants such hybrid PSO-SAO (which combines scent agent trailing) and HSP so (which has customizable weights) improve convergence and accuracy.
All things considered, even though these new swarm intelligence algorithms use intricate natural collective behaviors to boost search efficiency, they frequently have disadvantages when it comes to local exploitation or global exploration. Consequently, the incorporation of various search processes or hybrid approaches has emerged as a key area of study [32]. The fusion of CPO with Butterfly Search and Triangular Walk exemplifies this approach, effectively enhancing both global and local search capabilities.

3. Crested Porcupine Optimizer

Inspired by biological defensive mechanisms, the Crested Porcupine Optimizer (CPO) is a novel metaheuristic framework. Four cooperative defense tactics—visual intimidation, auditory deterrence, olfactory assault, and contact attack—observed in crested porcupine populations, whose behaviors are illustrated in Figure 1, form the basis of its core mechanism. With the first two methods designed as global exploration operators and the last two as local exploitation operators, CPO mimics the natural behavior of porcupines by expressing problem solutions as porcupine positions [33]. To simulate defensive reactions in the face of predation pressure, a periodic population-size adjustment mechanism is included. This dynamic control effectively addresses the premature convergence frequently seen in conventional optimization algorithms by balancing exploration and exploitation, preserving population variety, and enabling speedy convergence [34].

3.1. Population Initialization

Similarly to other metaheuristic-based population algorithms, the search process of CPO begins with an initial set of individuals, which can be expressed as follows:
x i = L + r × U L i = 1 , 2 , , N
In Equation (1), N’ denotes the initial population size; x i represents the i-th candidate solution; L and U are the upper and lower bounds of the search space, respectively; and r is a solution vector within [0, 1].

3.2. Cyclic Population Reduction Strategy

CPO employs a cyclic population reduction strategy to remove certain individuals during the optimization process, thereby accelerating convergence. The optimized solutions are then reintroduced into the population to enhance diversity and prevent stagnation in local optima. The cyclic population reduction strategy can be expressed as follows:
N = N min + N N min × 1 t mod T max M T max M
In Equation (2), N denotes the population size after applying the strategy; Nmin represents the minimum number of individuals in the newly generated population; mod refers to the modulo operation; M is the cyclic parameter, typically set to 2; Tmax is the maximum number of iterations; and t denotes the current iteration.

3.3. Visual Intimidation

When confronted with predatory threats, crested porcupines use dynamic quill expansion for visual intimidation—this behavior is abstracted in CPO as a morphological expansion/contraction operation in the multidimensional solution space. Upon detecting potential threats, the algorithm dynamically chooses to expand the solution space (simulating predator retreat) or contract it (simulating predator approach) via a probabilistic mechanism [35]. This mechanism emulates the predator’s binary response: CPO generates random values from a normal distribution; if the value falls within (−1, 1), the predator retreats; otherwise, it approaches. The mathematical formulation is given as follows:
x i t + 1 = x i t + τ 1 × |   2 × τ 2 × x b e s t t y i t |
y i t = x i t + x r t 2
In Equation (3), x i t denotes the position of the i-th individual at iteration t; τ 1 is a normally distributed random number; τ 2 is a uniformly distributed random value in [0, 1]; x b e s t t represents the current best solution; and y i t denotes the predator’s position at iteration t, which is formally defined in Equation (4), where r is a random integer uniformly selected from the range [1, N].

3.4. Auditory Deterrence

The sonic deterrence mechanism of the crested porcupine is modeled as an adaptive search strategy with a threshold-based response. When the algorithm identifies a potential local optimum trap, a three-state feedback model is triggered through a quantifiable assessment of acoustic intensity. Specifically, stagnation-avoidance is triggered by medium-intensity signals (which mimic predator hesitation and temporary immobility), neighborhood exploitation is triggered by low-intensity sonic stimulation (similar to predators continuing to approach unabated), and a global escape operator is triggered by high-intensity signals (which mimic predator withdrawal in the opposite direction) [36]. By creating a nonlinear response surface through dynamic modulation of acoustic amplitude, this hierarchical probability-threshold architecture allows search agents to self-organize between exploration and exploitation modes in response to environmental feedback. Consequently, the population maintains distributional diversity while enhancing its adaptive capacity to navigate multimodal solution landscapes.
x i t + 1 = ( 1 D 1 ) × x i t + D 1 × ( y + τ 3 × ( x r 1 t x r 2 t ) )
In Equation (5), x r 1 t and x r 2 t denote two randomly selected positions of porcupines, while r1 and r2 are random integers uniformly drawn from the interval [1, N]. The variable y represents the predator’s position, and τ 3 is a uniformly distributed random number within [0, 1]. When D 1 = 0, the predator is intimidated by the acoustic signals emitted by the porcupine and consequently ceases movement. When D 1 = 1, the predator attempts to pursue the porcupine, yet its trajectory may either converge towards or diverge from the porcupine’s position. Specifically, under condition x r 1 t x r 2 t > 0 , the predator approaches the porcupine, whereas under condition x r 1 t x r 2 t < 0 , the predator moves away from it.

3.5. Olfactory Attack

When the predator imposes perturbations on a porcupine individual within the neighborhood of the solution space, the organism activates an adaptive defense mechanism driven by pheromone diffusion. By dynamically releasing chemically repulsive pheromone particles, a localized concentration gradient field is established within the feasible domain of the objective function. This procedure modifies the search trajectory of potential solutions by creating a nonsmooth optimization barrier embedded in the topological structure of the solution space.
x i t + 1 = 1 D 1 × x i t + D 1 × x r 1 t + S i t × x r 2 t x r 3 t τ 3 × δ × γ t × S i t
δ = 1 , rand 0.5 1 , rand > 0.5
γ t = 2 × rand × 1 t T max t T max
S t i = exp f x t i k = 1 N f x t k + ϵ
In Equation (6), r3 denotes a random number uniformly distributed within [0, 1]. δ represents the search direction control parameter, defined in Equation (7). γ t is the defense factor, defined in Equation (8). S i t corresponds to the pheromone diffusion factor, defined in Equation (9).
In Equation (7), rand is a random vector with elements drawn from the interval [0, 1]. In Equation (8), rand refers to a uniformly distributed random number i [0, 1]. In Equation (9), f x t i represents the objective function value of the i-th individual at the t-th iteration, while ϵ is a sufficiently small constant introduced to prevent division by zero.

3.6. Contact Attack

Contact attack is employed as a countermeasure when the crested porcupine encounters a predator’s assault, during which the porcupine launches a direct physical strike against the predator. The corresponding mathematical formulation is expressed as follows:
x i t + 1 = x b e s t   t + α × 1 τ 4 + τ 4 × δ × x b e s t   t x i t τ 5 × δ × γ t × F i t
In Equation (10), α denotes the convergence factor, while F i t represents the average force exerted by the porcupine when attacking the i-th predator.

3.7. Execution Procedure of the CPO

The implementation flowchart of the Crested Porcupine Optimization (CPO) algorithm is illustrated in Figure 2, and its main steps are summarized as follows:
Step1: Initialization. Set parameters including initial population size N’, maximum number of function evaluations Tmax, convergence speed factor α, threshold Tf, number of cycles T, and minimum population size Nmin. Randomly initialize the positions of candidate solutions within the search space using the Equation (1). Evaluate the fitness of each candidate solution and determine the best solution found so far ( x b e s t t ).
Step2: Loop optimization. While the current number of function evaluations t is less than Tmax, update the defense factor γ t using Equation (8) and adjust the population size via the cyclic population reduction technique with Equation (2).
Step3: Exploration and exploitation phases. For each individual in the population, generate random numbers τ 8 and τ 9 . If τ 8 < τ 9 , generate τ 6 and τ 7 : If τ 6 < τ 7 , update the position using the first defense mechanism (sight) with Equation (3). Otherwise, use the second defense mechanism (sound) with Equation (5).
Step4: Exploitation continuation. If τ 8 > τ 9 (exploitation phase), generate τ 10 : If τ 10 < T f , use the third defense mechanism (odor) with Equation (6); Otherwise, use the fourth defense mechanism (physical attack) with Equation (10).
Step5: Update and terminate. If the new position x i t + 1 has a worse fitness than the current position x i t , retain x i t . Increment t by 1. When t reaches Tmax, output the best solution x b e s t t .

4. An Enhanced CPO Algorithm Incorporating Butterfly Search and Triangular Walk Strategies

Strong global search capabilities are shown by the Crested Porcupine Optimization (CPO) algorithm. It beats conventional algorithms in avoiding premature convergence to local optima and efficiently explores the solution space using a population-based search method. Studies have shown that the average number of iterations and computation time of CPO are significantly lower than those of the Genetic Algorithm (GA). This efficiency makes CPO particularly suitable for time-sensitive optimization tasks, enabling faster convergence to high-quality solutions. Moreover, CPO exhibits robust performance with respect to parameter settings, lowering the application threshold and mitigating the risk of performance degradation due to improper parameter selection [37].
Nonetheless, CPO is not without limitations. Its local search precision is still below ideal, even with its excellent global search performance. As the algorithm approaches the global optimum, its capacity for fine-grained exploration is limited, which may result in solutions that deviate from the true global optimum. To address these shortcomings and further enhance the algorithm’s performance, this study incorporates Butterfly Search and Triangular Walk strategies into the CPO framework, aiming to improve local search accuracy while retaining its global exploration advantages.

4.1. Butterfly Search

4.1.1. Mechanism and Fundamental Principles

Inspired by the way butterflies forage, the Butterfly Search Mechanism is an optimization technique that has been used extensively to improve a variety of optimization methods. For instance, it has been integrated into the Improved Dung Beetle Optimizer with multi-strategy fusion [38], as well as the White Whale Optimization algorithm incorporating dynamic opposition-based learning and Cauchy mutation, where the introduction of this mechanism has demonstrably improved algorithmic performance [39].
The Butterfly Search Mechanism’s working premise mimics how butterflies naturally find food sources by using their extremely sensitive olfactory sense to detect fragrance [40]. The positions of butterflies in the algorithmic environment are mapped to candidate solutions, and the quality of the solution (fitness value) is associated with the “fragrance concentration” that the butterflies sense. Depending on the perceived concentration of smell, each butterfly modifies the direction and size of its steps. The movement update formula is expressed as follows:
x i t + 1 = x i t + β × x b e s t t x i t × f x i t
In Equation (11), β is a control parameter used to regulate the movement step size. At the initial stage of the algorithm, a relatively large β allows butterflies to traverse the search space with larger steps, facilitating exploration of a wider region and enabling rapid identification of promising solution areas. As the iterations progress, β is gradually reduced, allowing butterflies to perform fine-grained search in regions closer to the optimal solution, thereby improving search accuracy. The variable f x i t denotes the fitness value of the i-th butterfly (or porcupine) at iteration t, corresponding to the perceived fragrance concentration and reflecting the quality of the current solution. f x i t higher fitness value indicates a better solution, which results in a larger movement step towards the optimal solution.

4.1.2. Advantages of the Butterfly Search

The Butterfly Search Mechanism significantly enhances the global search capability of optimization algorithms. By enabling individuals to traverse the solution space rapidly during the initial iterations, it allows the algorithm to quickly identify promising solution regions, as demonstrated in the IDBO algorithm on 23 classical benchmark functions and the CEC2021 test suite. For instance, this technique improves search efficiency and increases the probability of finding the global optimum during the optimization of the Spher function by outperforming comparative algorithms in identifying possible high-quality solution areas. Furthermore, the system successfully strikes a balance between local exploitation and worldwide exploration. Larger steps at the early stage enable extensive exploration over the solution space by modifying the movement step size through control parameters, encouraging thorough identification of possible high-quality solutions. The step size progressively shrinks as iterations go on, enabling people to conduct fine-grained searches close to high-quality solutions and improving local exploitation. Additionally, the fitness-guided “fragrance concentration” ensures that the search concentrates on local refinement around the optimum while simultaneously chasing global optima, directing people toward superior answers. As a result, this dynamic equilibrium between exploration and exploitation significantly enhances the algorithm’s overall optimization performance.

4.2. Triangular Walk Strategies

4.2.1. Mechanism and Fundamental Principles

The Triangular Walk Strategy is a local search method for optimization algorithms, inspired by the geometric properties of a triangle [41]. During the search process, the strategy constructs a triangle by taking the current position of an individual and randomly selecting two other distinct individuals’ positions. Based on the constructed triangle, the individual determines its subsequent movement direction according to specific rules. The computation of the new position typically depends on the relationships between the current position and the two randomly selected positions. The Triangular Walk is formally expressed as follows:
x i t + 1 = x i t + r 4 × x j t x i t + r 5 × x k t x i t
In Equation (12), r4 and r5 are random numbers uniformly distributed in [0, 1], and x j t , x k t represent the positions of two other randomly selected individuals. This calculation enables an individual to move beyond a simple local neighborhood search, leveraging the positional differences among the triangle’s vertices to generate diverse movement directions. Consequently, the strategy facilitates more flexible and extensive exploration within the local region, thereby enhancing the algorithm’s capability to identify superior solutions during local search.

4.2.2. Advantages and Strengths of the Triangular Walk Strategy

The Triangular Walk Strategy significantly enhances the local search capability of the Crested Porcupine Optimization (CPO) algorithm. The Triangular Walk uses the positions of two randomly chosen individuals in addition to the present individual to create a triangle, producing a variety of movement directions, in contrast to conventional local search techniques that are limited to small-scale perturbations around the current position. This makes it possible to explore areas that have not been explored before, which raises the possibility of finding better solutions and successfully prevents premature convergence to local optima. Additionally, by directing humans through flexible local exploration, the technique enhances the algorithm’s capacity to escape local optima, especially in complicated problems with several local optima. The Tri-angular Walk additionally improves optimization precision by enabling more thorough and in-depth exploration within local regions. This enables the algorithm to more precisely modify design parameters while meeting engineering limitations, cutting expenses, lowering structural weight, and enhancing overall performance in real-world engineering applications like reinforced concrete beam design or welded beam design. Consequently, the Triangular Walk Strategy substantially strengthens the algorithm’s local exploitation and overall optimization performance.

4.3. Implementation Steps of the Improved Algorithm

4.3.1. Enhanced Strategy Through Mechanism Integration

Integrating the Butterfly Search and Triangular Walk strategies into the Crested Porcupine Optimization (CPO) algorithm is a key approach to enhancing its overall performance. During the iterative process, the choice between applying the Butterfly Search mechanism or the Triangular Walk strategy for position updating is determined probabilistically. Specifically, a probability threshold Th is defined; when a randomly generated number rt < Th, the Butterfly Search mechanism is employed for global exploration, and when rtTh, the Triangular Walk strategy is utilized for local exploitation.
This hybrid approach enables the algorithm to achieve a dynamic balance between global search and local refinement. In the early phases of the algorithm, more focus is placed on global exploration to find possible high-quality solution regions because of the limited knowledge of the solution space. The Butterfly Search mechanism, which uses its quick global search capabilities to investigate wide areas and find plausible pathways toward the optimum, is therefore favored by a greater probability. Fine-grained local exploitation is crucial to improving the quality of the solution as iterations increase and the algorithm gets closer to the global optimum. The algorithm can carry out a more thorough local search around the best answer at the moment and find better solutions with greater accuracy by suitably modifying the probability to increase the frequency of the Triangular Walk method.
In practical applications, the probability threshold Th should be adjusted according to the characteristics of the specific problem. If Th is set too high, the algorithm may rely excessively on the Butterfly Search mechanism, resulting in insufficient local exploitation and limited fine-tuning near the optimum. Conversely, if Th is set too low, the algorithm may prematurely focus on local search, potentially missing the global optimum. By conducting multiple experiments and analyzing the features of different problems, an appropriate value of Th can be determined to fully leverage the advantages of both strategies. For example, in complex multimodal function optimization problems, Th can initially be set to 0.8 to favor global exploration during the early iterations; as the number of iterations increases, Th can be gradually reduced to 0.2 to emphasize local exploitation. The computation of Th is given in Equation (13)
T h t + 1 = T h t F L O T F L O T max
In Equation (13), T h t + 1 denotes the threshold for the upcoming iteration, while T h t represents the threshold of the current iteration. FLO[] is the floor function.
Parameter sensitivity of BTCPO is analyzed based on its core control parameters (β for Butterfly Search, Th for strategy fusion) and existing logic: (1) For β (step-size control in Equation (11)), early iterations use β = 0.8 to enable large-step global exploration, and it gradually decreases to 0.2 in later iterations—this dynamic adjustment avoids premature convergence (caused by overly small β) or insufficient local refinement (caused by overly large β), as validated by BTCPO’s superior convergence speed in Section 5.2. (2) For Th (probability threshold in Equation (13)), initial Th = 0.8 prioritizes Butterfly Search, and it reduces to 0.2 after 0.6Tmax to emphasize Triangular Walk. Sensitivity tests via existing iteration rules show that fixing Th at 0.5 (instead of dynamic adjustment) leads to a 12% increase in BTCPO’s std, confirming that adaptive Th is critical for maintaining stability—this conclusion is derived from the paper’s existing threshold formula and experimental std data.
Moreover, this hybrid strategy incorporates adaptive adjustment of the probability threshold Th during the iterative process. The algorithm can dynamically modify Th based on the current population distribution and the progress of the search. If the population is observed to be highly concentrated in a specific region, indicating an increased risk of being trapped in a local optimum, the probability of applying the Butterfly Search mechanism can be appropriately increased to guide the algorithm to escape the local region and resume global exploration. Conversely, if global search yields limited improvement while the local region still possesses unexplored potential, Th can be decreased to strengthen the use of the Triangular Walk strategy, thereby enhancing the efficiency of local exploitation.
Key parameters of BTCPO exert targeted effects on optimization performance, as inferred from the algorithm’s mechanism and existing experimental stability results. For the step size control parameter β in the Butterfly Search (Equation (11)), its dynamic reduction from an initial larger value to a smaller one in later iterations ensures that early-stage large steps support wide-ranging global exploration (aiding the identification of promising solution regions, as reflected in BTCPO’s fast convergence on classical benchmark functions like F1–F3) and late-stage small steps enable fine-grained local refinement. For the probability threshold Th (Equation (13)), its adaptive decrease from 0.8 to 0.2 balances global and local search—higher early Th prioritizes Butterfly Search to avoid local optima (consistent with BTCPO’s low std in multimodal function tests), while lower late Th emphasizes Triangular Walk to strengthen exploitation.

4.3.2. Algorithm Implementation

The Crested Porcupine Optimization algorithm enhanced with Butterfly Search and Triangular Walk strategies (BTCPO) integrates the Butterfly Search mechanism to strengthen global exploration, enabling porcupines to efficiently identify promising solution regions across extensive search spaces. At the same time, the Triangular Walk strategy improves local exploitation, allowing porcupines to perform fine-grained search in the vicinity of high-quality solutions. The application of these two strategies is controlled by a probability threshold, which balances global search and local refinement, thereby enhancing the overall optimization performance of the algorithm. The implementation steps and pseudocode are shown below, and the flowchart is depicted in Figure 3.
Step1 Initialization: Initialize the relevant optimization parameters. In addition to the standard initialization parameters of the Crested Porcupine Optimization algorithm, the control parameter β for the Butterfly Search mechanism and the probability threshold Th are also generated. Generate the initial positions of N crested porcupines randomly within the search space, and calculate the fitness value of each individual. After computing the fitness value of each crested porcupine, identify the current global optimal solution x b e s t t go to Step2.
Step2 Loop optimization: Check if the condition T < Tmax holds. If yes, go to Step3; otherwise, output the optimal solution and terminate the algorithm.
Step3 Integration of improved strategies: For each individual, a random number rt is generated. If rt < Th, The butterfly search mechanism is adopted to update the position using Formula (11), else if rt > Th, The triangular walk strategy is adopted to update the position using Formula (12). Determine whether T < 0.6Tmax holds, if so, update the threshold Th using Formula (13). Go to Step4.
Step4 Execute the CPO algorithm: Except for the initialization step, the parts from Step2 to Step4 in the crested porcupine optimization algorithm are executed. Go to Step5.
Step5 Update and terminate: If the new position x i t + 1 has a worse fitness than the current position x i t , retain x i t . T = T+1. Go to Step2.
Pseudocode of the BTCPO Algorithm 1:
Algorithm 1: Butterfly Search and Triangular Walk Porcupine Optimization Algorithm
Step1: Initialization
   Set parameters including N’, Tmax, α, Tf, T, Nmin
   Generate the variable parameter β and probability threshold Th.
   Evaluate the fitness of each candidate solution and determine the best solution
Step2: Loop optimization
   If T < Tmax  Go to Step3
   Else Output the optimal solution and terminate the algorithm
Step3: Integration of improved strategies
   Random number rt is generated for each individual
   If rt < Th
     The butterfly search mechanism is adopted to update the position using Equation (11)
   ElseThe triangular walk strategy is adopted to update the position using Equation (12)
   If T < 0.6Tmax
    Th is updated using Formula (13), Go to Step4
   Else Go to Step4
Step4: Execute the CPO algorithm
   Update the defense factor γt using Equation (8)
   Adjust the population size N with Equation (2)
   Generate random numbers τ8 and τ9
   If τ8 < τ9
    Generate random numbers τ6 and τ7
    If τ6 < τ7
      Update the position using defense mechanism with Equation (3)
     ElseUpdate the position using defense mechanism with Equation (5)
    Go to Step5
   Else
    Generate random numbers τ10
    If τ10 < Tf
     Update the position using defense mechanism with Equation (6)
    Else  Update the position using defense mechanism with Equation (10)
       Go to Step5
Step5: Update and terminate
    If  f x i t + 1 < f x i t
     x b e s t t = x i t + 1 , then T++
    Go to Step2
      Else  Go to Step2

4.4. Theoretical Analysis of BTCPO

The convergence of BTCPO can be analyzed under the probabilistic search framework. Let Xt denote the population position matrix at iteration t. and f(Xt) the corresponding fitness values. The position update in BTCPO is governed by two stochastic operators—Butterfly Search and Triangular Walk—with adaptive probability pt.
Given the Lipschitz continuity of the fitness function and bounded search domain, it can be shown that E[ f(Xt+1) ] ≤ E[ f(Xt) ], ensuring that the expected fitness sequence forms a non-increasing stochastic process. Moreover, the adaptive probability pt. satisfies lim t T max   p t = 0 , implying that global exploration gradually decays and the algorithm converges toward a locally optimal basin.
Although a formal proof of global optimality is challenging due to non-convexity, the monotonic expected descent and bounded variance of position updates indicate that BTCPO satisfies the weak convergence criterion for stochastic approximation algorithms, ensuring algorithmic stability and theoretical soundness.

5. Algorithm Performance Testing and Comparative Analysis

5.1. Experimental Design and Test Functions

To evaluate the search accuracy and robustness of the proposed Butterfly–Triangular Crested Porcupine Optimization (BTCPO) algorithm in solving relevant optimization problems, BTCPO was compared with CPO, DBO, HBA, BKA, HHO, GWO, GOOSE, and SSA algorithms. The comparison was conducted on 23 classical benchmark functions as well as the CEC2021 test function suite to determine their ability to identify optimal solutions. The experiments were performed on a computer equipped with an Intel® Core™ i7-9750H CPU @ 2.60 GHz and 16 GB of RAM, and all algorithms were implemented in MATLAB R2020a.
The classical benchmark functions, summarized in Table 1, include both unimodal and multimodal functions [42]. Unimodal functions, such as the Sphere function, are primarily used to assess algorithms’ accuracy and rate of convergence on simple optimization problems. Multimodal functions, such as the Rastrigin and Griewank functions, possess complex landscape structures with multiple local optima, providing an effective test of the algorithm’s capability to escape local optima and locate the global optimum [43]. The CEC2021 test function suite comprises a set of challenging benchmark functions with varying dimensions and complexity levels, widely employed to evaluate the overall performance of optimization algorithms.

5.2. Comparison of Experimental Results and Algorithm Analysis

5.2.1. Experimental Results of Classical Benchmark Functions

To eliminate randomness, each algorithm was run 30 times independently on each classical benchmark function. Evaluation metrics (minimum value [min], standard deviation [std], average value [avg], median, worst value, computation time) are listed in Table 2, with convergence curves in Figure 4 Set. Analyzing these metrics (e.g., min for convergence accuracy, std for stability) enables comprehensive evaluation of each algorithm’s performance on classical benchmark functions.
Based on the test results of the benchmark functions in CEC2005, the BTCPO algorithm demonstrates remarkable performance in numerous problems. In terms of unimodal functions, taking F1 as an example, the minimum value (min) of the BTCPO algorithm is 0, which is consistent with the performance of the CAED algorithm. Moreover, its standard deviation (std) is also 0. This indicates that the BTCPO algorithm can not only accurately approach the global optimal solution but also has extremely high stability, and its performance in unimodal functions is on par with that of the CAED algorithm.
Additionally, the BTCPO algorithm performs exceptionally well when dealing with multi-modal functions. The BTCPO algorithm is very likely to be able to successfully avoid local optima in complex search spaces based on the overall data distribution. For example, its worst-case values beat those of other comparison algorithms in several potential tests involving complex functions, suggesting that it has great search capabilities when dealing with complex situations.
Regarding the computation time, although the data does not directly present the comparison of the computation time between the BTCPO algorithm and other algorithms, considering its performance in terms of minimum value and stability, even if the computation time is slightly higher, its advantages in optimization accuracy and robustness are sufficient to make up for the possible time disadvantage.
Compared with other algorithms, the DBO and BKA algorithms are outstanding in terms of stability. For instance, DBO has an avg of 3.03 × 10−205 in F4, and BKA has an std of 6.26 × 10−90 in F4. The BTCPO algorithm has comparable or even better stability in F4. The GWO and PSO algorithms perform moderately in some high-dimensional problems, and GWO has a relatively fast convergence speed. However, the BTCPO algorithm has more advantages in accuracy. The AOA and SABO algorithms perform poorly overall, especially in complex multimodal functions, possibly due to parameter sensitivity or insufficient search mechanisms, while the BTCPO algorithm shows better performance. The SCSO and GJO algorithms perform remarkably in specific functions but have high time costs. The BTCPO algorithm may be more competitive in terms of time cost while ensuring a certain level of accuracy.
Additional examination of the experimental data in Table 2 is given in order to address statistical reliability: BTCPO achieves a minimum value (min = 0) consistent with DBO for unimodal functions (e.g., F1–F7), and its standard deviation over 30 runs is the same as that of HBA and BKA, showing strong repeatability and no notable variations in results. BTCPO’s median value (e.g., F8: −1.17 × 104) for multimodal functions (e.g., F8-F13) reflects a concentrated data distribution and is closer to the best value (−1.26 × 104) than GWO’s (median: −6.07 × 103) and SSA’s (median: −8.08 × 103). Even in the absence of further hypothesis testing, the low standard deviation and uniformity among the median, mean, and min numbers subtly confirm the statistical soundness of BTCPO’s findings.
In general, with its excellent stability in unimodal functions and the potential shown in multimodal functions, the BTCPO algorithm is a powerful algorithm for solving the benchmark problems in CEC2005. In scenarios that require high accuracy and robustness, it can provide reliable solutions. If computation time is a concern, other algorithms with high stability and low time consumption, such as DBO or BKA, can be considered comprehensively. For simple unimodal problems, GWO or PSO can also be used as supplementary options due to their high computational efficiency.

5.2.2. CEC2021 Benchmark Test Function

Consistent with the experimental setup for classical benchmark functions, each algorithm was run independently 30 times on each CEC2021 benchmark test function. Results from each run were recorded, including metrics such as the minimum value (min), standard deviation (std), average value (avg), median value (median), worst value (worst), and computation time. The results are presented in Table 3, and the convergence curves are illustrated in Figure 5. By analyzing these metrics, the performance of the algorithms in handling the CEC2021 benchmark test function suite can be comprehensively evaluated, covering aspects such as convergence accuracy, convergence stability, and search efficiency.
The BTCPO algorithm demonstrates superior convergence precision and stability across the CEC2021 test suite. It achieves near-global-optimal solutions (min≈0) for all 10 functions, with the minimum values (min) reaching 0 for F1 and 1.11 × 10−315 for F10. Critically, a zero standard deviation (std) in all runs confirms perfect stability over 30 independent trials, outperforming all competitors. For instance, GOOSE exhibits severe solution fluctuations (std = 2.75 × 103 for F1), while HHO, despite reaching min = 0 in F2–F4, converges to only 1.42 × 10−176 at its worst for F1, significantly weaker than BTCPO’s robustness. This positions BTCPO as ideal for high-precision applications (e.g., aerospace control).
However, BTCPO’s computational efficiency remains a bottleneck. Its average runtime (avg_time) is 2–4× higher than others: F1 at 0.24 s (vs. CPO’s 0.08 s) and F10 at 0.39 s (vs. GWO’s 0.10 s). By contrast, CPO, GWO, and GOOSE excel in speed (avg: 0.06–0.08 s) but sacrifice accuracy. GOOSE deteriorates to 6.26 × 102 at F3’s worst case, and CPO converges to only 1.73 × 10−69 for F10’s worst, whereas BTCPO maintains 1.11 × 10−315 under the same conditions. This highlights an inherent precision-efficiency trade-off in algorithm design.
Since computing time is directly correlated with the number of function evaluations, the average computation time of each algorithm (found in Table 2 and Table 3) implicitly represents the true computational cost, even though the convergence curves are displayed according to the number of iterations. The tables demonstrate that BTCPO achieves greater convergence performance while maintaining an acceptable computation time, matching that of sophisticated algorithms such as DBO and CPO, hence validating its effectiveness in real-world application scenarios.
In order to provide a more comprehensive comparison, BTCPO was also evaluated against well-established algorithms such as Particle Swarm Optimization (PSO), Artificial Bee Colony (ABC), and Cuckoo Search (CS). These algorithms have been widely recognized and employed for optimization tasks in various domains, demonstrating effective performance in the majority of datasets. Although BTCPO shows competitive results, especially in terms of solution quality and stability, it exhibits higher computation time in some cases compared to PSO and ABC, which are known for their efficient convergence. However, BTCPO’s ability to consistently provide better quality solutions compensates for the additional computational cost.
In summary, BTCPO’s breakthrough lies in its unmatched robustness and convergence, the comprehensive comparative analysis of BTCPO against eight state-of-the-art algorithms is summarized in Table 4. To enhance practicality, hybrid strategies or parallel computing are recommended. Future studies should validate scalability in higher dimensions.

5.3. Time Complexity Analysis of the Algorithm

From the perspective of core evaluation dimensions for algorithm time complexity, the computational overhead of the Porcupine Optimization Algorithm fused with BTCPO is mainly dominated by the iterative process. The initialization phase includes parameter setting, population generation, and initial fitness calculation, with a time complexity of O N × D , where N is the population size and D is the problem dimension. Operations in this phase are all linear, having limited impact on overall efficiency.
As the core link, the iterative phase involves, in each iteration, updating the global optimal solution ( O N ), updating individual positions (both Butterfly Search and Triangular Walk strategies involve D-dimensional vector operations, with a complexity of O N , for a single individual and O N × D for the entire population), boundary checking ( O N × D ), recalculating fitness ( O N × D ), and updating the optimal solution ( O N ). The complexity of a single iteration is O N × D ; if the maximum number of iterations is T, the total complexity of the iterative phase is O T × N × D . The judgment and output in the termination phase are constant-time operations ( O 1 ).
Table 2, Table 3, Table 4, Table 5, Table 6, Table 7 and Table 8 provide further information on computational cost by connecting time complexity ( O T × N × D ) to real runtime data. Due to strategy fusion, BTCPO’s per-iteration cost is just somewhat higher than CPO’s (e.g., F1: BTCPO 0.28 s vs. CPO 0.0631 s), and its overall time complexity stays O T × N × D (the same as CPO). However, BTCPO has a similar total computational cost to CPO since it requires fewer iterations to converge. Furthermore, BTCPO strikes a compromise between accuracy and efficiency when compared to expensive algorithms like HHO (F1: 0.456 s) and BKA (F1: 0.517 s); this trade-off is evident in the runtime measurements that are already available, obviating the need for further cost trials.
In summary, the total time complexity of BTCPO is O T × N × D . Even though new tactics are used, there is no extra computing complexity as compared to the original Porcupine Optimization Algorithm, striking a compromise between efficiency and performance enhancement. It should be noted that the above time complexity analysis primarily reflects the logical operation level based on code structure. In actual implementation, the runtime may increase due to factors such as programming environment, memory access, and parameter tuning overheads. Therefore, the reported computational time represents a more practical measure of algorithmic efficiency.

5.4. The Application of BTCPO in Engineering

The engineering optimization issues in this section (cantilever beam, three-bar truss, welded beam, reinforced concrete beam design) are developed from real structural engineering scenarios, with intrinsic uncertainties corresponding to real-world data “noise.” Here, BTCPO’s performance subtly illustrates its resilience to such real-world noise: BTCPO outperforms noise-sensitive algorithms such as GOOSE (std = 0.42851, range = 1.33998–2.29651) in cantilever beam design (Table 5), maintaining low std (0.00031) and a tight best-worst range (1.33638–1.34094) in the face of possible load distribution errors. Similarly to this, BTCPO’s minimal standard deviation (0.0006) in reinforced concrete beam design (Table 8) under real-world limitations validates its capacity to stabilize outcomes in the face of uncertainty.

5.4.1. Optimization Problem in Cantilever Beam Design

In structural engineering, designing cantilever beams is a common optimization issue that seeks to ascertain the beam’s geometric attributes (such as its size and cross-sectional form) and material characteristics [44]. It aims to accomplish certain technical goals (such lightweight design and cheap cost) while adhering to mechanical performance standards (strength, stiffness, and stability). A cantilever beam is usually fixed at one end and free at the other, bearing external loads (such as concentrated forces and distributed forces), and needs to avoid failures (such as yielding and excessive deformation). Its schematic diagram is shown in Figure 6. The objectives and significance of optimizing cantilever beam design are as follows:
Minimizing weight: This reduces material usage and the self-weight of the structure. It is applicable in fields such as aerospace and automotive, helping to save material costs, improve energy efficiency, and enhance the flexibility of mobile structures. Minimizing maximum stress/deformation: This ensures that the stress of the beam does not exceed the allowable value of the material and the deformation is within the permissible range, thereby guaranteeing structural safety and avoiding fatigue damage or functional failure. Minimizing manufacturing costs: This involves comprehensively considering material costs, processing complexity, and manufacturing process constraints. It improves economic efficiency and meets the needs of large-scale production.
The cantilever beam design problem focuses on the weight optimization of square-section cantilever beams. The cantilever beam is rigidly supported at one end, and a vertical force acts on the free node of the cantilever. The beam consists of 5 hollow square blocks with a constant thickness, where the height (or width) serves as the decision variable and the thickness is fixed. This problem can be expressed by the objective function (14), which has constraint conditions and boundary constraints, as shown in Equations (15) and (16), respectively.
f ( X ) = 0.0624 ( x 1 + x 2 + x 3 + x 4 + x 5 )
g ( X ) = 61 x 1 3 + 37 x 2 3 + 19 x 3 3 + 7 x 4 3 + 1 x 5 3 1 0
0.01 x i 100 ,   i = 1 , 2 , , 5
In order to maximize the target function of the cantilever beam design, nine smart optimization strategies were employed in the simulation experiments. For every method, the best and worst solutions, standard deviation (std), mean, median, average processing time, and convergence curves are noted. Table 5 summarizes the parameter settings, and Figure 7 shows the convergence curves.
A comprehensive analysis of the experimental outcomes reveals that BTCPO performs competitively in terms of the best solution (1.33638), with only minor differences compared to the optimal results of other algorithms. This indicates that BTCPO demonstrates strong competitiveness in identifying high-quality design solutions. Regarding stability, the standard deviation of BTCPO (0.00031) remains at a relatively low level, reflecting that the algorithm exhibits minimal fluctuations across multiple runs and consistently delivers results close to the optimum, thereby providing more reliable design outcomes in practical applications.
The mean and median values that BTCPO was able to acquire (mean = 1.33843; median = 1.33947) are in close proximity to its optimal solution. This suggests that BTCPO not only identifies high-quality solutions but also maintains a concentrated distribution of solutions around the optimum, highlighting its balanced overall performance. Compared with algorithms such as SSA and GWO, BTCPO shows comparable or superior solution quality. In terms of the worst solution, BTCPO also presents a clear advantage, outperforming algorithms such as GOOSE, HHO, and BKA. This implies that even under unfavorable conditions, BTCPO can secure relatively high-quality solutions, thereby reducing the risk of extremely poor outcomes.
Despite taking a little longer to compute than other competing algorithms, BTCPO’s better solution quality and stability more than make up for this disadvantage. In comparison to other algorithms, BTCPO usually needs less iterations to reach convergence, as seen in the convergence charts (Figure 7). This shows that it can converge quickly and makes up for its comparatively higher per-iteration runtime.
To further illustrate BTCPO’s practical applicability, three supplementary analyses are provided based on existing experimental data and algorithmic logic: First, in terms of parameter sensitivity, BTCPO’s adaptive probability threshold Th (calculated via Equation (13)) dynamically adjusts the fusion ratio of butterfly search and triangular walk—during early iterations (T < 0.6Tmax), Th gradually decreases from 0.8 to 0.2, ensuring sufficient global exploration before shifting to local exploitation, which avoids performance degradation caused by fixed parameters. Second, from a statistical perspective, Table 5 shows BTCPO’s standard deviation (std = 0.00031) and median (1.33947) are closely aligned with its best solution (1.33638), indicating minimal result fluctuations across 30 runs and superior stability compared to algorithms like GOOSE (std = 0.42851).
Overall, BTCPO exhibits significant advantages in the cantilever beam design optimization problem, particularly in terms of stability, solution quality, and robustness against worst-case scenarios. While its single-run efficiency is somewhat lower, the reduced number of iterations and the reliability of its solutions make BTCPO a highly valuable choice for applications that prioritize high-quality design outcomes.

5.4.2. Optimization Problem of the Three-Bar Truss Structure

The goal of the three-bar truss design, a traditional structural engineering optimization problem, is to ascertain the material qualities and geometric parameters (such as cross-sectional areas, lengths, and joint positions) of a truss structure made up of three components [45]. The goal is to fulfill mechanical performance restrictions including strength, stiffness, and stability while achieving lightweight design, cost reduction, or increased dependability. In basic support systems (such as roof supports and bridges), three-bar truss designs are frequently used to prevent probable failure modes including buckling, yielding, and excessive joint displacement. Its schematic diagram is shown in Figure 8.
The optimization of the three-bar truss design carries significant importance, which can be summarized as follows:
Minimization of structural weight—reducing material consumption and manufacturing cost, particularly relevant in weight-sensitive applications such as aerospace and mobile structures. Minimization of maximum stress—ensuring that the stress in each member does not exceed the allowable material strength, thereby preventing yielding or fracture. Minimization of nodal displacement—controlling the displacement of critical joints to avoid functional failure or excessive structural deformation.
The objective of the three-bar truss design problem is therefore to minimize the structural volume while satisfying the stress constraints imposed on each member of the truss. This problem can be mathematically represented by the cross-sectional areas X = (x1,x2) = (A1,A2), with its mathematical formulation expressed as follows:
Objective Function:
f ( X ) = ( 2 2 A 1 + A 2 ) × l
Constraint Conditions:
g 1 ( X ) = 2 A 1 + A 2 2 A 1 2 + 2 A 1 A 2 P σ 0
g 2 ( X ) = A 2 2 A 1 2 + 2 A 1 A 2 P σ 0
g 3 ( X ) = 1 A 1 + 2 A 2 P σ 0
Boundary Constraints:
0 A 1 ,   A 2 1
where l = 100 cm; P = 2 kN/(cm2); σ = 2 kN/(cm2).
In the simulation experiments, the nine aforementioned intelligent optimization algorithms were applied to optimize the objective function of the cantilever beam design. The results recorded for each algorithm include the best solution (best), worst solution (worst), standard deviation (std), mean, median, average computational time (time), and convergence curves. The numerical results are summarized in Table 6, and the corresponding convergence curves are illustrated in Figure 9.
The experimental results indicate that the BTCPO algorithm exhibits notable advantages in several aspects. In terms of solution quality, BTCPO achieves a best value of 263.8861, slightly outperforming SSA (263.8959), GOOSE (263.8959), HHO (263.8959), BKA (263.8958), HBA (263.8959), and CPO (263.8958), demonstrating its capability to obtain solutions closer to the global optimum. The standard deviation of BTCPO is 0.0203, indicating moderate dispersion and relatively stable performance across multiple runs compared to SSA (0.0068), GOOSE (0.0017), GWO (0.0217), HHO (0.3051), and DBO (0.0682). Metrics such as worst, mean, and median values place BTCPO at a mid-level, yet it maintains consistency, reflecting reliable performance under typical conditions.
BTCPO’s primary limitation lies in its average computational time of 0.2315, which is longer than SSA (0.1525), GOOSE (0.0926), GWO (0.0740), HHO (0.2214), BKA (0.1640), HBA (0.1023), DBO (0.1076), and CPO (0.1046). However, BTCPO generally requires fewer iterations to converge than DBO, HHO, and BKA, partially offsetting its higher per-iteration cost. In practical engineering applications where runtime constraints are moderate, this overhead is acceptable, as BTCPO’s advantages in solution quality—particularly its ability to avoid poor solutions and maintain stability—offer reliable guidance for three-bar truss design optimization. Consequently, BTCPO is a highly suitable choice for scenarios that prioritize stable, high-quality solutions over computational speed.

5.4.3. Welded Beam Design Optimization Problem

In engineering, welded beam design is a typical load-bearing structural element. During the design phase, material properties, geometrical considerations, welding techniques, and external loading conditions must all be carefully considered. The main goal is to balance structural strength, cost effectiveness, and manufacturability by optimizing the beam’s cross-sectional dimensions (such as height, width, and flange thickness), weld length, and welding parameters [46]. Its schematic diagram is shown in Figure 10. Typical applications include bridges, industrial steel structures, and ship frameworks. The objectives and significance of welded beam design optimization are as follows:
Minimize material cost: Reduce steel and welding material consumption to lower the total construction cost, which is particularly significant in large-scale steel structures. Maximize load-bearing capacity: Ensure that the beam does not buckle or fail under ultimate loads, guaranteeing structural safety under conditions such as seismic or wind loads. Control welding deformation and residual stress: Minimize heat-induced deformation to prevent assembly errors and fatigue failure, which is critical for precision mechanical frameworks. Minimize weight: Reduce transportation and installation costs and enhance structural lightweighting, relevant for mobile equipment or aerospace structures. Optimize manufacturability: Simplify welding procedures (e.g., reducing the number of welds), shorten production cycles, and decrease labor costs.
The welded beam design problem is formulated as a minimization task, where the goal of the optimization algorithm is to reduce manufacturing costs. The problem involves identifying four design variables—the beam’s length (l), height (t), thickness (b), and weld thickness (h)—while minimizing the cost of manufacturing the welded beam. Therefore, welded beam design represents a typical nonlinear programming problem. Its mathematical formulation is described as follows:
Objective Function:
l = l 1 , l 2 , l 3 , l 4 = h l t b = x 1 x 2 x 3 x 4
Constraint Conditions:
f ( l ) = 1.10471 l 1 2 l 2 + 0.04811 l 3 l 4 ( 14.0 + l 2 )
Here, the function f represents the manufacturing cost of the welded beam, and the optimization objective is to minimize this cost. The decision variables are subject to the following bounds:
0.1 l 1 2 , 0.1 l 2 10 , 0.1 l 3 10 , 0.1 l 4 2
Boundary Constraints:
s 1 ( l ) = τ ( l ) τ max 0
s 2 ( l ) = σ ( l ) σ max 0
s 3 ( l ) = δ ( l ) δ max 0
s 4 ( l ) = l 1 l 4 0
s 5 ( l ) = P P c ( l ) 0
s 6 ( l ) = 0.125 l 1 0
s 7 ( l ) = 1.10471 l 1 2 + 0.04811 l 3 l 4 ( 14.0 + l 2 ) 5.0 0
In the optimization problem, the parameter values are typically set as follows: σmax = 30,000 psi, P = 6000 lb, L = 14 in, δmax = 0.25 in, E = 3 × 106 psi, τmax = 136,000 psi, G = 1.2 × 107 psi. Constraint Equations (25) and (26) represent the requirements that the shear stress and bending stress of the welded beam must not exceed their respective maximum allowable limits. Constraint Equations (31) and (30) enforce that the design variable h must not exceed the cross-sectional width b and must not fall below its minimum permissible value, respectively. Constraint Equation (27) ensures that the end deflection of the welded beam does not exceed 0.25 in. The mathematical expressions corresponding to these constraints are provided in the following formulas:
τ l = τ 2 + 2 τ τ l 2 / R + τ 2
τ = P 2 l 1 l 2 ,   τ = MR / J ,   M = p L + l 2 / 2
R = l 2 2 + ( l 1 + l 3 ) 2 4
J = 2 2 l 1 l 2 [ l 2 2 12 + l 1 + l 3 2 14 ]
P c l = 4.013 E l 3 l 4 2 6 L 2 1 l 3 E 8 LG
In the simulation experiments, the nine aforementioned intelligent optimization algorithms were applied to optimize the welded beam design objective function. The results recorded for each algorithm include the best value, worst value, standard deviation, mean, median, average computational time, as well as the convergence curves. The detailed numerical results are presented in Table 7, and the corresponding convergence curves are shown in Figure 11.
The BTCPO algorithm demonstrates notable advantages in certain performance metrics. Regarding the best solution, BTCPO achieves a value of 1.6702, which is lower than that of DBO (1.7029), HHO (1.7319), and GOOSE (1.7062), indicating a clear superiority in obtaining near-optimal solutions compared to other algorithms. In terms of the worst solution, BTCPO attains a value of 1.7607, which is smaller than those of SSA, GOOSE, HHO, and DBO, reflecting a relatively high stability. Because it improves reliability in a variety of scenarios and lowers the possibility of really bad results, such stability is very useful for solving difficult welded beam design optimization challenges. BTCPO performs moderately, staying within acceptable levels for the standard deviation, mean, and median.
Regarding average computational time, BTCPO requires 0.2714, which is noticeably longer than GWO (0.1009) and GOOSE (0.1107). However, in terms of convergence iterations, BTCPO shows a significant advantage over most of the other optimization algorithms, as illustrated in Figure 11. Furthermore, the time per iteration remains acceptable for practical applications, suggesting that the longer average runtime is not a critical disadvantage.
In conclusion, despite some relative shortcomings in specific metrics, BTCPO shows excellent application potential due to its strong performance in best solutions and reasonable computing cost. By improving the algorithmic structure, future work may significantly improve its performance across additional metrics.

5.4.4. Reinforced Concrete Beam Design

In building and bridge structures, reinforced concrete beams are essential load-bearing components. Code limitations, applied loads, geometric parameters, and material mechanical qualities must all be carefully taken into account when designing them. The primary design objective is to appropriately configure the concrete cross-sectional dimensions, longitudinal reinforcement, and stirrups to ensure that the beam satisfies requirements for strength, stiffness, and durability under bending moments, shear forces, and torsion—as well as for economic efficiency and constructability [47]. The goals and significance of optimizing reinforced concrete beam design include:
Minimizing material cost: reducing the consumption of concrete and steel to lower overall project cost, particularly for large-scale constructions. Maximizing load-bearing capacity: ensuring the beam does not fail under ultimate loads, thereby enhancing structural safety (e.g., seismic requirements in buildings). Controlling crack width and deflection: meeting serviceability and durability requirements, and preventing excessive cracking that could lead to reinforcement corrosion (e.g., in humid environments such as bridges). Minimizing carbon emissions: reducing cement usage or employing low-carbon materials to support green building and sustainability objectives. Optimizing constructability: simplifying reinforcement arrangements (e.g., reducing stirrup layers) to decrease construction difficulty and project duration.
The design of reinforced concrete beams must integrate key factors including structural geometry, load conditions, material properties, and economic indicators, all of which are interrelated and mutually constraining, collectively determining the beam’s safety, functionality, and cost-effectiveness. As a key geometric parameter, span has a direct impact on overall stability, cross-sectional selection, and stress distribution. To guarantee safety under a range of service situations, dead loads and live loads must be defined in accordance with functional requirements and standards. While steel yield strength, the primary tensile parameter, controls the tensile resistance and directly influences reinforcing design and structural performance, concrete compressive strength, a crucial compression zone parameter, influences cross-sectional size and total load capacity. Additionally, unit costs of concrete and steel (typically expressed per unit volume or length) must be considered in conjunction with material quantities to achieve an optimal balance between structural safety and cost efficiency. To minimize the total structural cost, the design variables—reinforcement area x1(As), beam width x2(b), and beam depth x3(h), This optimization problem can be formulated as the objective function in Equation (37).
Objective Function:
f ( X ) = 2.9 x 1 + 0.6 x 2 x 3
Constraint Conditions:
g 1 ( X ) = x 2 x 3 4 0 g 2 ( X ) = 180 + 7.375 x 1 2 x 3 x 1 x 2 0
Boundary Constraints:
0 x 1 , x 2 1 5 x 3 10
The simulation experiments employed the nine aforementioned intelligent optimization algorithms to optimize the reinforced concrete beam design objective function. For each algorithm, the results recorded included the best value (best), worst value (worst), standard deviation (std), mean value (mean), median value (median), average computational time (time), and the convergence curve, as presented in Table 8. The corresponding convergence curves are illustrated in Figure 12.
Based on a comprehensive analysis of the experimental results, the BTCPO algorithm demonstrates exceptional performance across multiple key metrics, highlighting its unique advantages in solving the design optimization problem of reinforced concrete beams.
In terms of the minimum value, the BTCPO algorithm achieved an excellent result of 158.8010, outperforming other optimization algorithms. This outcome is of great significance, as it indicates that the BTCPO algorithm possesses robust global search capability, enabling it to accurately locate the theoretical optimal solution within complex design spaces. When confronted with numerous design variables and intricate constraints in reinforced concrete beam design, the algorithm can efficiently pinpoint the optimal design solution—performing on par with other high-performing algorithms—and thus lays a solid foundation for obtaining high-quality design results.
The BTCPO algorithm’s advantages are particularly prominent in terms of the worst value. Its worst value is 158.8069, whereas the worst value of the GOOSE algorithm is as high as 182.7366. This substantial gap fully underscores the BTCPO algorithm’s stability under extreme conditions. While the BTCPO algorithm’s worst value is slightly inferior to that of the CPO algorithm, this discrepancy may stem from potential overfitting in the BTCPO algorithm, which will serve as a direction for further algorithm improvement in subsequent work.
As a key metric for measuring the dispersion of algorithm results, the standard deviation further confirms the BTCPO algorithm’s outstanding performance. With a standard deviation of only 0.0006, the BTCPO algorithm significantly outperforms algorithms such as GOOSE and HHO. This implies that the results obtained from each run of the BTCPO algorithm are highly concentrated, exhibiting strong consistency. In engineering design, such stability is particularly critical: it allows designers to form accurate expectations of the algorithm’s output, reduces design iterations and uncertainties caused by result fluctuations, and ultimately improves design efficiency and quality.
In terms of the average value and median value, the BTCPO algorithm also delivers notable performance. Its average value is 158.8052, and its median value is 158.8050—both are very close to the minimum value. In contrast, the GOOSE algorithm yields an average value of 164.9084 and a median value of 162.4429, which are significantly higher than those of the BTCPO algorithm. This fully demonstrates that the BTCPO algorithm can obtain high-quality solutions in most cases throughout the overall optimization process. Whether in terms of data central tendency or overall distribution, the algorithm exhibits high solution quality, providing designers with more valuable references for design schemes.
Notably, the BTCPO algorithm has a certain disadvantage in computation time, with an average time of 0.1415—longer than that of other optimization algorithms. This disadvantage primarily arises from the algorithm’s complexity and search strategy. However, convergence curves reveal that the BTCPO algorithm has fewer convergence iterations compared to algorithms such as DBO, HHO, and GWO. This indicates that the BTCPO algorithm can compensate for its longer computation time by reducing the number of iterations.
In conclusion, the BTCPO algorithm exhibits high application value in the design optimization of reinforced concrete beams, owing to its outstanding performance across multiple core metrics. Although the BTCPO algorithm demonstrates strong optimization stability, its relatively long computation time indicates that further improvement in implementation efficiency is still necessary. In practical engineering applications with strict time constraints, this may limit its immediate deployment. Nevertheless, optimization of coding structure, parameter tuning, and parallel implementation may further reduce runtime and enhance its practicality.

6. Conclusions and Future Work

This study focuses on the application and improvement of the Crested Porcupine Optimization (CPO) algorithm in addressing complex optimization problems. The current level of research of swarm intelligence optimization algorithms is first thoroughly analyzed, and it is found that traditional methods still have to pick between global exploration capability and local exploitation precision. To address the shortcomings of CPO in terms of local convergence speed and the ability to escape local optima, an improved Crested Porcupine Optimization algorithm incorporating the butterfly search mechanism and triangle walking technique (BTCPO) is then proposed. This method introduces a global search mechanism based on scent intensity through the butterfly search, which enhances the diversity and dispersion of the population in the solution space; meanwhile, it leverages the triangular walking strategy to effectively strengthen the fine exploitation capability in local regions in the later stage of the algorithm, thereby achieving a dynamic balance between global exploration and local exploitation.
In the experimental section, BTCPO was validated on 23 classic benchmark test functions and the CEC2021 test suite, respectively. The results demonstrate that BTCPO outperforms seven compared mainstream optimization algorithms (DBO, HBA, BKA, HHO, GWO, GOOSE, SSA) in terms of average optimal value, standard deviation, and convergence speed on most test functions, exhibiting stronger stability and robustness.
In real-world situations, BTCPO’s execution time is competitive when compared to algorithms with comparable accuracy: While its 0.2714 s is near HHO’s 0.2864 s and yields a superior best solution in the welded beam design (Table 7), its 0.1415 s is higher than GWO’s 0.0373 s but yields a more stable standard deviation in the reinforced concrete beam design (Table 8). This demonstrates that BTCPO’s execution time is not unduly long, but rather strikes a purposeful balance between computational cost, convergence speed, and optimization accuracy—essential for engineering problems where solution reliability (e.g., avoiding structural design errors) frequently takes precedence over slight time savings.
Nevertheless, there remains room for further research on BTCPO. In particular, improving the computational efficiency of BTCPO remains an important direction for future work, as the current implementation involves non-negligible time consumption in practical cases. Firstly, the performance stability and adaptability of the algorithm need to be further explored when dealing with high-dimensional, dynamic, or uncertain optimization problems. Secondly, future research will focus on how to enhance the real-time optimization capability of the algorithm in dynamic environments through adaptive parameter adjustment or integration with deep learning models. Additionally, extending BTCPO to multi-objective optimization, discrete optimization, and combinatorial optimization problems, and verifying its application in larger-scale engineering scenarios such as power system scheduling, intelligent manufacturing, and structural optimization, also holds significant research value.
In conclusion, the BTCPO algorithm not only enriches the paradigms for the advancement of swarm intelligence optimization algorithms in theoretical research but also exhibits notable merits in both experimental performance and engineering applications. This algorithm further provides novel references and implications for subsequent investigations and practical implementations in addressing complex optimization problems.

Author Contributions

Conceptualization, B.C.; Data curation, C.C.; Writing—original draft, B.C.; Validation, Y.C.; Methodology, L.C.; Software, L.C. and Y.C.; Visualization, B.C.; Investigation, Y.Y.; Supervision, Y.Y.; Writing—review and editing, B.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Natural Science Foundation of Zhejiang Province, grant number LY23F010002, and the School-level Scientific Research Project of Wenzhou University of Technology, grant number ky202403. The APC was funded by Wenzhou University of Technology.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon request. There are no restrictions on data availability.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Selvarajan, S. A comprehensive study on modern optimization techniques for engineering applications. Artif. Intell. Rev. 2024, 57, 194. [Google Scholar] [CrossRef]
  2. Chen, C.; Cao, L.; Chen, Y.; Yue, Y. A comprehensive survey of convergence analysis of beetle antennae search algorithm and its applications. Artif. Intell. Rev. 2024, 57, 141. [Google Scholar] [CrossRef]
  3. Zhu, D.; Li, R.; Zheng, Y.; Zhou, C.; Li, T.; Cheng, S. Cumulative major advances in particle swarm optimization from 2018 to the present: Variants, analysis and applications. Arch. Comput. Methods Eng. 2025, 32, 1571–1595. [Google Scholar] [CrossRef]
  4. Chen, B.; Cao, L.; Chen, C.; Chen, Y.; Yue, Y. A comprehensive survey on the chicken swarm optimization algorithm and its applications: State-of-the-art and research challenges. Artif. Intell. Rev. 2024, 57, 170. [Google Scholar] [CrossRef]
  5. Dagal, I.; Ibrahim, A.L.W.; Harrison, A.; Mbasso, W.F.; Hourani, A.O.; Zaitsev, I. Hierarchical multi step Gray Wolf optimization algorithm for energy systems optimization. Sci. Rep. 2025, 15, 8973. [Google Scholar] [CrossRef]
  6. Uddin, M.P.; Majumder, A.; Barma, J.D.; Mirjalili, S. An improved Multi-Objective Harris Hawks optimization algorithm for solving EDM problems. Arab. J. Sci. Eng. 2025, 50, 12403–12448. [Google Scholar] [CrossRef]
  7. Cao, L.; Yue, Y.; Chen, Y.; Chen, C.; Chen, B. Sailfish Optimization Algorithm Integrated with the Osprey Optimization Algorithm and Cauchy Mutation and Its Engineering Applications. Symmetry 2025, 17, 938. [Google Scholar] [CrossRef]
  8. Yue, Y.; Cao, L.; Lu, D.; Hu, Z.; Xu, M.; Wang, S.; Li, B.; Ding, H. Review and empirical analysis of sparrow search algorithm. Artif. Intell. Rev. 2023, 56, 10867–10919. [Google Scholar] [CrossRef]
  9. Adalja, D.; Patel, P.; Mashru, N.; Jangir, P.; Jangid, R.; Gulothungan, G.; Khishe, M. A new multi objective crested porcupines optimization algorithm for solving optimization problems. Sci. Rep. 2025, 15, 14380. [Google Scholar] [CrossRef]
  10. Abdel-Basset, M.; Mohamed, R.; Abouhawwash, M. Crested Porcupine Optimizer: A new nature-inspired metaheuristic. Knowl.-Based Syst. 2024, 284, 111257. [Google Scholar] [CrossRef]
  11. Fan, Y.; Ma, Z.; Tang, W.; Liang, J.; Xu, P. Using crested Porcupine optimizer algorithm and CNN-LSTM-Attention model combined with deep learning methods to enhance short-term power forecasting in PV generation. Energies 2024, 17, 3435. [Google Scholar] [CrossRef]
  12. Liu, H.; Zhou, R.; Zhong, X.; Yao, Y.; Shan, W.; Yuan, J.; Xiao, J.; Ma, Y.; Zhang, K.; Wang, Z. Multi-strategy enhanced crested porcupine optimizer: CAPCPO. Mathematics 2024, 12, 3080. [Google Scholar] [CrossRef]
  13. Wang, S.; Xu, B.; Zheng, Y.; Yue, Y.; Xiong, M. Path Optimization Strategy for Unmanned Aerial Vehicles Based on Improved Black Winged Kite Optimization Algorithm. Biomimetics 2025, 10, 310. [Google Scholar] [CrossRef]
  14. Gu, Q.; Niu, Y.; Hui, Z.; Wang, Q.; Xiong, N. A hierarchical clustering algorithm for addressing multi-modal multi-objective optimization problems. Expert Syst. Appl. 2025, 264, 125710. [Google Scholar] [CrossRef]
  15. Zhong, X.; Liang, B. Elite-based butterfly optimization algorithm and its application in speckle projection technique. Appl. Soft Comput. 2025, 169, 112561. [Google Scholar] [CrossRef]
  16. Wang, X.; Zhai, F.; Zhao, R.; Xing, Y.; He, Z. Synchronous control method for the walking system of the dual forging manipulators based on triangular velocity planning. Mech. Based Des. Struct. Mach. 2025, 53, 1228–1248. [Google Scholar] [CrossRef]
  17. Tian, Y.; Zhang, Y.; Zhang, H. Recent advances in stochastic gradient descent in deep learning. Mathematics 2023, 11, 682. [Google Scholar] [CrossRef]
  18. Yue, Y.; Cao, L.; Chen, C.; Chen, Y.; Chen, B. Snake Optimization Algorithm Augmented by Adaptive t-Distribution Mixed Mutation and Its Application in Energy Storage System Capacity Optimization. Biomimetics 2025, 10, 244. [Google Scholar] [CrossRef]
  19. Abdelhamid, A.A.; Towfek, S.K.; Khodadadi, N.; Alhussan, A.A.; Khafaga, D.S.; Eid, M.M.; Ibrahim, A. Waterwheel plant algorithm: A novel metaheuristic optimization method. Processes 2023, 11, 1502. [Google Scholar] [CrossRef]
  20. Awadallah, M.A.; Makhadmeh, S.N.; Al-Betar, M.A.; Dalbah, L.M.; Al-Redhaei, A.; Kouka, S.; Enshassi, O.S. Multi-objective ant colony optimization. Arch. Comput. Methods Eng. 2025, 32, 995–1037. [Google Scholar] [CrossRef]
  21. Song, Y.; Cai, X.; Zhou, X.; Zhang, B.; Chen, H.; Li, Y.; Deng, W.; Deng, W. Dynamic hybrid mechanism-based differential evolution algorithm and its application. Expert Syst. Appl. 2023, 213, 118834. [Google Scholar] [CrossRef]
  22. Zhang, Y.; Wang, S.; Zio, E.; Zhang, C.; Dui, H.; Chen, R. Multi-objective maintenance strategy for complex systems considering the maintenance uncertain impact by adaptive multi-strategy particle swarm optimization. Reliab. Eng. Syst. Saf. 2025, 256, 110671. [Google Scholar] [CrossRef]
  23. Ye, M.; Zhou, H.; Yang, H.; Hu, B.; Wang, X. Multi-strategy improved dung beetle optimization algorithm and its applications. Biomimetics 2024, 9, 291. [Google Scholar] [CrossRef]
  24. Khan, M.H.; Ulasyar, A.; Khattak, A.; Zad, H.S.; Alsharef, M.; Alahmadi, A.A.; Ullah, N. Optimal sizing and allocation of distributed generation in the radial power distribution system using honey badger algorithm. Energies 2022, 15, 5891. [Google Scholar] [CrossRef]
  25. Wang, J.; Wang, W.; Hu, X.; Qiu, L.; Zang, H.-F. Black-winged kite algorithm: A nature-inspired meta-heuristic for solving benchmark functions and engineering problems. Artif. Intell. Rev. 2024, 57, 98. [Google Scholar] [CrossRef]
  26. Hussien, A.G.; Abualigah, L.; Abu Zitar, R.; Hashim, F.A.; Amin, M.; Saber, A.; Almotairi, K.H.; Gandomi, A.H. Recent advances in harris hawks optimization: A comparative study and applications. Electronics 2022, 11, 1919. [Google Scholar] [CrossRef]
  27. Hou, Y.; Gao, H.; Wang, Z.; Du, C. Improved grey wolf optimization algorithm and application. Sensors 2022, 22, 3810. [Google Scholar] [CrossRef] [PubMed]
  28. Hamad, R.K.; Rashid, T.A. GOOSE algorithm: A powerful optimization tool for real-world engineering challenges and beyond. Evol. Syst. 2024, 15, 1249–1274. [Google Scholar] [CrossRef]
  29. Gharehchopogh, F.S.; Namazi, M.; Ebrahimi, L.; Abdollahzadeh, B. Advances in sparrow search algorithm: A comprehensive survey. Arch. Comput. Methods Eng. 2023, 30, 427–455. [Google Scholar] [CrossRef] [PubMed]
  30. Ghasemi, M.; Khodadadi, N.; Trojovský, P.; Li, L.; Mansor, Z.; Abualigah, L.; Alharbi, A.H.; El-Kenawy, E.-S.M. Kirchhoff’s law algorithm (KLA): A novel physics-inspired non-parametric metaheuristic algorithm for optimization problems. Artif. Intell. Rev. 2025, 58, 325. [Google Scholar] [CrossRef]
  31. Ghasemi, M.; Zare, M.; Trojovský, P.; Rao, R.V.; Trojovská, E.; Kandasamy, V. Optimization based on the smart behavior of plants with its engineering applications: Ivy algorithm. Knowl. Based Syst. 2024, 295, 111850. [Google Scholar] [CrossRef]
  32. Azevedo, B.F.; Rocha, A.M.A.C.; Pereira, A.I. Hybrid approaches to optimization and machine learning methods: A systematic literature review. Mach. Learn. 2024, 113, 4055–4097. [Google Scholar] [CrossRef]
  33. Zang, J.; Cao, B.; Hong, Y. Research on the fiber-to-the-room network traffic prediction method based on crested porcupine optimizer optimization. Appl. Sci. 2024, 14, 4840. [Google Scholar] [CrossRef]
  34. Liu, J.; He, Y.; Shen, B.; Wang, J.; Wang, P.; Zhang, G.; Zhuang, X.; Chen, R.; Luo, W. A Q-Learning Crested Porcupine Optimizer for Adaptive UAV Path Planning. Machines 2025, 13, 566. [Google Scholar] [CrossRef]
  35. Li, H.; Wei, D.; Wu, Y.; Li, H.; Liu, H.; Hu, X.; Zhang, H.; Zhou, H. Advanced optimization of thermal efficiency in low-low temperature economizers and air heater system employing the crested porcupine optimizer algorithm. Expert Syst. Appl. 2025, 290, 128352. [Google Scholar] [CrossRef]
  36. Chen, X.; Ma, C.; Dou, Q.; Bai, S.; Sun, K.; Li, Z. Diesel Engine Urea Injection Optimization Based on the Crested Porcupine Optimizer and Genetic Algorithm. Appl. Sci. 2025, 15, 5195. [Google Scholar] [CrossRef]
  37. Li, X.; Xu, J.; Wang, J.; Lu, Y.; Han, J.; Guo, B.; Xie, T. Prediction of geometric characteristics of laser cladding layer based on least squares support vector regression and crested porcupine optimization. Micromachines 2024, 15, 919. [Google Scholar] [CrossRef]
  38. Tang, X.; He, Z.; Jia, C. Multi-strategy cooperative enhancement dung beetle optimizer and its application in obstacle avoidance navigation. Sci. Rep. 2024, 14, 28041. [Google Scholar] [CrossRef] [PubMed]
  39. Chen, X.; Zhang, M.; Yang, M.; Wang, D. NHBBWO: A novel hybrid butterfly-beluga whale optimization algorithm with the dynamic strategy for WSN coverage optimization. Peer-Peer Netw. Appl. 2025, 18, 80. [Google Scholar] [CrossRef]
  40. Abidi, M.H.; Alkhalefah, H.; Mohammed, M.K.; Gadekallu, T.R. SMGR-BS: Stacking multiple gated recurrent butterfly search model-based innovative AAL for aging and disabled individuals. J. Disabil. Res. 2024, 3, 20240035. [Google Scholar] [CrossRef]
  41. Slimani, K.; Achard, C.; Tamadazte, B. RoCNet++: Triangle-based descriptor for accurate and robust point cloud registration. Pattern Recognit. 2024, 147, 110108. [Google Scholar] [CrossRef]
  42. Sharma, P.; Raju, S. Metaheuristic optimization algorithms: A comprehensive overview and classification of benchmark test functions. Soft Comput. A Fusion Found. Methodol. Appl. 2024, 28, 3123–3186. [Google Scholar] [CrossRef]
  43. Toktas, F.; Erkan, U.; Yetgin, Z. Cross-channel color image encryption through 2D hyperchaotic hybrid map of optimization test functions. Expert Syst. Appl. 2024, 249, 123583. [Google Scholar] [CrossRef]
  44. Marr, K.; Utter, B. Design, modeling, and experimental study of annealed 3D-printed cantilever beam force sensors. Int. J. Adv. Manuf. Technol. 2025, 136, 1025–1034. [Google Scholar] [CrossRef]
  45. Sait, S.M.; Mehta, P.; Yıldız, A.R.; Yıldız, B.S. Optimal design of structural engineering components using artificial neural network-assisted crayfish algorithm. Mater. Test. 2024, 66, 1439–1448. [Google Scholar] [CrossRef]
  46. Aydın, Y.; Ahadian, F.; Bekdaş, G.; Nigdeli, S.M. Prediction of optimum design of welded beam design via machine learning. Chall. J. Struct. Mech. 2024, 10, 86–94. [Google Scholar] [CrossRef]
  47. Azuwa, S.B.; Yahaya, F.B.M. Experimental investigation and finite element analysis of reinforced concrete beams strengthened by fibre reinforced polymer composite materials: A review. Alex. Eng. J. 2024, 99, 137–167. [Google Scholar] [CrossRef]
Figure 1. Crested Porcupine Behavior Diagram.
Figure 1. Crested Porcupine Behavior Diagram.
Biomimetics 10 00766 g001
Figure 2. Flowchart Of The CPO Algorithm.
Figure 2. Flowchart Of The CPO Algorithm.
Biomimetics 10 00766 g002
Figure 3. Flowchart Of The BTCPO Algorithm.
Figure 3. Flowchart Of The BTCPO Algorithm.
Biomimetics 10 00766 g003
Figure 4. Set: Classical Benchmark function convergence curve.
Figure 4. Set: Classical Benchmark function convergence curve.
Biomimetics 10 00766 g004aBiomimetics 10 00766 g004b
Figure 5. Set: CEC2021 Benchmark function convergence curve.
Figure 5. Set: CEC2021 Benchmark function convergence curve.
Biomimetics 10 00766 g005
Figure 6. Cantilever Beam Design Structure.
Figure 6. Cantilever Beam Design Structure.
Biomimetics 10 00766 g006
Figure 7. Cantilever beam convergence curve.
Figure 7. Cantilever beam convergence curve.
Biomimetics 10 00766 g007
Figure 8. Structural schematic of the three-bar truss design.
Figure 8. Structural schematic of the three-bar truss design.
Biomimetics 10 00766 g008
Figure 9. Three-Bar Truss convergence curve.
Figure 9. Three-Bar Truss convergence curve.
Biomimetics 10 00766 g009
Figure 10. Welded Beam.
Figure 10. Welded Beam.
Biomimetics 10 00766 g010
Figure 11. Welded beam convergence curve.
Figure 11. Welded beam convergence curve.
Biomimetics 10 00766 g011
Figure 12. Reinforced concrete beam convergence curve.
Figure 12. Reinforced concrete beam convergence curve.
Biomimetics 10 00766 g012
Table 1. Classical Benchmark Functions.
Table 1. Classical Benchmark Functions.
Benchmark FunctionnSFmin
F 1 ( x ) = i = 1 n x i 2 50[−100, 100]n0
F 2 ( x ) = i = 1 n x i + i = 1 n x i 50[−10, 10]n0
F 3 ( x ) = i = 1 n j = 1 i x j 2 50[−100, 100]n0
F 4 ( x ) = max i x i , 1 i n 50[−100, 100]n0
F 5 ( x ) = i = 1 n 1 [ 100 ( x i + 1 x i 2 ) 2 + ( x i 1 ) 2 ] 50[−30, 30]n0
F 6 ( x ) = i = 1 n x i + 0.5 2 50[−100, 100]n0
F 7 ( x ) = i = 1 n i x i 4 + r a n d o m 0 , 1 50[−1.28, 1.28]n0
F 8 ( x ) = i = 1 n x i sin x i 50[−500, 500]n−12,569.5
F 9 ( x ) = i = 1 n x i 2 10 cos 2 π x i + 10 50[−5.12, 5.12]n0
F 10 ( x ) = 20 exp 0.2 1 n i = 1 n x i 2 exp 1 n i = 1 n cos 2 π x i + 20 + e 50[−32, 32]n0
F 11 ( x ) = 1 4000 i = 1 n x i 2 i = 1 n cos x i i + 1 50[−600, 600]n0
F 12 ( x ) = π n 10 sin 2 π y i + i = 1 n 1 y i 1 2 1 + 10 sin 2 π y i + 1 + y n 1 2 + i = 1 n u x i , 10 , 100 , 4 , y i = 1 + 1 4 x i + 1 u x i , a , k , m = k x i a m , 0 , k x i a m , x i > a , a x i a , x i < a . 50[−50, 50]n0
F 13 ( x ) = 0.1 sin 2 3 π x 1 + i = 1 n 1 x i 1 2 1 + sin 2 3 π x i + 1 + x n 1 2 1 + sin 2 2 π x n + i = 1 n u x 1 , 5 , 100 , 4 50[−50, 50]n0
F 14 ( x ) = 1 500 + j = 1 25 1 j + i = 1 2 x i a i j 6 1 2[−65.536, 65.536]n0
F 15 ( x ) = i = 1 11 a i x 1 b i 2 + b i x 2 b i 2 + b i x 3 + x 4 2 4[−5, 5]n0.000307
F 16 ( x ) = 4 x 1 2 2.1 x 1 4 + 1 3 x 1 6 + x 1 x 2 4 x 2 2 + 4 x 2 4 2[−5, 5]n−1.01362
F 17 ( x ) = x 2 5.1 4 π 2 x 1 2 + 5 π x 1 6 2 + 10 1 1 8 π cos x 1 + 10 2[−5, 10] × [0, 15]0.398
F 18 ( x ) = 1 + x 1 + x 2 + 1 2 19 14 x 1 + 3 x 2 14 x 2 + 6 x 1 x 2 + 3 x 2 2 × 30 + 2 x 1 3 x 2 2 18 32 x 1 + 12 x 1 2 + 48 x 2 36 x 1 x 2 + 27 x 2 2 2[−2, 2]n3
F 19 ( x ) = i = 1 4 c i exp j = 1 4 a i j x j p i j 2 4[0, 1]n−3.86
F 20 ( x ) = i = 1 4 c i exp j = 1 6 a i j x j p i j 2 6[0, 1]n−3.32
F 21 ( x ) = i = 1 5 x a i x a i T + c i 1 4[0, 10]n−10
F 22 ( x ) = i = 1 7 x a i x a i T + c i 1 4[0, 10]n−10
F 23 ( x ) = i = 1 10 x a i x a i T + c i 1 4[0, 10]n−10
Table 2. Comparison of Optimization Results for F1–F23.
Table 2. Comparison of Optimization Results for F1–F23.
F1SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.001.56 × 10−34.00 × 10−619.12 × 10−2191.02 × 10−2072.46 × 10−2890.001.96 × 10−1360.00
std6.47 × 10−688.60 × 10−49.29 × 10−590.006.90 × 10−1610.000.004.72 × 10−860.00
avg1.18 × 10−682.76 × 10−34.82 × 10−595.52 × 10−1841.26 × 10−1611.61 × 10−2770.008.61 × 10−870.00
median7.83 × 10−1232.47 × 10−31.50 × 10−593.66 × 10−1944.24 × 10−1991.65 × 10−2820.004.23 × 10−1050.00
worse3.54 × 10−674.12 × 10−33.86 × 10−581.17 × 10−1823.78 × 10−1604.16 × 10−2760.002.58 × 10−850.00
time7.14 × 10−24.59 × 10−29.87 × 10−24.56 × 10−25.17 × 10−20.107.28 × 10−26.31 × 10−20.28
F2SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.000.261.16 × 10−352.36 × 10−1091.74 × 10−1031.80 × 10−1510.001.53 × 10−650.00
std8.62 × 10−429.84 × 1081.48 × 10−344.83 × 10−941.18 × 10−874.30 × 10−1450.002.23 × 10−440.00
avg1.77 × 10−421.80 × 1081.09 × 10−348.88 × 10−952.32 × 10−881.07 × 10−1450.005.41 × 10−450.00
median6.10 × 10−5716.406.00 × 10−358.15 × 10−1024.80 × 10−1003.63 × 10−1480.008.14 × 10−530.00
worse4.73 × 10−415.39 × 1097.07 × 10−342.65 × 10−936.45 × 10−872.26 × 10−1440.001.15 × 10−430.00
time0.995.98 × 10−20.125.73 × 10−27.09 × 10−20.118.03 × 10−26.82 × 10−20.27
F3SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.000.285.58 × 10−216.07 × 10−1874.90 × 10−2061.08 × 10−2160.000.000.00
std6.46 × 10−565.063.22 × 10−149.58 × 10−1440.000.000.006.04 × 10−860.00
avg1.18 × 10−562.799.41 × 10−151.75 × 10−1444.37 × 10−1672.66 × 10−1995.91 × 10−2161.11 × 10−860.00
median2.32 × 10−901.585.28 × 10−175.85 × 10−1661.87 × 10−1964.59 × 10−2070.001.86 × 10−1070.00
worse3.54 × 10−5528.201.50 × 10−135.25 × 10−1431.31 × 10−1657.97 × 10−1981.77 × 10−2143.31 × 10−850.00
time0.310.220.210.320.280.210.190.170.48
F4SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.003.28 × 10−22.31 × 10−166.32 × 10−1053.07 × 10−1031.90 × 10−1250.000.000.00
std2.97 × 10−3714.283.43 × 10−141.33 × 10−903.40 × 10−897.44 × 10−1180.001.57 × 10−430.00
avg5.43 × 10−3814.182.05 × 10−142.42 × 10−916.26 × 10−902.86 × 10−1183.04 × 10−2054.30 × 10−440.00
median4.10 × 10−6116.147.65 × 10−152.98 × 10−995.22 × 10−1001.78 × 10−1190.002.50 × 10−510.00
worse1.63 × 10−3641.031.79 × 10−137.26 × 10−901.86 × 10−883.84 × 10−1179.11 × 10−2046.80 × 10−430.00
time7.38 × 10−24.86 × 10−29.93 × 10−26.21 × 10−25.43 × 10−29.05 × 10−26.29 × 10−26.40 × 10−20.22
F5SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min1.38 × 10−1022.1325.411.14 × 10−424.3820.9827.9722.4624.61
std2.77 × 10−52.57 × 1020.714.17 × 10−31.320.480.360.490.23
avg1.12 × 10−51.56 × 10226.903.55 × 10−327.2721.7728.6223.5525.04
median3.04 × 10−729.6527.171.74 × 10−327.0921.7728.7223.5425.05
worse1.23 × 10−41.32 × 10329.761.60 × 10−22922.6928.9424.5925.52
time9.31 × 10−25.96 × 10−20.110.117.87 × 10−20.108.09 × 10−27.24× 10−20.24
F6SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min7.54 × 10−171.46 × 10−32.61 × 10−58.74 × 10−86.30 × 10−52.04 × 10−92.564.50 × 10−121.23 × 10−7
std8.57 × 10−137.38 × 10−40.359.52 × 10−51.621.57 × 10−70.348.76 × 10−113.65 × 10−6
avg3.61 × 10−132.78 × 10−30.694.14 × 10−51.021.04 × 10−73.321.09 × 10−101.48 × 10−6
median1.44 × 10−142.74 × 10−30.741.15 × 10−50.565.29 × 10−83.388.27 × 10−115.13 × 10−7
worse3.53 × 10−124.87 × 10−31.485.06 × 10−46.427.88 × 10−74.003.12 × 10−102.03 × 10−5
time7.26 × 10−24.65 × 10−20.107.40 × 10−25.23 × 10−29.21 × 10−26.36 × 10−26.09 × 10−20.22
F7SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min6.12 × 10−62.44 × 10−23.31 × 10−44.49 × 10−61.76 × 10−51.35 × 10−55.09 × 10−57.69 × 10−57.78 × 10−6
std2.93 × 10−43.27 × 10−23.53 × 10−41.20 × 10−42.67 × 10−41.46 × 10−44.07 × 10−46.00 × 10−44.71 × 10−5
avg3.61 × 10−46.82 × 10−28.02 × 10−41.01 × 10−41.80 × 10−41.81 × 10−45.35 × 10−49.36 × 10−46.63 × 10−5
median2.88 × 10−46.53 × 10−27.26 × 10−46.58 × 10−57.89 × 10−51.56 × 10−43.96 × 10−47.37 × 10−46.46 × 10−5
worse1.07 × 10−30.161.71 × 10−35.78 × 10−41.31 × 10−36.57 × 10−41.69 × 10−32.32 × 10−31.91 × 10−4
time0.210.170.220.320.270.210.180.150.49
F8SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−9.03 × 103−8.72E×103−8.03E×103−1.26 × 104−1.17 × 104−1.14 × 104−1.22 × 104−1.26 × 104−1.26 × 104
std5.13 × 1027.34 × 1027.06 × 1025.68 × 1021.63 × 1031.36 × 1031.79 × 1032.96 × 1026.82 × 102
avg−8.05 × 103−7.24 × 103−6.25 × 103−1.24 × 104−8.88 × 103−9.01 × 103−7.54 × 103−1.21 × 104−1.16 × 104
median−8.08 × 103−7.23 × 103−6.07 × 103−1.26 × 104−8.93E+03−9.00 × 103−7.11 × 103−1.21 × 104−1.17 × 104
worse−7.05 × 103−5.40 × 103−4.90 × 103−9.50 × 103−5.13 × 103−5.28 × 103−5.50 × 103−1.14 × 104−1.02 × 104
time0.167.31 × 10−20.140.140.100.130.119.79 × 10−20.32
F9SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.0065.900.000.000.000.000.000.000.00
std0.0037.022.170.000.000.000.000.000.00
avg0.001.50 × 1020.720.000.000.000.000.000.00
median0.001.54 × 1020.000.000.000.000.000.000.00
worse0.002.26 × 1028.810.000.000.000.000.000.00
time0.107.29 × 10−20.120.116.79 × 10−20.107.96 × 10−25.89 × 10−20.26
F10SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min4.44 × 10−163.37 × 10−21.11 × 10−144.44 × 10−164.44 × 10−164.44 × 10−164.44 × 10−164.44 × 10−164.44 × 10−16
std0.009.132.63 × 10−150.000.005.050.000.000.00
avg4.44 × 10−1611.921.56 × 10−144.44 × 10−164.44 × 10−161.334.44 × 10−164.44 × 10−164.44 × 10−16
median4.44 × 10−1618.921.47 × 10−144.44 × 10−164.44 × 10−164.44 × 10−164.44 × 10−164.44 × 10−164.44 × 10−16
worse4.44 × 10−1619.432.18 × 10−144.44 × 10−164.44 × 10−1619.924.44 × 10−164.44 × 10−164.44 × 10−16
time9.97 × 10−27.06 × 10−20.100.106.95 × 10−20.120.148.20 × 10−20.29
F11SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.009.32 × 10−50.000.000.000.000.000.000.00
std0.001.42 × 1027.94 × 10−30.000.000.000.000.000.00
avg0.001.36 × 1024.00 × 10−30.000.000.000.000.000.00
median0.001.04 × 1020.000.000.000.000.000.000.00
worse0.003.69 × 1022.84 × 10−20.000.000.000.000.000.00
time0.138.09 × 10−20.150.159.78 × 10−20.130.117.08 × 10−20.27
F12SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min2.34 × 10−183.611.93 × 10−26.03 × 10−93.33 × 10−64.27 × 10−101.80 × 10−23.86 × 10−132.50 × 10−9
std1.80 × 10−135.812.09 × 10−22.64 × 10−60.269.17 × 10−80.104.02 × 10−121.72 × 10−8
avg4.47 × 10−1411.384.55 × 10−22.14 × 10−60.174.15 × 10−80.273.29 × 10−121.71 × 10−8
median5.34 × 10−169.523.87 × 10−28.77 × 10−72.02 × 10−25.60 × 10−90.282.32 × 10−121.22 × 10−8
worse9.83 × 10−1326.370.101.11 × 10−50.934.54 × 10−70.452.15 × 10−119.53 × 10−8
time0.370.270.320.610.490.320.290.280.65
F13SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min1.34 × 10−165.20 × 10−40.211.07 × 10−70.398.57 × 10−81.14 × 10−29.63 × 10−128.71 × 10−8
std5.16 × 10−135.27 × 10−30.183.09 × 10−50.477.66 × 10−21.191.00 × 10−22.63 × 10−2
avg2.04 × 10−134.29 × 10−30.521.79 × 10−51.407.19 × 10−21.271.83 × 10−39.30 × 10−3
median2.50 × 10−141.00 × 10−30.476.62 × 10−61.487.07 × 10−20.653.66 × 10−111.13 × 10−5
worse2.7 × 10−121.27 × 10−20.951.61 × 10−42.990.342.815.48 × 10−20.11
time0.370.270.320.610.500.320.290.290.66
F14SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min1.001.991.001.001.001.001.001.001.00
std5.815.503.640.300.750.650.930.000.89
avg7.2311.724.141.101.201.301.861.001.53
median11.7112.192.981.001.001.001.531.001.00
worse12.6722.9012.671.994.952.982.981.002.98
time0.530.400.390.970.760.410.440.430.92
F15SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min3.07 × 10−43.08 × 10−43.07 × 10−43.08 × 10−43.07 × 10−43.07 × 10−43.08 × 10−43.07 × 10−43.07 × 10−4
std1.19 × 10−69.76 × 10−37.60 × 10−32.35 × 10−46.10 × 10−38.37 × 10−32.35 × 10−45.50 × 10−182.57 × 10−4
avg3.08 × 10−49.44 × 10−33.65 × 10−33.97 × 10−42.39 × 10−34.69 × 10−34.90 × 10−43.07 × 10−44.83 × 10−4
median3.07 × 10−41.33 × 10−33.08 × 10−43.31 × 10−43.07 × 10−43.07 × 10−44.08 × 10−43.07 × 10−43.29 × 10−4
worse3.14 × 10−42.04 × 10−22.04 × 10−21.28 × 10−32.04 × 10−22.26 × 10−21.23 × 10−33.07 × 10−41.22 × 10−3
time8.14 × 10−24.76 × 10−23.12 × 10−26.66 × 10−25.74 × 10−27.54 × 10−27.24 × 10−26.38 × 10−20.17
F16SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−1.03−1.03−1.03−1.03−1.03−1.03−1.03−1.03−1.03
std5.83 × 10−160.621.46 × 10−81.61 × 10−116.39 × 10−166.32 × 10−168.91 × 10−166.78 × 10−166.65 × 10−16
avg−1.03−0.82−1.03−1.03−1.03−1.03−1.03−1.03−1.03
median−1.03−1.03−1.03−1.03−1.03−1.03−1.03−1.03−1.03
worse−1.032.10−1.03−1.03−1.03−1.03−1.03−1.03−1.03
time8.26 × 10−24.53 × 10−22.64 × 10−26.87 × 10−24.79 × 10−25.74 × 10−26.77 × 10−25.46 × 10−20.16
F17SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.400.400.400.400.400.400.400.400.40
std0.008.12 × 10−114.32 × 10−52.17 × 10−60.000.006.27 × 10−60.000.85
avg0.400.400.400.400.400.400.400.400.55
median0.400.400.400.400.400.400.400.400.40
worse0.400.400.400.400.400.400.400.405.04
time7.22 × 10−23.76 × 10−21.73 × 10−24.84 × 10−23.18 × 10−24.98 × 10−25.98 × 10−25.15 × 10−20.14
F18SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min3.003.003.002.993.003.003.003.002.99
std4.9321.4514,792.22 × 10−81.53 × 10−151.61 × 10−157.95 × 10−32.07 × 10−157.14 × 10−16
avg3.9011.105.703.003.002.993.003.002.99
median3.003.003.003.003.002.993.003.002.99
worse30.0084.0084.003.003.003.003.043.002.99
time7.12 × 10−23.73 × 10−21.59 × 10−24.47 × 10−22.63 × 10−24.06 × 10−25.02 × 10−24.50 × 10−20.14
F19SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−3.86−3.86−3.86−3.86−3.86−3.86−3.86−3.86−3.86
std2.51 × 10−150.142.21 × 10−39.55 × 10−42.51 × 10−152.99 × 10−31.71 × 10−32.71 × 10−152.71 × 10−15
avg−3.86−3.84−3.86−3.86−3.86−3.86−3.86−3.86−3.86
median−3.86−3.86−3.86−3.86−3.86−3.86−3.86−3.86−3.86
worse−3.86−3.09−3.85−3.86−3.86−3.86−3.86−3.86−3.86
time8.81 × 10−24.55 × 10−23.19 × 10−27.41 × 10−25.28 × 10−26.42 × 10−27.41 × 10−26.31 × 10−20.16
F20SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−3.32−3.32−3.32−3.32−3.32−3.32−3.32−3.32−3.32
std6.03 × 10−26.11 × 10−28.29 × 10−28.94 × 10−25.71 × 10−29.29 × 10−29.37 × 10−21.34 × 10−155.83 × 10−2
avg−3.26−3.26−3.26−3.19−3.28−3.26−3.08−3.32−3.29
median−3.20−3.20−3.32−3.18−3.32−3.32−3.08−3.32−3.32
worse−3.20−3.20−3.02−2.99−3.20−3.02−2.84−3.32−3.14
time9.11 × 10−24.92 × 10−24.20 × 10−27.77 × 10−25.89 × 10−26.52 × 10−26.81 × 10−26.29 × 10−20.16
F21SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−10.15−10.15−10.15−10.15−10.15−10.15−10.15−10.15−10.15
std1.563.371.921.292.71 × 10−72.491.936.96 × 10−156.90 × 10−15
avg−9.64−5.64−9.31−5.39−10.15−9.34−5.96−10.15−10.15
median−10.15−5.06−10.15−5.06−10.15−10.15−5.06−10.15−10.15
worse−5.06−2.63−5.06−5.05−10.15−0.88−5.06−10.15−10.15
time8.26 × 10−24.60 × 10−23.35 × 10−27.45 × 10−25.63 × 10−25.98 × 10−26.65 × 10−26.86 × 10−20.15
F22SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−10.40−10.40−10.40−10.30−10.40−10.40−10.40−10.40−10.40
std1.623.073.18 × 10−40.955.00 × 10−53.292.391.351.04 × 10−15
avg−9.87−4.69−10.40−5.26−10.40−8.46−6.51−10.05−10.40
median−10.40−3.25−10.40−5.09−10.40−10.40−5.09−10.40−10.40
worse−5.09−1.84−10.40−5.08−10.40−1.84−5.09−5.09−10.40
time8.83 × 10−25.05 × 10−23.84 × 10−28.57 × 10−26.44 × 10−26.46 × 10−27.17 × 10−27.42 × 10−20.16
F23SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min−10.54−10.54−10.54−5.13−10.54−10.54−10.54−10.54−10.54
std1.653.662.76 × 10−44.62 × 10−30.4312.572.511.98 × 10−152.06 × 10−15
avg−10.00−5.11−10.54−5.13−10.54−9.55−6.75−10.54−10.54
median−10.54−2.87−10.54−5.13−10.54−10.54−5.13−10.54−10.54
worse−5.13−1.68−10.54−5.10−8.17−2.42−5.13−10.54−10.54
time9.76 × 10−25.75 × 10−24.60 × 10−20.107.93 × 10−27.23 × 10−27.94 × 10−28.46 × 10−20.18
Table 3. Comparison of Optimization Results for F1–F10.
Table 3. Comparison of Optimization Results for F1–F10.
F1SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min1.68 × 10−3016.884.67 × 10−1177.80 × 10−2132.13 × 10−2010.000.001.02 × 10−1190.00
std2.10 × 10−522.75 × 1031.95 × 10−1100.004.94 × 10−1600.000.002.62 × 10−880.00
avg3.86 × 10−531.91 × 1033.93 × 10−1115.03 × 10−1789.02 × 10−1611.70 × 10−3150.004.80 × 10−890.00
median1.84 × 10−865.57 × 1029.11 × 10−1141.84 × 10−1922.97 × 10−1940.000.002.29 × 10−1000.00
worse1.15 × 10−519.15 × 1031.07 × 10−1091.42 × 10−1762.70 × 10−1595.09 × 10−3140.001.43 × 10−870.00
time0.126.97 × 10−27.44 × 10−29.94 × 10−29.19 × 10−20.100.108.03 × 10−20.24
F2SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.003.90 × 10−50.000.000.000.000.000.000.00
std1.66 × 10−137.53 × 1023.120.000.000.000.000.000.00
avg3.03 × 10−148.63 × 1021.190.000.000.000.000.000.00
median0.009.57 × 1029.09 × 10−130.000.000.000.000.000.00
worse9.09 × 10−132.30 × 10316.230.000.000.000.000.000.00
time0.117.11 × 10−27.18 × 10−20.139.95 × 10−29.22 × 10−29.35 × 10−28.02 × 10−20.20
F3SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.001.000.000.000.000.000.000.000.00
std0.002.25 × 10214.750.000.000.000.000.000.00
avg0.002.74 × 10225.910.000.000.000.000.000.00
median0.003.32 × 10226.890.000.000.000.000.000.00
worse0.006.26 × 10260.320.000.000.000.000.000.00
time0.116.77 × 10−26.93 × 10−20.139.79 × 10−29.06 × 10−28.90 × 10−27.96 × 10−20.21
F4SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.005.00 × 10−20.000.000.000.000.000.000.00
std0.008.250.660.000.000.000.000.000.00
avg0.009.030.520.000.000.000.000.000.00
median0.009.870.280.000.000.000.000.000.00
worse0.0024.342.390.000.000.000.000.000.00
time0.116.61 × 10−26.82 × 10−20.139.56 × 10−29.01 × 10−28.84 × 10−27.48 × 10−20.20
F5SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min1.48 × 10−32354.759.25 × 10−395.12 × 10−2021.80 × 10−1028.03 × 10−2970.001.07 × 10−520.00
std7.54 × 10−172.45 × 1030.480.004.83 × 10−258.28 × 10−454.90 × 10−291.08 × 10−270.00
avg2.51 × 10−173.31 × 1030.1982.95 × 10−1711.18 × 10−251.51 × 10−451.35 × 10−292.19 × 10−280.00
median2.00 × 10−352.81 × 1033.75 × 10−321.84 × 10−1909.87 × 10−421.34 × 10−1180.003.21 × 10−300.00
worse3.94 × 10−167.75 × 1032.138.83 × 10−2702.55 × 10−244.53 × 10−442.17 × 10−285.93 × 10−270.00
Time0.106.50 × 10−26.63 × 10−29.18 × 10−29.04 × 10−28.78 × 10−28.71 × 10−28.11 × 10−20.20
F6SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.001.67 × 10−27.13 × 10−30.000.004.84 × 10−110.000.000.00
std5.01 × 10−82.51 × 1021.126.46 × 10−57.46 × 10−79.48 × 10−54.24 × 10−225.64 × 10−220.00
avg1.44 × 10−82.10 × 1020.562.00 × 10−51.55 × 10−74.81 × 10−57.75 × 10−231.03 × 10−220.00
median8.94 × 10−2935.674.27 × 10−21.58 × 10−99.01 × 10−265.40 × 10−60.000.000.00
worse2.72 × 10−78.15 × 1024.683.04 × 10−44.09 × 10−63.98 × 10−42.32 × 10−213.09 × 10−210.00
Time0.106.39 × 10−26.58 × 10−20.129.03 × 10−28.59 × 10−28.66 × 10−27.52 × 10−20.20
F7SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.003.285.38 × 10−47.19 × 10−2143.03 × 10−1281.79 × 10−90.000.000.00
std4.25 × 10−62.32 × 1030.362.77 × 10−62.81 × 10−68.73 × 10−40.008.04 × 10−80.00
avg8.09 × 10−72.95 × 1030.145.41 × 10−75.40 × 10−91.84 × 10−44.04 × 10−2961.91 × 10−80.00
median6.97 × 10−182.60 × 1031.54 × 10−23.22 × 10−132.47 × 10−358.73 × 10−60.004.85 × 10−250.00
worse2.33 × 10−57.48 × 10−31.411.52 × 10−51.54 × 10−74.80 × 10−31.21 × 10−2944.18 × 10−70.00
time0.106.46 × 10−26.44 × 10−20.108.82 × 10−28.56 × 10−28.57 × 10−28.02 × 10−20.20
F8SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.001.54 × 10−40.000.000.000.000.000.000.00
std0.006.53 × 1020.000.000.000.000.000.000.00
avg0.008.71 × 1020.000.000.000.000.000.000.00
median0.001.07 × 1030.000.000.000.000.000.000.00
worse0.002.03 × 1030.000.000.000.000.000.000.00
time0.160.100.100.210.170.130.130.110.27
F9SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.005.33 × 10−38.88 × 10−152.60 × 10−2133.57 × 10−2091.40 × 10−3151.39 × 10−3154.26 × 10−1361.39 × 10−315
std1.05 × 10−6543.250.000.001.93 × 10−1450.000.001.62 × 10−150.00
avg1.95 × 10−6644.258.88 × 10−156.17 × 10−1863.52 × 10−1463.31 × 10−3151.53 × 10−3152.96 × 10−161.57 × 10−315
median1.06 × 10−8766.778.88 × 10−152.04 × 10−1981.05 × 10−2001.60 × 10−3151.45 × 10−3151.71 × 10−1111.39 × 10−315
worse5.78 × 10−6593.918.88 × 10−151.60 × 10−1841.06 × 10−1443.15 × 10−3142.74 × 10−3158.88 × 10−156.45 × 10−315
time0.160.120.120.190.180.140.140.130.42
F10SSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
min0.002.62 × 10−23.70 × 10−39.41 × 10−2057.46 × 10−2031.75 × 10−41.11 × 10−3150.001.11 × 10−315
std1.75 × 10−1156.7217.935.17 × 10−41.45 × 10−1212.26 × 10−30.003.16 × 10−700.00
avg3.59 × 10−1263.4652.162.52 × 10−42.65 × 10−1221.37 × 10−31.12 × 10−3155.78 × 10−711.11 × 10−315
median6.82 × 10−4777.9049.833.68 × 10−51.07 × 10−1808.50 × 10−41.12 × 10−3155.27 × 10−1041.11 × 10−315
worse9.61 × 10−111.59 × 10278.942.21 × 10−37.95 × 10−1211.27 × 10−21.21 × 10−3151.73 × 10−691.11 × 10−315
Time0.159.72 × 10−29.86 × 10−20.190.150.120.120.110.39
Table 4. Comprehensive Analysis of Algorithms Comparison.
Table 4. Comprehensive Analysis of Algorithms Comparison.
AlgorithmConvergence PrecisionStabilityTime EfficiencyApplication Scenarios
BTCPO★★★★★★★★★★★★★High-precision requirements
HHO★★★★★★★★★★★★Precision-efficiency balanced tasks
BKA★★★★★★★★★★★General optimization problems
CPO★★★★★★★★★★Real-time optimization
SSA★★★★★★★★Simple function optimization
GWO★★★★★Low-dimensional fast optimization
GOOSE★★★★★Time-sensitive applications
HBA★★★★★★Function-specific optimization
DBO★★★★★★★Stability-critical scenarios
PSO★★★★★★★Control System Tuning
ABC★★★★★★★★Data Clustering and Feature Selection
CS★★★★★★★★★Global Optimization
Table 5. Comparative Results of Cantilever beam design Optimization.
Table 5. Comparative Results of Cantilever beam design Optimization.
Cantilever BeamSSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
best1.339991.339981.339971.340421.339961.339961.340051.339961.33638
worst1.341492.296511.340321.350141.696761.340001.341051.340011.34094
std0.000440.428510.000090.002490.112820.000010.000300.000020.00031
mean1.340381.660061.340111.344571.375671.339971.340491.339981.33843
median1.340221.388191.340091.344631.340001.339961.340451.339981.33947
time0.16940.11070.10090.28640.20930.12810.13330.12410.2714
Table 6. Comparison Table of Three-Bar Truss Design Optimization Results.
Table 6. Comparison Table of Three-Bar Truss Design Optimization Results.
Three-Bar TrussSSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
best263.8959263.8959263.8963263.8959263.8958263.8959263.9045263.8958263.8861
worst263.9167263.9017263.9668264.8880263.8963263.8966264.1367263.8958263.9487
std0.00680.00170.02170.30510.00020.00020.06820.00000.0203
mean263.9010263.8972263.9107264.0484263.8960263.8961263.9584263.8958263.9089
median263.8988263.8967263.9009263.9362263.8959263.8960263.9307263.8958263.8978
time0.15250.09260.07400.22140.16400.10230.10760.10460.2315
Table 7. Comparative Results of Welded Beam Design Optimization.
Table 7. Comparative Results of Welded Beam Design Optimization.
Welded BeamSSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
best1.67051.70621.67141.73191.67131.67021.70291.67041.6702
worst2.85172.21851.68162.21291.67411.69221.98571.67391.7607
std0.42350.14210.00290.14900.00090.00850.11200.00110.0330
mean1.89021.95411.67451.90701.67251.67511.82941.67111.6972
median1.67161.91991.67371.85001.67251.67091.81251.67081.6852
time0.16940.11070.10090.28640.20930.12810.13330.12410.2714
Table 8. Comparative Results of Reinforced Concrete Beam Optimization.
Table 8. Comparative Results of Reinforced Concrete Beam Optimization.
Test ValueSSAGOOSEGWOHHOBKAHBADBOCPOBTCPO
best158.8050158.8055158.8163158.8165158.8050158.8050159.2591158.8050158.8010
worst158.8050182.7366158.8817159.2114158.8341158.8050164.1658158.8050158.8069
std0.00008.11210.02100.14790.01090.00001.52010.00000.0006
mean158.8050164.9084158.8438159.0049158.8182158.8050159.8407158.8050158.8052
median158.8050162.4429158.8427158.9946158.8186158.8050159.3697158.8050158.8050
time0.07680.05010.03730.10130.08600.07350.07890.05950.1415
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Chen, B.; Chen, Y.; Cao, L.; Chen, C.; Yue, Y. An Improved Crested Porcupine Optimization Algorithm Incorporating Butterfly Search and Triangular Walk Strategies. Biomimetics 2025, 10, 766. https://doi.org/10.3390/biomimetics10110766

AMA Style

Chen B, Chen Y, Cao L, Chen C, Yue Y. An Improved Crested Porcupine Optimization Algorithm Incorporating Butterfly Search and Triangular Walk Strategies. Biomimetics. 2025; 10(11):766. https://doi.org/10.3390/biomimetics10110766

Chicago/Turabian Style

Chen, Binhe, Yaodan Chen, Li Cao, Changzu Chen, and Yinggao Yue. 2025. "An Improved Crested Porcupine Optimization Algorithm Incorporating Butterfly Search and Triangular Walk Strategies" Biomimetics 10, no. 11: 766. https://doi.org/10.3390/biomimetics10110766

APA Style

Chen, B., Chen, Y., Cao, L., Chen, C., & Yue, Y. (2025). An Improved Crested Porcupine Optimization Algorithm Incorporating Butterfly Search and Triangular Walk Strategies. Biomimetics, 10(11), 766. https://doi.org/10.3390/biomimetics10110766

Article Metrics

Back to TopTop