CN117109622A - UUV ant colony path planning method for bidirectional search under multiple obstacles - Google Patents

UUV ant colony path planning method for bidirectional search under multiple obstacles Download PDF

Info

Publication number
CN117109622A
CN117109622A CN202311228563.1A CN202311228563A CN117109622A CN 117109622 A CN117109622 A CN 117109622A CN 202311228563 A CN202311228563 A CN 202311228563A CN 117109622 A CN117109622 A CN 117109622A
Authority
CN
China
Prior art keywords
pheromone
ants
entering
path
ant colony
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311228563.1A
Other languages
Chinese (zh)
Other versions
CN117109622B (en
Inventor
孙明晓
肖啸天
栾添添
张晓霜
吴宝奇
吴凯
连厚鑫
王潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin University of Science and Technology
Original Assignee
Harbin University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin University of Science and Technology filed Critical Harbin University of Science and Technology
Priority to CN202311228563.1A priority Critical patent/CN117109622B/en
Publication of CN117109622A publication Critical patent/CN117109622A/en
Application granted granted Critical
Publication of CN117109622B publication Critical patent/CN117109622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3446Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags, using precalculated routes

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention aims to solve the problems that the traditional ant colony method is easy to sink into a local optimal path and the iteration time is too long in path planning, and the like, and discloses a UUV ant colony path planning method for bidirectional searching under multiple obstacles, which specifically comprises the following steps: based on the traditional ant colony method, aiming at most obstacles with irregular shapes, the obstacles are ideal to be grid-shaped and uniform in size; when the traditional ant colony method starts from a starting point to a target point, a optimizing route from the target point to the starting point is introduced, and the optimizing speed is increased under the addition of the two optimizing routes; and the cross points and the communication relation between the cross points are introduced, meanwhile, the number of the cross points is limited to avoid slow calculation, and finally, the optimal path is found through the cross points, the communication relation and the quick backtracking of the concentration value of the pheromone. The method reduces the iteration time of the traditional ant colony method on path planning and reduces the possibility of easily sinking into a local optimal solution.

Description

UUV ant colony path planning method for bidirectional search under multiple obstacles
Technical Field
The invention relates to the field of unmanned submersible vehicle (Unmanned underwater vehicle, UUV) path planning, in particular to a UUV ant colony path planning method for bidirectional search under multiple obstacles.
Background
With the development of technology, the research and development of the ocean field in the current society is more and more important, the UUV application field is wider and wider, not only is the UUV applied to the military field, but also more and more UUV appears in the scientific research and commercial field, the development of ocean resources and the investment of ocean safety and national defense in the country are more and more, and then a more perfect method is needed in UUV path planning to help the UUV to reach the specified target more accurately and rapidly.
The common path planning method includes a D-algorithm, a wolf algorithm, a tabu search algorithm, an a-algorithm, a particle swarm algorithm, an RRT tree algorithm, an ant colony method, and the like. Compared with other algorithms, the ant colony method has the advantages of simplicity, convenience in understanding, strong adaptability, good robustness and the like. However, the following problems are involved in the application of the ant colony method in the path planning field:
(1) The convergence rate problem, the ant colony method needs a large amount of iteration and a large amount of calculation to find a better path, so the convergence rate is slow to be an unavoidable disadvantage;
(2) The problem of local optimal solution is that the ant colony method is a local search algorithm, so that the problem that the final path does not reach the minimum value but is suboptimal solution easily occurs.
Meanwhile, compared with the present invention, the following methods have the following disadvantages:
the improved method provided in the paper Dijkstra-ant colony algorithm-based parking system path planning research has the following disadvantages: firstly, dijkstra search paths are carried out, so that the search time is increased;
patent CN 116643566A, "a path planning method based on ant colony algorithm D-artificial potential field fusion", provides an improved method, which has the following disadvantages: the multiple modules operate cooperatively, which costs a lot of cost; the calculation is complex, and the path update speed is slower.
The UUV ant colony path planning method for bidirectional searching under multiple obstacles reduces the searching time and reduces the possibility that the traditional ant colony method is easy to fall into a local optimal solution.
Disclosure of Invention
The invention provides the following technical scheme for solving the problems of low convergence speed, easy occurrence of local optimal solution and the like in the path planning process: the UUV ant colony path planning method for bidirectional searching under multiple obstacles is designed, a batch of ants are placed at a starting point and a target point when the ant colony method data are preprocessed on the basis of the traditional ant colony method, searching is carried out from the starting point to the target point and from the target point to the starting point, a rapid searching map is achieved, and the problem of low searching speed is solved; meanwhile, when two ants search paths towards respective target points to generate meeting crossing points, a set is created, position coordinates of the crossing points, the concentration of pheromones between the two points and the communication relation between the crossing points are recorded, all crossing points are traced back through the record of the concentration of the pheromones between the crossing points, and the optimal path is found through the crossing point with the maximum concentration value of the pheromones, so that the problem that the traditional ant colony method is easy to fall into the local optimal path is solved. The method specifically comprises the following steps:
step 1:
establishing a two-dimensional planar grid map of UUV in the same planar environment, wherein grids are 1m 1X 1m equal in size, the map size is X X Y, and each grid is marked with X i Y i Wherein i represents an X-direction corner mark, j represents a Y-direction corner mark, as shown in FIG. 2, the grid a is represented by X 1 Y 1 Since the grid sizes are all 1 x 1, the center point coordinates of each grid are expressed as:
step 2:
initializing parameters and defining a set J;
step 3:
dividing ant equally into two groups T 1 And T 2 Respectively delivering to a starting point A and a target point B, wherein T 1 The ants search the path from A to B, T 2 The ants search the path from B to A, and then enter step 4;
step 4:
the next arriving node is found for two groups of ants by adopting the roulette mode, wherein the state transfer function is as follows:
wherein,is the probability of ants selecting from node i to node j; τ ij (t) is the concentration of pheromones on the paths of node i and node j; allowed k Is the solution space for the ant to select the next node; alpha is a pheromone importance factor; beta is a heuristic importance factor; η (eta) ij (t) is a heuristic function, the expression of which is:
η ij (t)=1/d ij (3)
wherein d ij Is the distance between i, j;
step 5:
judging whether two groups of ants meet or not, if so, storing the crossing points of the ants in a set J, and storing the communication relation between the crossing points and the concentration value of the pheromone in the set J, and then entering a step 6; otherwise, returning to the step 4;
step 6:
judging whether the ants complete the path, if so, entering step 7; otherwise, returning to the step 4;
step 7:
judging whether the number of the crossing points reaches saturation, if so, entering a step 11; otherwise, enter step 8;
step 8:
judging whether the ants reach the maximum number, if so, entering a step 9; otherwise, returning to the step 3;
step 9:
updating the pheromone, wherein the updated pheromone adopts the following formula:
τ ij (t+1)=(1-ρ)*τ ij (t)+Δτ ij (5)
wherein,representing the concentration of pheromone released by the kth ant between i and j; Δτ ij Representing the sum of pheromone concentrations of ants between i and j; ρ represents the pheromone volatilization coefficient, and the value is generally between 0 and 1; n represents the maximum number of ants, and then step 10 is entered;
step 10:
judging whether the maximum iteration times are reached, if so, entering a step 11; otherwise, returning to the step 3;
step 11:
defining and initializing a set S, and entering a step 12;
step 12:
putting the intersection with the maximum pheromone concentration between the starting point A and the intersection into S, deleting the intersection from J, and entering step 13;
step 13:
comparing the concentration of pheromone directly connected with the crossing point in S and the crossing point in J, and entering step 14;
step 14:
judging whether to delete the crossing point with obviously low pheromone concentration in J, and entering step 15 after deleting; otherwise, go to step 12;
step 15:
judging whether all the intersections in J are traversed, if yes, entering a step 16; otherwise, returning to the step 12;
step 16:
and backtracking the coordinates of the crossing points existing in the S, calculating a theoretical shortest path, outputting the shortest path, and ending.
The invention has the following beneficial effects:
1. according to the method, on the basis of a search path from a starting point to a target point in a traditional ant colony method, a search path from the target point to the starting point is introduced, so that the optimizing speed is increased, and the possibility that unidirectional search is easy to sink into local optimization is reduced;
2. according to the method, on the basis of utilizing the concentration of the pheromone of the traditional ant colony method, the intersection points and the communication relation are introduced, and the path search is carried out through the connection between the intersection points, so that the probability of easily generating local optimal paths is reduced;
3. the method introduces the communication relation between the cross points and records the pheromone concentration value between the cross points, and iteratively searches the optimal path according to the pheromone concentration of the communication relation between the cross points, thereby improving the efficiency of path searching and shortening the searching time.
Drawings
Fig. 1 is a flow chart of a UUV ant colony path planning method for bidirectional searching under multiple obstacles;
FIG. 2 is a grid numbering schematic;
FIG. 3 is a diagram showing the path of two ants looking for their respective target points;
FIG. 4 shows a cross-point diagram after two groups of ants meet;
FIG. 5 is a graph showing the relationship between the points of intersection and the connection between two ants;
FIG. 6 is a final formed path diagram;
fig. 7 is a converging curve change chart.
Detailed Description
Fig. 1 is a flow chart of a UUV ant colony path planning method for bidirectional searching under multiple obstacles, which comprises the following steps:
step 1:
establishing a two-dimensional plane grid map in the same plane environment of UUV, idealizing the obstacles into black grids in the grid map, wherein the obstacles less than one grid expand into one grid, the obstacles exceeding one grid are composed of a plurality of grids, the white grids represent passable areas, the black grids represent the obstacles, UUV cannot pass, the grids are 1m equal size, the map size is X X Y, and each grid has a mark X i Y i Wherein i represents an X-direction corner mark and j represents a Y-direction corner mark, as shown in FIG. 2, the grid a is represented by X 1 Y 1 Since the grid sizes are all 1 x 1, the center point coordinates of each grid are expressed as:
step 2:
initializing parameters, wherein the number of ant colonies is N=100, the importance factor of the pheromone is alpha=1, the importance factor of the heuristic function is beta=7, the volatilization factor of the pheromone is p=0.3, the total release amount of the pheromone is d=0, and the maximum iteration number is N max =80, and defines a set J for storing meeting points of two ants, also called crossing points and their pheromone-related information;
step 3:
dividing ant equally into two groups T 1 And T 2 Respectively delivering to a starting point A and a target point B, wherein T 1 The ants search the path from A to B, T 2 Group ants search for paths from B to a. Initializing a tabu list, putting a starting point A and a target point B of 2 into the tabu list, and then entering a step 4;
step 4:
through the current concentration of pheromone and the nodes existing in the tabu list, the next arriving node is searched for two groups of ants by adopting a roulette mode, wherein the state transfer function is as follows:
wherein,is the probability of ants selecting from node i to node j; τ ij (t) is the concentration of pheromones on the paths of node i and node j; allowed k Is the solution space for the ant to select the next node; alpha is an important degree factor of the pheromone, and is the importance degree of the ant on the concentration of the pheromone when selecting the next node, and the larger the value of alpha is, the ant can select a path with the larger concentration of the pheromone to select the next node; beta is the importance factor of the heuristic function, is the importance degree of ants on the heuristic function pheromone when selecting the next node, and the larger the beta is, the more the ants tend to select the position with larger value of the heuristic function pheromone to move, eta ij (t) is a heuristic function, the expression of which is:
η ij (t)=1/d ij (3)
wherein d ij Is the distance between i, j;
step 5:
judging whether two groups of ants meet or not by judging the point coordinate values stored in the tabu list, storing the intersection points of the ants in a set J if the ants meet, storing the communication relation between the intersection points and the concentration value of the pheromone in the set J, and then entering a step 6; otherwise, returning to the step 4;
step 6:
judging whether the ants complete the path, if so, entering step 7; otherwise, returning to the step 4;
step 7:
judging whether the number of the crossing points reaches saturation or not by comparing the number of the crossing points of the round with the number of the crossing points of the upper round, if the number and the number are not changed, indicating that the crossing points reach saturation, and entering a step 11; otherwise, enter step 8;
step 8:
judging whether the ants reach the maximum number, if so, entering a step 9; otherwise, returning to the step 3;
step 9:
since the number of ants reaches the maximum number at this time, the pheromone is updated at this time, wherein the update pheromone is updated by using the global pheromone, and the formula is as follows:
τ ij (t+1)=(1-ρ)*τ ij (t)+Δτ ij (5)
wherein,representing the concentration of pheromone released by the kth ant between i and j; Δτ ij Representing the sum of pheromone concentrations of ants between i and j; ρ represents the pheromone volatilization coefficient, and the value is generally between 0 and 1; n represents the maximum number of ants, and then step 10 is entered;
step 10:
judging whether the maximum iteration times are reached, if so, entering a step 11; otherwise, returning to the step 3;
step 11:
defining and initializing a set S, and entering a step 12;
step 12:
putting the intersection with the maximum pheromone concentration between the starting point A and the intersection into S, deleting the intersection from J, and entering step 13;
step 13:
comparing the concentration of pheromone directly connected with the crossing point in S and the crossing point in J, and entering step 14;
step 14:
through the comparison of the step 13, the relation of the concentration of the pheromone between the crossing points can be clearly obtained, whether the crossing point with obviously low concentration of the pheromone in J is deleted or not is judged, and the step 15 is carried out after the deletion; otherwise, go to step 12;
step 15:
judging whether all the intersections in J are traversed, if yes, entering a step 16; otherwise, returning to the step 12;
step 16:
and backtracking the coordinates of the crossing points existing in the S, calculating a theoretical shortest path, outputting the shortest path, and ending.
The method is simulated by Matlab software, and fig. 3, 4 and 5 are simulation diagrams of search paths of UUV under multiple obstacles, wherein the coordinate axis unit is m. Fig. 3 is a diagram showing the path of two ants searching for their respective target points, and it can be seen that the ants perform the optimizing process from the starting point a to the target point B and from the target point B to the starting point a. FIG. 4 shows a cross-point diagram of two groups of ants after meeting, as can be seen in the figure, the ants are numbered X 11 Y 10 And is numbered X 15 Y 12 The grid of (c) creates intersections, which will be recorded in set J at this time. Fig. 5 is a graph of the intersection points and the communication relations between the intersection points generated by three times of searching for the target points by two groups of ants, and it can be seen that the intersection points at 21 positions and the communication relations between the intersection points are generated by the ants after three times of iteration. Fig. 6 and fig. 7 are respectively a final result diagram and a convergence graph of a UUV searching a path under multiple obstacles, in which it can be seen that the path length is greatly floated before the iteration number is 30 times; after the iteration times are 30 times, the path length is gradually stabilized; when the iteration is carried out for 35 times, the minimum path is reached, the optimizing speed is high, and the minimum path length is 30.2m to reach stability.

Claims (1)

1. A UUV ant colony path planning method for bidirectional searching under multiple obstacles is characterized by comprising the following steps:
step 1:
establishing a two-dimensional planar grid map of UUV in the same planar environment, wherein grids are 1m 1X 1m equal in size, the map size is X X Y, and each grid is marked with X i Y i Where i represents the X-direction corner mark and j represents the Y-direction corner mark, as in the representation of grid a of FIG. 2Is X 1 Y 1 Since the grid sizes are all 1 x 1, the center point coordinates of each grid are expressed as:
step 2:
initializing parameters and defining a set J;
step 3:
dividing ant equally into two groups T 1 And T 2 Respectively delivering to a starting point A and a target point B, wherein T 1 The ants search the path from A to B, T 2 The ants search the path from B to A, and then enter step 4;
step 4:
the next arriving node is found for two groups of ants by adopting the roulette mode, wherein the state transfer function is as follows:
wherein,is the probability of ants selecting from node i to node j; τ ij (t) is the concentration of pheromones on the paths of node i and node j; allowed k Is the solution space for the ant to select the next node; alpha is a pheromone importance factor; beta is a heuristic importance factor; η (eta) ij (t) is a heuristic function, the expression of which is:
η ij (t)=1/d ij (3)
wherein d ij Is the distance between i, j;
step 5:
judging whether two groups of ants meet or not, if so, storing the crossing points of the ants in a set J, and storing the communication relation between the crossing points and the concentration value of the pheromone in the set J, and then entering a step 6; otherwise, returning to the step 4;
step 6:
judging whether the ants complete the path, if so, entering step 7; otherwise, returning to the step 4;
step 7:
judging whether the number of the crossing points reaches saturation, if so, entering a step 11; otherwise, enter step 8;
step 8:
judging whether the ants reach the maximum number, if so, entering a step 9; otherwise, returning to the step 3;
step 9:
updating the pheromone, wherein the updated pheromone adopts the following formula:
τ ij (t+1)=(1-ρ)*τ ij (t)+Δτ ij (5)
wherein,representing the concentration of pheromone released by the kth ant between i and j; Δτ ij Representing the sum of pheromone concentrations of ants between i and j; ρ represents the pheromone volatilization coefficient, and the value is generally between 0 and 1; n represents the maximum number of ants, and then step 10 is entered;
step 10:
judging whether the maximum iteration times are reached, if so, entering a step 11; otherwise, returning to the step 3;
step 11:
defining and initializing a set S, and entering a step 12;
step 12:
putting the intersection with the maximum pheromone concentration between the starting point A and the intersection into S, deleting the intersection from J, and entering step 13;
step 13:
comparing the concentration of pheromone directly connected with the crossing point in S and the crossing point in J, and entering step 14;
step 14:
judging whether to delete the crossing point with obviously low pheromone concentration in J, and entering step 15 after deleting; otherwise, go to step 12;
step 15:
judging whether all the intersections in J are traversed, if yes, entering a step 16; otherwise, returning to the step 12;
step 16:
and backtracking the coordinates of the crossing points existing in the S, calculating a theoretical shortest path, outputting the shortest path, and ending.
CN202311228563.1A 2023-09-21 2023-09-21 UUV ant colony path planning method for bidirectional search under multiple obstacles Active CN117109622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311228563.1A CN117109622B (en) 2023-09-21 2023-09-21 UUV ant colony path planning method for bidirectional search under multiple obstacles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311228563.1A CN117109622B (en) 2023-09-21 2023-09-21 UUV ant colony path planning method for bidirectional search under multiple obstacles

Publications (2)

Publication Number Publication Date
CN117109622A true CN117109622A (en) 2023-11-24
CN117109622B CN117109622B (en) 2024-03-26

Family

ID=88796509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311228563.1A Active CN117109622B (en) 2023-09-21 2023-09-21 UUV ant colony path planning method for bidirectional search under multiple obstacles

Country Status (1)

Country Link
CN (1) CN117109622B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106225788A (en) * 2016-08-16 2016-12-14 上海理工大学 The robot path planning method of ant group algorithm is expanded based on path
WO2021189720A1 (en) * 2020-03-23 2021-09-30 南京理工大学 Parking agv route planning method based on improved ant colony algorithm
CN114567914A (en) * 2022-02-24 2022-05-31 广州杰赛科技股份有限公司 Information transmission path planning method and device of wireless sensor network
CN115423324A (en) * 2022-09-05 2022-12-02 哈尔滨工程大学 UUV cluster task planning method based on improved ant colony optimization
CN116739196A (en) * 2023-05-24 2023-09-12 西安建筑科技大学 Tower crane path planning method based on improved ant colony algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106225788A (en) * 2016-08-16 2016-12-14 上海理工大学 The robot path planning method of ant group algorithm is expanded based on path
WO2021189720A1 (en) * 2020-03-23 2021-09-30 南京理工大学 Parking agv route planning method based on improved ant colony algorithm
CN114567914A (en) * 2022-02-24 2022-05-31 广州杰赛科技股份有限公司 Information transmission path planning method and device of wireless sensor network
CN115423324A (en) * 2022-09-05 2022-12-02 哈尔滨工程大学 UUV cluster task planning method based on improved ant colony optimization
CN116739196A (en) * 2023-05-24 2023-09-12 西安建筑科技大学 Tower crane path planning method based on improved ant colony algorithm

Also Published As

Publication number Publication date
CN117109622B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN106371445B (en) A kind of unmanned vehicle planning control method based on topological map
CN110244733B (en) Mobile robot path planning method based on improved ant colony algorithm
CN107622327B (en) Multi-unmanned aerial vehicle flight path planning method based on culture ant colony search mechanism
CN112650229B (en) Mobile robot path planning method based on improved ant colony algorithm
CN107229287A (en) A kind of unmanned plane global path planning method based on Genetic Ant algorithm
Sun et al. AGV path planning based on improved Dijkstra algorithm
CN110147099A (en) A kind of multiple no-manned plane collaboratively searching method based on improvement dove group's optimization
CN108932876B (en) Express unmanned aerial vehicle flight path planning method introducing black area A and ant colony hybrid algorithm
CN110345960B (en) Route planning intelligent optimization method for avoiding traffic obstacles
CN111176286B (en) Mobile robot path planning method and system based on improved D-lite algorithm
CN110515094A (en) Based on the robot point cloud map path method and system for planning for improving RRT*
CN102778229A (en) Mobile Agent path planning method based on improved ant colony algorithm under unknown environment
CN112666957A (en) Underwater robot path planning method based on improved ant colony algorithm
CN112327876B (en) Robot path planning method based on terminal distance index
CN114167865B (en) Robot path planning method based on countermeasure generation network and ant colony algorithm
CN108413963A (en) Bar-type machine people's paths planning method based on self study ant group algorithm
CN115077556A (en) Unmanned vehicle field operation path planning method based on multi-dimensional map
CN109211242B (en) Three-dimensional space multi-target path planning method integrating RRT and ant colony algorithm
Geng et al. A kind of route planning method for UAV based on improved PSO algorithm
CN113985888A (en) Forklift path planning method and system based on improved ant colony algorithm
CN117109622B (en) UUV ant colony path planning method for bidirectional search under multiple obstacles
CN116483094A (en) Unmanned vehicle path planning method integrating air-ground view angle and multidimensional information
CN115454070B (en) K-Means ant colony algorithm multi-robot path planning method
CN116777091A (en) Path planning method for grain unloading process of pseudo-ginseng harvester based on 2D convolutional neural network and improved ant colony algorithm
CN116772880A (en) Unmanned aerial vehicle path planning method based on unmanned aerial vehicle vision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant