Genetic algorithm continuous search path planning method for limited direction coding

Through the continuous search path planning method of genetic algorithm limited direction encoding, the problem of large randomness and discontinuity of path planning in unmanned system target search is solved, the search success rate and efficiency are improved, and the path length and higher are achieved resource utilization efficiency.

CN119047546AActive Publication Date: 2024-11-29HARBIN UNIV OF SCI & TECH

Patent Information

Application Number
CN202411059422.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-03
Publication Date
2024-11-29
Estimated Expiration
2044-08-03

AI Technical Summary

Technical Problem

The existing unmanned system target search path planning method has problems such as high randomness in path planning, low search success rate, discontinuity of paths and long path lengths, which affects search efficiency and resource utilization efficiency.

Method used

The continuous search path planning method of genetic algorithm with limited direction encoding is adopted. By constructing a static target model, designing negative information of probability maps, constructing population matrix and coordinate summary matrix, and iterative optimization of the genetic algorithm to limit the path points and improve gene coding methods to ensure continuity between pathway points and search success rate.

Benefits of technology

It improves the search success rate, shortens the path length, reduces the overall search time, improves the utilization efficiency of search resources, and significantly improves the probability of search success and the continuity of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047546A_ABST
    Figure CN119047546A_ABST
Patent Text Reader

Abstract

The invention provides a genetic algorithm continuous search path planning method for limited direction coding, and aims to solve the problems of low search success rate, discontinuous path, relatively long path length, large transfer time consumption between path points and the like in the existing method in the field of target search path planning. The method mainly comprises the following steps: improving a gene coding mode, and designing an edge return mechanism by taking a transformation direction between path points instead of directly taking the path points as genes; the transformation direction between the path points is limited to be a specified grid probability direction, so that excessive randomness of path point extension is avoided; carrying out iterative optimization by using a genetic algorithm; continuous path planning of adjacent grids is realized, and the number of the grids across the path points is reduced. Simulation results show that according to the method, the search success rate is increased, the path length is shortened, the total search time is shortened, the utilization rate of search resources is increased, and a new solution is provided for search path planning in the fields of lifeboat raft appliance manufacturing and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned system target search, in particular to a path planning technology for static target search, and in particular to a genetic algorithm continuous search path planning method with limited direction coding. Background Art

[0002] In today's marine engineering equipment manufacturing field, many high-end technologies and equipment are involved, such as light alloy motor housing casting or welding equipment, submarine pipeline welding equipment, drilling ships (barges), semi-submersible transport ships, etc. These equipment play an important role in the development and utilization of marine resources. At the same time, auxiliary equipment such as marine hydrological and geological survey winches, deep-sea general materials and connectors, and the application of advanced equipment such as high-frequency ground waves, S / C / X-band wave radars, provide strong technical support for marine engineering. In addition, the continuous development of marine water quality and ecological element monitoring, acoustic, optical measurement and detection equipment has provided important means for hydrological, meteorological and water quality observations, such as hydrological and meteorological observation sensors, equipment and systems, buoys, submersible buoys, seabed bases, mobile observation platforms, etc.

[0003] However, in the process of manufacturing and operating marine engineering equipment, how to efficiently plan the target search path has become an urgent problem to be solved. Especially in the manufacturing process of special marine engineering equipment such as polar icebreakers and drop tube riprap ships, as well as in the field of salvage equipment such as lifeboats and rafts, inflatable life rafts, the requirements for search path planning are more stringent. In addition, the research and development of equipment such as submarine cable fault detection equipment connectors, maritime life jackets, and marine rubber and plastic life buoys have also posed new challenges to underwater search path planning.

[0004] Target search path planning is a key issue in the fields of robot navigation, autonomous vehicles, and drones. Its core task is to plan a path so that when the search unmanned boat moves along this path, the probability of searching the target is as high as possible. In the field of target search path planning, improving search efficiency and success rate has always been the focus of research. With the development of technology, the path planning method for target search based on probability graphs has become an important means to solve such problems. In complex environments, the search path planning method based on probability graphs has attracted widespread attention because it can effectively deal with the uncertainty of target positions. The probability graph represents the environment in a rasterized manner, and each grid contains the probability information of the target's existence, thereby providing a decision basis for path planning. However, the existing methods still have some shortcomings, which limit their effectiveness in practical applications.

[0005] The problems of existing methods mainly include the following aspects:

[0006] (1) Path planning is highly random and the search success rate is low: The path point extension of the existing genetic algorithm without a limited direction is highly random, which can easily cause the search path to deviate from the optimal solution, affecting the search effect and the search success rate. This affects the efficiency and reliability of path planning. For example, the genetic algorithm gene encoding method in the papers "Research on UAV Search Path Planning Based on Improved Genetic Algorithm", "Research on Collaborative Search Path Planning Algorithm for Targets Falling into the Water at Sea", and "AUV Dynamic Target Search Algorithm Based on Improved Genetic Algorithm" all use path points as genes, without limiting the extension direction of the path points, resulting in high randomness and a low search success rate.

[0007] (2) Poor continuity of path planning: When planning a path, traditional myopic search path planning methods often have path points that span multiple grids, resulting in discontinuity of the path, increasing the time consumption of transferring between path points, and reducing the efficiency of the search task. For example, in Section 8.02 of the literature "Naval Operations Analysis", "Naval Tactical Decision Aids", and "The Theory of Search: Optimum Distribution of Research Effort", the path points of the myopic search method span multiple grids.

[0008] (3) The path length is long and the search success rate is not high: Although the path planning method of myopic search can find a feasible path, the path length is often long, resulting in insufficient utilization of search resources. At the same time, the search success probability needs to be improved.

[0009] Aiming at the problems that the path points of the existing genetic algorithm with no limited direction have large randomness in extension and the search success rate is not high; the path points of the traditional myopic search path planning method span multiple grids, the path is discontinuous, and the time consumption of transferring between the path points is large; the path length of the myopic search path planning method is long, and the search success probability also needs to be improved, the present invention provides a genetic algorithm continuous search path planning method with limited direction coding, which improves the search success rate, shortens the path length, reduces the overall search time, and improves the utilization efficiency of search resources. Summary of the invention

[0010] To achieve the above object, the present invention provides a genetic algorithm continuous search path planning method with limited direction coding, which specifically includes the following steps:

[0011] S1, construct a static target model;

[0012] S2, Bayesian update method of negative information for design probability graph;

[0013] S3, constructing a population matrix and a coordinate summary matrix, and initializing the population;

[0014] S4. On this basis, set the parameters of the genetic algorithm, and perform iteration and optimization of the genetic algorithm;

[0015] S5. Simulation verifies the effectiveness of the proposed method.

[0016] The overall block diagram of the present invention is as follows: Figure 1 shown.

[0017] Wherein, step S1 is specifically as follows:

[0018] Construct a static target model:

[0019] Discretize the map and divide it into R×R grids (R is a positive integer), with a total of R rows and R columns. The initial target location probability map is deconstructed by the pre-multiple assumptions. The probability in each grid is the probability that the target is located in the grid. Let grid (i, j) be the grid in the i-th row and j-th column. The number of targets and search unmanned boats is 1.

[0020] The initial target position probability map is as follows Figure 2 In the figure, the target distribution probability is the number in the figure multiplied by 10 -4 .

[0021] Wherein, step S2 is specifically as follows:

[0022] Design a Negative Information Bayesian Update Method for Probability Maps:

[0023] Take the negative information as a new condition and use Bayes' theorem to update the probability graph. The Bayesian formula is as follows:

[0024]

[0025] In the formula, A and B are events, P(A k )、P(A l ) are respectively event A k , A l The probability of P(B|A k )、P(B|A l ) are respectively event A k , A l The probability of event B under the condition, P(A k |B) is event A under the condition of event B k The probability of n is the total number of event A. The Bayesian formula can reverse the conditions and conclusions of an event to find the probability of an event with reversed conditions and conclusions. The Bayesian formula combined with a specific scenario is as follows:

[0026]

[0027] Where P(target in (i, j)) is the probability of the target in grid (i, j) in advance, P(not detected|target in (i, j)) is the probability of not detecting the target under the condition that the target is in grid (i, j), and P(target in (i, j)|not detected) is the probability of the target in grid (i, j) under the condition that the target is not detected. The pre-P(target at (i, j))×P(not detected|target at (i, j)) is called the normalization factor; let the probability of search failure be:

[0028]

[0029] The probability of successful search is 1-S; let the Cumulative Detection Probability (CDP) be the probability of successful search P scs :

[0030] P scs =1-S (4)

[0031] Use a single unmanned boat to search for a single target. The purpose of this method is to plan a path so that when the search unmanned boat moves along this path, the probability of searching the target is as high as possible. Let t int is the time interval between adjacent path points. Assuming that the unmanned boat searches continuously during movement, each path point is located at the center of the grid, and assuming that the time taken by the unmanned boat to pass through each grid is equal, then t int It is both the time interval between adjacent path points and the single search time, that is, the time it takes for the unmanned boat to pass through a grid. Single search probability P s is the search success rate of the target in the previous grid of the current path point, when the unmanned boat passes through this grid. int The success probability of a search is recorded.

[0032] Wherein, step S3 is specifically as follows:

[0033] Construct the population matrix and coordinate summary matrix, and initialize the population:

[0034] Use the matrix concept to manage data. Construct an N×M population matrix, where N is the population size, that is, the number of chromosomes in the population, and M is the number of genes in a single chromosome, that is, the length of the chromosome. Here, one individual corresponds to one chromosome. At the same time, construct an N×(2M+2) coordinate summary matrix. Let t pr is the total search time, t int Single search time.

[0035] Each path is regarded as a chromosome. The traditional method regards the path points on the path as genes, while this method regards the transformation between the path points at the previous moment and the next moment as genes. Therefore,

[0036]

[0037] The schematic diagram of the relationship between the population matrix and the coordinate summary matrix is ​​as follows Figure 3 .

[0038] In the population matrix (circular matrix), each row of this matrix represents a sequence of path point transformations in a path. In the coordinate summary matrix (elliptical matrix), each row of this matrix represents a sequence of path point coordinates in a path. In order to prevent the search drone from moving to an area with a lower probability due to excessive randomness, the transformation method between path points at adjacent moments is designed as follows: the gene value N in each chromosome p It can be [1,2,3,…,M p ], where M p is a positive integer. If the gene value is equal to N p , then the path point transformation method is that the path point coordinates at the next moment are the probability Nth of the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment after the probability map is updated. p The coordinates of the large grid. Figure 4 .

[0039] Design an edge return mechanism: if the previous path point is in the edge grid of the probability map, then the next path point returns to the non-edge grid closest to the previous path point.

[0040] If there are too many path points, the chromosome length will be too long and the dimension will be too high, which will lead to an increase in the population size and the number of iterations, making the optimization speed slower. At this time, in order to reduce the length of the chromosome, it is evenly divided into several segments, and the remainder of the genes constitute the last segment. Each segment corresponds to a new gene, and these new genes form a new sequence in the original order as a generation chromosome. The multiple genes in each segment of the original chromosome are the same as the new genes of the corresponding generation chromosome. The generation chromosome is used to replace the original chromosome for selection, crossover, and mutation, and then transformed back to the original chromosome. This technology can achieve chromosome dimensionality reduction.

[0041] Wherein, step S4 is specifically as follows:

[0042] Set the parameters of the genetic algorithm and perform iteration and optimization of the genetic algorithm:

[0043] Set the mutation rate, crossover rate, and number of iterations.

[0044] In each iteration, the coordinate summary matrix is ​​first calculated from the population matrix. Then, the fitness value of each chromosome is calculated. Then, the chromosomes are selected, mutated, and crossovered to update the population.

[0045] After iterating several times in this way, find the chromosome with the highest fitness in the population after being updated several times, take it as the optimal individual, calculate its corresponding path as the optimal path, and calculate the search success probability corresponding to this path, and make the optimal path graph and search success probability graph.

[0046] The success probability of the search at the last moment is used as the fitness function. The chromosomes are crossover and mutated, the population is updated, and after several iterations, the path corresponding to the optimal chromosome is selected as the optimal path.

[0047] The method to calculate the coordinate summary matrix from the population matrix is ​​as follows:

[0048] Through the transformation method between the path points defined above, each chromosome obtains its corresponding path, and then obtains the coordinate summary matrix. According to the coordinates of the previous path point, the probability map is updated through the Bayesian update of the negative information of the probability map. Find the probability top M in the eight grids around the previous path point p The large grid, the coordinates of the next path point are determined by the corresponding gene value here.

[0049] The method for calculating the fitness value of each chromosome is as follows:

[0050] The success probability of the path search at the last moment is used as the fitness function of the corresponding chromosome.

[0051] The methods for selection, mutation, and crossover operations are as follows:

[0052] The selection operation adopts the roulette method. i ) represents the fitness value of the ith individual, then the probability of the ith individual being selected is given by the following formula:

[0053]

[0054] To prevent the optimal chromosome from being destroyed, each round of iteration first selects the optimal chromosome to enter the offspring, and at the same time moves the corresponding path initial coordinates to the corresponding position. The remaining chromosomes are selected into the offspring according to the roulette method, and their corresponding path initial coordinates are moved to the corresponding positions.

[0055] The mutation operation randomly changes the gene value to [1,2,3,…,M p ] is any positive integer.

[0056] The crossover operation randomly selects two different chromosomes at a certain crossover rate, randomly selects the starting point and the end point of the crossover segment, and swaps the crossover segments of the two chromosomes. Figure 5 , Figure 6 shown.

[0057] By comparing with the genetic algorithm path planning without limiting the direction and the path planning of myopic search, the present invention has the following beneficial effects:

[0058] (1) Since the method of the present invention limits the extension direction of the path points, the method of the present invention increases the search success probability by 23.9% at the last moment compared with the genetic algorithm without limiting the direction. This indicates that the method of the present invention has a significant effect in improving the search success rate.

[0059] (2) Since the present invention improves the gene encoding method and uses the change direction between path points instead of directly using the path points as genes, the method of the present invention effectively realizes continuous path planning of adjacent grids, reduces the number of grids crossed between path points, avoids time spent on transfers between path points, and realizes continuous search, thereby saving the total time of the search task and improving the efficiency of search resource utilization.

[0060] (3) Since the method of the present invention realizes continuous path planning of adjacent grids, the path length of the method of the present invention is reduced by 21.8% compared with the path planning of near-sighted search, indicating that the method of the present invention has obvious advantages in path optimization. At the same time, in terms of the probability of search success, the probability of search success at the last moment increased by 15.6%, which shows that the method of the present invention improves the probability of search success while shortening the path.

[0061] The method of the present invention has the above advantages mainly because it uses a genetic algorithm for iterative optimization, takes the transformation direction between path points instead of directly taking the path points as genes, and limits the extension direction of the path points. This optimization strategy avoids excessive randomness in the extension of path points, ensures that the path points extend in the direction with a higher probability, and improves the probability of successful search. In addition, this strategy effectively realizes continuous path planning of adjacent grids, shortens the path length, thereby improving the search quality and efficiency, and provides a new solution for search path planning in the fields of lifeboat and raft equipment manufacturing. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 The overall block diagram of a genetic algorithm continuous search path planning method with limited direction coding;

[0063] Figure 2 is the initial target probability map;

[0064] Figure 3It is a schematic diagram of the relationship between the population matrix and the coordinate summary matrix;

[0065] Figure 4 A schematic diagram of the extension direction of the current path point;

[0066] Figure 5 This is a schematic diagram before the chromosome crossover operation;

[0067] Figure 6 This is a schematic diagram after the chromosome crossover operation;

[0068] Figure 7 Searching and planning a path for the target of the method of the present invention;

[0069] Figure 8 A search success probability graph and a fitness evolution curve for the target search of the method of the present invention;

[0070] Fig. 9 Plan paths for undirected genetic algorithm goal search;

[0071] Fig.10 It is the search success probability graph and fitness evolution curve of the genetic algorithm with no limited direction;

[0072] Fig.11 Planning paths for nearsighted searches;

[0073] Fig.12 The probability of search success for myopia search. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the drawings 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. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. 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.

[0075] Aiming at the problems that the path points of the existing genetic algorithm with no limited direction have large randomness in extension and low search success rate; the path points of the traditional myopic search path planning method span multiple grids, the path is discontinuous, and the time consumption of transferring between path points is large; the path length of the myopic search path planning method is long, and the search success probability needs to be improved, the present invention provides a genetic algorithm continuous search path planning method with limited direction coding, which specifically includes the following steps:

[0076] S1, construct a static target model;

[0077] S2, Bayesian update method of negative information for design probability graph;

[0078] S3, constructing a population matrix and a coordinate summary matrix, and initializing the population;

[0079] S4. On this basis, set the parameters of the genetic algorithm, and perform iteration and optimization of the genetic algorithm;

[0080] S5. Simulation verifies the effectiveness of the proposed method.

[0081] The overall block diagram of the present invention is as follows: Figure 1 shown.

[0082] Wherein, step S1 is specifically as follows:

[0083] Construct a static target model:

[0084] Discretize the map and divide it into R×R grids (R is a positive integer), with a total of R rows and R columns. The initial target location probability map is deconstructed by the pre-multiple assumptions. The probability in each grid is the probability that the target is located in the grid. Let grid (i, j) be the grid in the i-th row and j-th column. The number of targets and search unmanned boats is 1.

[0085] Here we take R=20, and the initial target position probability map is as follows: Figure 2 In the figure, the target distribution probability is the number in the figure multiplied by 10 -4 .

[0086] Wherein, step S2 is specifically as follows:

[0087] Design a Negative Information Bayesian Update Method for Probability Maps:

[0088] Take the negative information as a new condition and use Bayes' theorem to update the probability graph. The Bayesian formula is as follows:

[0089]

[0090] In the formula, A and B are events, P(A k )、P(A l ) are respectively event A k , A l The probability of P(B|A k )、P(B|A l ) are respectively event A k , A l The probability of event B under the condition, P(A k |B) is event A under the condition of event B kThe probability of n is the total number of event A. The Bayesian formula can reverse the conditions and conclusions of an event to find the probability of an event with reversed conditions and conclusions. The Bayesian formula combined with a specific scenario is as follows:

[0091]

[0092] Where P(target in (i, j)) is the probability of the target in grid (i, j) in advance, P(not detected|target in (i, j)) is the probability of not detecting the target under the condition that the target is in grid (i, j), and P(target in (i, j)|not detected) is the probability of the target in grid (i, j) under the condition that the target is not detected. The pre-P(target at (i, j))×P(not detected|target at (i, j)) is called the normalization factor; let the probability of search failure be:

[0093]

[0094] The probability of successful search is 1-S; let the Cumulative Detection Probability (CDP) be the probability of successful search P scs :

[0095] P scs =1-S (4)

[0096] Use a single unmanned boat to search for a single target. The purpose of this method is to plan a path so that when the search unmanned boat moves along this path, the probability of searching the target is as high as possible. Let t int is the time interval between adjacent path points. Assuming that the unmanned boat searches continuously during movement, each path point is located at the center of the grid, and assuming that the time taken by the unmanned boat to pass through each grid is equal, then t int It is both the time interval between adjacent path points and the single search time, that is, the time it takes for the unmanned boat to pass through a grid. Single search probability P s is the search success rate of the target in the previous grid of the current path point, when the unmanned boat passes through this grid. int The success probability of a search is recorded.

[0097] Wherein, step S3 is specifically as follows:

[0098] Construct the population matrix and coordinate summary matrix, and initialize the population:

[0099] Use the matrix concept to manage data. Construct an N×M population matrix, where N is the population size, that is, the number of chromosomes in the population, and M is the number of genes in a single chromosome, that is, the length of the chromosome. Here, one individual corresponds to one chromosome. At the same time, construct an N×(2M+2) coordinate summary matrix. Let t pr is the total search time, t int Single search time.

[0100] Each path is regarded as a chromosome. The traditional method regards the path points on the path as genes, while this method regards the transformation between the path points at the previous moment and the next moment as genes. Therefore,

[0101]

[0102] The schematic diagram of the relationship between the population matrix and the coordinate summary matrix is ​​as follows Figure 3 .

[0103] In the population matrix (circular matrix), each row of this matrix represents a sequence of path point transformations in a path. In the coordinate summary matrix (elliptical matrix), each row of this matrix represents a sequence of path point coordinates in a path. In order to prevent the search drone from moving to an area with a lower probability due to excessive randomness, the transformation method between path points at adjacent moments is designed as follows: the gene value in each chromosome can take any integer in [1,2,3,4,5]. If the gene value is equal to 1, the path point transformation method is that the path point coordinates at the next moment are the coordinates of the grid with the largest probability after the probability map is updated among the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment; if the gene value is equal to 2, the path point transformation method is that the path point coordinates at the next moment are the coordinates of the grid with the second largest probability after the probability map is updated among the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment; if the gene value is equal to 3, the path point transformation method is that the path point coordinates at the next moment are the coordinates of the grid with the third largest probability after the probability map is updated among the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment; if the gene value is equal to 4, the path point transformation method is that the path point coordinates at the next moment are the coordinates of the grid with the fourth largest probability after the probability map is updated among the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment; if the gene value is equal to 5, the path point transformation method is that the path point coordinates at the next moment are the coordinates of the grid with the fifth largest probability after the probability map is updated among the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment. Figure 4 .

[0104] Design an edge return mechanism: if the previous path point is in the edge grid of the probability map, then the next path point returns to the non-edge grid closest to the previous path point.

[0105] If there are too many path points, the chromosome length is too long and the dimension is too high, which will lead to an increase in the population size and the number of iterations, making the optimization speed slower. At this time, in order to reduce the length of the chromosome, it is evenly divided into several sections, and the genes of the remainder constitute the last section, each section corresponds to a new gene, and these new genes form a new sequence in the original order as a generation chromosome. The multiple genes of each section of the original chromosome are the same as the new genes of the corresponding generation chromosome. Use the generation chromosome to replace the original chromosome to select crossover and mutation, and then transform back to the original chromosome. Using this technology can achieve chromosome dimensionality reduction. Generation chromosomes are not used in this embodiment.

[0106] Wherein, step S4 is specifically as follows:

[0107] Set the parameters of the genetic algorithm and perform iteration and optimization of the genetic algorithm:

[0108] Set the mutation rate, crossover rate, and number of iterations.

[0109] In each iteration, the coordinate summary matrix is ​​first calculated from the population matrix. Then, the fitness value of each chromosome is calculated. Then, the chromosomes are selected, mutated, and crossovered to update the population.

[0110] After iterating several times in this way, find the chromosome with the highest fitness in the population after being updated several times, take it as the optimal individual, calculate its corresponding path as the optimal path, and calculate the search success probability corresponding to this path, and make the optimal path graph and search success probability graph.

[0111] The success probability of the search at the last moment is used as the fitness function. The chromosomes are crossover and mutated, the population is updated, and after several iterations, the path corresponding to the optimal chromosome is selected as the optimal path.

[0112] The method to calculate the coordinate summary matrix from the population matrix is ​​as follows:

[0113] Through the transformation method between the path points defined above, each chromosome obtains its corresponding path, and then obtains the coordinate summary matrix. According to the coordinates of the previous path point, the probability map is updated through the Bayesian update of the negative information of the probability map. Find the top five probabilities in the eight grids around the previous path point, and the corresponding gene value here determines the coordinates of the next path point.

[0114] The method for calculating the fitness value of each chromosome is as follows:

[0115] The success probability of the path search at the last moment is used as the fitness function of the corresponding chromosome.

[0116] The methods for selection, mutation, and crossover operations are as follows:

[0117] The selection operation adopts the roulette method.i ) represents the fitness value of the ith individual, then the probability of the ith individual being selected is given by the following formula:

[0118]

[0119] To prevent the optimal chromosome from being destroyed, each round of iteration first selects the optimal chromosome to enter the offspring, and at the same time moves the corresponding path initial coordinates to the corresponding position. The remaining chromosomes are selected into the offspring according to the roulette method, and their corresponding path initial coordinates are moved to the corresponding positions.

[0120] The mutation operation randomly changes the gene value to any positive integer in [1,2,3,4,5] at a certain mutation rate.

[0121] The crossover operation randomly selects two different chromosomes at a certain crossover rate, randomly selects the starting point and the end point of the crossover segment, and swaps the crossover segments of the two chromosomes. Figure 5 , Figure 6 As shown:

[0122] Wherein, step S5 is specifically as follows:

[0123] MATLAB simulation is performed to verify the effectiveness of the above method:

[0124] Use a single unmanned boat to search for a single target. Plan a path so that when the search unmanned boat moves along this path, the probability of finding the target is as high as possible. Assume that the unmanned boat searches continuously while moving, each path point is located at the center of the grid, and assume that the time taken by the unmanned boat to pass through each grid is equal. Let the single search time t int =1h, single search probability P s = 0.9, the total search time t pr =100h. Every time t int Then record the probability of a successful search P scs From formula (5), we get that the chromosome length M = 100. The mutation rate of the genetic algorithm is set to 0.3, the crossover rate to 0.8, and the number of iterations to 100.

[0125] According to the above method and parameter settings, MATLAB is used for simulation.

[0126] The simulation of the method of the present invention, i.e. a genetic algorithm continuous search path planning method with limited direction coding, is as follows Figure 7-Figure 8 , as shown in Tables 1 and 2. Figure 7-Figure 8 The target search planning path, search success probability graph and fitness evolution curve of the method of the present invention are shown in Table 1 and Table 2.

[0127] Table 1 The optimal individual of the method of the present invention

[0128]

[0129] Its optimal value, that is, the probability of successful search at the last moment, is 0.867.

[0130] Table 2 Optimal path of the method of the present invention

[0131]

[0132] The path length is 119.468 grid units, where the horizontal axis is the number of rows of the grid where the path point is located, and the vertical axis is the number of columns of the grid where the path point is located.

[0133] Simulation of the genetic algorithm continuous search path planning method with no direction restriction Figure 9-10 , as shown in Tables 3 and 4. Figure 9-10 It is the target search planning path, search success probability graph and fitness evolution curve of the genetic algorithm with no limited direction. Its optimal individuals and optimal paths are shown in Table 3 and Table 4.

[0134] Table 3 The optimal individuals of the genetic algorithm without limiting the direction

[0135]

[0136] Its optimal value, that is, the probability of successful search at the last moment, is 0.700.

[0137] Table 4 The optimal path of the genetic algorithm without limiting the direction

[0138]

[0139]

[0140] The path length is 121.539 grid units, where the horizontal axis is the number of rows of the grid where the path point is located, and the vertical axis is the number of columns of the grid where the path point is located.

[0141] The path planning method for myopic search is as follows Figure 11-Figure 12 , as shown in Table 5.

[0142] Table 5 Optimal path for myopia search

[0143]

[0144] The path length is 152.678 grid units, and the probability of successful search at the last moment is 0.750.

[0145] The method of the present invention is compared with the genetic algorithm path planning without limiting the direction and the path planning of myopic search. Figure 8 and Fig.10By comparison, the probability of successful search at the last moment of the method of the present invention is 0.867, and the probability of successful search at the last moment of the genetic algorithm without limiting the direction is 0.700, indicating that the probability of successful search at the last moment of the method of the present invention is increased by 23.9% compared with the genetic algorithm search path planning without limiting the direction. This is because the method of the present invention limits the extension direction of the path point, that is, the grid probability front M p This can avoid excessive randomness in the extension of the path points and ensure that the path points extend in a direction with a probability that is not too small. Figure 7 and Fig.11 By comparison, it can be seen that the method of the present invention realizes continuous path planning of adjacent grids. The grids where the previous path point of the method of the present invention is located are adjacent to the grids where the next path point is located, while the previous path point and the next path point of the myopia search path planning method generally span multiple grids, indicating that the method of the present invention reduces the number of grids spanned between path points, avoids time consumption on the transfer between path points, realizes continuous search, saves the total time of the search task, and improves the efficiency of search resource utilization. This is because the present invention improves the gene encoding method, using the change direction between path points instead of directly using path points as genes. And the path length of the method of the present invention is 119.468 grid units, while the path length of the path planning of the myopia search is 152.678 grid units, indicating that the path length of the method of the present invention is reduced by 21.8% compared with the path planning of the myopia search. This is because the method of the present invention realizes continuous path planning of adjacent grids. Figure 8 and Fig.12 By comparison, the last-minute search success probability of the method of the present invention is 0.867, and the last-minute search success probability of the near-sighted search path planning is 0.750, indicating that the last-minute search success probability of the method of the present invention is increased by 15.6% compared with the near-sighted search path planning. This is because the method uses a genetic algorithm for optimization and limits the extension direction of the path points.

[0146] The method of the present invention realizes continuous path planning of adjacent grids by using genetic algorithm iterative optimization, limiting the extension direction of path points and improving the gene encoding method of the genetic algorithm, thereby improving the search success rate, shortening the path length, reducing the overall search time, and improving the utilization efficiency of search resources, providing a new solution for search path planning in the fields of lifeboat and raft equipment manufacturing and the like.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. Consider a genetic algorithm continuous search path planning method with limited direction coding, characterized in that: The following steps are involved: S1, construct a static target model; S2, Bayesian update method of negative information for design probability graph; S3, constructing a population matrix and a coordinate summary matrix, and initializing the population; S4. On this basis, set the parameters of the genetic algorithm, and perform iteration and optimization of the genetic algorithm; S5, simulation verifies the effectiveness of the proposed method; Wherein, step S1 is specifically as follows: Construct a static target model: Discretize the map and divide it into R×R grids (R is a positive integer). The grid has R rows and R columns. The initial target location probability map is deconstructed by multiple assumptions in advance. The probability in each grid is the probability that the target is located in the grid. Let grid (i, j) be the grid in the i-th row and j-th column. The number of targets and search unmanned boats is 1. Wherein, step S2 is specifically as follows: Design a Negative Information Bayesian Update Method for Probability Maps: Take the negative information as a new condition and use Bayesian theorem to update the probability graph; the Bayesian formula is as follows: In the formula, A and B are events, P(A k )、P(A l ) are respectively event A k , A l The probability of P(B|A k )、P(B|A l ) are respectively event A k , A l The probability of event B under the condition, P(A k |B) is event A under the condition of event B k The probability of n is the total number of event A. The Bayesian formula can reverse the conditions and conclusions of an event to find the probability of an event with reversed conditions and conclusions. The Bayesian formula combined with a specific scenario is as follows: Where P(target in (i, j)) is the probability of the target in grid (i, j) in advance, P(not detected|target in (i, j)) is the probability of not detecting the target under the condition that the target is in grid (i, j), and P(target in (i, j)|not detected) is the probability of the target in grid (i, j) under the condition that the target is not detected. is called the canonical factor; let the probability of search failure be: The probability of successful search is 1-S; let the Cumulative Detection Probability (CDP) be the probability of successful search P scs : P scs =1-S (4) Use a single unmanned boat to search for a single target. The purpose of this method is to plan a path so that when the search unmanned boat moves along this path, the probability of searching the target is as high as possible. Let t int is the time interval between adjacent path points. Assuming that the unmanned boat searches continuously during movement, each path point is located at the center of the grid, and assuming that the time taken by the unmanned boat to pass through each grid is equal, then t int It is both the time interval between adjacent path points and the single search time, that is, the time it takes for the unmanned boat to pass through a grid; the single search probability P s is the search success rate of the target in the previous grid of the current path point, when the unmanned boat passes through this grid; every t int Then record the success probability of a search; Wherein, step S3 is specifically as follows: Construct the population matrix and coordinate summary matrix, and initialize the population: Use the matrix concept to manage data; construct an N×M population matrix, where N is the population size, that is, the number of chromosomes in the population, and M is the number of genes in a single chromosome, that is, the chromosome length; here one individual corresponds to one chromosome; at the same time, construct an N×(2M+2) coordinate summary matrix; let t pr is the total search time, t int is the single search time; Each path is regarded as a chromosome. The traditional method regards the path points on the path as genes, while this method regards the transformation between the path points at the previous moment and the next moment as genes. In the population matrix (circular matrix), each row of this matrix represents a sequence of path point transformations in a path; in the coordinate summary matrix (elliptical matrix), each row of this matrix represents a sequence of path point coordinates in a path; in order to prevent the search drone from moving to an area with a lower probability due to excessive randomness, the transformation method between path points at adjacent moments is designed as follows: the gene value N in each chromosome p It can be [1,2,3,…,M p ], where M p is a positive integer; if the gene value is equal to N p , then the path point transformation method is that the path point coordinates at the next moment are the probability Nth of the eight adjacent grids around the grid pointed to by the path point coordinates at the previous moment after the probability map is updated. p The coordinates of the large grid; Design an edge return mechanism: if the previous path point is in the edge grid of the probability graph, then the next path point returns to the non-edge grid closest to the previous path point; If there are too many path points, the chromosome length will be too long and the dimension will be too high, which will lead to an increase in the population size and the number of iterations, making the optimization speed slower. At this time, in order to reduce the length of the chromosome, it is evenly divided into several segments, and the remainder of the genes constitute the last segment. Each segment corresponds to a new gene. These new genes form a new sequence in the original order as a generation chromosome. The multiple genes in each segment of the original chromosome are the same as the new genes of the corresponding generation chromosome. The generation chromosome is used to replace the original chromosome for selection, crossover, and mutation, and then transformed back to the original chromosome. This technology can achieve chromosome dimensionality reduction. Wherein, step S4 is specifically as follows: Set the parameters of the genetic algorithm and perform iteration and optimization of the genetic algorithm: Set the mutation rate, crossover rate, and number of iterations; In each iteration, the coordinate summary matrix is ​​first calculated from the population matrix; secondly, the fitness value of each chromosome is calculated; then the chromosomes are selected, mutated, and crossover operations are performed to update the population; After several iterations, find the chromosome with the highest fitness in the population after several updates, take it as the optimal individual, calculate its corresponding path as the optimal path, and calculate the search success probability corresponding to this path, and make the optimal path graph and search success probability graph; The success probability of the search at the last moment is used as the fitness function; the chromosomes are crossover and mutation operations are performed, the population is updated, and after several iterations, the path corresponding to the optimal chromosome is selected as the optimal path; The method to calculate the coordinate summary matrix from the population matrix is ​​as follows: Through the transformation method between the path points defined above, each chromosome obtains its corresponding path, and then obtains the coordinate summary matrix; according to the coordinates of the previous path point, the probability map is updated through the Bayesian update of the negative information of the probability map; the probability top M is found in the eight grids around the previous path point. p The large grid, where the coordinates of the next path point are determined by the corresponding gene value; The method for calculating the fitness value of each chromosome is as follows: The success probability of searching the path at the last moment is used as the fitness function of the corresponding chromosome; The methods for selection and mutation operations are as follows: The selection operation adopts the roulette method; to prevent the optimal chromosome from being destroyed, the optimal chromosome is first selected to enter the offspring in each iteration, and the corresponding path initial coordinates are moved to the corresponding position; the remaining chromosomes are selected into the offspring according to the roulette method, and their corresponding path initial coordinates are moved to the corresponding positions; The mutation operation randomly changes the gene value to [1,2,3,…,M p ] is any positive integer.

Citation Information

Patent Citations

  • Software defect prediction method based on Bayesian model and particle swarm optimization

    CN113268434A

  • Full-coverage field path planning method and device based on improved genetic algorithm

    CN116050682A

  • Unknown environment exploration path planning method, system, equipment and medium

    CN116203972A

  • Offshore wind turbine maintenance path planning method

    CN117892890A

  • ROS-based logistics transfer robot path planning method and system

    CN118276572A

Cited By

  • Marine joint search and rescue planning method and device, terminal equipment and medium

    CN121860251A