AGV collaborative scheduling path planning method based on ecosystem optimization algorithm

Through the AGV collaborative dispatching path planning method based on the ecosystem optimization algorithm, the existing technology problems of insufficient global optimization capabilities and slow convergence speed of path planning in a multi-AGV environment are solved, and the multi-AGV collision-free path is quickly solved and improved. Improves the stability and efficiency of path planning.

CN115562308BActive Publication Date: 2024-10-15ZHEJIANG UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202211369431.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2024-10-15
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

Existing AGV path planning methods based on heuristic algorithms have insufficient global optimization capabilities in a multi-AGV environment, and their convergence speed is slow, making it difficult to obtain collision-free driving paths for multiple AGVs in a short period of time.

Method used

The AGV collaborative dispatching path planning method based on the ecosystem optimization algorithm is used to model the production workshop as a two-dimensional grid map, construct obstacle detection parameters, initialize and update path individuals, and utilize the characteristics of herbivores, carnivores and omnivores. The foraging strategy performs path optimization until the maximum number of iterations is reached to obtain the optimal path and handle path conflicts between AGVs.

Benefits of technology

It significantly improves the global optimization capability and convergence speed of multi-AGV path planning, and can calculate multi-AGV collision-free driving paths in a short time, enhancing the stability and efficiency of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562308B_ABST
    Figure CN115562308B_ABST
Patent Text Reader

Abstract

The present invention discloses an AGV collaborative scheduling path planning method based on an ecosystem optimization algorithm, comprising the following steps: step one: modeling a production workshop as a two-dimensional grid map; step two: constructing an obstacle detection matrix; step three: initializing a set number of path individuals according to the starting point and end point of the first AGV; step four: calculating the fitness value of each path individual and updating the decomposer and the producer; step five: each path individual randomly becomes a carnivore, a herbivore or an omnivore, and the individual is updated by applying a corresponding update formula; step six: repeating step five until the maximum number of iterations is reached, and obtaining the optimal path of the AGV; step seven: performing conflict steps three to seven on the remaining AGVs in turn, until the optimal paths of all AGVs are obtained; step eight: detecting conflicts between AGVs in this way, and taking corresponding resolution strategies according to the conflict types.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of path planning for multi-AGV collaborative scheduling, and in particular to an AGV collaborative scheduling path planning method based on an ecosystem optimization algorithm. Background Art

[0002] AGV is commonly used in warehousing systems and cargo handling. It has the characteristics of low cost, low error rate and high efficiency. Traditional manual cargo transportation is inefficient, error-prone and dangerous. With the increase in labor costs, the market demand for AGV is increasing year by year. One of the core issues of AGV is path planning. Path planning is to give a collision-free path from the starting point to the end point under certain constraints. The path planning of a single AGV often only needs to avoid static obstacles, while the path planning of multiple AGVs also involves conflict detection and resolution between AGVs.

[0003] The traditional AGV path planning method has a high time complexity. When encountering large-scale maps, the amount of calculation increases exponentially. Therefore, AGV path planning algorithms based on heuristic algorithms have been developed. Path planning algorithms based on heuristic algorithms such as genetic algorithms and pathfinder algorithms can give a relatively optimal solution in a shorter time, reduce the amount of calculation, and reduce the pressure on the host computer.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0005] The global optimization capability of existing AGV path planning methods based on heuristic algorithms has a slow convergence speed. Summary of the invention

[0006] In response to the problems existing in the prior art, the purpose of the embodiments of the present application is to provide an AGV collaborative scheduling path planning method based on an ecosystem optimization algorithm, which can obtain collision-free driving paths for multiple AGVs in a relatively short time. Compared with existing methods, it has greater advantages in convergence speed, search for global optimal solutions and stability.

[0007] According to a first aspect of an embodiment of the present application, a method for AGV collaborative scheduling path planning based on an ecosystem optimization algorithm is provided, comprising:

[0008] (1) The production workshop is modeled as a two-dimensional grid map map[x][y], where x and y represent the current row and column numbers of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid at the xth row and yth column. When it is false, it means that there is an obstacle on the grid at the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map.

[0009] (2) Construct the obstacle detection parameter dp[x][y][z], which indicates whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable.

[0010] (3) Initialize a predetermined number n of path individuals X1, X2, X3, …, X according to the starting point, end point and obstacle detection parameters of the first AGV. n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map;

[0011] (4) Calculate the fitness value of each path individual and assign the path individual X corresponding to the lowest fitness value i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers;

[0012] (5) Each path individual is randomly assigned to be a herbivore, carnivore, or omnivore, and all path individuals are updated and rationalized. The fitness value of each path individual is calculated, and the path individual X corresponding to the lowest fitness value is selected. i As a decomposer, update all path individuals according to the decomposer;

