Next Article in Journal
Adaptive Parameter Identification Based Tracking Control of Servo Systems with Unknown Actuator Backlash Compensation
Previous Article in Journal
A Novel Double-Sided Electromagnetic Dog Clutch with an Integrated Synchronizer Function
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Robotic Tack Welding Path and Trajectory Optimization Using an LF-IWOA

1
School of Mechanical Engineering, Guangxi University, Nanning 530004, China
2
School of Advanced Manufacturing Engineering, Guangxi Science & Technology Normal University, Laibin 546100, China
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Actuators 2025, 14(6), 287; https://doi.org/10.3390/act14060287
Submission received: 8 May 2025 / Revised: 8 June 2025 / Accepted: 9 June 2025 / Published: 10 June 2025
(This article belongs to the Section Actuators for Robotics)

Abstract

:
Robotic tack welding poses challenges in path optimization due to local optimum entrapment, limited adaptability, and high-dimensional complexity. To overcome these challenges, a Lévy flight-enhanced improved whale optimization algorithm (LF-IWOA) was developed. The algorithm combines elite opposition-based learning (EOBL), differential evolution (DE), and Lévy flight (LF) to improve global exploration capability, increase population diversity, and improve convergence. Additionally, a dynamic trajectory optimization model is designed to consider joint-level constraints, including velocity, acceleration, and jerk. The performance of LF-IWOA was evaluated using two industrial workpieces with varying welding point distributions. Comparative experiments with metaheuristic algorithms, such as the genetic algorithm (GA), WOA and other recent nature-inspired methods, show that LF-IWOA consistently achieves shorter paths and faster convergence. For Workpiece 1, the algorithm reduces the welding path by up to 25.53% compared to the genetic algorithm, with an average reduction of 14.82% across benchmarks. For Workpiece 2, the optimized path is 18.41% shorter than the baseline. Moreover, the dynamic trajectory optimization strategy decreases execution time by 26.83% and reduces mechanical energy consumption by 15.40% while maintaining smooth and stable joint motion. Experimental results demonstrated the effectiveness and practical applicability of the LF-IWOA in robotic welding tasks.

1. Introduction

With the rapid development of intelligent manufacturing and Industry 4.0 technologies, welding robots have become key equipment in modern automotive, aerospace, and electronic manufacturing industries [1,2]. The operational efficiency and path planning capabilities of welding robots directly affect the overall productivity of production lines. Tack welding is widely used for joining metal components [3]. However, in scenarios involving multiple welding points, robot path optimization remains a significant challenge, limiting productivity improvements [4]. Traditional path planning methods primarily depended on manual experience or rule-based trial-and-error strategies, often leading to prolonged welding cycles, increased energy consumption, and accelerated equipment wear [5].
Tack welding path optimization mainly involves path sequencing and acceleration/deceleration control [6]. Typically, such optimization problems are formulated as nonlinear programming tasks and solved by intelligent optimization algorithms to find the shortest possible path [7]. In recent years, intelligent optimization methods, such as GA, ant colony optimization (ACO), and reinforcement learning, have provided new ideas for multi-objective path planning of welding robots [8]. For example, Givehchi et al. [9] proposed a hybrid rule-based and GA approach to optimize welding sequence and path, significantly reducing cycle time. Kursat et al. [10] developed a combined optimization strategy integrating GA and ACO, effectively shortening welding paths. Xue et al. [11] proposed an improved multi-objective particle swarm optimization (DDN-MOPSO) algorithm to simultaneously optimize path length and welding deformation. Zhao et al. [12] introduced a hybrid path planning method based on a mimetic algorithm, aimed at optimizing spot welding paths on curved body-in-white surfaces. Takeda et al. [13] adopt a travelling salesman problem (TSP)-based welding sequence optimization strategy, grouping weld points to reduce robot motion time. In addition to welding, path planning techniques have also been widely applied in robotic drilling [14] and milling [15], demonstrating their general value across manufacturing domains. Path optimization problems are typically nonlinear, high-dimensional, and multi-objective, often containing many local optima. Algorithms that overly rely on local search are prone to getting stuck in suboptimal solutions and failing to find globally optimal paths.
Beyond minimizing path length, improving trajectory dynamics such as velocity and acceleration is critical for enhancing robot operational efficiency. Zhang et al. [16] proposed a time-optimal and smooth trajectory planning method that significantly improved motion speed by optimizing velocity, acceleration, and joint torque. Lan et al. [17] used seventh-order B-splines to construct continuous trajectories and applied multi-objective optimization to adjust speed, acceleration, and jerk, thereby achieving time-optimal planning for collaborative robots. Kim and Croft [18] introduced an online near-time-optimal trajectory planning method under path constraints, utilizing trapezoidal velocity profiles to rapidly approximate optimal trajectories. Wu et al. [19] considered robot dynamic characteristics to ensure velocity profiles closely approached maximum velocity limits. However, most industrial robot systems only allow the adjustment of velocity and acceleration time parameters, without direct control over acceleration continuity. This makes these methods difficult to implement and limits the practical transfer of theoretical advances to real-world applications.
Despite progress in path sequence optimization and trajectory time adjustment, several challenges persist. These include algorithmic tendencies to converge at local optima, the lack of coordinated optimization between path planning and motion parameter tuning, and the absence of systematic validation under real industrial conditions.
To address these challenges, this study adopts the WOA as a foundational framework for further enhancement. Although existing studies have improved WOA performance through techniques such as Gaussian mutation [20], adaptive parameter control [21], and chaotic mapping [22], these methods typically focus on benchmark functions or single-task scenarios, lacking applicability to complex industrial tasks.
To overcome the limitations in robotic tack welding path optimization, the LF-IWOA is introduced. The algorithm incorporates three key strategies into the WOA framework: EOBL to enhance global search capability, DE to improve population diversity and local search efficiency, and LF to introduce random perturbations that help escape local optima. These combined strategies significantly boost convergence accuracy and global optimization performance. To optimize both path length and execution time, a dynamic trajectory optimization model is developed, explicitly addressing joint-level dynamic constraints such as velocity, acceleration, and jerk. This model ensures time-efficient and smooth motion trajectories. The proposed method’s effectiveness and practical engineering applicability are validated through simulations and physical experiments on an industrial robotic platform. The main contributions of this work are summarized as follows:
(1)
A novel hybrid optimization algorithm, LF-IWOA, is developed by integrating EOBL, DE, and LF into the WOA framework. This integration significantly improves the algorithm’s ability to escape local optima and ensures higher convergence reliability compared to traditional methods such as GA, IGWO, and WOA.
(2)
A dynamic trajectory planning framework is proposed that explicitly incorporates joint-level physical constraints, achieving not only shorter welding paths but also smoother and more energy-efficient motion profiles.
(3)
Extensive simulations and real-world experiments on industrial workpieces are conducted, demonstrating that the proposed approach achieves superior performance over several state-of-the-art metaheuristic algorithms in terms of path length reduction, execution time, and energy consumption.
The remainder of this paper is organized as follows: Section 2 describes the problem formulation and mathematical model for welding path optimization. Section 3 introduces the LF-IWOA algorithm, including its structural components and optimization strategies. Section 4 outlines the experimental setup and validation process, including the comparative analysis with other metaheuristic algorithms. Finally, Section 5 concludes the paper by summarizing key findings and suggesting future research directions.

2. Welding Path Optimization Formulation

2.1. Problem Description and Formulation

Welding robots commonly operate with multiple welding points, where efficient path planning significantly improves processing efficiency and reduces idle motion. Figure 1 illustrates that the optimized path demonstrates a substantial reduction in idle motion compared to the original path, highlighting the role of path optimization in enhancing energy efficiency.
When performing tack welding tasks, industrial robots require an efficient and rapid approach to determine the shortest possible welding path, ensuring completion of designated tasks while maximizing operational efficiency. The welding path planning task can be succinctly described as follows: starting from an initial welding point, the robot sequentially visits and welds N discrete welding points exactly once before finally returning to the original starting point. By considering constraints such as welding torch orientation limitations and collision avoidance, welding path optimization can be mathematically formulated as a variant of the classical TSP [23].
Path length refers to the total travel distance of the welding robot, beginning from the initial welding point, sequentially traversing each welding location, and eventually returning to the initial point. Suppose there are N welding points to be visited sequentially by the welding robot, with coordinates in a three-dimensional space given as ( x i , y i , z i ), where i = 1 , 2 , , N . The total path length L is computed as the sum of linear distances between consecutive welding points, expressed as follows:
L = i = 1 N 1 d ( P i , P i + 1 ) + d ( P N , P 1 )
where d ( P i , P i + 1 ) denotes the Euclidean distance between welding points P i and P i + 1 , with P 1 representing the initial welding point and P N the final welding point in the sequence.
In solving the TSP formulation, a binary decision variable x i j is typically employed to indicate the presence or absence of a direct travel path from welding point i to welding point j. Specifically, x i j = 1 if the path from i to j exists, and x i j = 0 otherwise. In the context of tack welding tasks, the optimization goal is to determine an optimal welding sequence that minimizes the total path length. Consequently, the optimization problem is mathematically defined as:
min i = 1 N j = 1 , j i N d ( P i , P j ) · x i j s . t . i = 1 , i j N x i j = 1 , j = 1 , 2 , , N ( Departure constraints ) j = 1 , j i N x i j = 1 , i = 1 , 2 , , N ( Arrival constraints ) u i u j + N · x i j N 1 , i j , i , j = 2 , 3 , , N ( Subtour elimination constraints )
where u i represents an auxiliary continuous integer variable indicating the sequence position of welding point i within the path, where a smaller value indicates an earlier visit.

2.2. Proposed LF-IWOA Algorithm

To address the complexity of robotic tack welding path optimization, we propose an enhanced optimization framework, integrating the WOA with three strategic improvements, EOBL, DE, and LF, collectively referred to as IWOA. The original WOA, developed by Mirjalili and Lewis [24], is a swarm intelligence metaheuristic inspired by humpback whales’ bubble-net hunting behavior. Figure 2 depicts the WOA spatial model, demonstrating the prey encircling and spiral attack mechanisms. In WOA, the whale population updates its positions iteratively towards the best-known solution using two main strategies: shrinking encircling and spiral updating. The position updating is mathematically formulated as:
X ( t + 1 ) = X * ( t ) A · D , p < 0.5 D · e b l cos ( 2 π l ) + X * ( t ) , p 0.5
where X * ( t ) represents the best solution found so far, A and D are coefficient vectors that balance exploration and exploitation, p is a random number in [0, 1], b controls the spiral shape, and l is a random number within [ 1 , 1 ] .
Although WOA demonstrates strong global search capabilities, it still suffers from limitations such as slow convergence speed, low solution precision, and vulnerability to premature convergence when tackling complex high-dimensional problems. To address these shortcomings, three complementary strategies are incorporated.
First, EOBL is integrated to enhance population diversity and maintain a balance between exploration and exploitation throughout the optimization process [25]. At each iteration, the best-performing individual, termed X e l i t e , is identified as:
X e l i t e = arg max x X f ( x )
Opposition-based candidates are generated according to:
x i n e w = X e l i t e α · ( x i X e l i t e )
where α is a decreasing factor linearly varying from 1 to 0 over the iterations.
By evaluating both the original and opposition-based individuals, the better individual is selected. This strategy effectively expands the search space near the elite solution, increases the chances of escaping local optima, and accelerates the convergence speed, especially in the early and middle phases of the search.
Second, Lévy flight perturbation is introduced to enhance global exploration further and overcome the inherent tendency of WOA to stagnate when the population clusters around local optima. After performing the standard WOA position update, each agent has a probability P L é vy of undergoing a Lévy jump:
X i = X i + L é vy ( β ) × ( X i X * )
where L é vy ( β ) generates a random step from a Lévy distribution with exponent β , typically set to 1.5. By occasionally performing long-distance jumps, the population can explore broader areas in the search space, thereby improving global search robustness without sacrificing local exploitation accuracy.
Finally, differential evolution mechanisms are incorporated to refine local search performance and improve solution quality. Three distinct individuals, x r 1 , x r 2 , and x r 3 , are randomly selected, and a mutant vector v i is generated as:
v i = x r 1 + F · ( x r 2 x r 3 )
where F is a mutation scaling factor. Through a crossover operation with crossover probability C R , the trial vector u i is generated:
u i = v i , if r a n d ( 0 , 1 ) C R or j = j r a n d x i , otherwise
Finally, selection is performed by retaining the better solution:
x i n e w = u i , if f ( u i ) f ( x i ) x i , otherwise
The combined EOBL, LF, and DE strategies significantly strengthen WOA by maintaining diversity, promoting adaptive exploration–exploitation balance, enhancing local refinement ability, and improving convergence stability. The detailed workflow of the proposed LF-IWOA is summarized as follows: Initially, the whale population is randomly generated within the predefined search space. Each individual’s fitness is evaluated, and the leader X * is identified. EOBL is first applied to generate new candidates around the elite solution to expand the search space. Subsequently, whales update their positions based on the WOA encircling and spiral models. Afterward, Lévy flight perturbations are probabilistically applied to encourage exploration. Then, DE-based mutation, crossover, and selection are conducted to refine solutions locally. If a better solution is found, the leader X * is updated. This process is iterated until the maximum number of iterations is reached or convergence is achieved.
The complete pseudocode of LF-IWOA is shown in Algorithm 1.   
Algorithm 1: LF-IWOA for Optimization
Actuators 14 00287 i001

3. Trajectory Optimization Considering Robot Joint Constraints

