1. Introduction
The inverse kinematics (IK) of robotic manipulators is of great research importance for robotics applications [
1,
2,
3]. It forms the foundation of research on robotic tasks such as visual guidance, object grasping, trajectory tracking, and motion control [
4]. The IK problem is highly nonlinear and involves complex coupling [
5]. Additionally, different manipulators have unique structures and workspaces, resulting in diversity in how the IK problem manifests across various scenarios [
6]. To address these challenges, it is necessary to develop a generalized IK solution method that can be applied to various manipulators while effectively handling singularities and workspace constraints [
7]. This will help advance the development of robotic technology, making it more flexible and applicable across a wide range of application areas.
Traditional closed-form methods, such as geometric and algebraic approaches, offer precise solutions for inverse kinematics [
8,
9]. However, as the degrees of freedom (DOF) of a manipulator increase, implementing closed-form methods becomes increasingly challenging and less adaptable to different scenarios [
10]. Numerical methods are widely used for their capability to provide approximations and adaptability to various manipulator structures [
11,
12,
13]. However, a major limitation of these methods is their susceptibility to singularities. Since they determine joint configurations through the inverse Jacobian matrix, some configurations may lead to a singular Jacobian matrix, causing unrealistic joint velocities. Considering the limitations of both closed-form and numerical methods [
14], it is recommended to employ metaheuristic algorithms to address the IK problem for multiple manipulators, thereby avoiding singularities [
15].
Metaheuristic algorithms have gained significant attention due to their wide application in practical engineering problems. For example, the tree seed algorithm (TSA) [
16] has been applied to parameter estimation in photovoltaic models, the improved tree seed algorithm (I-TSA) [
17] has been used for optimizing the parameters of Butterworth and Bessel filters, and the sine cosine algorithm (SCA) [
18] has been applied to optimize the cross section of an aircraft wing.
Metaheuristic algorithms can be categorized into two main types: swarm intelligence optimization algorithms and evolutionary algorithms [
19]. Swarm intelligence optimization algorithms enhance search efficiency by updating individual positions based on collective movement [
20]. The particle swarm optimization algorithm (PSO) has commonly been employed to solve the IK problem in various manipulator structures [
21,
22,
23,
24]. Additionally, the firefly algorithm (FA) and its variants have also been widely used [
25,
26,
27]. Moreover, other swarm intelligence optimization algorithms, such as the golden eagle optimizer algorithm (GEO) [
28], the improved carnivorous plant algorithm (I-CPA) [
29], and the multi-strategy-based tree seed algorithm (MS-TSA) [
30] have shown promising performance in specific engineering application scenarios, such as solar photovoltaic parameter estimation, demonstrating enhanced convergence speed and solution accuracy.
Evolutionary algorithms, known for their effectiveness in solving non-linear problems, have also been applied to the IK problem of manipulators [
31]. Notably, the genetic algorithm (GA) and differential evolution algorithm (DE) have gained widespread use for solving the IK problem in various types of manipulators [
32,
33,
34,
35]. The main metaheuristic algorithms for solving inverse kinematics include PSO, FA, GA, DE, and their improved versions. Among these algorithms, PSO demonstrates the best performance in terms of convergence accuracy. Therefore, swarm intelligence optimization algorithms that are suitable for the inverse kinematics of manipulators offer better performance and have gained wider recognition.
Nonetheless, despite the success of metaheuristic algorithms, challenges such as premature convergence, lack of solution diversity, and high computational costs remain prevalent. Therefore, further research is warranted to enhance these algorithms or to develop hybrid approaches that can effectively address the challenges posed by engineering application problems, as exemplified by the eagle strategy [
36].
The bald eagle search optimization algorithm (BES) [
37] combines the advantages of evolutionary and swarm techniques, making it more effective at solving nonlinear problems and improving search efficiency. For specific applications of BES, Fathy [
38] used BES to solve the optimization problem of the maximum power point in a power generation system, while Eid [
39] used BES to solve the optimization problem of optimal power distribution. For multi-objective optimization tasks, Yang [
40] improved BES and proposed the multi-objective bald eagle search algorithm (MO-BES). By introducing an archiving mechanism and an elite selection strategy, the capability of BES in solving multi-objective tasks has been enhanced.
Based on the above study, it is clear that BES has a wide range of applications. However, BES still suffers from the problem of falling into local optima when dealing with complex functions. To address this issue, this paper proposes an improved bald eagle search optimization algorithm (I-BES). By introducing the Lévy flight strategy [
41] in the search phase of the BES, the algorithm avoids falling into local optima too early, thereby improving its global search efficiency. In this work, the I-BES is applied to solve the inverse kinematics problem of manipulators. The contributions of this paper are as follows:
In I-BES, the Lévy flight strategy is introduced to improve the global search efficiency of BES;
An inverse kinematic solution method for n-DOF manipulators based on I-BES is proposed;
The performance of I-BES is evaluated using the CEC 2017 test suite;
The application scope of I-BES is broadened by applying it to two engineering design problems.
The rest of this paper is organized as follows:
Section 2 introduces the fundamental concepts of forward and inverse kinematics for robotic manipulators.
Section 3 provides a description of BES and its improvement points.
Section 4 presents the inverse kinematics solution method based on I-BES.
Section 5 validates I-BES using the inverse kinematics problem, the CEC2017 test suite, and two other engineering design problems.
Section 6 summarizes the findings and contributions of this paper.
2. Robotic Manipulator Kinematics
Robotic manipulators are composed of interconnected links and joints, forming open kinematic chains [
6]. The terminal element of this chain is known as the end-effector. Each joint corresponds to a specific articulation, together determining the joint configuration
, where
n represents the total DOF of the manipulator, as illustrated in
Figure 1.
Figure 1 shows the schematic diagram of the kinematic chain for a serial robotic manipulator. (
x0,
y0,
z0) represents the 3D coordinates of the base in Cartesian space, while (
xn,
yn,
zn) represents the 3D coordinates of the end-effector in Cartesian space.
j−1Tj represents the homogeneous transformation matrix from link
j to link
j − 1, and
n represents the total number of degrees of freedom.
There are two primary categories of joints: revolute and prismatic. The joint variable can be defined as follows:
where
qj represents the
j-th joint variable, while
j and
dj correspond to the
j-th rotation angle and displacement, respectively. Forward kinematics determine the position and orientation of the end-effector from a given joint configuration. It is generally a straightforward problem with a guaranteed solution. The forward kinematic expression is given as follows:
where
represents the pose transformation matrix of the end-effector relative to the base coordinate system. The joint vector
is defined as [
q1,
q2, …,
q7].
represents the homogeneous transformation matrix from link
j to link
j − 1, where
qj represents the
j-th joint angle, and
n is the total number of degrees of freedom.
Utilizing the standard Denavit–Hartenberg (DH) modeling method [
42], the homogeneous transformation matrix
can be expressed as follows:
where the symbols
s and
c represent the sine and cosine functions, respectively, and
j and
j represent the
j-th joint angle and the
j-th twist angle, respectively.
aj and
dj represent the link length and offset of the
j-th link, respectively. For revolute joints,
j is considered as the joint variable, while for prismatic joints,
dj is considered as the joint variable. The correspondence of link parameters between the neighboring links of the manipulator is shown in
Figure 2.
Figure 2 shows the correspondence of link parameters between the (
)-th link and the
i-th link of the manipulator. where
ai represents the distance along the
xi axis from the
zi−1 axis to
zi axis.
di represents the distance along the
zi−1 axis from the
xi−1 axis to the
xi axis.
i represents the rotation angle around the
xi axis from the
zi−1 axis to the
zi axis.
i represents the rotation angle around the
zi−1 axis from the
xi−1 axis to the
xi axis.
The homogeneous transformation matrix
can also be expressed as follows:
where
represent the projections of the new x-axis onto the
x,
y, and
z axes of the original coordinate system after rotation, respectively. Similarly,
and
represent the projections of the new y-axis and z-axis onto the axes of the original coordinate system. The terms
indicate translations along the
x,
y, and
z directions.
R is a 3 × 3 orthogonal matrix describing the change in orientation of the manipulator, while
p is a 3 × 1 position vector indicating the change in position.
Solving the inverse kinematics using metaheuristic algorithms usually involves minimizing the error between the desired end-effector position and the actual one.
Figure 3. shows the error function for a 2DOF planar manipulator. This manipulator consists of two links, each with a length of 0.5 m. The error function
is composed of the desired position (
xd = 0.5 m,
yd = 0.5 m), and the actual position (
x,
y) is obtained via a specified joint configuration (
1,
2). Minimizing the error function using the metaheuristic algorithm can obtain two sets of joint configurations, (1.5708 rad, −1.5708 rad) and (0 rad, 1.5708 rad), respectively.
Figure 3 shows a contour plot illustrating the regions where the objective function maintains the same value with respect to
and
. Different colors indicate varying values of the objective function, and the color gradient reflects its variation trend. Denser contour lines signify more rapid changes in the objective function, while smoother areas suggest minimal variation.
In this work, I-BES is employed to determine the optimal joint configuration for a specified end-effector position. The proposed method effectively addresses the limitations of traditional approaches. For a comprehensive understanding of both forward and inverse kinematics, detailed descriptions can be found in references [
6,
8].
4. Algorithm Adjustment for Inverse Kinematics Problem
To solve the inverse kinematics of robotic manipulators, it is essential to define the pose of the end-effector, which can be represented as follows:
where
represents the desired pose matrix of the end-effector.
and
represent the desired orientation matrix and position vector of the end-effector, respectively.
In I-BES, the
i-th bald eagle represents the candidate joint configuration
, where
n represents the total DOF of the manipulator, corresponding to the dimensionality of the problem. The forward kinematics formula given in Equation (
2) can be derived based on the joint configuration
. The position vector
can then be calculated using Equation (
4).
The objective function is designed to compare the error between the desired position
and the candidate position
of the end-effector (
Figure 5). Its mathematical expression is shown as follows:
where
f represents the objective function.
represents the joint configuration corresponding to the
i-th bald eagle.
and
represent the desired position and actual position of the end-effector, respectively.
2 represents the Euclidean norm.
In the actual application of robotic manipulators, the focus is more on whether the manipulators can reach the specified position. Considering this, it is advisable to use the objective function described in Equation (
11).
In this work, a method is proposed to address the inverse kinematics of robotic manipulators by formulating them as a constrained optimization problem, defined as follows:
where
and
are the lower and upper joint constraints of the manipulator, respectively.
There are several advantages to transforming the inverse kinematics problem of a manipulator into an optimization problem by minimizing the objective function. Firstly, it ensures that the obtained solution is optimal according to the defined criteria, effectively minimizing errors or deviations. Secondly, this approach provides flexibility in addressing complex, nonlinear problems by reformulating them as an objective function that can be optimized efficiently. Furthermore, focusing on minimizing the objective function allows for the incorporation of constraints into the model, ensuring that the solution complies with real-world limitations while achieving the most accurate or optimal result.
The BES was originally designed for operation in unconstrained continuous spaces. To introduce constraints into the I-BES optimization process, the following scheme is recommended.
where
qij represents the
j-th joint angle in the joint configuration corresponding to the
i-th bald eagle.
k is a random number within the range of [0, 1].
qlj and
quj represent the minimum and maximum values of the joint angle in the joint configuration corresponding to the
i-th bald eagle, respectively. For each bald eagle, the different joint configurations are defined as follows:
where
n represents the DOF of the manipulator. The proposed scheme determines whether the candidate joint value
qij is a feasible or infeasible joint solution. Feasible solutions do not require any adjustments. Conversely, infeasible solutions arise when
qij falls outside the joint limit boundaries. In such cases, these values are recalculated to satisfy the joint constraints.
The pseudo-code and flowchart for solving the inverse kinematics of robotic manipulators via I-BES are shown in Algorithm 1 and
Figure 6, respectively.
Algorithm 1 Solving the inverse kinematics of robotic manipulators based on I-BES |
- Require:
- Ensure:
- 1:
- 2:
- 3:
whiledo - 4:
for do - 5:
- 6:
Equation ( 13) - 7:
if then - 8:
- 9:
if then - 10:
- 11:
end if - 12:
end if - 13:
end for - 14:
for do - 15:
- 16:
Equation ( 13) - 17:
if then - 18:
- 19:
if then - 20:
- 21:
end if - 22:
end if - 23:
end for - 24:
for do - 25:
- 26:
- 27:
Equation ( 13) - 28:
if then - 29:
- 30:
if then - 31:
- 32:
end if - 33:
end if - 34:
end for - 35:
- 36:
end while
|
The initial population is generated using a random sampling strategy within the feasible solution space. This method ensures that the initial individuals are uniformly distributed across the search space, providing a diverse set of solutions for the optimization process. By employing this strategy, premature convergence is avoided, and the ability of the algorithm to effectively explore the entire solution space is improved.
Specifically, the initial joint angles for each individual are randomly sampled within the joint limits of the manipulator, considering both minimum and maximum allowable values. This guarantees that all initial configurations are kinematically feasible and fall within the operational workspace of the manipulator. Additionally, for each candidate solution, forward kinematics are computed to verify that the initial pose satisfies the desired reachability criteria, thereby improving the quality of the initial population.
5. Simulation and Experimental Results
5.1. Inverse Kinematics Problem of Manipulators
5.1.1. Preparation Work
Both simulations and experiments were conducted to evaluate the performance of the proposed method in solving the inverse kinematics of robotic manipulators. The main objective was to evaluate the ability of the proposed method to determine the optimal joint configuration to reach a predefined end-effector position. Additionally, the robustness of the proposed method was validated by testing it on robotic manipulators with two to seven DOF.
In subsequent simulations and experiments, I-BES was compared with other metaheuristic algorithms. The parameters shared among the algorithms are the total number of iterations and the population size, both set to 500 and 150, respectively. The specific parameter configurations for each algorithm are shown in
Table 1.
To effectively present the simulation results and demonstrate the accuracy of the algorithms, the following error is proposed to be measured:
where
represents the position error.
and
represent the desired position and the actual position, respectively.
represents the joint configuration calculated by the algorithm.
The robotic manipulators considered for the simulations include a 2DOF planar manipulator, a 3DOF anthropomorphic manipulator, a 4DOF scara manipulator, a 5DOF kuka youbot manipulator, a 6DOF puma 560 manipulator, and a 7DOF rethink sawyer manipulator, which are commonly used as educational examples in robot kinematics [
5,
6,
8]. The DH parameters for these manipulators are shown in
Table 2,
Table 3,
Table 4,
Table 5,
Table 6 and
Table 7, respectively.
For the convenience of the experiment, the joint limits of the different DOF manipulators were uniformly specified. In the simulations, the joint limits were set as follows:
where
and
represent the lower and upper limits of the
j-th joint, respectively.
Figure 7a–f display three-dimensional surface plots of the objective function values for six different DOF manipulators. The horizontal and vertical axes correspond to parameters
and
, while the vertical axis indicates the objective function values for each parameter combination.
In
Figure 7a–f, the extrema of the function are represented by the peaks (maxima) and valleys (minima) on the surface. These points illustrate how the interaction between joint angle pairs influences the objective function. The desired end-effector positions for the six manipulators are displayed below.
- −
The desired position of the end-effector for a 2DOF planar manipulator:
- −
The desired position of the end-effector for a 3DOF anthropomorphic manipulator:
- −
The desired position of the end-effector for a 4DOF scara manipulator:
- −
The desired position of the end-effector for a 5DOF kuka youbot manipulator:
- −
The desired position of the end-effector for a 6DOF puma 560 manipulator:
- −
The desired position of the end-effector for a 7DOF rethink sawyer manipulator:
5.1.2. Simulations
The simulations included position errors across 25 tests, variations in the objective function over 500 iterations, and variations in the optimal fitness value across 25 tests. The metaheuristic algorithms compared were BES, PSO, FA, the modified tree–seed algorithm (MTSA) [
43], and the improved chaotic particle swarm optimization algorithm (CPSO-AT) [
44].
The simulations were conducted using MATLAB™ (R2018a). Each algorithm was executed 25 times, and the statistical results of the position errors were visualized using box plots. Algorithms with smaller data distributions, lower result values, and fewer outliers in the box plots demonstrated superior performance. The performance of each algorithm was evaluated based on the optimal joint configuration required to reach the predefined position of the end-effector.
Figure 8,
Figure 9,
Figure 10,
Figure 11,
Figure 12 and
Figure 13 show the simulation results for manipulators with 2 to 7 DOF, respectively. According to
Figure 8a,
Figure 9a,
Figure 10a,
Figure 11a,
Figure 12a and
Figure 13a, FA and CPSO-AT exhibit wider data distributions and higher position error values. It is worth noting that FA presents outliers in
Figure 8a,
Figure 9a,
Figure 10a and
Figure 13a. Compared to FA and CPSO-AT, I-BES, BES, PSO, and MTSA demonstrate smaller data distributions, lower result values, and fewer outliers.
According to
Figure 8b,
Figure 9b,
Figure 10b,
Figure 11b,
Figure 12b, and
Figure 13b, I-BES and BES outperform PSO and MTSA. Specifically, in
Figure 8b,
Figure 9b,
Figure 10b,
Figure 11b, and
Figure 13b, MTSA demonstrates a wider data distribution and higher position error values. However, in
Figure 12b, PSO shows a wider data distribution and higher position error values. It is also noteworthy that MTSA presents outliers in
Figure 9b,
Figure 10b,
Figure 11b, and
Figure 12b.
Table 8 presents the statistical results of position errors across 25 tests. The results indicate that the position errors for each algorithm remain consistent as the DOFs of the manipulators increase, highlighting the robustness of the metaheuristic algorithms. Among the compared algorithms, I-BES and BES demonstrate the highest positional accuracy, followed by PSO. Generally, the positional error for I-BES stabilizes between 0 m and 10
−17 m, for BES between 0 m and 10
−16 m, and for PSO between 10
−10 m and 10
−7 m. Furthermore, I-BES exhibits fewer outliers compared to BES and PSO. By comparing the average, median, minimum, and maximum values of the position errors, it is evident that I-BES outperforms the other algorithms and is the preferred choice for solving the inverse kinematics problem for various manipulators.
Figure 14 illustrates the variation in the objective function for each algorithm over 500 iterations based on results from the first test. As shown in
Figure 14, I-BES demonstrates the fastest convergence speed within 500 iterations compared to the other algorithms. During the testing of six different manipulators, I-BES converges to the optimum at around 100 iterations, while BES achieves the same convergence accuracy at around 120 iterations. PSO converges to a suboptimal value but requires 500 iterations, experiencing stagnation several times throughout the process. FA and MTSA show fast convergence speeds when the number of iterations is small; however, as the iterations increase, their convergence speeds gradually slow down, eventually stabilizing at suboptimal values. CPSO-AT, on the other hand, has a slower convergence rate as the number of iterations increases, ultimately converging to a suboptimal value. Consistent with the results in
Table 8, it is evident that I-BES and BES outperform the other algorithms.
Figure 15 shows the variation in the best fitness values for each algorithm over 25 tests. As illustrated in
Figure 15, as the DOF of the manipulator increases, the best fitness values of both I-BES and BES stabilize below 10
−15, while the best fitness values of PSO stabilize between 10
−10 and 10
−5. The best fitness values for FA, MTSA, and CPSO-AT stabilize between 10
−5 and 10
0. According to
Figure 15, it is evident that I-BES and BES achieve higher convergence accuracy than PSO, FA, MTSA, and CPSO-AT with the same number of iterations. Additionally, I-BES is more robust than BES and can consistently search for high-accuracy solutions, indicating that I-BES has a greater advantage in solving the inverse kinematics problem.
5.1.3. Comparison against the Geometric Approach
Geometric methods provide exact solutions for inverse kinematics, but these methods often require analyzing complex kinematic structures, especially when dealing with manipulators with high DOF. In this research, the I-BES is compared to the geometric approach, with the primary goal of evaluating the accuracy of the proposed method in relation to exact solutions.
The geometric method compared in this study is from the literature [
45]. In the cited work, Kalra et al. studied the Puma 560 manipulator with 6DOF. They established five sets of desired positions for the end-effector, where four viable joint solutions could be obtained. To ensure the objectivity of the comparative tests, the experimental conditions in this study were kept consistent with those in the literature [
45]. The specific desired positions are as follows:
Considering that only the desired position of the end-effector is essential, solving the inverse kinematics for the puma 560 requires consideration of its initial 3DOF. The parameter settings for I-BES remain consistent with those used in
Section 5.1.1. The testing procedure was conducted in MATLAB™, with each desired position triggering a single execution of I-BES.
The comparison results are presented in
Table 9. According to these results, the joint angles calculated using I-BES show a high degree of overlap with those obtained using the geometric method, with the joint angle error stabilized at 10
−5, demonstrating the ability of the I-BES to robustly identify multiple joint solutions.
5.1.4. Experiments
The main purpose of the experiments is to demonstrate the effectiveness of the proposed method for solving inverse kinematics under real joint constraints. A comparative analysis involving I-BES, BES, PSO, FA, MTSA, and CPSO-AT is also conducted. The specific parameter settings for the algorithms are consistent with those used in the simulations presented in
Section 5.1.1.
The robotic manipulator used in the experiments is the 7DOF rethink sawyer manipulator, as shown in
Figure 16. The DH parameters for the manipulator are provided in
Table 7. The joint limits of the manipulator are as follows.
The experiments were conducted using C++ and the robot operating system (ROS). The ROS interacts with the manipulator through an interface called the ’Sawyer SDK.’ The experimental procedures are detailed as follows:
Experiment 1: The task involves determining four sets of appropriate joint configurations to reach the specified end-effector position. The desired position is defined as , considering the first six DOF of the manipulator.
Experiment 2: This task involves determining four sets of appropriate joint configurations to reach the specified end-effector position. The desired position is defined as , considering all the DOF of the manipulator.
The reason for using either 6DOF or 7DOF in the experiments is to demonstrate the robustness of the proposed method.
In the experiments, the joint angles derived from each algorithm were applied to the hardware of the rethink sawyer manipulator. The results of Experiment 1 and Experiment 2 are presented in
Table 10 and
Table 11, respectively.
Table 10 presents the results of Experiment 1. As shown in
Table 10, all the compared algorithms can identify the four sets of solutions when the seventh joint angle is fixed at zero. Among these algorithms, I-BES and BES achieve the smallest positional errors, consistently ranging from 0 m to 10
−17 m, followed by PSO, which maintains a stable positional error of approximately 10
−8 m.
Table 11 presents the results of Experiment 2. As shown in
Table 11, all the compared algorithms successfully find the four sets of solutions. Among these algorithms, I-BES and BES achieve the smallest positional error, which is 0 m. PSO follows, with a stable positional error ranging from 10
−8 m to 10
−7 m.
In general, compared to PSO, FA, MTSA, and CPSO-AT, it is evident that I-BES and BES achieve better performance in terms of positional error, maintaining stability within the range of 0 m to 10−17 m. Furthermore, the positional accuracy of I-BES and BES remains consistent even as the number of solutions increases, demonstrating their robustness.
For a visual representation, the four joint configurations of I-BES for Experiment 1 and Experiment 2 are shown in
Figure 17 and
Figure 18, respectively.
5.2. CEC2017 Test Results and Analysis
To further validate the performance of I-BES, nine test functions are selected from the CEC2017 test functions. The test results are shown in
Table 12. The constraint range of variables during the test is set to [−100, 100]. In the experiment, I-BES is compared with BES, PSO, FA, MTSA, and CPSO-AT. The algorithm parameters are configured as shown in
Table 1. The maximum number of iterations is set to
T = 500, the population size is set to
N = 30, and the dimension is set to
D = 30. Each algorithm is run independently 30 times. The performance of the algorithms is evaluated based on the optimum value (best), average value (mean), standard deviation (Std), and convergence curves. Additionally, the Wilcoxon rank-sum test is used to verify the significance of differences between I-BES and the comparison algorithms.
Table 12 shows the statistical results of the 6 algorithms after 30 runs, with the optimal results highlighted in bold. Here, F3 is a single-peak function used to evaluate the convergence speed and local search ability of the algorithms. As can be seen from
Table 12, for the single-peak function F3, I-BES outperforms the other five algorithms and demonstrates a noticeable improvement compared to BES, indicating that I-BES possesses excellent local search capabilities.
Multi-peak test functions are used to evaluate the performance of the algorithm in solving multi-peak complex optimization problems. Among them, functions F8 and F9 are specifically designed to evaluate the ability of the algorithm to perform global searches and escape from local optimal solutions. According to
Table 12, I-BES achieves the best average values on F8 and F9 compared to the other algorithms. This result demonstrates that I-BES has a strong global search capability and effectively escapes from local optima.
A hybrid function consists of several different functions that are combined to create variety and complexity. A composite function is formed by combining multiple simple functions. Each simple function is a univariate function, but when combined, they form a high-dimensional composite function. These two types of functions can be used to evaluate the tolerance of an algorithm to noise and infeasible solutions, as well as its ability to solve large-scale optimization problems. I-BES demonstrates significant advantages in the six hybrid and composite functions, F14, F15, F18, F19, F27, and F30, achieving the lowest mean and optimal values among all the compared algorithms. In addition, the standard deviation of I-BES is second only to that of MTSA and CPSO-AT in F19 and F27, and it ranks first among the remaining four tested functions. This demonstrates the effectiveness of I-BES in solving high-dimensional problems.
To further evaluate the performance of I-BES, the Wilcoxon rank-sum test was used for validation [
46,
47]. The Wilcoxon signed-rank test was performed to compare the results of I-BES with those of the other five algorithms at a significance level of
= 5%. Generally, a
p-value of less than 0.05 indicates a significant difference between the two sets of data, while “N/A” indicates that the algorithms produce similar results. Column R in the Wilcoxon signed-rank test table shows the test results, where the symbols “+”, “−”, and “=” indicate that the performance of I-BES is better than, worse than, or equal to the comparison algorithm, respectively.
Table 13 presents the convergence curves of the algorithms on the CEC2017 test functions. According to
Table 13, there is no significant difference between I-BES and PSO for functions F8 and F9, while a significant difference exists between I-BES and the other four algorithms. The R column indicates that for most of the functions, I-BES outperforms the comparison algorithms. The results of the Wilcoxon rank-sum test demonstrate that, statistically, I-BES performs better than the original algorithm and the four comparison algorithms on the CEC2017 test functions.
Figure 19 presents the convergence curves of the six algorithms when testing the CEC2017 function over 500 iterations. As shown in
Figure 19, I-BES exhibits a significant advantage in both convergence speed and accuracy. I-BES achieves a lower fitness value compared to BES, which demonstrates the effectiveness of the Lévy flight strategy. For F3, after the 50th iteration, I-BES converges faster than BES, as the Lévy flight strategy accelerates the convergence of the algorithm. In addition, for F30, it can be observed that the fitness value of BES remains almost unchanged after several iterations, while I-BES continues to search for a better solution. This demonstrates the capability of the Lévy flight strategy to escape from local optima.
The experimental results of the CEC2017 test functions demonstrate that I-BES performs well and is highly effective in solving complex problems. For hybrid and composite functions, I-BES exhibits optimal performance. The improved algorithm shows good convergence speed and accuracy, as well as the ability to avoid falling into local optima, which is of great significance for solving practical optimization problems.
5.3. Other Engineering Problems
In this section, two real-world engineering optimization problems are used to evaluate the practicality and reliability of I-BES. The population size of the algorithm is set to N = 30 for each engineering problem. The maximum number of iterations is set to T = 500, and the algorithm is run independently 30 times for comparison.
5.3.1. Tension/Compression Spring Design Problem
This tension/compression spring design problem consists of three variables:
(wire diameter,
d),
(mean coil diameter,
D), and
(number of active coils,
P). The objective of this problem is to minimize the weight (
f) of a tension/compression spring, as shown in
Figure 20. The mathematical formulation of the tension/compression spring design problem is as follows:
Table 14 shows the best results of the tension/compression spring design problem after 30 runs. The results indicate that I-BES performs better compared to BES, as I-BES, PSO, and MTSA all provide the optimal solution with a function value of
. In contrast, BES provides a sub-optimal solution and ranks last, with a function value of
.
Table 15 presents the statistical results for all the algorithms, which further support the above findings.
5.3.2. Pressure Vessel Design Problem
This pressure vessel design problem consists of four variables:
(shell thickness,
),
(head thickness,
),
(inner radius,
R), and
(length of the cylindrical section,
L). The objective of this problem is to minimize the total cost (
f) of the pressure vessel, including material, forming, and welding costs, as shown in
Figure 21. The mathematical formulation of the pressure vessel design problem is as follows:
Table 16 shows the optimal results for the pressure vessel design problem. According to
Table 16, I-BES provides the optimal solution for this problem, achieving a minimum cost of
. The total cost of the pressure vessel is minimized when
,
,
R, and
L are set to 0.7782, 0.3847, 40.3223, and 200, respectively. The MTSA algorithm ranks second in this problem, while BES ranks fifth.
Table 17 presents the statistical results of all the algorithms. It is also evident from
Table 17 that I-BES demonstrates a significant performance improvement over BES.
5.4. Discussion
This paper presents an inverse kinematics solution method based on the improved bald eagle search optimization algorithm. Through simulations and experimental results of 2DOF to 7DOF manipulators, I-BES demonstrates a faster convergence speed, higher accuracy, and greater robustness compared to other metaheuristic algorithms such as PSO, FA, MTSA, and CPSO-AT. These advantages are particularly evident in solving nonlinear problems and improving search efficiency.
The simulation and experimental results for the inverse kinematics of manipulators indicate that I-BES outperforms tje other methods in controlling the position error of the end-effector, as shown in
Figure 8,
Figure 9,
Figure 10,
Figure 11,
Figure 12 and
Figure 13 and
Table 8. Furthermore, I-BES achieves faster convergence with the same number of iterations (
Figure 14), and its robustness is confirmed through multiple tests on different manipulators, demonstrating a reliable ability to locate the global optimum (
Figure 15). Compared to the geometric method, I-BES also shows the ability to identify multiple joint configurations with high positional accuracy (
Table 9). In real-world experiments, I-BES consistently outperforms other algorithms, as demonstrated in
Table 10 and
Table 11.
Figure 17 and
Figure 18 further illustrate the feasibility of I-BES under real joint constraints.
The results of the CEC2017 test set show that I-BES significantly outperforms other algorithms across various functions, as detailed in
Table 12. Specifically, I-BES demonstrates superior local search capability on the single-peak function F3. For the multi-peak functions F8 and F9, I-BES achieves the best average values, reflecting its strong global search and ability to escape local optima. In the hybrid and composite functions (F14, F15, F18, F19, F27, F30), I-BES shows significant advantages by achieving the lowest mean and optimal values. Moreover, I-BES attains the top performance in terms of standard deviation for most functions, further validating its robustness in high-dimensional optimization problems. The Wilcoxon rank-sum test results in
Table 13 indicate that I-BES significantly outperforms all comparison algorithms, except for PSO on functions F8 and F9.
The results of the other two engineering design problems show that I-BES achieves superior performance in both the tension/compression spring design and pressure vessel design problems. As shown in
Table 14, I-BES provides the optimal solution for the spring design problem, demonstrating improved performance over BES. For the pressure vessel design problem (
Table 16), I-BES achieves the lowest cost, outperforming both MTSA and BES.
The I-BES incorporating the Lévy flight strategy offers significant advantages over the original BES in terms of global search capability, convergence accuracy, and the ability to escape local optima. The Lévy flight strategy utilizes its long-distance jump characteristics to prevent the method from prematurely converging to local optima during complex function optimization, thereby enhancing global search efficiency. When solving the inverse kinematics of a manipulator, I-BES can more effectively locate the global optimum, reduce solution accuracy errors, and exhibit better robustness when dealing with complex joint configurations and high degrees of redundancy. Furthermore, in engineering applications, I-BES demonstrates superior performance in constrained optimization and multi-objective design problems. For example, in practical engineering optimization tasks such as spring design and pressure vessel design, I-BES achieves optimal solutions with lower computational cost, verifying its potential and reliability in real-world engineering applications.
Future work will focus on applying I-BES to more complex robotic systems, such as mobile manipulators and dual-arm manipulator systems, to broaden its practical applications. By integrating real-time feedback and adaptive strategies, I-BES can be further refined to handle dynamic and uncertain operational environments. These advancements will enable I-BES to perform more effectively in scenarios requiring high flexibility and precision, thereby facilitating its deployment in diverse robotic applications [
48,
49].