[0013] (6) Repeat step (5) until the maximum number of iterations is reached, take the path individual with the lowest fitness value as the best path individual, and use this individual as the optimal path for the AGV;

[0014] (7) Repeat steps (3)-(6) for the remaining AGVs until the optimal path for all AGVs is obtained;

[0015] (8) Detect and handle path conflicts between AGVs in sequence. If an AGV encounters a conflict, determine the conflict type. If it is a directional conflict, mark the conflict point as an obstacle and replan the path. Otherwise, adopt a waiting strategy and finally output the conflict-free path of the AGV, so that all AGVs can complete conflict-free path planning.

[0016] Further, in step (3), a predetermined number n of path individuals X1, X2, X3, ..., X n ,include:

[0017] For each X i , randomly pick L random values ​​X rand (x rand1 ,,x rand2 ..), x rand ∈[0,W], each time a random x randWhen x rand and the previous x pre Whether it is passable, the judgment formula is as follows:

[0018]

[0019] Where P = true means it is passable. When it is passable, the next random node x is started. rand , otherwise re-randomize the current node.

[0020] Furthermore, in step (4), the fitness value V of each path individual is calculated. i , the formula is as follows:

[0021]

[0022] Further, in step (4), updating the producer according to the position of the decomposer includes:

[0023] x 生产者 =(1-a)x 消费者 +a×x rand x 生产者 ∈X 生产者 , x 消费者 ∈X 消费者

[0024] a=(1-t÷T)×r1

[0025] x rand =r×(UL)+L

[0026] Where n is the number of path individuals, T is the maximum number of iterations, U and L are the upper and lower limits of the search space, and r and r1 are random values ​​in [0,1].

[0027] Furthermore, in step (4), the producers are discretely rationalized, including:

[0028] The updated result X i Round all elements x to the nearest integer. i Round each element in turn, and then determine the element x. i Whether it is at a traversable node and whether it is the same as the previous element x pre Connected, if the answer is true, update the next node, otherwise check the surrounding elements x from near to far with xi as the center sur , until the condition is met, then it is taken as x i , and then update the next node.

[0029] Furthermore, in step (5), all path individuals are updated, including:

[0030] If X i For herbivores, X i The update formula is:

[0031] x i (t+1)=x i (t)+C×(x i (t)-x 生产者 (t))x i ∈X i

[0032]

[0033] Among them, v1 and v2 are probability density functions with normal distribution, mean 0 and standard deviation 1;

[0034] If X i For carnivores, X i The update formula is:

[0035] x i (t+1)=x i (t)+C×x i (t)-x j (t))

[0036] x j ∈X j , X j Individual herbivores or carnivores

[0037] If X i For omnivores, X i The update formula is:

[0038] x i (t+1)=x i (t)+C×(r2×(x i (t)-x 生产者 (t))+(1r2)(x i (t)-x j (t)))

[0039] x j ∈X j , X j Individual herbivores or carnivores

[0040] r2 is a random number in [0,1].

[0041] Furthermore, in step (5), all path individuals are updated according to the decomposer, including:

[0042] x i (t+1)=x 分解者(t)+D×(e×x 分解者 (t)-h×x i (t))

[0043] D=3×u

[0044] e=r3×randi([1,2])-1

[0045] h=2×r3-1

[0046] Where r3 is a random number in [0,1], randi([1,2]) is a random integer in [1,2], and u is a probability density function with a normal distribution, a mean of 0, and a standard deviation of 1.

[0047] According to a second aspect of an embodiment of the present application, there is provided an AGV collaborative scheduling path planning device based on an ecosystem optimization algorithm, comprising:

[0048] A modeling module is used to model the production workshop as a two-dimensional grid map map[x][y], where x and y represent the current number of rows and columns of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid of the xth row and yth column. When it is false, it means that there is an obstacle on the grid of the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map.

[0049] The construction module is used to construct the obstacle detection parameter dp[x][y][z], which indicates whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable.

[0050] The initialization module is used to initialize a predetermined number n of path individuals X1, X2, X3, …, X according to the starting point, end point and obstacle detection parameters of the first AGV. n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map;

[0051] The calculation module is used to calculate the fitness value of each path individual and the path individual X corresponding to the lowest fitness value i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers;

[0052] The update module is used to randomly assign each path individual to a herbivore, carnivore or omnivore, update and rationalize all path individuals, calculate the fitness value of each path individual, and assign the path individual X corresponding to the lowest fitness value to thei As a decomposer, update all path individuals according to the decomposer;

[0053] Iteration module, used to repeat the steps of update module for iteration until the maximum number of iterations is reached, taking the path individual with the lowest fitness value as the best path individual, and taking this individual as the optimal path for the AGV;

[0054] The repetition module is used to repeat the steps from the initialization module to the iteration module for the remaining AGVs in sequence until the optimal path for all AGVs is obtained;

[0055] The conflict-free planning module is used to detect and handle path conflicts between AGVs in turn. If an AGV encounters a conflict, the conflict type is determined. If it is a directional conflict, the conflict point is marked as an obstacle and the path is replanned. Otherwise, a waiting strategy is adopted. Finally, the conflict-free path of the AGV is output, so that all AGVs can complete conflict-free path planning.

[0056] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including:

[0057] one or more processors;

[0058] A memory for storing one or more programs;

[0059] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect.

[0060] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0061] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0062] It can be seen from the above embodiments that the present application proposes an AGV collaborative scheduling path planning algorithm based on the ecosystem optimization algorithm for the multi-AGV path planning problem, which solves the problems of insufficient global optimization ability and slow convergence speed of existing heuristic algorithms in solving AGV path planning problems, enhances the global optimization ability and accelerates the convergence speed.

[0063] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. Figure 1It is a flow chart of a method for AGV collaborative scheduling path planning based on an ecosystem optimization algorithm according to an exemplary embodiment.

[0065] Figure 2 It is a schematic diagram of an AGV path planning case map according to an exemplary embodiment.

[0066] Figure 3 It is a schematic diagram of a two-dimensional matrix map of a Boolean type after modeling according to an exemplary embodiment.

[0067] Figure 4 is a schematic diagram showing iterative results of a discrete ecosystem optimization algorithm for AGV1 according to an exemplary embodiment.

[0068] Figure 5 is a schematic diagram showing iterative results of a discrete ecosystem optimization algorithm for AGV2 according to an exemplary embodiment.

[0069] Figure 6 It is a schematic diagram showing the iterative results of the discrete ecosystem optimization algorithm of AGV3 according to an exemplary embodiment.

[0070] Figure 7 FIG. 4 is a conflict diagram between AGVs according to an exemplary embodiment.

[0071] Figure 8 It is a path fitness iteration diagram of a genetic algorithm, a pathfinder algorithm, a sine-cosine algorithm, and an ecosystem optimization algorithm according to an exemplary embodiment.

[0072] Fig. 9 It is a block diagram of an AGV collaborative scheduling path planning device based on an ecosystem optimization algorithm according to an exemplary embodiment.

[0073] Fig.10 The diagram is a schematic diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0074] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0075] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0076] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0077] Figure 1 is a flow chart of an AGV collaborative scheduling path planning method based on a discrete ecosystem optimization algorithm according to an exemplary embodiment. Figure 1 As shown, the method may include the following steps:

[0078] (1) The production workshop is modeled as a two-dimensional grid map map[x][y], where x and y represent the current row and column numbers of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid at the xth row and yth column. When it is false, it means that there is an obstacle on the grid at the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map.

[0079] (2) Construct the obstacle detection parameter dp[x][y][z], which indicates whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable.

[0080] (3) Initialize a predetermined number n of path individuals X1, X2, X3, …, X according to the starting point, end point and obstacle detection parameters of the first AGV. n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map;

[0081] (4) Calculate the fitness value of each path individual and assign the path individual X corresponding to the lowest fitness value i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers;

[0082] (5) Each path individual is randomly assigned to be a herbivore, a carnivore or an omnivore, and all path individuals are updated and rationalized for discretization, the fitness value of each path individual is calculated, and the path individual Xi corresponding to the lowest fitness value is used as the decomposer, and all path individuals are updated according to the decomposer;

[0083] (6) Repeat step (5) until the maximum number of iterations is reached, take the path individual with the lowest fitness value as the best path individual, and use this individual as the optimal path for the AGV;

[0084] (7) Repeat steps (3)-(6) for the remaining AGVs until the optimal path for all AGVs is obtained;

[0085] (8) Detect and handle path conflicts between AGVs in sequence. If an AGV encounters a conflict, determine the conflict type. If it is a directional conflict, mark the conflict point as an obstacle and replan the path. Otherwise, adopt a waiting strategy and finally output the conflict-free path of the AGV, so that all AGVs can complete conflict-free path planning.

[0086] It can be seen from the above embodiments that the present application proposes an AGV collaborative scheduling path planning algorithm based on the ecosystem optimization algorithm for the multi-AGV path planning problem, which solves the problems of insufficient global optimization ability and slow convergence speed of existing heuristic algorithms in solving AGV path planning problems, enhances the global optimization ability and accelerates the convergence speed.

[0087] In the specific implementation of step (1), the production workshop is modeled as a two-dimensional grid map map[x][y], where x and y represent the current row number and the current column number of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid of the xth row and yth column. When it is false, it means that there is an obstacle on the grid of the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map.

[0088] Specifically, refer to Figure 2 , Figure 2 is a schematic diagram of an AGV path planning case map according to an exemplary embodiment. Gray represents obstacles, and black represents the starting point and the end point. In this embodiment, there are three AGVs working at the same time. Figure 3 This is the two-dimensional matrix of the modeled map. The map size is 48*48. A space represents true, and 1 represents false, indicating passable and impassable respectively.

[0089] The grid map can be represented by a two-dimensional matrix, so it is a map representation that is easy to construct, represent and save. The grid side length in the grid map should be slightly larger than the length of the AGV. If it is too large, it is not easy to reflect the map details, and if it is too small, it is easy to cause the AGV to collide.

[0090] In the specific implementation of step (2), an obstacle detection parameter dp[x][y][z] is constructed to indicate whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable.

[0091] Specifically, the following formula is used to calculate the three-dimensional obstacle detection parameters:

[0092]

[0093] For example,

[0094] dp[2][2][2] = map[2][2] = false, indicating that there is an obstacle at the 2nd row and 2nd column.

[0095] dp[2][2][3] = dp[2][2][2] AND map[2][3] = false, indicating that there is an obstacle on the path from row 2, column 2 to row 2, column 3.

[0096] The three-dimensional obstacle construction matrix is ​​constructed during the startup phase of the scheduling system. The matrix records whether the two nodes are passable, which greatly saves the obstacle detection calculation required in the AGV path planning process. Using dynamic programming to construct the three-dimensional obstacle detection matrix can greatly reduce the calculation amount of constructing the matrix.

[0097] In the specific implementation of step (3), a predetermined number n of path individuals X1, X2, X3, ..., X n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map;

[0098] Specifically, the path is represented in the form of a vector, and the value of each node in the vector represents the column coordinates of the node that the corresponding row must pass through in the grid map. In one embodiment, the number of iterations is defined as 1500 and the number of individual paths is defined as 500. The starting coordinates of AGV1 are (1, 1) and the end point is (48, 48). The starting coordinates of AGV2 are (1, 24) and the end point is (48, 25). The starting coordinates of AGV3 are (1, 48) and the end point is (48, 1). Then, the paths of the three AGVs are planned separately, and 500 paths (X1, X2..X 500) individuals, for each X i , randomly pick L random values ​​X rand (x rand1 ,,x rand2 ..), x rand ∈[0,W], each time a random x rand When x rand and the previous x pre Whether it is passable, the judgment formula is as follows:

[0099]

[0100] Where P = true means it is passable. When it is passable, the next random node x is started. rand , otherwise re-randomize the current node.

[0101] For example, path individual X i The first three nodes of are 1, 5, and 2. Calculate the connectivity between the third node and the second node. P = dp[2][5][2] OR dp[3][5][2] = false, which means that the second node is not connected to the third node. Therefore, we need to change a node again until all path individuals X are connected. i All node elements x i Until initialization is completed.

[0102] The three-dimensional obstacle detection matrix constructed in step (2) is used to determine whether the nodes in the upper and lower rows are passable. The pass paths of the upper row nodes and the lower row nodes can be divided into two. For example, if the upper row nodes are on the left and the lower row nodes are on the right, the first pass path is to go right first and then go down, and the second pass path is to go down first and then go right. If one of the two paths is passable, it means that the two nodes are passable.

[0103] In the specific implementation of step (4), the fitness value of each path individual is calculated, and the path individual X corresponding to the lowest fitness value is i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers;

[0104] Specifically, first calculate the fitness value V of each path individual i , the formula is as follows:

[0105]

[0106] For example, the first 7 codes of the path individuals are (5,5,5,5,7,7,7), and the path fitness value A = 4+1+1+1+3+1+1+2 = 14. The lowest fitness value means the best path, which also means the highest energy. The decomposer will appear on the individual with the lowest fitness value, so the path individual with the lowest fitness value is selected as the decomposer. The inorganic matter produced by the decomposer will affect the movement of the producer, so the producer is updated according to the position of the decomposer, including:

[0107] x 生产者 =(1-a)x 分解者 +a×x rand x 生产者 ∈X 生产者 , x 分解者 ∈X 分解者

[0108] a=(1-t÷T)×r1

[0109] x rand =r×(UL)+L

[0110] Where T is the maximum number of iterations, U and L are the upper and lower limits of the search space (i.e., the value range of the column coordinates of a row of nodes). In a 48*48 grid map, U=48, L=0, r and r1 are random values ​​in [0,1], and a is a random coefficient that decreases with the increase of iterations, so that the path individuals tend to converge in the later stages of iteration.

[0111] It should be noted that the "update the producer according to the position of the decomposer" in this step is a general description. In the first round of iteration, it should actually be "initialize the producer according to the position of the decomposer", which means initializing a new path individual according to the position of the decomposer and using the path individual as the producer. It can be seen that the n path individuals initialized in step (3) are all consumers except the decomposer.

[0112] After updating the producer, X i It is still continuous and cannot be directly converted into an available path, so the producers are rationalized discretely, including:

[0113] The updated result X i Round all elements x to the nearest integer. i Round each element in turn, so that each element is specifically mapped to each node. After rounding each element, determine the element x i Whether it is at a traversable node and whether it is the same as the previous element x pre Connected, if the answer is true, update the next node, otherwise update x i Check the surrounding elements x from near to far in order as the center sur, until the condition is met, then it is taken as x i , then update the next node, so that the node corresponding to the element can be passed and connected to the previous node, where the element x is judged i Is it the same as the previous element x? pre The calculation formula of the connectivity index B is:

[0114]

[0115] For example, the first three node elements of Xi are encoded as (1.4, 5.2, 4.1), which become (1, 5, 4) after rounding. The calculation B = map[3][4] AND (dp[2][5][4] OR dp[3][5][4]) = false, so the node xi moves to the surrounding, first to xi = 5, and then recalculate B = map[3][5] AND (dp[2][5][5] OR dp[3][5][5]) = true, so the third node x i =5, the first three codes are (1, 5, 5).

[0116] Each element in the updated path individual is a decimal and cannot represent a certain node, so it needs to be discretized. In order to be close to the updated value, the rounding method is used for discretization. The discretized integer needs to meet two conditions at the same time. The first condition is that there are no obstacles at the node, and the second condition is that it can be connected to the previous node. Therefore, a judgment is required. If the above two conditions are not met, the node is taken as the center and the range is gradually expanded to detect whether the nodes on both sides meet the above two conditions at the same time. The nodes that meet the above two conditions are regarded as available nodes.

[0117] In the specific implementation of step (5), each path individual is randomly assigned to be a herbivore, a carnivore or an omnivore, all path individuals are updated and rationalized, the fitness value of each path individual is calculated, and the path individual X corresponding to the lowest fitness value is i As a decomposer, update all path individuals according to the decomposer;

[0118] Specifically, different animals have different foraging strategies, and different foraging strategies correspond to different update formulas. If X i For herbivores, the foraging strategy of herbivores will be affected by producers, so X i The update formula is:

[0119] x i (t+1)=x i (t)+C×(x i (t)-x 生产者 (t))x i ∈Xi

[0120]

[0121] Among them, v1 and v2 are probability density functions with normal distribution, mean 0 and standard deviation 1, and C is the random fluctuation in the update process;

[0122] If X i If X is a carnivore, the foraging strategy of herbivores will be affected by other individuals, so i The update formula is:

[0123] x i (t+1)=x i (t)+C×x i (t)-x j (t))

[0124] x j ∈X j , X j Individual herbivores or carnivores

[0125] If X i For omnivores, the foraging strategy of herbivores will be affected by producers and other individuals at the same time, so X i The update formula is:

[0126] x i (t+1)=x i (t)+C×(r2×(x i (t)-x 生产者 (t))+(1r2)(x i (t)-x j (t)))

[0127] x j ∈X j , X j Individual herbivores or carnivores

[0128] r2 is a random number in [0,1].

[0129] After updating, perform discretization rationalization. For all path individuals X i After the update, the path fitness value is recalculated, and the individual with the lowest fitness value is selected as the decomposer. The decomposer will appear at the highest energy point, and all path individuals will be affected by the decomposer at the highest energy point. Therefore, all path individuals are updated according to the decomposer, including:

[0130] x i (t+1)=x 分解者 (t)+D×(e×x 分解者(t)-h×x i (t))

[0131] D=3×u

[0132] e=r3×randi([1,2])-1

[0133] h=2×r3-1

[0134] Where r3 is a random number in [0,1], randi([1,2]) is a random integer in [1,2], u is a probability density function with a normal distribution, a mean of 0, and a standard deviation of 1, and D is a random fluctuation.

[0135] While practicing their own predation strategies, each consumer will also move closer to the decomposers (with the highest ability) because there may be more prey near the highest energy point.

[0136] In the specific implementation of step (6), step (5) is repeated for iteration until the maximum number of iterations is reached, and the best path individual is obtained as the optimal path;

[0137] Specifically, we start from the producer and re-update the iteration until the upper limit T of the number of iterations is reached, and then get the minimum fitness result. Figure 4 As shown in the optimal path diagram, a relatively optimal solution is obtained. The same steps are used to plan the paths of AGV2 and AGV3, and the following are obtained: Figure 5 and Figure 6 The optimal path diagram. T should be selected according to the actual production situation. A small value has a fast calculation speed, but it is not easy to obtain the global optimal solution, and a large value has a large amount of calculation.

[0138] In the specific implementation of step (7), steps (3)-(6) are repeated for the remaining AGVs in sequence until the optimal path of all AGVs is obtained;

[0139] In the specific implementation of step (8), the path conflicts between AGVs are detected and processed in turn. If an AGV encounters a conflict, the conflict type is determined. If it is a directional conflict, the conflict point is marked as an obstacle and the path is replanned. Otherwise, a waiting strategy is adopted. Finally, the conflict-free path of the AGV is output, so that all AGVs complete the conflict-free path planning.

[0140] Specifically, detect whether there is a conflict between AGV paths, and establish a two-dimensional matrix hashmap[x][y] of type hash table for the map, which means that a hash table is maintained for each node. The hash table uses time period t as the key and AGV driving direction p as the value, indicating that an AGV occupies this node and the direction is p at time t. Traverse the nodes passed by the current AGV's optimal path, query the hash table, whether there is an AGV passing this node and the next target node at the current time point, if true, it means there is no conflict, record the time t and the AGV driving direction, and check the next node, otherwise there is a conflict. When a conflict occurs, first get the driving direction of the previous AGV at this node from the hash table, and then determine the conflict type based on the driving direction of the current AGV, whether it is a conflict in the opposite direction. If it is a conflict in the opposite direction, treat the previous node as an obstacle and replan the path, otherwise take waiting measures, and then perform conflict detection on the next AGV. After processing all AGV's conflict-free paths, end and output the results.

[0141] For example, Figure 7 As shown in the figure, path A1 is the best path for the first AGV. When it reaches the conflict point, the first AGV adds the key-value pair (7, r) to the hash table corresponding to the conflict point, indicating that in the 7th time period, an AGV occupies this node and the direction is right. Path A2 is the best driving path for the second AGV. When it reaches the conflict point, it determines whether there is a key-value pair with 7 as the key in the hash table. If there is, it means there is a conflict. Then the value is r (right), and its own direction is d (downward). Therefore, a waiting strategy can be adopted. Then the key-value pair (7, d) is added to the hash table of the node before the conflict point of the second AGV, indicating that the AGV is also located at this node in the 7th time period. It drives again in the 8th time period until a conflict-free path for all AGVs is planned.

[0142] This application also compares the AGV collaborative scheduling path planning method based on the ecosystem optimization algorithm (method one) with the AGV collaborative scheduling path planning method based on the genetic algorithm (method two), the AGV collaborative scheduling path planning method based on the pathfinder algorithm (method three), and the AGV collaborative scheduling path planning method based on the sine-cosine algorithm (method four). Figure 8 The iterative line graphs of path fitness considering path length and smoothness are shown for methods 1, 2, 3, and 4. Figure 8 As shown, it can be seen that the discrete ecosystem optimization algorithm has good global optimization ability and fast convergence speed.

[0143] Corresponding to the aforementioned embodiment of the AGV collaborative scheduling path planning method based on the ecosystem optimization algorithm, the present application also provides an embodiment of the AGV collaborative scheduling path planning device based on the ecosystem optimization algorithm.

[0144] Fig. 9 1 is a block diagram of an AGV collaborative scheduling path planning device based on an ecosystem optimization algorithm according to an exemplary embodiment. Fig. 9 , the device may include:

[0145] A modeling module 21 is used to model the production workshop as a two-dimensional grid map map[x][y], where x and y represent the current number of rows and columns of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid of the xth row and yth column. When it is false, it means that there is an obstacle on the grid of the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map.

[0146] A construction module 22 is used to construct an obstacle detection parameter dp[x][y][z], which indicates whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable.

[0147] Initialization module 23 is used to initialize a predetermined number n of path individuals X1, X2, X3, ..., X according to the starting point, end point and obstacle detection parameters of the first AGV. n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map;

[0148] The calculation module 24 is used to calculate the fitness value of each path individual and calculate the path individual X corresponding to the lowest fitness value. i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers;

[0149] The updating module 25 is used to randomly assign each path individual to a herbivore, a carnivore or an omnivore, update and rationalize all path individuals, calculate the fitness value of each path individual, and assign the path individual X corresponding to the lowest fitness value to the path individual X. i As a decomposer, update all path individuals according to the decomposer;

[0150] Iteration module 26, used to repeat the steps of the update module to iterate until the maximum number of iterations is reached, taking the path individual with the lowest fitness value as the best path individual, and taking this individual as the optimal path of the AGV;

[0151] A repeating module 27 is used to repeat the steps from the initialization module to the iteration module for the remaining AGVs in sequence until the optimal path of all AGVs is obtained;

[0152] The conflict-free planning module 28 is used to detect and process the path conflicts between AGVs in turn. If an AGV encounters a conflict, the conflict type is determined. If it is a directional conflict, the conflict point is marked as an obstacle and the path is replanned. Otherwise, a waiting strategy is adopted. Finally, the conflict-free path of the AGV is output, so that all AGVs complete the conflict-free path planning.

[0153] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0154] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0155] Accordingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned AGV collaborative scheduling path planning method based on the ecosystem optimization algorithm. Fig.10 As shown, it is a hardware structure diagram of any device with data processing capability in which an AGV collaborative scheduling path planning method based on an ecosystem optimization algorithm provided by an embodiment of the present invention is located. Fig.10 In addition to the processor, memory and network interface shown, any device with data processing capability in which the apparatus in the embodiment is located may also include other hardware, generally based on the actual functions of the device with data processing capability, which will not be described in detail.

[0156] Correspondingly, the present application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by the processor, the AGV collaborative scheduling path planning method based on the ecosystem optimization algorithm as described above is implemented. The computer-readable storage medium can be an internal storage unit of any device with data processing capabilities described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium can also include both an internal storage unit and an external storage device of any device with data processing capabilities. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capabilities, and can also be used to temporarily store data that has been output or is to be output.

[0157] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the contents disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0158] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A collaborative scheduling path planning method for AGV based on ecosystem optimization algorithm, It is characterized in that include: (1) The production workshop is modeled as a two-dimensional grid map map[x][y], where x and y represent the current row and column numbers of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid at the xth row and yth column. When it is false, it means that there is an obstacle on the grid at the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map. (2) Construct the obstacle detection parameter dp[x][y][z], which indicates whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable. (3) Initialize a predetermined number n of path individuals X according to the starting point, end point and obstacle detection parameters of the first AGV 1 ,X 2 ,X 3 ,…,X n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map; (4) Calculate the fitness value of each path individual and assign the path individual X corresponding to the lowest fitness value i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers; (5) Each path individual is randomly assigned to be a herbivore, a carnivore or an omnivore, all path individuals are updated and rationalized, the fitness value of each path individual is calculated, and the path individual Xi corresponding to the lowest fitness value is used as the decomposer, and all path individuals are updated according to the decomposer; (6) Repeat step (5) until the maximum number of iterations is reached, take the path individual with the lowest fitness value as the best path individual, and use this individual as the optimal path for the AGV; (7) Repeat steps (3)-(6) for the remaining AGVs until the optimal path for all AGVs is obtained; (8) Detect and process the path conflicts between AGVs in sequence. If an AGV encounters a conflict, determine the conflict type. If it is a directional conflict, mark the conflict point as an obstacle and replan the path. Otherwise, adopt a waiting strategy and finally output the conflict-free path of the AGV, so that all AGVs complete the conflict-free path planning. In step (4), calculate the fitness value V of each path individual i , the formula is as follows: In step (4), updating the producer according to the position of the decomposer includes: x 生产者 =(1-a)x 消费者 +a×x rand x 生产者 ∈X 生产者 ,x 消费者 ∈X 消费者 a=(1-t÷T)×r 1 x rand =r×(UL)+L Where n is the number of path individuals, T is the maximum number of iterations, U and L are the upper and lower limits of the search space, and r and r1 are random values ​​in [0,1]; In step (4), the producers are discretely rationalized, including: The updated result X i Round all elements x to the nearest integer. i Round each element in turn, and then determine the element x. i Whether it is at a traversable node and whether it is the same as the previous element x pre Connected, if the answer is true, update the next node, otherwise update x i Check the surrounding elements x from near to far in order as the center sur , until the condition is met, then it is taken as x i , then update the next node; In step (5), all path individuals are updated, including: If X i For herbivores, X i The update formula is: x i (t+1)=x i (t)+C×(x i (t)-x 生产者 (t))x i ∈X i Among them, v 1 and v 2 is a probability density function with a normal distribution, a mean of 0 and a standard deviation of 1; If X i For carnivores, X i The update formula is: x i (t+1)=x i (t)+C×(x i (t)-x j (t)) x j ∈X j , X j Individual herbivores or carnivores If X i For omnivores, X i The update formula is: x i (t+1)=x i (t)+C×(r 2 ×(x i (t)-x 生产者 (t))+(1-r 2 )(x i (t)-x j (t))) x j ∈X j , X j Individual herbivores or carnivores r 2 is a random number in [0,1]; In step (5), all path individuals are updated according to the decomposer, including: x i (t+1)=x 分解者 (t)+D×(e×x 分解者 (t)-h×x i (t)) D=3×u e=r 3 ×randi([1,2])-1 h=2×r 3 -1 Among them, r 3 is a random number in [0,1], randi([1,2]) is a random integer in [1,2], and u is a probability density function with a normal distribution, mean 0, and standard deviation 1.