In robotic welding tasks, motion trajectories typically consist of multiple segments. To achieve optimal trajectory time efficiency, each segment should operate at the maximum allowable velocity determined by the joint-level dynamic constraints, with acceleration and deceleration durations individually adjusted for each segment. If identical velocity and acceleration profiles are applied across all segments without considering their specific dynamic limitations, the total trajectory execution time may increase, thereby reducing overall time efficiency. Therefore, minimizing the total welding cycle time requires the comprehensive optimization of trajectory parameters, including the maximum joint angular velocity, acceleration, and jerk.
Trajectory optimization for welding robots requires thorough consideration of dynamic constraints, particularly those associated with robot joint limitations. These constraints primarily include maximum joint angular velocity ( θ ˙ max ), maximum joint angular acceleration ( θ ¨ max ), and maximum allowable jerk ( θ max ). The linear velocity ( v end ) of the robot’s end-effector relates to joint angular velocities ( θ ˙ ) through the Jacobian matrix J ( θ ) :
v end = J ( θ ) · θ ˙
where θ = [ θ 1 , θ 2 , , θ 6 ] T represents the vector of joint positions, and J ( θ ) denotes the manipulator Jacobian, which maps joint space velocities to Cartesian space velocities.
To effectively plan and control welding trajectories, the paths between consecutive welding points are discretized into multiple intermediate positions. Robot joint positions at these discrete points are computed via inverse kinematics. At each discrete position along the trajectory, the maximum achievable end-effector velocity ( v m a x ) is constrained by the individual joint velocity limits, expressed by:
v m a x = min J ( θ ) · θ ˙ max
Figure 3 illustrates how joint angular velocity limitations directly restrict the maximum achievable end-effector velocity, thereby demonstrating the impact of joint constraints on the operational performance and feasible workspace of the robotic welding system.
Moreover, constraints on end-effector acceleration ( a end ) and jerk ( j max ) must also be taken into account, as they significantly affect the smoothness of robotic motion and the degree of mechanical wear. The end-effector acceleration can be derived from the Jacobian matrix and its time derivative:
a end = J ( θ ) · θ ¨ + J ˙ ( θ , θ ˙ ) · θ ˙
Accordingly, the maximum permissible end-effector acceleration a max at each discrete trajectory position is determined by:
a max = min J ( θ ) · θ ¨ + J ˙ ( θ , θ ˙ ) · θ ˙
Acceleration ( t acc ) and deceleration ( t dec ) durations for each trajectory segment primarily depend on the required velocity changes and the allowable acceleration and jerk constraints. For simplicity and practical engineering purposes, these durations can be initially approximated using the maximum acceleration constraints:
t acc = v max v s a max , ( v max v s ) j max > a max 2 t acc = 2 v max v s j max , ( v max v s ) j max a max 2
t dec = v max v e a max , ( v max v e ) j max > a max 2 t dec = 2 v max v e j max , ( v max v e ) j max a max 2
where v s and v e represent the initial and final velocities, respectively, and j max is the maximum permissible jerk based on the robot’s dynamic constraints.
When the total trajectory segment length (L) is sufficiently long, the robot can sustain its maximum permissible velocity ( v max ) for a certain duration. The duration of this constant-speed phase ( t const ) is calculated as:
t const = L ( L acc + L dec ) v max
where L acc and L dec represent the distances covered during the acceleration and deceleration phases, respectively.
Under jerk constraints, these distances can be accurately calculated by considering higher-order derivative limits of the trajectory:
L acc = 2 3 ( v max v s ) 3 j max , ( v max v s ) j max a max 2 L acc = a max 3 3 j max 2 + 1 2 v max v s a max 2 j max 2 , ( v max v s ) j max > a max 2
L dec = 2 3 ( v max v e ) 3 j max , ( v max v e ) j max a max 2 L dec = a max 3 3 j max 2 + 1 2 v max v e a max 2 j max 2 , ( v max v e ) j max > a max 2
For shorter trajectory segments, where the total segment length prevents the robot from reaching the theoretical maximum velocity ( v max ), an adjusted maximum velocity ( v max , new ) must be iteratively determined. A numerical method is used to find v max , new such that the sum of the acceleration and deceleration distances precisely equals the segment length:
L acc ( v max , new ) + L dec ( v max , new ) = L
Once the revised maximum velocity v max , new is identified, the minimal total travel time t total , min for the segment is calculated as the sum of the acceleration, constant speed (if applicable), and deceleration durations:
t total , min = t acc + t const + t dec
Through such optimized trajectory planning, the integration of intelligent path-planning methods with dynamically adaptive motion control strategies significantly enhances robotic tack welding performance and operational flexibility, thereby providing robust and efficient solutions for practical industrial applications.

4. Experimental Platform and Validation

