A mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm
Through the space-time adaptive bidirectional ant colony algorithm, the pheromone and transition probability are dynamically adjusted, which solves the problem of slow convergence and local optimality of the ant colony algorithm in mobile robot path planning, and significantly improves the path search efficiency and convergence speed.
Patent Information
- Application Number
- CN202111611487.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-27
AI Technical Summary
The existing ant colony algorithm converges slowly in mobile robot path planning and easily falls into local optimality. The initial search path is blind, resulting in low efficiency.
Adopt the spatio-temporal adaptive bidirectional ant colony algorithm, model the environment through the grid method, set the initial parameters and pheromone volatilization factor, dynamically adjust the pheromone concentration and transfer probability, and adjust the pheromone volatilization factor and enhancement coefficient based on the direction factor and the number of iterations. , improve the path search strategy.
It improves the path search efficiency and convergence speed, reduces the risk of falling into local optimality, and improves the algorithm's global exploration capability and path planning efficiency.
Smart Images

Figure CN114355913B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mobile robot path planning, in particular to a mobile robot path planning method based on a spatiotemporal adaptive bidirectional ant colony algorithm. Background Art
[0002] With the development of science and technology, mobile robots are widely used in logistics, warehousing, handling, medical treatment, monitoring, detection and other fields. Path planning technology, as one of the key technologies of mobile robots, has always received widespread attention.
[0003] The ant colony algorithm is a heuristic search algorithm that imitates the foraging behavior of ants. During the foraging process, ants will secrete a chemical substance called pheromone on the path they pass through. As the number of ants passing through the path increases, the pheromone concentration on the path increases, thereby guiding the ants to choose the appropriate path for foraging. In the ant colony algorithm, ants secrete pheromones of different concentrations according to the length of the path to find food. When the path is long, less pheromone is secreted, and when the path is short, more pheromone is secreted. The concentration of pheromones affects the probability of path selection, making ants tend to choose paths with high pheromone concentration and short length, and finally the algorithm converges. However, the ant colony algorithm has problems such as slow convergence, easy to fall into local optimality, and blindly searching for paths in the early stage of the algorithm. Summary of the invention
[0004] In order to overcome the shortcomings of the existing mobile robot path planning using ant colony algorithm, which has slow convergence and is prone to falling into local optimal problems, the present invention provides a mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm, which can improve path search efficiency and accelerate convergence speed.
[0005] The technical solution adopted by the present invention to solve its technical problem is:
[0006] A mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm comprises the following steps:
[0007] Step 1: Use the grid method to model the motion environment of the mobile robot;
[0008] Step 2: Set the initial parameters, the number of ants M, the maximum number of iterations K, the information inspiration factor α, the expected inspiration factor β, the maximum increment of the pheromone volatility factor ρ, and the minimum value of the pheromone volatility factor ρ min , pheromone enhancement coefficient Q, taboo table Taub, pheromone concentration τ i,j ;
[0009] Step 3: Ants search for paths from the starting point and the end point respectively. In each iteration k, ants search for paths based on the transition probability. Select the grid, add the current grid to the taboo table Taub, and do not repeat the selection of the grids you have walked through until you reach the target grid or there are no optional grids. Then calculate the pheromone concentration τ between all grids on the path to the target grid. i,j (k+1) is updated;
[0010] Step 4: If the current number of iterations k is less than or equal to the maximum number of iterations K, repeat step 3; otherwise, if the current number of iterations k is greater than the maximum number of iterations K, output the optimal path.
[0011] Furthermore, in step 2, the pheromone concentration τ i,j It is expressed as:
[0012] τ i,j =τ0·(180°-θ j ) (1)
[0013] Where τ0 is a constant that sets the initial pheromone concentration, θ j L is the line connecting the starting point S and the end point E SE and the line L connecting the adjacent grid j and the end point jE The angle θ or supplementary angle is expressed as:
[0014]
[0015] Furthermore, in step 3, in each iteration k, the transfer probability of ant m is It is expressed as:
[0016]
[0017] Among them, τ i,j (k) represents the pheromone concentration between the current grid i and the adjacent grid j in the kth iteration, α represents the information heuristic factor, represents the directional factor of grid j, γ represents the directional heuristic factor, represents the optional grid set when ant m is in the current grid i, r represents For any grid in the set, β represents the expected heuristic factor, η i,j (k) represents the expected heuristic function of the neighboring grid j of the current grid i to the end point E in the kth iteration, which is expressed as:
[0018]
[0019] where x j and j Represents the horizontal and vertical coordinates of grid j, x E and E Respectively represent the abscissa and ordinate of the end point E;
[0020] Pheromone concentration update formula between grids τ i,j (k+1) is expressed as:
[0021] τ i,j (k+1)=(1-ρ k )·τ i,j (k)+Δτ i,j (k) (5)
[0022] Among them, ρ k The pheromone volatility factor that changes with the number of iterations is expressed as:
[0023]
[0024] Among them, ρ min represents the minimum value of the pheromone volatility factor, ρ represents the maximum increment of the pheromone volatility factor; Δτ i,j (k) represents the pheromone concentration increment between the current grid i and the adjacent grid j in the kth iteration, expressed as:
[0025]
[0026] Among them, A represents the threshold for changing the pheromone update rule, which is a constant; tour(i,j) represents the path from grid i to grid j; tour k,m represents the path of the mth ant in the kth iteration; tour k,best Indicates the optimal path obtained by all ants in the kth iteration; Q k,m It represents the pheromone enhancement coefficient that changes with the path length obtained by ant m in the kth iteration, expressed as:
[0027] Q k,m =(L k,avg / L k,m )*Q (8) Among them, L k,avg represents the average path length of all ants in the kth iteration, L k,m represents the path length of the mth ant in the kth iteration, Q is a constant that sets the pheromone enhancement coefficient; Q k,best It represents the pheromone enhancement coefficient of the optimal path obtained by all ants in the kth iteration, which is expressed as:
[0028] Q k,best =(L k,avg / L k,best )*Q (9)
[0029] Among them, L k,best It represents the optimal path length obtained by all ants in the kth iteration.
[0030] The beneficial effects of the present invention are as follows: the specific initial pheromone concentration of the present invention reduces the problem of blind search in the initial stage of path search, improves the transfer probability through the directional factor, dynamically adjusts the pheromone volatilization factor and the pheromone update strategy according to the time information of the number of iterations, and dynamically adjusts the pheromone enhancement coefficient according to the path space information in the iteration process, effectively improving the algorithm convergence speed and path search efficiency while ensuring the global exploration capability of the ant colony algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a working environment modeling diagram implemented by a mobile robot path planning method based on a spatiotemporal adaptive bidirectional ant colony algorithm;
[0032] Figure 2 It is a path search result graph of a mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm;
[0033] Figure 3 This is a graph showing the change in path length with the number of iterations obtained using a mobile robot path planning method based on a spatiotemporal adaptive bidirectional ant colony algorithm. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with the accompanying drawings.
[0035] Reference Figure 1 to Figure 3 , a mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm, comprising the following steps:
[0036] Step 1: Use the grid method to model the motion environment of the mobile robot;
[0037] Step 2: Set the initial parameters, the number of ants M, the maximum number of iterations K, the information inspiration factor α, the expected inspiration factor β, the maximum increment of the pheromone volatility factor ρ, and the minimum value of the pheromone volatility factor ρ min , pheromone enhancement coefficient Q, taboo table Taub, pheromone concentration τ i,j , where the pheromone concentration τ i,j It is expressed as:
[0038] τ i,j =τ0·(180°-θ j ) (1)
[0039] Where τ0 is a constant that sets the initial pheromone concentration, θ j L is the line connecting the starting point S and the end point E SE and the line L connecting the adjacent grid j and the end point jE The angle θ or supplementary angle is expressed as:
[0040]
[0041] Step 3: Ants search for paths from the starting point and the end point respectively. In each iteration k, ants search for paths based on the transition probability. Select the grid, add the current grid to the taboo table Taub, and do not repeat the selection of the grids you have walked through until you reach the target grid or there are no optional grids. Then calculate the pheromone concentration τ between all grids on the path to the target grid. i,j (k+1) is updated, where the transition probability It is expressed as:
[0042]
[0043] Among them, τ i,j (k) represents the pheromone concentration between the current grid i and the adjacent grid j in the kth iteration, and α represents the information heuristic factor; represents the directional factor of grid j, and γ represents the directional heuristic factor; represents the optional grid set when ant m is in the current grid i, r represents Any grid in the set; β represents the expected heuristic factor, η i,j (k) represents the expected heuristic function of the neighboring grid j of the current grid i to the end point E in the kth iteration, which is expressed as:
[0044]
[0045] where x j and j Represents the horizontal and vertical coordinates of grid j, x E and E Respectively represent the abscissa and ordinate of the end point E;
[0046] The formula for updating the pheromone concentration between grids is expressed as:
[0047] τ i,j (k+1)=(1-ρ k )·τ i,j (k)+Δτ i,j (k) (5) Among them, ρ k The pheromone volatility factor that changes with the number of iterations is expressed as:
[0048]
[0049] Among them, ρ min represents the minimum value of the pheromone volatility factor, ρ represents the maximum increment of the pheromone volatility factor; Δτ i,j(k) represents the pheromone concentration increment between the current grid i and the adjacent grid j in the kth iteration, expressed as:
[0050]
[0051] Among them, A represents the threshold for changing the pheromone update rule, which is a constant; tour(i,j) represents the path from grid i to grid j; tour k,m represents the path of the mth ant in the kth iteration; tour k,best Indicates the optimal path obtained by all ants in the kth iteration; Q k,m It represents the pheromone enhancement coefficient that changes with the path length obtained by ant m in the kth iteration, expressed as:
[0052] Q k,m =(L k,avg / L k,m )*Q (8)
[0053] Among them, L k,avg represents the average path length of all ants in the kth iteration, L k,m represents the path length of the mth ant in the kth iteration, Q is a constant that sets the pheromone enhancement coefficient; Q k,best It represents the pheromone enhancement coefficient of the optimal path obtained by all ants in the kth iteration, which is expressed as:
[0054] Q k,best =(L k,avg / L k,best )*Q (9)
[0055] Among them, L k,best Indicates the optimal path length of all ants in the path obtained in the kth iteration;
[0056] Step 4: If the current number of iterations k is less than or equal to the maximum number of iterations K, repeat step 3; otherwise, if the current number of iterations k is greater than the maximum number of iterations K, output the optimal path.
[0057] This embodiment proposes a mobile robot path planning method based on a spatiotemporal adaptive bidirectional ant colony algorithm. As the iterative process proceeds, the fixed pheromone volatilization factor, pheromone enhancement coefficient and pheromone update strategy are no longer suitable for the path planning of the current iteration. Therefore, the pheromone volatilization factor and pheromone update strategy are dynamically adjusted according to the time information of the iteration number, and the pheromone enhancement coefficient is dynamically adjusted according to the path space information in the iterative process to realize the spatiotemporal adaptive bidirectional ant colony algorithm path planning. On the basis of ensuring the global exploration capability of the ant colony algorithm, the algorithm convergence speed and path search efficiency are effectively improved.
[0058] In this embodiment, the starting point coordinates are S = (0.5, 19.5), the end point coordinates are E = (19.5, 0.5), and the ants are divided into two groups, a and b, each with 50 ants, and the two groups of ants correspond to each other. Ants in group a search for a path from the starting point S to the end point E, and ants in group b search for a path from the end point E to the starting point S.
[0059] Figure 2 The optimal path map obtained by the spatiotemporal adaptive bidirectional ant colony algorithm in a simulation is shown; Figure 3 The figure shows the convergence of the spatiotemporal adaptive bidirectional ant colony algorithm in a simulation. After 11 iterations, the spatiotemporal adaptive bidirectional ant colony algorithm converges, and the shortest path length is 29.2132. The path length at convergence is 29.2132.
[0060] The contents described in the embodiments of this specification are merely enumerations of implementation forms of the inventive concept and are for illustrative purposes only. The protection scope of the present invention should not be considered to be limited to the specific forms described in this embodiment, and the protection scope of the present invention also extends to equivalent technical means that can be thought of by ordinary technicians in this field based on the inventive concept.
Claims
1. A mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm, characterized in that: The method comprises the following steps: Step 1: Use the grid method to model the motion environment of the mobile robot; Step 2: Set the initial parameters, the number of ants M, the maximum number of iterations K, the information inspiration factor α, the expected inspiration factor β, the maximum increment of the pheromone volatility factor ρ, and the minimum value of the pheromone volatility factor ρ min , pheromone enhancement coefficient Q, taboo table Taub, pheromone concentration τ i,j ; Step 3: Ants search for paths from the starting point and the end point respectively. In each iteration k, ants search for paths based on the transition probability. Select the grid, add the current grid to the taboo table Taub, and do not repeat the selection of the grids you have walked through until you reach the target grid or there are no optional grids. Then calculate the pheromone concentration τ between all grids on the path to the target grid. i,j (k+1) is updated; Step 4: If the current number of iterations k is less than or equal to the maximum number of iterations K, repeat step 3; otherwise, if the current number of iterations k is greater than the maximum number of iterations K, output the optimal path; In step 3, in each iteration k, the transfer probability of ant m is It is expressed as: Among them, τ i,j (k) represents the pheromone concentration between the current grid i and the adjacent grid j in the kth iteration, and α represents the information heuristic factor; represents the directional factor of grid j, and γ represents the directional heuristic factor; represents the optional grid set when ant m is in the current grid i, r represents Any grid in the set; β represents the expected heuristic factor, η i,j (k) represents the expected heuristic function of the neighboring grid j of the current grid i to the end point E in the kth iteration, which is expressed as: where x j and j Represents the horizontal and vertical coordinates of grid j, x E and E Respectively represent the abscissa and ordinate of the end point E; The formula for updating the pheromone concentration between grids is expressed as: t i,j (k+1)=(1-ρ k )·t i,j (k)+Δτ i,j (k) (5) Among them, ρ k The pheromone volatility factor that changes with the number of iterations is expressed as: Among them, ρ min represents the minimum value of the pheromone volatility factor, ρ represents the maximum increment of the pheromone volatility factor; Δτ i,j (k) represents the pheromone concentration increment between the current grid i and the adjacent grid j in the kth iteration, expressed as: Among them, A represents the threshold for changing the pheromone update rule, which is a constant; tour(i,j) represents the path from grid i to grid j; tour k,m represents the path of the mth ant in the kth iteration; tour k,best Indicates the optimal path obtained by all ants in the kth iteration; Q k,m It represents the pheromone enhancement coefficient that changes with the path length obtained by ant m in the kth iteration, expressed as: Q k,m =(L k,avg / L k,m )*Q (8) Among them, L k,avg represents the average path length of all ants in the kth iteration, L k,m represents the path length of the mth ant in the kth iteration, Q is a constant that sets the pheromone enhancement coefficient; Q k,best It represents the pheromone enhancement coefficient of the optimal path obtained by all ants in the kth iteration, which is expressed as: Q k,best =(L k,avg / L k,best )*Q (9) Among them, L k,best It represents the optimal path length obtained by all ants in the kth iteration.
2. The mobile robot path planning method based on spatiotemporal adaptive bidirectional ant colony algorithm according to claim 1, characterized in that: In the step 2, the pheromone concentration τ i,j It is expressed as: t i,j =τ0·(180°-θ j ) (1) Where τ0 is a constant that sets the initial pheromone concentration, θ j L is the line connecting the starting point S and the end point E SE and the line L connecting the adjacent grid j and the end point jE The angle θ or supplementary angle is expressed as:
