1. Introduction
With the rapid development of robotics, robots are increasingly deployed in various fields, and path planning, one of the fundamental challenges for mobile robots, has gradually attracted widespread attention [
1]. Path planning refers to the process by which mobile robots use algorithms to plan paths that satisfy task requirements, with evaluation metrics such as path distance, number of turns, and running time [
2]. Path planning can typically be divided into two categories: global and local path planning. Traditional approaches in global path planning often involve algorithms such as Dijkstra’s algorithms [
3], the A* algorithms [
4], and the RRT algorithms [
5], and local path planning includes the dynamic window approach (DWA) [
6] and the artificial potential field (APF) algorithm [
7]. In path planning, researchers worldwide have proposed many algorithms and made significant contributions. Feng et al. [
8] proposed an autonomous path planning method capable of dynamically adjusting coverage paths and priorities, by introducing a dynamic weight matrix to Dijkstra’s algorithm, thereby generating cost-optimal paths rather than merely the shortest paths. To address vehicle path safety in uncertain dynamic obstacle environments, Lathrop et al. [
9] calculated the Wasserstein distance between the distributions of vehicle and obstacle states, improved the RRT algorithm through the incorporation of a dynamic distribution model, and provided safe paths that are probabilistically guaranteed. Jiang et al. [
10] added a risk penalty to the evaluation function of the A* algorithm, making the improved algorithm more suitable for practical situations, and combined the A* algorithm with the DWA, which allows the DWA to traverse the A* path points, thus endowing the algorithm with dynamic path planning capability. Ding et al. [
11] employed a beetle antennae search algorithm to address the optimization issues of the APF algorithm. They dynamically adjusted the search step size based on the distance between the robot and the target point, thereby achieving a balance between path generation speed and planning accuracy. To address the suboptimal path problem of the DWA algorithm due to fixed weights in complex environments, Gong et al. [
12] improved the velocity cost function. They input the distances between the robot, obstacles, and the target point into a fuzzy control module, thus enabling the robot to adapt to environmental changes. Although traditional global path algorithms and local path algorithms perform well in many applications, they also have limitations in addressing optimization problems. For example, the A* algorithm is subject to computational complexity in high-dimensional environments, which results in poor dynamic capability. The APF can result in path planning failures due to local minima problems and is computationally intensive, requiring considerable time.
In recent years, with the development of intelligent optimization algorithms, such as ant colony optimization (ACO) [
13], genetic algorithm (GA) [
14], sine cosine algorithm (SCA) [
15], and particle swarm optimization (PSO) [
16], these algorithms have also been widely applied to path planning problems. Wang et al. [
17] enhanced the ACO by employing several heterogeneous ant colonies to enhance solution diversity and optimize UAV task allocation through task insertion boundaries and random interruption mechanisms. Akay et al. [
18] introduced a differential update strategy into the SCA, where different strategies are chosen to update candidate solutions, thereby enhancing the diversity of the algorithm. Xu et al. [
19] incorporated adaptive weighted delayed velocity in the PSO algorithm to improve convergence stability and proposed quartic Bézier curves for smoothing the paths, thereby reducing abrupt turns in robot motion. Pan et al. [
20] combined GA with deep learning, and the trained deep neural networks can quickly generate planning results, which significantly reduces the running time.
Gray Wolf Optimization (GWO) algorithm [
21] is a swarm intelligence algorithm proposed in 2014, widely used in various fields due to its strong global search capability. It primarily finds the global optimal solution through the natural predatory behavior of wolves. Compared with other intelligent algorithms, GWO offers advantages such as fewer parameters, faster convergence speed, and improved stability. However, in complex environments, GWO may exhibit reduced convergence accuracy and is prone to falling into local optima. Therefore, improving GWO has become an active area of research in recent years. To address the issue of GWO falling into local optima in complex multi-modal problems, Yu et al. [
22] proposed HGWODE, which introduces a ranking-based mutation strategy and enhances the exploratory capability using the Differential Evolution algorithm, thereby enabling the algorithm to escape local optima. Ding et al. [
23] introduced a probabilistic jump mechanism into GWO to help it escape local optima and improve its the convergence speed by replacing the linear convergence factor with an exponentially decaying one. Liu et al. [
24] enhanced GWO by using a Gaussian map to improve the quality of the initial gray wolf population, incorporating the Lévy flight strategy to increase the population’s diversity, and integrating the Golden Sine function to improve the convergence accuracy. Jiang et al. [
25] introduced the
comparison method in GWO to enhance the algorithm’s exploratory capability by dynamically adjusting the
-value. Additionally, they incorporated a communication mechanism that randomly selects individuals to exchange information with the optimal individual, thereby improving the population’s diversity. Zhang et al. [
26] introduced the centrifugal distance rate of change to calculate the population distribution and dynamically assigned weights based on the centrifugal distance rate of change between individuals and leaders, thereby enhancing the algorithm’s optimization performance and convergence speed. Qu et al. [
27] simplified the position update formula of GWO, accelerating convergence while retaining global search capability, and modified the symbiotic phase of the Symbiotic Organisms Search (SOS) algorithm, enhancing information exchange among individuals and avoiding local optima. They combined the improved SOS algorithm with the simplified GWO algorithm, proposing a new algorithm, HSGWO-MSOS, which balances global exploration and local exploitation, thereby improving the effectiveness of path planning. Zhang et al. [
28] significantly enhanced the search efficiency and stability of GWO path planning through the introduction of a discrete search mechanism, adaptive parameter adjustment, and local optimization strategies, demonstrating superior performance in path planning for porous materials. Liu et al. [
29] integrated the Gaussian mutation strategy and spiral function perturbation to enhance the algorithm’s ability to escape local optima by randomly perturbing the position of the optimal individual. Additionally, they enhanced the global search ability of the algorithm by dynamically adjusting the weights, thereby increasing the influence of a wolf via Gaussian distribution. They applied the proposed NAS-GWO to trajectory planning in agricultural drone applications. Wang et al. [
30] developed a poor solution repair strategy, thereby improving the population quality, and incorporated a multi-constraint path cost function to optimize the efficiency and safety of UAV path planning. Although the existing improvement methods have improved the performance of GWO, the algorithm remains constrained in complex environments. For example, the algorithm tends to fall into local optima and exhibits suboptimal path smoothness. Moreover, in dynamic environments, traditional GWO cannot handle dynamic obstacle avoidance in dynamic settings. Furthermore, some improved algorithms have enhanced performance but introduced excessive tuning parameters, which may increase algorithmic complexity, reduce generalization ability, and hinder adaptation to diverse application scenarios.
Based on previous research, this paper conducts an in-depth study of GWO and applies comprehensive improvements to overcome its performance limitations. It proposes the PAGWO algorithm and combines it with an enhanced version of the DWA, forming the PAGWO-IDWA approach for mobile robot path planning and dynamic obstacle avoidance.
The structure of the paper is outlined as follows:
Section 2 provides an overview of the standard GWO algorithm;
Section 3 improves the GWO algorithm with various strategies to address its shortcomings;
Section 4 describes the improvements to the Dynamic Window Approach (DWA);
Section 5 integrates the PAGWO algorithm with the Improved Dynamic Window Approach (IDWA) to address the limitations in dynamic path planning;
Section 6 simulates and analyzes the proposed algorithm to validate the performance of PAGWO-IDWA in path planning; and finally,
Section 7 provides a summary and concludes the paper.
6. Experiments Simulation and Analysis
6.1. Algorithm Testing and Analysis
To validate the performance of the PAGWO algorithm proposed in this study, we systematically selected a diverse set of benchmark functions commonly employed in optimization, including different problem types (as shown in
Table 1), to ensure comprehensive evaluation.
–
are single-peak functions that test the algorithm’s essential optimization ability and convergence speed;
–
are multimodal functions to evaluate the algorithm’s global search capability, particularly its ability to find the global optimum in complex search spaces;
and
are low-dimensional fixed functions to ensure that the algorithm can balance global and local search;
and
are composite functions used to assess the robustness of algorithms in handling complex, multimodal problems.
Subsequently, the algorithms are tested independently. The selected algorithms and parameters, as shown in
Table 2, are tested using a population size of 50 and 1000 iterations. To ensure the validity of the test and maintain objectivity, each algorithm is independently tested 30 times, using the average, standard deviation, and optimal value as evaluation metrics. The test results are shown in
Table 3.
The proposed PAGWO algorithm demonstrates superior convergence accuracy compared to conventional algorithms in single-peak functions – while maintaining a low standard deviation, indicating its excellent fundamental optimization capability and rapid convergence speed. Notably, in function with introduced random noise, PAGWO exhibits robust performance, further verifying its capability to handle interference environments. For multimodal functions, PAGWO not only successfully attains the global optimum of 0 in both and but also outperforms other algorithms on , , and , thereby confirming its robust global search capability and effective mechanism for escaping local optima. In low-dimensional fixed functions, PAGWO outperforms baseline methods in , and the average solution quality in also reaches the theoretical optimal value, demonstrating its consistent superiority in high-dimensional scenarios. In the combined functions and , the average performance of PAGWO surpasses that of the other algorithms, demonstrating that it is more robust when tackling complex, multimodal optimization problems. These experimental results collectively validate PAGWO’s state-of-the-art performance across diverse benchmarks. The algorithmic improvements can be specifically attributed to four key strategies: enhanced initial exploration through piecewise chaotic mapping, balanced global–local search dynamics via a nonlinear convergence factor, accelerated convergence through optimized position updating, and robustness improvement via EPD for local optima avoidance.
6.2. Experimental Content of Path Planning
To evaluate the effectiveness of the PAGWO-IDWA algorithm, the following three sets of experiments are designed in this paper:
Global path planning experiments: the GA, the SCA, the PSO, and the GWO algorithm are used as references in three raster maps of varying complexity to verify the performance of the PAGWO algorithm in global path planning.
PAGWO-IDWA and DWA Comparison Experiment: in the DWA, two enhancements are based on PAGWO, so the improved version can essentially be regarded as PAGWO-IDWA. To evaluate the performance of the improved algorithm relative to the original DWA, we conducted two sub-experiments. The first validates that using PAGWO-generated waypoints significantly enhances DWA’s global path planning capability, while the second demonstrates that employing PAGWO-generated waypoints as orientation angles improves its path efficiency. The dynamic obstacle avoidance performance of DWA will be validated in a subsequent experiment;
Dynamic obstacle avoidance experiment: dynamic obstacles are added to the map to assess the PAGWO-IDWA algorithm’s obstacle avoidance performance in dynamic environments and evaluate its safety and generalizability.
Figure 5 shows the three raster maps used for testing in this paper. The environment complexity increases with the number of obstacles.
Figure 5a shows a simple 20 m × 20 m map,
Figure 5b shows a moderately complex 30 m × 30 m map, and
Figure 5c shows a highly complex map of 30 m × 30 m.
The experimental hardware consisted of a laptop with an AMD R9-7940H processor at 4 GHz (AMD, Santa Clara, CA, USA), 16 GB of RAM, running Windows 11 64-bit with MATLAB R2021b software.
6.3. Global Path Planning Experiment
To validate the efficacy of the PAGWO algorithm, the mobile robot is simplified as a point on a two-dimensional network and compared with four algorithms, GA, SCA, PSO, and GWO, in the three simulation maps described above. The black squares in the figure represent obstacles, and the red dots and squares indicate the start and goal positions, respectively (the start is located at the bottom-left corner, and the goal is at the top-right corner). The evaluation metrics are path length, number of turns, and running time. In the experiment, the population size for all algorithms is set to 50, and the number of iterations is set to 1000.
The simulation results for map 1 are presented in
Figure 6, which illustrates the paths generated by each algorithm and their convergence behaviors. Among the five algorithms compared—namely, GA, SCA, PSO, GWO, and PAGWO, PAGWO produces the shortest path with the fewest turns, indicating that PAGWO approaches the target location faster while avoiding static obstacles. This is due to incorporating strategies such as Piecewise chaotic mapping and nonlinear convergence factors, which make PAGWO more effective in path planning algorithms. Specifically, in
Figure 6a, GA exhibits redundant path segments in the early stage of the route. In
Figure 6b, SCA generates the highest number of path deviations. In
Figure 6c,d, PSO and GWO perform well, demonstrating fewer deviations and shorter path lengths. However, further improvements are needed to achieve optimality. In
Figure 6f, PAGWO is observed to converge faster toward the minimum, quickly finding the optimal solution during the iterative process, indicating that it outperforms other algorithms in global planning and convergence efficiency.
For further verification of the performance of the PAGWO algorithm in this study, the second set of experiments was conducted in simulation environment 2. Compared with the first set of experimental maps, the obstacle distribution in the second set is more complex, demanding higher path planning capabilities from the algorithm. The comparison of path planning results is shown in
Figure 7. For example, both GA and PSO exhibited moderate performance by navigating into the U-shaped obstacle twice in succession. However, SCA and GWO performed poorly in this path planning, generating paths with a large number of redundant segments. In contrast, PAGWO not only avoids the U-shaped obstacles but also performs exceptionally well in terms of path smoothness, with a notable reduction in the number of turns, indicating its ability to effectively avoid redundant steering and improve the smoothness of the path. From
Figure 7f, PAGWO is shown to be the most effective in both convergence accuracy and speed, having converged after 200 iterations, outperforming other algorithms. The computational efficiency and path planning stability of PAGWO in complex environments are further verified.
To further verify the generalizability of the PAGWO algorithm, path planning simulation experiments were performed in simulation environment 3, which has the most complex obstacle distribution. The results of the experiment are presented in
Figure 8. Both GA and SCA exhibit significant path redundancy in the early stages of their routes, characterized by unnecessary detours into the interior U-shaped obstacles. Additionally, PSO becomes trapped in a local optimum, resulting in a suboptimal path, while GWO produces a path with multiple turns in its middle section, compromising overall path quality. In contrast, the PAGWO algorithm generates a path with significantly fewer turns and a smoother trajectory, demonstrating a practical improvement in path smoothing and efficiency when handling complex obstacle distributions. The convergence curve shows that PAGWO converges quickly within 200 iterations and significantly outperforms other algorithms in terms of both convergence speed and stability. The other algorithms exhibit slower convergence speeds and higher final stabilization values, further indicating that PAGWO excels in global optimization.
In summary, across three simulation environments with varying obstacle distributions and map sizes, PAGWO outperforms other algorithms in terms of path length, number of turns, and other metrics. To verify the robustness of PAGWO, the proposed algorithm was run 30 times in three different environments and was compared with other algorithms. The evaluation metrics are path length, number of turns, and running time, as shown in
Table 4. In the three simulation map environments, the PAGWO algorithm shows significant advantages in path optimization. In terms of path length, the average shortest path lengths for PAGWO in the three maps are 28.21m, 44.30m, and 46.82m, respectively, outperforming other algorithms. In terms of the number of turns, PAGWO also performs better. In map 3, which is the most complex in terms of obstacles, the average number of turns is reduced by 34.62%, 34.97%, 34.15%, and 38.53% compared to GWO, GA, SCA, and PSO, respectively. In terms of running time, PAGWO performs exceptionally well in maps 2 and 3, demonstrating its higher computational efficiency in complex environments. In summary, the PAGWO algorithm not only improves the global optimization performance of the paths but also achieves a good balance between path smoothness and computational efficiency, making it an effective method for solving path planning problems in complex environments.
6.4. PAGWO-IDWA and DWA Comparison Experiment
To evaluate the impact of incorporating PAGWO-generated global waypoints into DWA, the first experiment was designed with the mobile robot’s starting point at (1, 1) and its endpoint at (10, 10). In the simulation environment, the triangle denotes the start point, the circle denotes the goal, the asterisks represent local goal points generated by PAGWO, and the green area indicates the detection range of the DWA algorithm. The experimental results are presented in
Figure 9. In
Figure 9a, the robot is trapped in the local optimum and cannot reach the end point successfully, while in
Figure 9b, the robot is guided to the endpoint by the global path of PAGWO and successfully arrives at the endpoint. This method effectively reduces the limitation imposed by a single global goal point on path planning, allowing the robot to complete the path planning task successfully.
To evaluate the effect of the adaptive facing angle on DWA, a second set of experiments was conducted. In these experiments, the mobile robot’s starting point was set at (1, 1) and the endpoint at (20, 20). Path planning was performed using both the DWA algorithm and the PAGWO-IDWA algorithm on the same raster map, and the results are shown in
Figure 10. In
Figure 10a, the initial facing angle of DWA is directed toward the endpoint, causing the robot to deviate from the optimal path at the outset and resulting in redundant path segments. Furthermore, after encountering an obstacle, DWA continues to follow the wall because its facing angle remains fixed toward the endpoint, lacking adaptive guidance. In contrast,
Figure 10b shows that during the initial stage of path planning with PAGWO-IDWA, the robot’s facing angle is oriented toward the PAGWO-generated path point. Under the correct guidance of this path point, the robot follows the optimal path to the endpoint, thereby verifying that the improved algorithm outperforms DWA in path optimization. The data for these experiments are presented in
Table 5.
6.5. Dynamic Obstacle Avoidance Experiment
To validate the dynamic obstacle avoidance capability of the PAGWO-IDWA algorithm, a red dynamic obstacle is introduced into the static map 1. The dynamic obstacle starts at (5, 4) and ends at (2, 2), while the mobile robot starts at (1, 1) and aims to reach (20, 20).
Figure 11a shows the globally optimal path planned by PAGWO, which maintains the shortest distance from start to end and avoids static obstacles, providing a basis for subsequent local planning. In
Figure 11b, the robot starts from the initial position and moves along the global path toward the local goal point. Upon encountering the dynamic obstacle, it adjusts its direction to the right and accelerates to avoid it. After safely bypassing the obstacle, the robot decelerates and readjusts its angle to the left, resuming its movement toward the local goal point. Finally, as shown in
Figure 11c, the robot successfully reaches the endpoint, guided by the local goal points.
To further validate the path planning capability of the PAGWO-IDWA algorithm in dynamic environments, this study introduces dynamic obstacles approaching from the side in simulation map 2. The dynamic obstacle’s starting point is (6, 6) and the endpoint is (6, 1), while the mobile robot’s starting point is (1, 1) and the endpoint is (30, 30). The dynamic obstacle avoidance process is shown in
Figure 12.
Figure 12a shows the optimal path found by the PAGWO algorithm in simulation map 2. In
Figure 12b, the mobile robot detects the dynamic obstacle approaching from the side and stops to avoid the collision. In
Figure 12c, after the dynamic obstacle leaves the robot’s detection range and safety is confirmed, the robot continues toward the local target point. Finally, in
Figure 12d, the robot returns to the global optimal path and successfully completes the path planning task. The experimental results show that in more complex map environments, when facing dynamic obstacles approaching from the side, the robot can safely stop during local planning, continue with the path planning task after the obstacle passes, and maintain stability of the path planning, which demonstrates the adaptive ability of PAGWO-IDWA.
To further validate the generalization capability of PAGWO-IDWA, two dynamic obstacles are added to map 3. The first dynamic obstacle has start and end points at (7, 1) and (7, 5), respectively, while the second dynamic obstacle starts at (13, 9) and ends at (7, 4). The mobile robot starts at (1, 1) and ends at (30, 30). The experimental results are shown in
Figure 13. In
Figure 13a, the global optimal path planned by the PAGWO algorithm is presented, where the mobile robot safely avoids static obstacles and finds the shortest path. In
Figure 13b, the robot approaches the first dynamic obstacle from the side and decelerates to avoid it. In
Figure 13c, after confirming the obstacle has passed, the robot returns to the global path and continues forward. In
Figure 13d, the robot encounters the second dynamic obstacle, and in
Figure 13e, it adjusts its direction and safely avoids it. Finally, the trajectory in
Figure 13f shows the robot successfully reaching the endpoint, avoiding two successive dynamic obstacles under the guidance of the PAGWO-IDWA algorithm, thus completing the complex dynamic path obstacle avoidance task. The experimental results demonstrate that PAGWO-IDWA efficiently avoids dynamic obstacles in complex environments, further validating the algorithm’s generalization capability and practicality.
To further investigate the impact of additional obstacles on dynamic obstacle avoidance performance, we introduced five dynamic obstacles in map 2. Specifically, the first obstacle has start and end points at (6, 6) and (6, 1), the second at (7, 1) and (5, 7), the third at (14, 7) and (7, 5), the fourth at (15, 7) and (8, 5), and the fifth at (26, 23) and (17, 13). The mobile robot’s start and end points are (1, 1) and (30, 30), respectively. The experimental results are presented in
Figure 14, where
Figure 14a shows the globally optimal path identified by the PAGWO algorithm.
In
Figure 14b, the mobile robot begins local path planning and detects two dynamic obstacles at (3, 2), approaching from the left and right, respectively. As a result, the robot halts and performs obstacle avoidance. In
Figure 14c, after ensuring safety, the robot resumes movement. After a short distance, it detects two oncoming dynamic obstacles. In
Figure 14d, the robot is seen avoiding the dynamic obstacles by skirting to the right and quickly returning to its original global path. Finally, in
Figure 14e, the mobile robot encounters the last dynamic obstacle, evading it to the left. As shown in
Figure 14f, the robot successfully avoids all dynamic obstacles and reaches the endpoint along the preferred path.
The current experimental results clearly demonstrate that our improved PAGWO-IDWA algorithm significantly enhances obstacle avoidance compared to traditional methods, effectively handling scenarios where dynamic obstacles appear consecutively. This reactive strategy ensures safe navigation and validates the algorithm’s practical utility in complex dynamic environments. However, we also recognize that when multiple dynamic obstacles simultaneously enter the detection range, the current approach may encounter processing limitations. Future work will address these challenges by incorporating predictive models—such as Reinforcement Learning—to anticipate obstacle trajectories and further improve avoidance performance in high-density dynamic settings.
7. Conclusions
This paper proposes a new algorithm, PAGWO-IDWA, to solve the path planning problem. First, to improve the quality of the initial population, the Piecewise chaotic mapping is used to initialize the Grey Wolf population. Second, a nonlinear convergence factor is introduced to balance global and local search capabilities. Then, the EPD strategy is applied, and dynamic weights are introduced, enhancing the algorithm’s ability to escape local optima and accelerate the convergence speed. Finally, combining PAGWO with IDWA addresses the issues of path smoothness and dynamic obstacle avoidance in the PAGWO algorithm.
The algorithm’s performance is verified through both static and dynamic obstacle avoidance experiments. PAGWO outperforms GA, SCA, PSO, and GWO in path planning performance across three static maps with varying complexity. Compared with the standard GWO, the improved PAGWO reduces the path length, number of turns, and running time by 9.39%, 14.08%, and 13.81%, respectively, in map 1. In map 2, the improvements are 10.61%, 50.78%, and 38.55%, respectively, and in map 3, they are 8.73%, 34.62%, and 38.57%. Dynamic obstacle avoidance experiments further demonstrate that PAGWO-IDWA generates efficient, smooth paths in complex dynamic environments, safely bypassing dynamic obstacles or waiting for them to pass, according to the obstacle avoidance strategy. This progression verifies its strong global path planning and dynamic obstacle avoidance capabilities.
While our current conflict avoidance strategy has enhanced the mobile robot’s obstacle avoidance performance compared to the original approach, limitations still remain. In the future, we plan to explore predictive techniques, such as Reinforcement Learning, to allow the robot to anticipate obstacle trajectories and proactively adjust its path. We expect that these improvements will further enhance both the safety and efficiency of path planning in highly dynamic environments. Additionally, our simulations presently model the mobile robot as a point, with a fitness function that primarily minimizes path length while applying a basic obstacle-avoidance penalty. However, practical applications necessitate a more comprehensive consideration of factors such as the robot’s physical dimensions, obstacle sizes, and necessary safety margins to account for localization errors. In subsequent studies, we intend to integrate these real-world constraints into our optimization framework. By combining predictive techniques with a more realistic model, we aim to further improve the robustness and applicability of the PAGWO-IDWA algorithm for mobile robot path planning.