The experimental platform, illustrated in Figure 4, primarily consists of a six-degrees-of-freedom industrial welding robot and a customized dual-core robot control system. The robot has a maximum working radius of 1465 mm and repeatability positioning accuracy of ±0.08 mm. The control system integrates an RTX64 real-time subsystem with a Windows 10 environment, in which three CPU cores handle Windows-based modules, such as the human–machine interface and data preprocessing, and one dedicated core manages real-time motion control. Communication between the motion controller and servo drives is implemented via an EtherCAT industrial bus operating at a 2 ms cycle time, ensuring the low latency and high-speed data transmission necessary for precise robotic trajectory execution. It is worth noting that the robot controller used in this study is self-developed, enabling flexible integration and full access to trajectory-level and servo-level control modules.
Figure 5 illustrates the overall system workflow. Initially, a predefined set of tack welding points specifies the desired welding positions. The LF-IWOA algorithm is applied to determine the optimal visiting sequence to minimize the total welding path length. Subsequently, a time-optimal trajectory is generated by assigning appropriate velocity and acceleration profiles for each segment. The resulting trajectory is compiled into a robot-controller-compatible format and transmitted through the EtherCAT bus. After the trajectory and motion parameters are determined, the system is capable of automatically generating structured teaching files in TXT format, which comply with predefined syntax rules and can be directly interpreted by the robot controller to execute motion commands. The robot then executes the welding tasks according to the generated trajectory, and real-time motion data are collected during this process.
The experiment aimed to evaluate the effectiveness of the proposed LF-IWOA-based trajectory optimization method in reducing welding path length and cycle time. To comprehensively assess the versatility and robustness of the algorithm, two representative workpieces were selected, as shown in Figure 6. Workpiece 1 (Figure 6a) is a go-kart chassis frame containing 45 tack welding points arranged densely and irregularly. It represents an unconstrained path planning scenario, requiring the algorithm to determine both the optimal visiting order and the corresponding trajectory. Workpiece 2 (Figure 6b) is a steel structural frame consisting of 32 tack welding points arranged more regularly and sparsely. Similar to Workpiece 1, no predefined welding path was provided. This ensures consistent experimental conditions for all algorithms under comparison. The difference in structural complexity and point distribution between the two workpieces enables a realistic and diverse evaluation of algorithm performance across varying task difficulties.
To ensure safe and predictable motion during trajectory execution, all inter-point transitions were performed using linear movement mode rather than point-to-point (PTP) movement. This approach guarantees straight-line motion in a Cartesian space, reducing the risk of uncontrolled end-effector paths and potential collisions.
The LF-IWOA algorithm parameters were set based on a combination of literature guidelines and preliminary sensitivity experiments to ensure robust performance. Specifically, population size was set to N p = 200 and maximum iterations to K max = 200 , balancing search capability and computational efficiency. The Lévy flight probability ( P L é vy = 0.3 ), elite learning rate ( η = 0.2 ), differential evolution factor ( F = 0.4 ), and crossover rate ( C R = 0.9 ) were selected from commonly used ranges in related studies and further validated through tuning to achieve stable convergence behavior across different workpiece conditions. Optimization results were benchmarked against several widely-used metaheuristic algorithms, including Genetic Algorithm (GA), standard WOA, Wild Horse Optimizer (WHO), Improved Grey Wolf Optimizer (IGWO), and Coot Optimization Algorithm (COA).
The experimental results in Figure 7 and Table 1 demonstrate that LF-IWOA consistently outperformed other tested algorithms in terms of optimization effectiveness and convergence accuracy. For Workpiece 1, LF-IWOA achieved the shortest path length, reducing path length by 2.90% to 25.58% compared with other algorithms. For Workpiece 2, similar improvements were observed, with LF-IWOA outperforming the others by margins ranging from 9.00% to 23.38%. The optimization was initiated from randomly generated solutions, highlighting LF-IWOA’s robust global search capabilities and consistent avoidance of local optima. In addition to path length, computational efficiency was also considered. LF-IWOA required 37.54 s for Workpiece 1 and 26.81 s for Workpiece 2. Although some algorithms such as WHO and GA ran faster, their optimization performance was clearly inferior. This confirms that LF-IWOA achieves a good balance between solution quality and computational cost. These findings also demonstrate the algorithm’s robustness across different workpiece configurations and its practical potential for real-world robotic welding applications.
In conclusion, LF-IWOA’s hybrid structure and enhanced balance of exploration-exploitation make it highly effective for complex path planning tasks. Figure 8 illustrates the final optimized tack welding paths for both workpieces.
Based on the optimized tack welding path, further improvements in motion execution were implemented through simulation by optimizing the maximum velocity and acceleration time for each path segment to improve overall robotic efficiency. One segment from Workpiece 2 was selected as an example, representing the path from P s ( 800 , 260 , 800 ) to P 0 ( 455 , 10 , 590 ) . The robot posture was configured as ( 180 , 35 , 0 ) . This orientation was uniformly applied to all welding points and remained fixed throughout both the optimization and execution phases. It was selected to ensure tool accessibility and to simplify trajectory planning by avoiding orientation reconfiguration. Interpolation, inverse kinematics calculation, Jacobian matrix evaluation, and end-effector velocity limit computation were performed. The maximum allowable velocity for this segment was determined to be 966.85 mm/s, as shown in Figure 9a. According to Equation (13), the corresponding acceleration and jerk constraints were calculated as 5685.61 mm/s2 and 32,789.56 mm/s3, respectively. The initial velocity was set to 0 mm/s. Using Equations (14)–(20), the acceleration time ( t acc ), deceleration time ( t dec ), and constant velocity duration ( t const ) were calculated as 0.3431 s, 0.3431 s, and 0.1451 s, respectively. The total simulated motion time was 0.830 s. Figure 9b,c present the velocity and position profiles before and after optimization. In the baseline simulation, the initial maximum velocity was 500 mm/s, and both acceleration and deceleration times were set to 0.3 s, resulting in a total motion time of 1.502 s. After optimization, the motion time was reduced by 44.74%.
To verify whether the simulation-based optimizations translate into practical improvements, the optimized trajectory was validated on the actual robot platform, taking into account the workspace constraints of Workpiece 2. A dwell time of 5 s per tack welding point was set, with an initial trajectory velocity of 500 mm/s and acceleration time of 0.3 s. These optimized velocity and acceleration profiles were then generated by the algorithm and applied to the robot via teaching files. The teaching files generated from the optimized paths were uploaded to the robot’s controller, and the planned trajectories were executed in real time within the physical workspace. During the physical execution, joint angles, angular velocities, and torques were recorded via the robot’s onboard sensors. This ensures that the evaluation reflects the real behavior of the system under practical operating conditions. Figure 10 shows the measured data of the robot prior to optimization, providing a baseline for comparison with the optimized results.
In the physical experiment, a constant dwell time of 5 s was assigned to each tack welding point to simulate the actual welding process. Under this condition, the total operation time was reduced from 178.71 s to 173.69 s after applying the optimized trajectory, corresponding to a 2.81% improvement. When the dwell durations were excluded and only the robot’s motion time was considered, the execution time decreased from 18.71 s to 13.69 s. This represents a 26.83% reduction, demonstrating the significant impact of trajectory optimization on motion efficiency. Figure 11a,b present the joint angular velocities and joint angles during optimized robot motions (excluding dwell phases), indicating smooth changes without exceeding predefined operational limits, thereby ensuring welding accuracy and stability. The mechanical energy consumption during robot motion was calculated by multiplying the joint torques (Figure 11c) by the joint angular velocities (Figure 11a). The measured energy consumption during physical execution was reduced from 709.26 J to 600.04 J after optimization, achieving an improvement in energy efficiency of 15.40%. These results collectively confirm that the trajectory optimization method not only improves efficiency in simulation but also yields measurable performance gains in real-world robotic operations.

5. Conclusions

To overcome common challenges, such as local optimum entrapment and poor convergence in complex path-planning scenarios, an LF-IWOA was developed, incorporating strategies to significantly enhance global search capability and maintain population diversity. Experimental validation was performed using two industrial workpieces with distinct welding configurations. For the go-kart chassis frame, comprising 45 welding points without a predefined welding sequence, LF-IWOA achieved a total path length of 8498.50 mm, reducing lengths by 34.60% and 21.63% compared to the Genetic Algorithm and the standard Whale Optimization Algorithm, respectively. For the steel structural frame with 32 welding points and a predefined initial sequence, LF-IWOA reduced the path length from 4847.80 mm to 4393.70 mm, achieving a 9.37% improvement over the baseline approach. Comparative experiments further confirmed that LF-IWOA consistently outperformed mainstream metaheuristic algorithms, such as the WHO, IGWO, and COA.
In addition to spatial path planning, a dynamic trajectory model incorporating joint-level constraints such as velocity, acceleration, and jerk limits was developed. A bisection-based velocity adjustment method facilitated time-optimal trajectory execution. When applied to Workpiece 2, this strategy resulted in a 2.81% reduction in total cycle time, a 26.83% decrease in motion duration (excluding dwell time), and a 15.40% reduction in energy consumption, while maintaining smooth and precise joint motions. Although the current method does not reduce robot programming time directly, it enables the automatic generation of globally optimized paths and segment-wise motion parameters, which are difficult to obtain through manual programming. This improves execution quality and provides a foundation for future integration with offline programming systems. Compared with other tested algorithms, LF-IWOA achieved shorter welding paths, better convergence, and more stable results under the same initial conditions. These improvements directly reflect its effectiveness for the specific path and trajectory optimization tasks addressed in this study.
Although LF-IWOA demonstrated superior performance in various welding scenarios, its effectiveness may be limited in highly dynamic environments or when faced with dense and irregular welding point distributions. The workpieces used in this study, though relatively regular, reflect realistic engineering conditions with meaningful spatial and motion constraints. To further assess robustness, future work will consider more irregular or randomized welding layouts. While reinforcement learning (RL) methods offer advantages in dynamic environments, they were not applied in this study due to the static and offline nature of the welding task. Future work will explore RL-based strategies to improve adaptability in more complex scenarios. Future improvements may also involve adaptive parameter tuning and hybrid optimization strategies to enhance performance in more complex scenarios.

Author Contributions