2. The method according to claim 1, It is characterized in that In step (3), a predetermined number n of path individuals X are initialized 1 ,X 2 ,X 3 ,…,X n ,include: For each Xi, randomly pick L random values ​​X rand (x rand1 ,,x rand2 ..), x rand ∈[0,W], each time a random x rand When x rand and the previous x pre Whether it is passable, the judgment formula is as follows: Where P = true means it is passable. When it is passable, the next random node x is started. rand , otherwise re-randomize the current node.

3. An AGV collaborative scheduling path planning device based on ecosystem optimization algorithm, It is characterized in that include: A modeling module is used to model the production workshop as a two-dimensional grid map map[x][y], where x and y represent the current number of rows and columns of the grid map, respectively. When map[x][y] is true, it means that there is no obstacle on the grid of the xth row and yth column. When it is false, it means that there is an obstacle on the grid of the xth row and yth column. x, y, x∈[0,L], y∈[0,W], L represents the maximum number of rows of the grid map, and W represents the maximum number of columns of the grid map. The construction module is used to construct the obstacle detection parameter dp[x][y][z], which indicates whether there is an obstacle on the straight path between grid map[x][y] and grid map[x][z]. True means it is passable, and false means it is not passable. Initialization module, used to initialize a predetermined number n of path individuals X according to the starting point, end point and obstacle detection parameters of the first AGV 1 ,X 2 ,X 3 ,…,X n ,in, x i Represents the y coordinate of the node that must be passed in the i-th row of the map; The calculation module is used to calculate the fitness value of each path individual and the path individual X corresponding to the lowest fitness value i As a decomposer, updating producers according to the positions of said decomposers and performing discrete rationalization on said producers; The update module is used to randomly assign each path individual to a herbivore, carnivore or omnivore, update and rationalize all path individuals, calculate the fitness value of each path individual, and assign the path individual X corresponding to the lowest fitness value to the i As a decomposer, update all path individuals according to the decomposer; Iteration module, used to repeat the steps of update module for iteration until the maximum number of iterations is reached, taking the path individual with the lowest fitness value as the best path individual, and taking this individual as the optimal path for the AGV; The repetition module is used to repeat the steps from the initialization module to the iteration module for the remaining AGVs in sequence until the optimal path for all AGVs is obtained; The conflict-free planning module is used to detect and handle the path conflicts between AGVs in turn. If an AGV encounters a conflict, the conflict type is determined. If it is a directional conflict, the conflict point is marked as an obstacle and the path is replanned. Otherwise, a waiting strategy is adopted. Finally, the conflict-free path of the AGV is output, so that all AGVs complete the conflict-free path planning. In the calculation module, the fitness value V of each path individual is calculated i , the formula is as follows: In the calculation module, the producer is updated according to the position of the decomposer, including: x 生产者 =(1-a)x 消费者 +a×x rand x 生产者 ∈X 生产者 ,x 消费者 ∈X 消费者 a=(1-t÷T)×r 1 x rand =r×(UL)+L Where n is the number of path individuals, T is the maximum number of iterations, U and L are the upper and lower limits of the search space, and r and r1 are random values ​​in [0,1]; In the calculation module, the producers are discretely rationalized, including: The updated result X i Round all elements x to the nearest integer. i Round each element in turn, and then determine the element x. i Whether it is at a traversable node and whether it is the same as the previous element x pre Connected, if the answer is true, update the next node, otherwise update x i Check the surrounding elements x from near to far in order as the center sur , until the condition is met, then it is taken as x i , then update the next node; In the update module, all path individuals are updated, including: If X i For herbivores, X i The update formula is: x i (t+1)=x i (t)+C×(x i (t)-x 生产者 (t))x i ∈X i Among them, v 1 and v 2 is a probability density function with a normal distribution, a mean of 0 and a standard deviation of 1; If X i For carnivores, X i The update formula is: x i (t+1)=x i (t)+C×(x i (t)-x j (t)) x j ∈X j , X j Individual herbivores or carnivores If X i For omnivores, X i The update formula is: x i (t+1)=x i (t)+C×(r 2 ×(x i (t)-x 生产者 (t))+(1-r 2 )(x i (t)-x i (t))) x j ∈X j , X j Individual herbivores or carnivores r 2 is a random number in [0,1]; In the update module, all path individuals are updated according to the decomposer, including: x i (t+1)=x 分解者 (t)+D×(e×x 分解者 (t)-h×x i (t)) D=3×u e=r 3 ×randi([1,2])-1 h=2×r 3 -1 Among them, r 3 is a random number in [0,1], randi([1,2]) is a random integer in [1,2], and u is a probability density function with a normal distribution, mean 0, and standard deviation 1.

4. An electronic device, It is characterized in that include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 2.

5. A computer-readable storage medium having computer instructions stored thereon, It is characterized in that When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Cited By

  • Multi-AGV cooperative scheduling system and method based on Internet of Things technology, and electronic equipment

    CN120579927A