A multi-modal and multi-objective path planning method
By improving the Dijkstra algorithm, undirected graph modeling and multi-modal multi-objective path planning are performed on map data, which solves the problem of difficulty in finding the optimal solution in multi-modal multi-objective path planning, and achieves fast and accurate path planning. Reduce traffic congestion and improve travel efficiency.
Patent Information
- Application Number
- CN202210444997.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-21
- Filing Date
- 2022-04-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-04-26
AI Technical Summary
Existing multi-modal multi-objective path planning methods are difficult to quickly and accurately find the optimal solution that satisfies multiple conflicting objectives, resulting in traffic congestion and low travel efficiency.
Improve the Dijkstra algorithm by modeling the original raster map data, convert it into a weighted undirected graph, solve the adjacency matrix, and define the variables in the multi-modal multi-objective Dijkstra algorithm, and perform path planning to find the multi-modal optimal Excellent solution set.
It can quickly find the multi-modal optimal solution set that satisfies the multi-modal multi-objective path planning problem, reduce traffic congestion and improve travel efficiency.
Smart Images

Figure CN114757044B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to a multi-modal and multi-objective path planning method, which is applied to path planning in real life. Background Art
[0002] The paper "A Review of Multimodal Multi-Objective Optimization" reviews multimodal multi-objective optimization problems. It shows that when a problem needs to take into account multiple objectives that may conflict with each other, the problem belongs to a multi-objective optimization problem. If a multi-objective optimization problem meets one of the following conditions, it belongs to multimodal multi-objective optimization: (1) there is at least one local optimal solution; (2) there are more than two global optimal solutions. The local optimal solution is not dominated by any solution in the neighborhood; the global optimal solution is not dominated by any solution in the feasible domain.
[0003] Multimodal and multi-objective optimization methods need to retain multiple Pareto solution sets, the significance of which is: 1. Multiple solution sets can meet the needs of different decision makers; 2. Multiple solution sets can reveal the potential characteristics of the problem; 3. Rapid transformation from one solution set to another can help solve dynamic optimization problems; 4. Providing multiple solution sets can increase the possibility of finding a robust solution.
[0004] Path planning is closely related to people's daily travel, and there are often more than one goal to consider when conducting daily path planning, such as the length of congested sections, distance, number of turning intersections, etc. This type of problem is a multi-objective path planning problem, and there is often more than one solution to this type of problem, and there are many different paths with the same target value. Such a problem is a multimodal multi-objective path planning problem. The "2021CEC Multimodal Multi-Objective Path Planning Problem Definition and Evaluation Criteria" proposes a multimodal multi-objective path planning test problem based on an actual map. Designing a suitable multimodal multi-objective optimization method and using it to quickly and accurately find the multimodal optimal solution to the 2021CEC path planning problem is of great significance in helping decision makers decide on preferred solutions, reducing traffic congestion, and improving people's daily travel efficiency.
[0005] Figure 1 This is an example diagram of Problem 1 in the 2021 CEC path planning test problem set. Figure 1The black area in the figure simulates a highway and represents a feasible area. The white area simulates an infeasible area with real obstacles. The gray area simulates severe congestion in the city. The fewer the gray areas in the path, the less congested the path is. The black areas with two or more feasible directions in the figure represent forks. The minimization optimization objectives of the CEC test problem set include path length, congestion, and the number of forks. The fewer the number of forks in the path, the fewer the number of traffic lights in the path, and the fewer the number of red lights that may be encountered during driving. Summary of the invention
[0006] Based on the CEC path planning test problem set, the present invention proposes a multi-modal and multi-objective path planning method based on the Dijkstra algorithm by improving the Dijkstra algorithm. This method can quickly plan the CEC multi-modal and multi-objective path planning problem and find the multi-modal optimal solution set that meets the problem requirements.
[0007] The technical solution adopted by the present invention is: a multi-modal and multi-objective path planning method, comprising the following steps:
[0008] Step 1: Model the original raster map data and convert it into a weighted undirected graph;
[0009] Step 2: Solve the adjacency matrix based on the undirected graph and store the information of the target value in the map into the adjacency matrix;
[0010] Step 3: Define and initialize the variables in the multi-modal multi-objective Dijkstra algorithm;
[0011] Step 4: Use the multimodal multi-objective Dijkstra algorithm, adjacency matrix and initialized variables for path planning.
[0012] Furthermore, the modeling process of the undirected graph includes the following steps:
[0013] Step 1-1, find the nodes in the original grid map data and generate a node set A;
[0014] Step 1-2: Number all nodes in node set A, record them as index1, the initial value of index1 of all nodes is 0, and the index 1i ,......,index 1n , at this time A = [node's y coordinate, node's x coordinate, corresponding node number index1];
[0015] Step 1-3, initialize i=1, empty set D, and index the edges between two nodes 2i ,......,index 2n, the set S3 of nodes adjacent to the node in the feasible direction;
[0016] Step 1-4: Find the starting point START in the corresponding map data, that is, index 1i (i=1) The set S3 of nodes adjacent to it in the feasible direction, and calculate the path target value d from the starting point START to its adjacent feasible nodes in sequence i→j ;
[0017] Steps 1-5: Solve the path target values between nodes according to the following process:
[0018] ifβ i→j =0:
[0019] Calculate the path target value d from node i to its adjacent feasible node j i→j ;
[0020] D i→j Add to set D;
[0021] else go to step 1-4 until all nodes in S3 are traversed, then go to step 1-6;
[0022] End
[0023] Among them, β is an indicator to determine whether the map area is feasible;
[0024] Step 1-6, determine whether i is greater than or equal to n, if yes: execute the next step, if not: i=i+1, and go to step 1-4;
[0025] Step 1-7: Assign weights to paths between two nodes that are not adjacent feasible nodes in the undirected graph: each target value is infinite, such as [inf, inf, inf];
[0026] Step 1-8: When the node number index in the node set A 1i ,......,index 1n All are not 0, and the undirected graph modeling is completed.
[0027] Furthermore, in step 2, the steps for solving the adjacency matrix according to the relevant data obtained in the undirected graph modeling process are as follows: according to D[edge index index2, nodes at both ends of the edge, edge, target value of the edge], the adjacency matrix m is obtained; the adjacency matrix m is an n-order symmetric matrix, where n represents the number of nodes in the map, and D_all_input[i, j] represents the weight of the edge between the node with index i and the node with index j; if i is equal to j, then D_all_input represents the target value of node i; if node i and node j are not adjacent nodes in their respective feasible directions, then D_all_input[i, j] is infinite; then D_all_input is converted into a symmetric matrix to obtain the adjacency matrix m.
[0028] Further, in step 3, the steps of defining and initializing the variables in the multi-modal multi-objective Dijkstra algorithm are:
[0029] S is the node status. If the node status S is 1, it means that the minimum path from the starting point to the node has been found. If the node status S is 0, it means that the minimum path from the starting point to the node has not been found. If the state S of a node is set to 1, it means that at least one minimum path from the starting point to the node has been found. At this time, the first frontier of the Pareto sorting of the target value corresponding to the minimum path from the starting point to the node has been preliminarily determined.
[0030] dist stores the target value corresponding to the minimum path from the starting point to each other node, where the i-th column of dist stores the target value of the minimum path from the starting point to node i; since the i-th column of dist may have more than one row, and there may be multiple rows with the same target value, if there are multiple rows with the same target value, it means that the target value corresponds to multiple minimum paths, that is, it is a multimodal optimal solution for node i; the i-th column of dist is called the dist of node i;
[0031] prev is the previous node, which stores the previous node corresponding to the minimum path from the starting point to each other node. The i-th column of prev stores the previous node of node i in the minimum path from the starting point to node i. Since the i-th column of prev may have more than one row, and there may be multiple rows of the same previous node, if there are multiple rows of the same previous node, it means that there are multiple minimum paths corresponding to the previous node to node i, that is, there are multiple paths in the minimum path of node i that need to pass through the previous node to reach node i. The i-th column of prev is called the previous node prev of node i;
[0032] Candidate is a candidate, storing temporary dist;
[0033] hx is a candidate, storing the node number corresponding to the target value in the Pareto first frontier of dist found each time;
[0034] u, node u is called the starting point of the loop, and node u is the first node in hx whose state S is 0, except for the first loop;
[0035] plus, stores the target value of the minimum path from the starting point through node u to node i; plus will be continuously updated during the loop, that is, plus will be different for different nodes i;
[0036] n, the number of nodes in the map;
[0037] Initialize the above variables. In the initial state, the state S of node START is 1, and the state S of other nodes are all 0; the dist of the nodes is infinite; the initial states of prev, candidate, hx, and plus are all empty; the initial state of u is START.
[0038] Furthermore, the path planning steps in step 4 are:
[0039] Step 4-1, input the adjacency matrix m and the node number of the starting point, first initialize dist, prev, S, and u respectively, record the target value of the starting point and the starting point as the target value of the starting point itself, that is, m(start, start); set the prev of the node to 0; record the target value of the remaining nodes as infinity; set the state S of the node to 0;
[0040] Step 4-2, put the target value in dist into candidate, perform Pareto sorting on the target values in candidate, take out the first Pareto frontier and store its corresponding node number in hx; then take out the first node whose state S is 0, assign the node number to u, and set S(u) equal to 1; since dist will be initialized before the loop, node u must be the starting point start in the first loop;
[0041] Step 4-3, traverse according to the adjacency matrix, i starts from 1 and increases by 1 each time until i equals n; calculate the target value plus = dist(:,u)+m(u,i)+dist(i,i), then Pareto sort the i-th column of dist and the target value in plus, find the Pareto first frontier, update the target value dist(:,i) of the minimum path of node i, store the target value obtained by the Pareto first frontier in dist(:,i), and correspondingly store the previous node of node i in the minimum path corresponding to each target value in the Pareto first frontier in the i-th column of prev; when i equals n, dist is updated and the first cycle ends;
[0042] Step 4-4, put the target value in dist into candidate, perform Pareto sorting on the target value in candidate, take out the Pareto first frontier and store its corresponding node number in hx; take out the first node whose state S is 0, assign the node number to u, and let S(u) equal to 1; traverse according to the adjacency matrix, calculate the target value plus of the minimum path from the starting point through node u to node i, plus = dist(:,u)+m(u,i)+m(i,i), then perform Pareto sorting on the i-th column of dist and the target value in plus, find the Pareto first frontier, update the target value dist(:,i) of the minimum path of node i, store the target value obtained by the Pareto first frontier in dist(:,i), and correspondingly store the previous node of node i in the minimum path corresponding to each target value in the Pareto first frontier in the i-th column of prev; when i is equal to n, dist is updated and the second cycle ends;
[0043] Step 4-5, repeat the operation of step 4-4 until the state S of all nodes is 1, and the algorithm ends; at this point, dist stores the target values of all minimum paths from the starting point to other nodes, and prev stores the previous node of the minimum path corresponding to the target value.
[0044] The beneficial effect of the present invention is that the present invention can quickly plan the CEC multi-modal multi-objective path planning problem by using the multi-modal multi-objective Dijkstra algorithm, and find the multi-modal optimal solution set that meets the requirements of the problem. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is an example diagram of the 2021CEC path planning problem;
[0046] Figure 2 It is the overall process of multi-modal and multi-objective Dijkstra algorithm;
[0047] Figure 3 Solve the flow chart for the adjacency matrix;
[0048] Figure 4 It is the main flow chart of multi-modal multi-objective Dijkstra algorithm;
[0049] Figure 5 It is a sub-flow chart of multi-modal and multi-objective Dijkstra algorithm;
[0050] Figure 6a This is a partial diagram of the optimal path for Problem 1. Figure 1 ;
[0051] Figure 6b This is a partial diagram of the optimal path for Problem 1. Figure 2;
[0052] Figure 7 This is a partial diagram of the optimal path for Problem 1. Figure 3 ;
[0053] Figure 8a This is a partial diagram of the optimal path for Problem 3. Figure 1 ;
[0054] Figure 8b This is a partial diagram of the optimal path for Problem 3. Figure 2 ;
[0055] Fig. 9 This is a partial diagram of the optimal path for Problem 3. Figure 3 . DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] The present invention is a multi-modal and multi-objective path planning method, such as Figure 2 As shown in the figure, this method is mainly divided into four steps: first, the original raster map data needs to be modeled and converted into a weighted undirected graph; then, the adjacency matrix is solved according to the undirected graph, and the information of the target value in the map is stored in the adjacency matrix; then, the variables are defined and initialized to facilitate path planning and path preservation; finally, the designed algorithm, adjacency matrix and initialized variables are used for path planning.
[0058] The process of using the multimodal and multi-objective Dijkstra algorithm to solve the 2021 CEC path planning problem is mainly divided into three parts: map preprocessing, initialization, and path planning. Map preprocessing includes undirected graph modeling and adjacency matrix solution.
[0059] The following is the map preprocessing process:
[0060] First, traverse the original grid map, find the coordinates of the nodes in the map, and record them in the matrix Point. Each row of Point represents a node, the first column is the y coordinate of the node, and the second column is the x coordinate of the node. The node refers to the turning point in the feasible area of the map.
[0061] Let the index1 of the starting point START be 1, determine the feasible direction of node 1, and find the set S3 of nodes adjacent to it in its feasible direction, count all target values between node 1 and each node in the set S3, and record them in D. Each row of D represents the information of an edge, the first column of D is the edge number index2, the second column is the two end nodes of the edge, the third column is the edge, and the fourth column is the weight of the edge.
[0062] Then expand the adjacent nodes in the last feasible direction of node 1, record its index1 as 2, find the set S3 of adjacent nodes in its feasible direction, find the edges between node 2 and these nodes in turn and number them, and count the weights of the edges. According to the weights, determine whether there is an infeasible area in the corresponding edge. If not, record the corresponding information in D. If so, do not save it.
[0063] Repeat the above steps. If the adjacent nodes of a node in a feasible direction have been expanded, that is, its index1 is not equal to 0, then the edge between the two nodes will no longer be found, and the weight of the edge between the two nodes will no longer be counted. In this way, the algorithm can exclude the node when expanding the node, avoiding repeated calculations and the program falling into an infinite loop.
[0064] In addition, after determining the next node to be expanded, number its index1 in the order of expansion, and set its index1 = index1 + 1; if all the adjacent nodes in all feasible directions of a node have been expanded, select the first node with index1 of 0 from A, set its index1 = index1 + 1, and repeat the above steps until the index1 of all nodes is not 0.
[0065] At this point, all the edges and their corresponding weights in the map data are stored in D.
[0066] The undirected graph modeling is completed.
[0067] Then the adjacency matrix is solved based on the relevant data obtained during the undirected graph modeling process.
[0068] According to D[edge number, nodes at both ends of the edge, edge, target value of the edge], we can find the adjacency matrix m. The adjacency matrix m is an n-order symmetric matrix, where n represents the number of nodes in the map, and D_all_input[i, j] represents the weight of the edge between the node with sequence number i and the node with sequence number j; if i is equal to j, then D_all_input represents the target value of node i; if node i and node j are not adjacent nodes in their respective feasible directions, then D_all_input[i, j] is infinite. Then convert D_all_input into a symmetric matrix to obtain the adjacency matrix. If Figure 3 shown.
[0069] In the initialization step, the main purpose of this part is to define and initialize the variables in the multi-modal multi-objective Dijkstra algorithm. The relevant concepts are as follows:
[0070] S is the node state. If the node state S is 1, it means that the minimum path from the starting point to the node has been found. If the node state S is 0, it means that the minimum path from the starting point to the node has not been found. If the state S of a node is set to 1, it means that at least one minimum path from the starting point to the node has been found. At this time, the first frontier of the Pareto sorting of the target value corresponding to the minimum path from the starting point to the node has been determined. After that, the Pareto frontier will only be extended, not replaced.
[0071] dist stores the target values corresponding to the minimum paths from the starting point to each other node, where the i-th column of dist stores the target value of the minimum path from the starting point to node i. Since the i-th column of dist may have more than one row, and there may be multiple rows with the same target value, if there are multiple rows with the same target value, it means that the target value corresponds to multiple minimum paths, that is, it is a multimodal optimal solution for node i. The i-th column of dist is referred to as the dist of node i below.
[0072] prev (previous points) stores the previous node corresponding to the minimum path from the starting point to each other node, where the i-th column of prev stores the previous node of node i in the minimum path from the starting point to node i. Since the i-th column of prev may have more than one row, and there may be multiple rows of the same previous nodes, if there are multiple rows of the same previous nodes, it means that there are multiple minimum paths corresponding to the previous node to node i, that is, there are multiple paths in the minimum path of node i that need to pass through the previous node to reach node i. The i-th column of prev is referred to as the previous node prev of node i.
[0073] candidate, stores temporary dist (perform Pareto sorting on the target values in the candidates, take out the node numbers corresponding to the target values in the first Pareto frontier, and store them in hx).
[0074] hx (candidate), stores the node number corresponding to the target value in the Pareto first frontier of dist found each time.
[0075] u, node u is called the starting point of the loop, and node u is the first node in hx whose state S is 0, except for the first loop.
[0076] plus, stores the target value of the minimum path from the starting point through node u to node i. In the loop, plus will be continuously updated, that is, plus will be different for different nodes i.
[0077] n, the number of nodes in the map.
[0078] Initialize the above variables. In the initial state, the state S of node START is 1, and the state S of other nodes are all 0; the dist of the nodes is infinite; the initial states of prev, candidate, hx, and plus are all empty; the initial state of u is START.
[0079] In the path planning process, the multimodal and multi-objective Dijkstra algorithm is used to carry out path planning for the 2021CEC path planning problem, which is mainly divided into path judgment, selection, and update.
[0080] Path judgment: mainly divided into judging whether the path is the optimal path to be solved, and judging whether each point has found the optimal path that meets the requirements;
[0081] Path selection: In the process of solving the problem, the paths found by the algorithm include not only the optimal paths that meet the problem requirements, but also some non-optimal paths. The present invention selects the found paths by performing non-dominated sorting on the path target values;
[0082] Path update: There is often more than one optimal path to be solved. The algorithm performs path planning node by node. During the path planning process, there is an increase in optimal paths and replacement of already found paths, that is, the path needs to be updated. In this regard, the present invention performs non-dominated sorting on the target values of the newly found paths and the originally found paths, thereby realizing the path update.
[0083] The algorithm flow is as follows Figure 4 , Figure 5 The algorithm flow is as follows:
[0084] Input the adjacency matrix m and the node number of the starting point. First, initialize dist, prev, S, and u respectively. Record the target value of the starting point and the target value of the starting point as the target value of the starting point itself, that is, m(start, start); set the prev of the node to 0; record the target value of the remaining nodes as infinity; and set the state S of the node to 0.
[0085] Put the target value in dist into candidate, perform Pareto sorting on the target value in candidate, take out the first Pareto frontier and store its corresponding node number in hx. Then take out the first node with state S as 0, assign the node number to u, and set S(u) equal to 1. Since dist will be initialized before the loop, node u must be the starting point start in the first loop.
[0086] Traverse according to the adjacency matrix, i starts from 1 and increases by 1 each time until i equals n. Calculate the target value plus from the starting point to other nodes = dist(:,u)+m(u,i)+dist(i,i), then Pareto sort the i-th column of dist and the target value in plus, find the Pareto first frontier, update the target value dist(:,i) of the minimum path of node i, store the target value obtained by the Pareto first frontier in dist(:,i), and store the previous node of node i in the minimum path corresponding to each target value in the Pareto first frontier in the i-th column of prev. When i equals n, dist is updated and the first cycle ends.
[0087] Then, put the target value in dist into candidate, perform Pareto sorting on the target value in candidate, take out the Pareto first frontier and store its corresponding node number in hx. Then take out the first node whose state S is 0, assign the node number to u, and set S(u) equal to 1. Then traverse according to the adjacency matrix, calculate the target value plus of the minimum path from the starting point through node u to node i, plus = dist(:,u)+m(u,i)+m(i,i), then perform Pareto sorting on the i-th column of dist and the target value in plus, find the Pareto first frontier, update the target value dist(:,i) of the minimum path of node i, store the target value obtained by the Pareto first frontier in dist(:,i), and store the previous node of node i in the minimum path corresponding to each target value in the Pareto first frontier in the i-th column of prev accordingly. When i is equal to n, dist is updated and the second cycle ends.
[0088] Repeat the second cycle until the state S of all nodes is 1, and the algorithm ends. At this point, dist stores the target values of all minimum paths from the starting point to other nodes, and prev stores the previous nodes of the minimum path corresponding to the target value.
[0089] When using the multimodal multi-objective Dijkstra algorithm to solve the 2021CEC path planning problem, since both the problem and the solution are relatively complex, there are the following two special cases:
[0090] (1) Node status S is set to 1 too early
[0091] When finding the minimum path from the starting point through node u to node i for node j = u (1 < u <= n, 1 <= i <= n, u ~= i), the status of node u has been set to 1. The algorithm will start traversing with node u as the starting point of the loop to update the target value dist(:,i) of node i. There may be a situation where the target value dist(:,u) of node u at this time may not be the target value of all the minimum paths from the starting point to node u as required by the present invention, but only a part of them. In this case, the target value dist(:,i) of node i found by the algorithm at this time will also be the target value corresponding to only part of the minimum paths. If the status S of the adjacent nodes of node u is 0 at this time, then node u can finally find the target values corresponding to all the minimum paths, and the target values of the minimum paths newly added by node u are recorded as add_dist(:,u). However, since the status S of node j is already 1 at this time, node j will not be used as the starting point of the loop again to traverse and update dist. At this time, for node i, it will not be able to find those minimum paths with the target value dist(:,i) = add_dist(:,u) + m(u,i) + m(i,i). Due to the existence of the above situation, the algorithm can finally find only the target values corresponding to part of the minimum paths at this time, that is, the above situation results in the loss of the target values corresponding to part of the minimum paths.
[0092] For this, the method adopted by the present invention is that when finding the minimum path from the starting point through node u to node i, after the dist of node i is updated, it is judged whether the status S(i) of node i is 1 at this time. If the status S of node i is 0 at this time, the loop continues; if the status S of node i is 1 at this time, first let prev3 be equal to prev, then find the node set 1 with node i as the previous node in prev, and update the target values of the minimum paths of the nodes in set 1 and the previous nodes corresponding to the target values, and record the updated previous nodes in prev3. Then find the node set 2 with the nodes in set 1 as the previous nodes in prev, and update the target values of the minimum paths of the nodes in set 1 and the previous nodes corresponding to the target values, and the updated previous nodes are also recorded in prev3. Update the target values and previous nodes of the nodes with the nodes in the found node sets as the previous nodes in turn until there are no nodes in prev with the nodes in the found node sets as the previous nodes. When the target values dist and the previous nodes prev of the nodes with node i as the previous node and the nodes with its previous node as the previous node are all updated, let prev be the updated prev3, and continue the loop.
[0093] (2) Two nodes are each other's previous nodes
[0094] However, when updating the target value dist and the previous node prev of the node with node i as the previous node, and the node with its previous node as the previous node, there will be a situation where two nodes are each other's previous nodes. For example, the target value of node a is updated, and its state S is 1, and node b is the node with node a as the previous node in prev. At this time, the target value of node a needs to be used to update the target value dist and the previous node prev of node b. If node a and node b are each other's previous nodes, then when the target value dist and the previous node prev of node b are updated, the target value of node b will be used to update the target value dist and the previous node prev of node a, and then the target value of node a will be used to update the target value of node b again, thus falling into an infinite loop. In this regard, the solution adopted in this article is as follows.
[0095] When updating the target value dist and the previous node prev of the node with node i as the previous node and the node with its previous node as the previous node, first traverse prev to find the node pairs that are previous nodes of each other in prev and store them in prev1. Next, when updating the target value dist and the previous node prev of node b with the target value of node a, first determine whether the node pair (a, b) exists in prev1. If so, node a and node b are previous nodes of each other. When the target value dist and the previous node prev of b are updated, the target value dist and the previous node prev of node a are no longer updated with the target value of node b, thus avoiding an infinite loop. If not, the target value dist and the previous node prev of node b are updated with the target value of node a.
[0096] If nodes a and b are predecessors of each other, after updating the target value dist of node b and the previous node prev with the target value of node a, it is unnecessary to update node a with the target value of node b again. This is because the target value updated by node b to node a must not be the first frontier of the Pareto sorting of the target value of node a, that is, the path corresponding to the target value must not be the minimum path from the starting point to node a.
[0097] Next, we will use the multimodal multi-objective Dijkstra algorithm to solve the first type of problems in the 2021 CEC path planning problem. The first type of problems includes 5 problems, among which problems 2 to 5 have the same objectives to be minimized, so we will only introduce the statistical methods of the target values of problems 1 and 2, and will not repeat them for problems 3 to 5. The statistical methods of the target values are as follows.
[0098] Problem 1 requires that the minimum target be the path length and the number of gray areas. The statistical method for the path length and the number of gray areas in the path is as follows:
[0099] For path length, the multi-objective Dijkstra algorithm first transforms the edges represented by the nodes at both ends into a path consisting of continuous points, and the number of points in the path is the path length.
[0100] For the number of gray areas, the multi-objective Dijkstra algorithm compares the coordinates of the points in the path with the coordinates of the gray areas in the map data one by one. If the coordinates of the two are the same, it means that the point in the path is a gray area. The number of gray areas is increased by one, that is, the number of points in the path whose coordinates are the same as those in the gray areas of the map is the number of gray areas in the path.
[0101] Problem 2 requires that the minimum goals be the path length, the number of gray areas, and the number of forks. The statistical methods for the path length and the number of gray areas in the path are the same as those in Problem 1. The statistical method for the number of forks in the path is as follows:
[0102] The point representing the fork is the node with the number of feasible directions greater than or equal to 3, so we only need to determine whether the feasible directions of the nodes at both ends of the edge are greater than or equal to 3. If the feasible directions of a node are greater than or equal to 3, then the node represents a fork, and the number of forks is increased by one.
[0103] In addition, because the objectives to be minimized in Questions 3 to 5 are the same as those in Question 2, they will not be discussed in detail below.
[0104] The experimental results are as follows:
[0105] Table 1 Multimodal optimal solution set of multimodal multi-objective Dijkstra algorithm
[0106]
[0107]
[0108] It can be seen from the experimental results in Table 1 that the multimodal multi-objective Dijkstra algorithm can find the multimodal optimal solution that meets the problem requirements, such as Figure 6a and Figure 6b There are two multi-modal solutions shown in Figure 6a and Figure 6b The two solutions have different routes, but the target values of the two paths are the same. Figure 8a and Figure 8b Also shown in are two multimodal optimal solutions.
[0109] Figure 6a , Figure 6b and Figure 7 This is a partial optimal path diagram for Problem 1, where Figure 6a and Figure 6b These are two different paths with the same target value in question 1, both of which have a path length of 49 and only pass through one congested section (gray area); Figure 7It is another optimal solution to problem 1. Its path length is 65 and it does not pass through congested sections (the number of gray areas is 0).
[0110] Figure 8a , Figure 8b and Fig. 9 This is a partial optimal path diagram for Problem 3, where Figure 8a and Figure 8b These are two different paths with the same target value in question 3. Their path lengths are both 61, and they both pass through 2 congested sections (gray areas) and 10 forks. Fig. 9 It is another optimal solution to problem 3. Its path length is 51, it passes through 4 congested sections (gray areas), and 7 forks.
Claims
1. A multi-modal and multi-objective path planning method, It is characterized in that The steps include: Step 1: Model the original raster map data and convert it into a weighted undirected graph; Step 2, solve the adjacency matrix according to the undirected graph, and store the information of the target value in the map into the adjacency matrix; Step 3: define and initialize the variables in the multi-modal multi-objective Dijkstra algorithm; the specific steps are: S is the node status. If the node status S is 1, it means that the minimum path from the starting point to the node has been found. If the node status S is 0, it means that the minimum path from the starting point to the node has not been found. If the state S of a node is set to 1, it means that at least one minimum path from the starting point to the node has been found. At this time, the first frontier of the Pareto sorting of the target value corresponding to the minimum path from the starting point to the node has been preliminarily determined; dist stores the target value corresponding to the minimum path from the starting point to each other node, where the i-th column of dist stores the target value of the minimum path from the starting point to node i; since the i-th column of dist may have more than one row, and there may be multiple rows with the same target value, if there are multiple rows with the same target value, it means that the target value corresponds to multiple minimum paths, that is, it is a multimodal optimal solution for node i; the i-th column of dist is called the dist of node i; prev is the previous node, which stores the previous node corresponding to the minimum path from the starting point to each other node, where the i-th column of prev stores the previous node of node i in the minimum path from the starting point to node i; since the i-th column of prev may have more than one row, and there may be multiple rows of the same previous nodes, if there are multiple rows of the same previous nodes, it means that there are multiple minimum paths corresponding to the previous node to node i, that is, there are multiple paths in the minimum path of node i that need to pass through the previous node to reach node i, and the i-th column of prev is called the previous node prev of node i; Candidate is a candidate, storing temporary dist; hx is a candidate, storing the node number corresponding to the target value in the Pareto first frontier of dist found each time; u, node u is called the starting point of the loop, and node u is the first node in hx whose state S is 0, except for the first loop; plus, stores the target value of the minimum path from the starting point through node u to node i; In the process of the loop, plus will be continuously updated, that is, different nodes i will have different plus; n, the number of nodes in the map; Initialize the above variables. In the initial state, the state S of the node START is 1, and the states S of the other nodes are all 0; the dist of the nodes is infinite; the initial states of prev, candidate, hx, and plus are all empty; the initial state of u is START; Step 4: Use the multimodal multi-objective Dijkstra algorithm, adjacency matrix and initialization variables for path planning. The specific steps are as follows: Step 4-1, input the adjacency matrix m and the node number of the starting point, first initialize dist, prev, S, and u respectively, record the target value of the starting point and the starting point as the target value of the starting point itself, that is, m(start, start); set the prev of the node to 0; record the target value of the remaining nodes as infinity; set the state S of the node to 0; Step 4-2, put the target value in dist into candidate, perform Pareto sorting on the target values in candidate, take out the first Pareto frontier and store its corresponding node number in hx; then take out the first node whose state S is 0, assign the node number to u, and set S(u) equal to 1; since dist will be initialized before the loop, node u must be the starting point start in the first loop; Step 4-3, traverse according to the adjacency matrix, i starts from 1 and increases by 1 each time until i equals n; Calculate the target value plus from the starting point to other nodes = dist(:,u)+m(u,i)+dist(i,i), then perform Pareto sorting on the i-th column of dist and the target values in plus, find the first Pareto frontier, update the target value dist(:,i) of the minimum path of node i, store the target value obtained by the first Pareto frontier in dist(:,i), and store the previous node of node i in the minimum path corresponding to each target value in the first Pareto frontier in the i-th column of prev; when i is equal to n, dist is updated and the first cycle ends; Step 4-4, put the target value in dist into candidate, perform Pareto sorting on the target value in candidate, take out the Pareto first frontier and store its corresponding node number in hx; take out the first node whose state S is 0, assign the node number to u, and let S(u) equal to 1; traverse according to the adjacency matrix, calculate the target value plus of the minimum path from the starting point through node u to node i, plus = dist(:,u)+m(u,i)+m(i,i), then perform Pareto sorting on the i-th column of dist and the target value in plus, find the Pareto first frontier, update the target value dist(:,i) of the minimum path of node i, store the target value obtained by the Pareto first frontier in dist(:,i), and correspondingly store the previous node of node i in the minimum path corresponding to each target value in the Pareto first frontier in the i-th column of prev; when i is equal to n, dist is updated and the second cycle ends; Step 4-5, repeat the operation of step 4-4 until the state S of all nodes is 1, and the algorithm ends; at this point, dist stores the target values of all minimum paths from the starting point to other nodes, and prev stores the previous node of the minimum path corresponding to the target value.
2. A multi-modal multi-objective path planning method according to claim 1, It is characterized in that The modeling process of the undirected graph includes the following steps: Step 1-1, find the nodes in the original grid map data and generate a node set A; Step 1-2: Number all nodes in node set A and record them as index 1 , the index of all nodes 1 The initial value is 0, followed by index 1i ,......,index 1n , at this time A = [node y coordinate, node x coordinate, corresponding node number index 1 ]; Step 1-3, initialize i=1, empty set D, and index the edges between two nodes 2i ,......,index 2n , the set S of nodes adjacent to the node in the feasible direction 3 ; Step 1-4: Find the starting point START in the corresponding map data, that is, index 1i (i=1) The set S of nodes adjacent to it in the feasible direction 3 , calculate the path target value d from the starting point START to its adjacent feasible nodes in sequence i→j ; Steps 1-5: Solve the path target values between nodes according to the following process: ifβ i→j =0: Calculate the path target value d from node i to its adjacent feasible node j i→j ; D i→j Add to set D; else go to step 1-4 until S 3 After all nodes in are traversed, go to step 1-6; End Among them, β is an indicator to determine whether the map area is feasible; Step 1-6, determine whether i is greater than or equal to n, if yes: execute the next step, if not: i=i+1, and go to step 1-4; Step 1-7: Assign weights to paths between two nodes that are not adjacent feasible nodes in the undirected graph: each target value is infinite, such as [inf, inf, inf]; Step 1-8: When the node number index in the node set A 1i ,......,index 1n All are not 0, and the undirected graph modeling is completed.
3. A multi-modal multi-objective path planning method according to claim 1, It is characterized in that In step 2, the steps for solving the adjacency matrix based on the relevant data obtained in the undirected graph modeling process are as follows: according to D[edge number, nodes at both ends of the edge, edge, target value of the edge], to obtain the adjacency matrix m; the adjacency matrix m is an n-order symmetric matrix, where n represents the number of nodes in the map, and D_all_input[i,j] represents the weight of the edge between the node with sequence number i and the node with sequence number j; if i is equal to j, then D_all_input represents the target value of node i; if node i and node j are not adjacent nodes in their respective feasible directions, then D_all_input[i,j] is infinite; then D_all_input is converted into a symmetric matrix to obtain the adjacency matrix m.
Citation Information
Cited By
Multi-target path planning method based on two-dimensional grid map
CN116625395A
Multi-target path planning method based on two-dimensional grid map
CN116625395B