Conceptualization, B.J. and H.P.; methodology, B.J.; software, B.J. and L.Z.; validation, B.J. and Y.Y.; formal analysis, B.J., L.Z. and H.P.; investigation, H.P.; data curation, Y.Y. and L.Z.; writing—original draft preparation, B.J. and H.P.; writing—review and editing, B.J. and H.P.; visualization, B.J. and H.P.; supervision, H.C. and L.C.; project administration, H.C. and L.C.; funding acquisition, H.C. and L.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Guangxi science and technology major program (No. AA18118002) and the innovation project of Guangxi graduate education under Grant (No. YCBZ2024015).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on reasonable request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Curiel, D.; Veiga, F.; Suarez, A.; Villanueva, P. Advances in robotic welding for metallic materials: Application of inspection, modeling, monitoring and automation techniques. Metals 2023, 13, 711. [Google Scholar] [CrossRef]
  2. Haitao, L.; Tingke, W.; Jia, F.; Fengqun, Z. Analysis of typical working conditions and experimental research of friction stir welding robot for aerospace applications. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2021, 235, 1045–1056. [Google Scholar] [CrossRef]
  3. Zhao, D.; Ivanov, M.; Wang, Y.; Liang, D.; Du, W. Multi-objective optimization of the resistance spot welding process using a hybrid approach. J. Intell. Manuf. 2021, 32, 2219–2234. [Google Scholar] [CrossRef]
  4. Muley, S.V.; McCarthy, J.J. Case study: Investigation of shorter lifetime of upper Cu weld wheels in an industrial mash seam welding setup. Eng. Fail. Anal. 2022, 135, 106113. [Google Scholar] [CrossRef]
  5. Zhou, P.; Peng, R.; Xu, M.; Wu, V.; Navarro-Alarcon, D. Path planning with automatic seam extraction over point cloud models for robotic arc welding. IEEE Robot. Autom. Lett. 2021, 6, 5002–5009. [Google Scholar] [CrossRef]
  6. Wang, X.; Zhou, X.; Xia, Z.; Gu, X. A survey of welding robot intelligent path optimization. J. Manuf. Process. 2021, 63, 14–23. [Google Scholar] [CrossRef]
  7. Aggarwal, S.; Kumar, N. Path planning techniques for unmanned aerial vehicles: A review, solutions, and challenges. Comput. Commun. 2020, 149, 270–299. [Google Scholar] [CrossRef]
  8. Tamizi, M.G.; Yaghoubi, M.; Najjaran, H. A review of recent trend in motion planning of industrial robots. Int. J. Intell. Robot. Appl. 2023, 7, 253–274. [Google Scholar] [CrossRef]
  9. Givehchi, M.; Ng, A.H.; Wang, L. Spot-welding sequence planning and optimization using a hybrid rule-based approach and genetic algorithm. Robot. Comput.-Integr. Manuf. 2011, 27, 714–722. [Google Scholar] [CrossRef]
  10. Tanrıver, K.; Ay, M. Efficient Path Planning for Drilling Processes: The Hybrid Approach of a Genetic Algorithm and Ant Colony Optimisation. Trans. Famena 2024, 48, 125–140. [Google Scholar] [CrossRef]
  11. Xue-Wu, W.; Yong, M.; Xing-sheng, G. Multi-objective path optimization for arc welding robot based on discrete DN multi-objective particle swarm optimization. Int. J. Adv. Robot. Syst. 2019, 16, 1729881419879827. [Google Scholar] [CrossRef]
  12. Zhao, H.; Zhang, B.; Sun, J.; Yang, L.; Yu, H. Spot-welding path planning method for the curved surface workpiece of body-in-white based on a memetic algorithm. Int. J. Adv. Manuf. Technol. 2021, 117, 3083–3100. [Google Scholar] [CrossRef]
  13. Takeda, H.; Kitajima, K.; Kajita, D.; Nakano, T. Welding Sequence and Robot Path Optimization for Spot Welding Robots to Prevent Deformation of Sheet Metal Parts. In Proceedings of the 2024 IEEE 20th International Conference on Automation Science and Engineering (CASE), Bari, Italy, 28 August–1 September 2024; pp. 3667–3674. [Google Scholar]
  14. Zhang, W.B.; Zhu, G.Y. Drilling path optimization by optimal foraging algorithm. IEEE Trans. Ind. Inform. 2017, 14, 2847–2856. [Google Scholar] [CrossRef]
  15. Karuppanan, B.R.C.; Saravanan, M. Optimized sequencing of CNC milling toolpath segments using metaheuristic algorithms. J. Mech. Sci. Technol. 2019, 33, 791–800. [Google Scholar] [CrossRef]
  16. Zhang, T.; Zhang, M.; Zou, Y. Time-optimal and smooth trajectory planning for robot manipulators. Int. J. Control. Autom. Syst. 2021, 19, 521–531. [Google Scholar] [CrossRef]
  17. Lan, J.; Xie, Y.; Liu, G.; Cao, M. A multi-objective trajectory planning method for collaborative robot. Electronics 2020, 9, 859. [Google Scholar] [CrossRef]
  18. Kim, J.; Croft, E.A. Online near time-optimal trajectory planning for industrial robots. Robot. Comput.-Integr. Manuf. 2019, 58, 158–171. [Google Scholar] [CrossRef]
  19. Wu, H.; Yang, J.; Huang, S.; Ning, X.; Zhang, Z. Multi-objective adaptive trajectory optimization for industrial robot based on acceleration continuity constraint. Robot. Comput.-Integr. Manuf. 2023, 84, 102597. [Google Scholar] [CrossRef]
  20. Ning, G.Y.; Cao, D.Q. Improved whale optimization algorithm for solving constrained optimization problems. Discret. Dyn. Nat. Soc. 2021, 2021, 8832251. [Google Scholar] [CrossRef]
  21. Dai, Y.; Yu, J.; Zhang, C.; Zhan, B.; Zheng, X. A novel whale optimization algorithm of path planning strategy for mobile robots. Appl. Intell. 2023, 53, 10843–10857. [Google Scholar] [CrossRef]
  22. Elmogy, A.; Miqrish, H.; Elawady, W.; El-Ghaish, H. ANWOA: An adaptive nonlinear whale optimization algorithm for high-dimensional optimization problems. Neural Comput. Appl. 2023, 35, 22671–22686. [Google Scholar] [CrossRef]
  23. Zhang, Q.; Zhao, M.Y. Minimum time path planning of robotic manipulator in drilling/spot welding tasks. J. Comput. Des. Eng. 2016, 3, 132–139. [Google Scholar] [CrossRef]
  24. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  25. Si, T.; Bhattacharya, D.; Nayak, S.; Miranda, P.B.; Nandi, U.; Mallik, S.; Maulik, U.; Qin, H. Pcobl: A novel opposition-based learning strategy to improve metaheuristics exploration and exploitation for solving global optimization problems. IEEE Access 2023, 11, 46413–46440. [Google Scholar] [CrossRef]
Figure 1. Example of machining path optimization.
Figure 1. Example of machining path optimization.
Actuators 14 00287 g001
Figure 2. Schematic diagram of the spatial model in the WOA.
Figure 2. Schematic diagram of the spatial model in the WOA.
Actuators 14 00287 g002
Figure 3. Maximum achievable end-effector velocity under joint velocity limitations.
Figure 3. Maximum achievable end-effector velocity under joint velocity limitations.
Actuators 14 00287 g003
Figure 4. Experimental platform of the welding robot.
Figure 4. Experimental platform of the welding robot.
Actuators 14 00287 g004
Figure 5. System flowchart of trajectory planning and execution.
Figure 5. System flowchart of trajectory planning and execution.
Actuators 14 00287 g005
Figure 6. Workpieces used for robot path optimization experiments: (a) Workpiece 1—go-kart chassis frame with 45 tack points; (b) Workpiece 2—steel structural frame with 32 tack points.
Figure 6. Workpieces used for robot path optimization experiments: (a) Workpiece 1—go-kart chassis frame with 45 tack points; (b) Workpiece 2—steel structural frame with 32 tack points.
Actuators 14 00287 g006
Figure 7. Comparison of path optimization results: (a) Workpiece 1, (b) Workpiece 2.
Figure 7. Comparison of path optimization results: (a) Workpiece 1, (b) Workpiece 2.
Actuators 14 00287 g007
Figure 8. Optimized shortest tack welding paths: (a) Workpiece 1, (b) Workpiece 2.
Figure 8. Optimized shortest tack welding paths: (a) Workpiece 1, (b) Workpiece 2.
Actuators 14 00287 g008
Figure 9. Robot trajectory motion parameter optimization example: (a) end-effector velocity under joint motion constraints, (b) trajectory velocity, and (c) trajectory positions.
Figure 9. Robot trajectory motion parameter optimization example: (a) end-effector velocity under joint motion constraints, (b) trajectory velocity, and (c) trajectory positions.
Actuators 14 00287 g009
Figure 10. Measured data of the robot before optimization of motion trajectory parameters: (a) joint angular velocities, (b) joint angles, (c) joint torques.
Figure 10. Measured data of the robot before optimization of motion trajectory parameters: (a) joint angular velocities, (b) joint angles, (c) joint torques.
Actuators 14 00287 g010
Figure 11. Measured data of the robot after optimization of motion trajectory parameters: (a) joint angular velocities, (b) joint angles, and (c) joint torques.
Figure 11. Measured data of the robot after optimization of motion trajectory parameters: (a) joint angular velocities, (b) joint angles, and (c) joint torques.
Actuators 14 00287 g011
Table 1. Comparison of path length and runtime for different algorithms on two workpieces.
Table 1. Comparison of path length and runtime for different algorithms on two workpieces.
AlgorithmWorkpiece 1Workpiece 2
Path Length (mm)Runtime (s)Path Length (mm)Runtime (s)
LF-IWOA8493.7137.544392.3326.81
WHO11,357.4729.785733.5219.85
GA11,405.2327.525383.7116.19
WOA9971.6720.365271.4312.34
IGWO8747.9524.174827.2016.11
COA9423.5427.744968.8421.34
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

Jia, B.; Pan, H.; Zhang, L.; Yang, Y.; Chen, H.; Chen, L. Robotic Tack Welding Path and Trajectory Optimization Using an LF-IWOA. Actuators 2025, 14, 287. https://doi.org/10.3390/act14060287

AMA Style

Jia B, Pan H, Zhang L, Yang Y, Chen H, Chen L. Robotic Tack Welding Path and Trajectory Optimization Using an LF-IWOA. Actuators. 2025; 14(6):287. https://doi.org/10.3390/act14060287

Chicago/Turabian Style

Jia, Bingqi, Haihong Pan, Lei Zhang, Yifan Yang, Huaxin Chen, and Lin Chen. 2025. "Robotic Tack Welding Path and Trajectory Optimization Using an LF-IWOA" Actuators 14, no. 6: 287. https://doi.org/10.3390/act14060287

APA Style

Jia, B., Pan, H., Zhang, L., Yang, Y., Chen, H., & Chen, L. (2025). Robotic Tack Welding Path and Trajectory Optimization Using an LF-IWOA. Actuators, 14(6), 287. https://doi.org/10.3390/act14060287

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop