A path planning method based on adaptive strategy improved subtraction mean optimization algorithm
By introducing the adaptive strategy and chaotic mapping strategy into the path planning algorithm and updating the search agent position, the problem that the existing algorithm is prone to falling into local optimality and low convergence accuracy is solved, and a more efficient path planning effect is achieved.
Patent Information
- Application Number
- CN202410734952.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing path planning algorithms are prone to falling into local optima, have low convergence accuracy, and are difficult to find the optimal path.
The adaptive strategy is introduced to improve the subtractive average optimization algorithm. By constructing a two-dimensional grid map environment and a motion constraint objective function, combined with the ICMIC chaotic mapping strategy and adaptive probability values, the search agent position is updated, and a better position update method is selected to avoid local optimal solution.
It improves the convergence accuracy and speed of path planning, can efficiently find shorter paths in the obstacle map, jumps out of the local optimal solution, and improves the navigation capabilities of mobile robots.
Smart Images

Figure CN118310537B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of mobile robot path planning, and in particular to a path planning method of an adaptive strategy improved subtraction average optimization algorithm. Background Art
[0002] In the field of mobile robots, the navigation technology of mobile robots has become one of the research hotspots, and path planning is the premise for completing the given navigation tasks and is a very important part of mobile robot technology. At present, there are many algorithms widely used in path planning, such as graph search algorithms such as Dijkstra and A* algorithms, sampling-based algorithms such as RRT algorithms, and swarm intelligence algorithms such as ant colony algorithms and particle swarm algorithms. Although graph searches such as A* can find the shortest path, they will expand a large number of useless nodes and have low efficiency; the sampling-based algorithms may not plan the optimal path due to the randomness of sampling; and swarm intelligence algorithms generally have problems such as slow optimization speed and low convergence accuracy. The subtraction average optimization algorithm has the advantages of few parameters and simple principles, but it also has the problem of falling into local optimal solutions. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to provide a path planning method of the subtraction mean optimization algorithm with an adaptive strategy to solve the problems that the existing path planning algorithm is prone to fall into local optimality and has low convergence accuracy, and to enhance the path planning capability of the mobile robot.
[0004] Technical solution: The path planning method of the adaptive strategy improved subtraction mean optimization algorithm described in the present invention comprises the following steps:
[0005] (1) Construct a two-dimensional grid map environment and an objective function including motion constraints;
[0006] (2) Initialize algorithm parameters, including the number of algorithm iterations, the number of search agents, and basic constant parameters;
[0007] (3) Introduce the ICMIC chaotic mapping strategy to initialize the position of the search agent; evaluate the objective function based on the initial search agent;
[0008] (4) Introducing adaptive probability values and using the improved subtraction average optimization algorithm to update the search agent position;
[0009] (5) By judging whether the objective function value of the search agent meets the conditions and whether the adaptive probability value meets the conditions, a better position update method is selected.
[0010] Furthermore, in step (1), the two-dimensional grid map environment is constructed as follows: the map is constructed according to the grid method, and the grid coordinates in the map are marked as corresponding rectangular coordinates, that is, is the coordinate of the center point of the grid in the map; and records the obstacle information, with the black grid representing the obstacle being recorded as 1 and other unobstructed blank grids being recorded as 0, to construct a two-dimensional grid map.
[0011] Furthermore, in step (1), the objective function formula with motion constraints is constructed as follows: The constraints are:
[0012] ;
[0013] The objective function is:
[0014] ;
[0015] in, and , and They represent the rectangular coordinates of the previous grid and the current grid respectively; the constraint conditions and objective function formula rules are as follows: each time moving from one grid to another adjacent grid, there are three directions: horizontal, vertical and oblique. At the same time, the validity of the path is determined by judging the status of the path point. If it is 1, it collides with the obstacle and the path is invalid; if it is 0, the path is valid. When the path does not pass through the obstacle and does not go out of the boundary, the path is determined to be feasible.
[0016] Furthermore, in step (3), the formula is as follows:
[0017] ;
[0018] ;
[0019] ;
[0020] in, belong , is the chaos parameter, represents the normalized search agent position, represents the search agent position obtained after chaotic mapping, It indicates the search agent position after mapping the chaotic mapping result to the original space. represents the dimension of each particle, represents the domain of all particles in each dimension.
[0021] Furthermore, step (4) is as follows:
[0022] First, the position calculation method of the search agent of the subtraction mean optimization algorithm is:
[0023] ;
[0024] Among them, -v means calculating the displacement of the search agent in the search space, and Search for the objective function values of agents A and B, Is a collection A random vector of for function;
[0025] The calculation formula for location update is:
[0026] ;
[0027] in, is the position of the i-th search agent in a certain generation of search agents, is the position of other search agents in the current search agent, is the new position of the ith search agent, N is the number of search agents, For A random vector in ;
[0028] Then, two methods of updating the position of the search agent are constructed. The first updating method is a subtractive average optimization search agent updating method that introduces a chaotic strategy; the second updating method is a search agent updating method that uses a sine-cosine algorithm.
[0029] Then set the adaptive probability value , using the subtraction mean optimization algorithm to adaptively switch between the two update methods, the expression is as follows:
[0030] ;
[0031] in, is the maximum number of iterations, is the current iteration number.
[0032] Furthermore, step (5) is as follows:
[0033] By judging whether the objective function value of the search agent meets the conditions and whether the adaptive probability value meets the conditions, a better position update method is selected; if both conditions are met at the same time, the first update method is adopted, otherwise the second update method is adopted; a chaotic strategy is introduced in the first subtraction mean optimization update method; in the second sine-cosine update method, After adding the random number coefficient, the improved position update method is as follows:
[0034] ;
[0035] ;
[0036] ;
[0037] in, and Respectively and The objective function value of is a random number between 0 and 1, Indicates the use of chaotic mapping to generate random value replacement Each component in; otherwise, the position update formula of the sine-cosine algorithm is adopted, where is the optimal position of the current iteration; is a random number between (0,1); and yes A random value between is the step size parameter of the sine-cosine algorithm, which changes according to the number of algorithm iterations. is a random value (0,1).
[0038] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: by introducing a chaotic mapping strategy, the randomness and diversity of the initial position of the search agent are increased; an adaptive probability threshold is introduced in the update method of the search agent, so that the algorithm can update the position of the search agent by selecting a better update method from the two update methods as the algorithm iterates. The main update method is the subtraction average optimization method. As the number of algorithm iterations increases, the sine and cosine methods help the algorithm escape the local optimal solution trap, and it takes into account the influence of the number of algorithm iterations and does not affect the convergence speed of the algorithm. Compared with the prior art, the present invention has high convergence accuracy and fast speed, and can efficiently complete the path planning task in the map. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of the present invention;
[0040] Figure 2 It is a schematic diagram of the grid map movement rule of the present invention;
[0041] Figure 3 is a comparison diagram of the algorithm convergence of the fifth function in the benchmark test function of the present invention;
[0042] Figure 4 It is a path planning effect diagram of the basic subtraction average optimization algorithm of the present invention in a two-dimensional grid map;
[0043] Figure 5 This is a diagram showing the path planning effect of the improved algorithm of the present invention in a two-dimensional grid map. DETAILED DESCRIPTION
[0044] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0045] like Figure 1 As shown, an embodiment of the present invention provides a path planning method of an adaptive strategy improved subtraction mean optimization algorithm, comprising the following steps:
[0046] (1) Construct a two-dimensional grid map environment and an objective function containing motion constraints; Figure 2 As shown in the figure, the construction of the two-dimensional grid map environment is as follows: construct the map according to the grid method, mark the grid coordinates in the map as corresponding rectangular coordinates, that is, set is the coordinate of the center point of the grid in the map; and records the obstacle information, with the black grid representing the obstacle being recorded as 1 and other unobstructed blank grids being recorded as 0, to construct a two-dimensional grid map.
[0047] The objective function formula with motion constraints is as follows: The constraints are:
[0048] ;
[0049] The objective function is:
[0050] ;
[0051] in, and , and They represent the rectangular coordinates of the previous grid and the current grid respectively; the constraint conditions and objective function formula rules are as follows: each time moving from one grid to another adjacent grid, there are three directions: horizontal, vertical and oblique. At the same time, the validity of the path is determined by judging the status of the path point. If it is 1, it collides with the obstacle and the path is invalid; if it is 0, the path is valid. When the path does not pass through the obstacle and does not go out of the boundary, the path is determined to be feasible.
[0052] (2) Initialize algorithm parameters, including the number of algorithm iterations, the number of search agents, and basic constant parameters;
[0053] (3) Introduce the ICMIC chaotic mapping strategy to initialize the position of the search agent; evaluate the objective function based on the initial search agent; the formula is as follows:
[0054] ;
[0055] ;
[0056] ;
[0057] in, belong , is the chaos parameter, represents the normalized search agent position, represents the search agent position obtained after chaotic mapping, It indicates the search agent position after mapping the chaotic mapping result to the original space. represents the dimension of each particle, represents the domain of all particles in each dimension.
[0058] (4) Introduce adaptive probability values and use the subtraction mean optimization algorithm to update the search agent position; Figure 4 , Figure 5 As shown, the details are as follows:
[0059] First, the position calculation method of the search agent of the subtraction mean optimization algorithm is:
[0060] ;
[0061] Among them, -v means calculating the displacement of the search agent in the search space, and Search for the objective function values of agents A and B, Is a collection A random vector of for function;
[0062] The calculation formula for location update is:
[0063] ;
[0064] in, is the position of the i-th search agent in a certain generation of search agents, is the position of other search agents in the current search agent, is the new position of the ith search agent, N is the number of search agents, For A random vector in ;
[0065] Then, two methods of updating the position of the search agent are constructed. The first updating method is a subtractive average optimization search agent updating method that introduces a chaotic strategy; the second updating method is a search agent updating method that uses a sine-cosine algorithm.
[0066] Then set the adaptive probability value , using the basic subtraction mean optimization algorithm to adaptively switch between the two update methods, the expression is as follows:
[0067] ;
[0068] in, is the maximum number of iterations, is the current iteration number.
[0069] (5) By judging whether the objective function value of the search agent meets the conditions and whether the adaptive probability value meets the conditions, a better position update method is selected. The details are as follows:
[0070] By judging whether the objective function value of the search agent meets the conditions and whether the adaptive probability value meets the conditions, a better position update method is selected; if both conditions are met at the same time, the first update method is adopted, otherwise the second update method is adopted; a chaotic strategy is introduced in the first subtraction mean optimization update method; in the second sine-cosine update method, in order to reduce the current search agent position The fixed influence on the next generation search agent update is more concerned with the influence of the optimal value of the current iteration. After adding the random number coefficient, the improved position update method is as follows:
[0071] ;
[0072] ;
[0073] ;
[0074] in, and Respectively and The objective function value of is a random number between 0 and 1, Indicates the use of chaotic mapping to generate random value replacement Each component in; otherwise, the position update formula of the sine-cosine algorithm is adopted, where is the optimal position of the current iteration; is a random number between (0,1); and yes A random value between is the step size parameter of the sine-cosine algorithm, which changes according to the number of algorithm iterations. is a random value (0,1).
[0075] (6) After each generation of search agents is updated and meets the iteration number requirements, the current best solution is saved and the planned path is output.
[0076] The present invention uses five commonly used benchmark test functions to verify the optimization capabilities of the basic SABO algorithm, the DBO algorithm, the GWO algorithm, and the improved SABO algorithm. The specific benchmark test functions are shown in Table 1 below. During the test, the number of search agents of the algorithm is set to 80, the number of algorithm iterations is 500, the number of tests is 30, and the test comparison results are shown in the table.
[0077] Table 1 Specific benchmark functions
[0078] ;
[0079] As shown in Table 2, the improved subtraction mean optimization algorithm of the present invention has improved convergence accuracy compared with other algorithms. Specifically, in the test results of the first four benchmark test functions, the optimization results of the improved subtraction mean optimization algorithm are better than those of other algorithms. In the results of the fifth test function, although the optimization accuracy is not much different from that of the basic subtraction mean optimization algorithm, combined with Figure 3 The convergence speed is faster than the basic subtraction average optimization algorithm, and the optimal solution of the benchmark test function has been found many times. In the results of the sixth test function, it can be seen that the improved algorithm also has good optimization results for multi-peak functions. From the above test results, it can be seen that the improved strategy in this paper is effective.
[0080] Table 2 Convergence accuracy of the improved subtraction average optimization algorithm compared with other algorithms
[0081] ;
[0082] Verification was performed in MATLAB, a 20*20 grid map was constructed for simulation, and the algorithm was compared with the basic subtraction average optimization algorithm. The basic parameters were set as follows: the number of search agents was 30 and the maximum number of iterations was 50. Figure 4 and Figure 5 , Figure 4 This is the path planning effect diagram of the basic subtraction average optimization algorithm in a two-dimensional grid map. Figure 5 This is a diagram showing the effect of path planning of the improved algorithm of the present invention in a two-dimensional grid map. It can be seen that the improved path length is shorter, indicating that the improved algorithm of the present invention is correct and effective in path planning in a two-dimensional grid map.
Claims
1. A path planning method using an adaptive strategy to improve the subtraction mean optimization algorithm, characterized in that: The following steps are involved: (1) Construct a two-dimensional grid map environment and an objective function including motion constraints; (2) Initialize algorithm parameters, including the number of algorithm iterations, the number of search agents, and basic constant parameters; (3) Introduce the ICMIC chaotic mapping strategy to initialize the position of the search agent; evaluate the objective function based on the initial search agent; the formula is as follows: ; ; ; in, belong , is the chaos parameter, represents the normalized search agent position, represents the search agent position obtained after chaotic mapping, It indicates the search agent position after mapping the chaotic mapping result to the original space. represents the dimension of each particle, represents the domain of all particles in each dimension; (4) Introducing adaptive probability values and using the improved subtraction average optimization algorithm to update the search agent position; (5) By judging whether the objective function value of the search agent meets the conditions and whether the adaptive probability value meets the conditions, a better position update method is selected.
2. The path planning method of the adaptive strategy improved subtraction mean optimization algorithm according to claim 1 is characterized in that: In step (1), the two-dimensional grid map environment is constructed as follows: construct the map according to the grid method, mark the grid coordinates in the map as corresponding rectangular coordinates, that is, is the coordinate of the center point of the grid in the map; and records the obstacle information, with the black grid representing the obstacle being recorded as 1 and other unobstructed blank grids being recorded as 0, to construct a two-dimensional grid map.
3. The path planning method of the adaptive strategy improved subtraction mean optimization algorithm according to claim 1 is characterized in that: In step (1), the objective function formula with motion constraints is constructed as follows: The constraints are: ; The objective function is: ; in, and , and They represent the rectangular coordinates of the previous grid and the current grid respectively; the constraint conditions and objective function formula rules are as follows: each time moving from one grid to another adjacent grid, there are three directions: horizontal, vertical and oblique. At the same time, the validity of the path is determined by judging the status of the path point. If it is 1, it collides with the obstacle and the path is invalid; if it is 0, the path is valid. When the path does not pass through the obstacle and does not go out of the boundary, the path is determined to be feasible.
4. The path planning method of the adaptive strategy improved subtraction mean optimization algorithm according to claim 1 is characterized in that: Step (4) is as follows: First, the position calculation method of the search agent of the subtraction mean optimization algorithm is: ; Among them, -v means calculating the displacement of the search agent in the search space, and Search for the objective function values of agents A and B, Is a collection A random vector of for function; The calculation formula for location update is: ; in, is the position of the i-th search agent in a certain generation of search agents, is the position of other search agents in the current search agent, is the new position of the ith search agent, N is the number of search agents, For A random vector in ; Then, two methods of updating the position of the search agent are constructed. The first updating method is a subtractive average optimization search agent updating method that introduces a chaotic strategy; the second updating method is a search agent updating method that uses a sine-cosine algorithm. Then set the adaptive probability value , using the subtraction mean optimization algorithm to adaptively switch between the two update methods, the expression is as follows: ; in, is the maximum number of iterations, is the current iteration number.
5. The path planning method of the adaptive strategy improved subtraction mean optimization algorithm according to claim 1 is characterized in that: Step (5) is as follows: By judging whether the objective function value of the search agent meets the conditions and whether the adaptive probability value meets the conditions, a better position update method is selected; if both conditions are met at the same time, the first update method is adopted, otherwise the second update method is adopted; a chaotic strategy is introduced in the first subtraction average optimization update method; In the second sine-cosine update method, After adding the random number coefficient, the improved position update method is as follows: ; ; ; in, and Respectively and The objective function value of is a random number between 0 and 1, Indicates the use of chaotic mapping to generate random value replacement Each component in; otherwise, the position update formula of the sine-cosine algorithm is adopted, where is the optimal position of the current iteration; is a random number between (0,1); and yes A random value between is the step size parameter of the sine-cosine algorithm, which changes according to the number of algorithm iterations. is a random value (0,1).
