UUV particle swarm three-dimensional path planning method for adaptive parameter adjustment

Through adaptive parameter adjustment and dynamic search optimization, the particle swarm algorithm solves the problems of sensitive parameter settings and long running time in three-dimensional path planning, achieves more efficient and stable path planning, generates better paths, and solves the problem of particle swarm Problems where algorithms find it difficult to find optimal solutions in complex environments.

CN118760173AActive Publication Date: 2024-10-11HARBIN UNIV OF SCI & TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410902565.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-07
Publication Date
2024-10-11
Estimated Expiration
2044-07-07

AI Technical Summary

Technical Problem

Particle swarm optimization is sensitive to parameter settings in three-dimensional path planning, is difficult to implement global search, and takes a long time to run, making it difficult to find the optimal solution in complex environments.

Method used

The method of adaptive parameter adjustment is adopted, the fitness value is calculated through the weighting method, the inertia weight and learning factor are dynamically adjusted, and the UUV navigation path is optimized by combining adaptive mutation and adaptive step local search.

Benefits of technology

The efficiency and quality of path planning are significantly improved, the generated path is better, the algorithm is more stable and efficient, and it can effectively jump out of the local optimal solution and shorten the running time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760173A_ABST
    Figure CN118760173A_ABST
Patent Text Reader

Abstract

The invention discloses an unmanned underwater vehicle (UUV) particle swarm three-dimensional path planning method with adaptive parameter adjustment, and aims to solve the problems of low path quality and slow operation time of a fixed parameter particle swarm in the path planning problem of a traditional particle swarm algorithm, and the method specifically comprises the following steps: firstly, establishing a three-dimensional map model containing mountain obstacles; secondly, initializing particle swarm parameters, and calculating a fitness value through a weighting method; then, searching an initial extreme value by traversing a population, recording a historical optimal solution, and calculating a self-adaptive inertia weight and a learning factor to realize updating of the speed and the position of the particle; besides, population is updated through adaptive temperature, adaptive variation and adaptive step length local search are carried out, the navigation path of the UUV is further optimized, and finally a final solution is obtained. According to the method, the quality and efficiency of UUV path planning are effectively improved, the operation time is reduced, and an effective solution is provided for the UUV path planning problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to marine engineering equipment, in particular to the field of unmanned underwater vehicle (UUV) path planning, and more particularly to a UUV particle swarm three-dimensional path planning method with adaptive parameter adjustment. Background Art

[0002] UUVs are increasingly used in the field of marine engineering, involving marine exploration, marine environmental services, environmental monitoring of marine water quality and ecological elements, marine resource development, marine safety and rescue, marine material scientific research, and marine cultural heritage protection. The realization of these applications depends on the efficient path planning capabilities of UUVs to ensure that they can complete tasks safely and economically in complex three-dimensional underwater environments.

[0003] However, UUV path planning faces many challenges, including the complexity of the underwater environment, the energy and communication limitations of the UUV itself, and the requirements for compressive strength. Effective path planning can not only save energy and shorten the voyage, but also improve the success rate of the mission.

[0004] Although there are many path planning methods, such as Dijkstra algorithm, A* algorithm, depth-first search, breadth-first search, genetic algorithm, Q-learning, deep reinforcement learning, etc., they each have their limitations. For example, many algorithms perform well in two-dimensional space, but may not meet complex obstacle avoidance requirements in three-dimensional space.

[0005] The particle swarm optimization algorithm shows advantages in three-dimensional path planning due to its simplicity, global search capability and robustness. However, the algorithm still has the following problems in practical applications, which need further research and improvement.

[0006] (1) Sensitive to parameter settings: The performance and convergence speed of the particle swarm algorithm are affected by parameters such as the number of particles, inertia weight, and acceleration factor. Inappropriate parameter selection may lead to slow convergence of the algorithm or failure to obtain an ideal solution;

[0007] (2) Particle swarms rely on information sharing between particles, which may cause the algorithm to stagnate near the local optimal solution, especially in complex problem spaces, making it difficult to achieve global search;

[0008] (3) The particle swarm algorithm may require multiple iterations to find the optimal solution, which increases the computing time. Especially in three-dimensional complex environments, time efficiency becomes a limiting factor in its application.

[0009] At the same time, compared with the present invention, the following methods are different as follows:

[0010] The difference between the improved method provided by the paper "Improved Particle Swarm Hybrid Path Planning Algorithm with Hill Climbing Strategy" and the method described in the present invention is as follows: using Tent chaotic mapping to initialize the particle swarm will reduce the diversity of the particle swarm, thereby reducing the coverage of the search space, especially in complex spaces, the algorithm may find it difficult to jump out of the local optimum; using asynchronous updates of individual and social learning factors may affect the convergence speed of the algorithm, because different particles are updated at different times, which may lead to inconsistent search directions;

[0011] The improved method provided in the paper "UAV Urban Area Three-Dimensional Path Planning Based on Improved PSO Algorithm" is different from the method described in the present invention in the following ways: searching only through adaptive inertia weights and learning factors will lead to too fast convergence to the local optimum, and the failure to conduct a more refined local search will cause the algorithm to be unstable in some cases;

[0012] The improved method provided by the invention patent (application number: CN 202311868668.3) "A multi-constraint optimized UUV particle swarm three-dimensional path planning method" differs from the method described in the present invention as follows: the inertia weight and learning factor are fixed values, and the mutation rate and local search step size are also fixed values, resulting in a long running time.

[0013] In order to solve the problems of high requirements for parameter setting of particle swarm, difficulty in realizing global search, long running time of fixed parameter algorithm, etc., the present invention proposes a three-dimensional path planning method of UUV particle swarm with adaptive parameter adjustment, so that the parameters can be adaptively adjusted dynamically, and adaptive mutation and adaptive step size local search are added to solve parameter setting, realize global search and shorten running time. Summary of the invention

[0014] In order to solve the above-mentioned path planning problems, the present invention proposes the following technical solutions: a UUV particle swarm three-dimensional path planning method with adaptive parameter adjustment is designed, and a three-dimensional map model including mountain obstacles is established; then, the particle swarm parameters are initialized, and the fitness value is calculated by weighted method; then, the initial extreme value is found by traversing the population, the historical optimal solution is recorded, and the adaptive inertia weight and learning factor are calculated to achieve the update of particle speed and position; in addition, the population is updated by adaptive temperature, adaptive mutation and adaptive step size local search are performed, and the UUV navigation path is further optimized, and finally the final solution is obtained. Specifically, the following steps are included:

[0015] Step 1:

[0016] Establish a three-dimensional map model with mountain obstacles, set the starting point and end point, and complete the initialization of the UUV's environment.

[0017] Step 2:

[0018] Initialize the particle swarm parameters, population size pop, gene maximum value pop max and the minimum value of gene pop min , total number of iterations, maximum value of cognitive factor c 1_max and the maximum value of social factor c 2_max , the maximum inertia weight w max and the minimum inertia weight w min , speed range v min and v max , initial temperature temp cooling rate r t .

[0019] Step 3:

[0020] Calculate the initial fitness value and use the weighted method to linearly weight the following four aspects: distance d, height h, curvature mean m k And the penalty term res, combine the above calculation results, and use the weighted coefficient to get the objective function value fitness, the formula is as follows:

[0021]

[0022] fitness=0.9*d+0.05*h+0.05*m+res*10 3 (4)

[0023] Where d is the length of the path; h is the total height of the UUV during navigation; m k is the average curvature of the path; res is the penalty term; fitness is the objective function value, i.e., the fitness value.

[0024] Step 4:

[0025] Find the initial extreme value and set the initial optimal fitness value fitness best , traverse the fitness value of each individual in the population, if the fitness value of the individual is less than the current optimal fitness value fitness best , then update fitness best is the fitness value of the individual, and records the corresponding It is the extreme fitness value of the group, which means the fitness value of the individual with the best fitness value in the entire population.

[0026] Step 5:

[0027] Record the historical optimal solution, define an array History to record the optimal solution found in each iteration, and store the optimal solution of the current iteration Update this array.

[0028] Step 6:

[0029] Calculate the adaptive inertia weight using the following formula:

[0030]

[0031] Where w is the inertia weight; w max is the maximum value of inertia weight; w min is the minimum inertia weight; iter is the current number of iterations; iterations is the total number of iterations.

[0032] Calculate the learning factor, the formula is as follows:

[0033]

[0034] Among them, c1 is the cognitive factor; c 1_max is the maximum value of cognitive factor; c2 is the social factor; c 2_max is the maximum value of the social factor; is a normally distributed random number with a mean of 0 and a standard deviation of 0.2.

[0035] Then the range of the learning factor is restricted, and the formula is as follows:

[0036]

[0037] Step 7:

[0038] Update the particle's velocity using the following formula:

[0039] V t+1 =wV t +c1r1(pbest-x t )+c2r2(zbest-x t ) (8)

[0040] Among them, V t+1 is the velocity of the particle at time t+1; w is the inertia weight; V t is the speed of the particle at time t; c1 is the cognitive factor, c2 is the social factor, c1 c2 are constants for adaptive adjustment; r1 and r2 are random numbers between [0,1]; pbest is the best historical position of the particle; zbest is the extreme value of the best historical position of the particle group; x t is the current position of the particle at time t.

[0041] To ensure that the speed value is maintained at v min and v max Any speed outside this range is adjusted appropriately, the formula is as follows:

[0042]

[0043] Among them, V t+1 is the velocity of the particle at time t+1; V t is the velocity of the particle at time t; v min is the lower bound of velocity; v max is the upper bound of the speed.

[0044] Update the position of the particle, the formula is as follows:

[0045] x t+1 =x t +η*v t+1 (10)

[0046] Among them, V t+1 is the velocity of the particle at time t+1; x t+1 is the position of the particle at time t+1; η is a random factor, usually drawn from a uniform distribution in [0,1] to introduce randomness.

[0047] In order to ensure that the particle position does not exceed the range, its position is adjusted. The formula is as follows:

[0048]

[0049] Among them, x t+1 is the position of the particle at time t+1; pop max The upper limit of the gene maximum value to control the particle position; pop min The minimum value of the gene controls the lower bound of the particle position; r i is a random factor, usually drawn from a uniform distribution in the range [0,1], used to represent x t+1 Adds a small random offset.

[0050] Step 8:

[0051] The new fitness value is calculated according to the speed and position of the new particle, and then the individual optimum is updated.

[0052] Step 9:

[0053] To update the population according to the adaptive temperature, first calculate the difference in fitness, the formula is as follows:

[0054] df = fit1-fitness (12)

[0055] Among them, fit1 is the fitness value of the new particle; fitness is the fitness value of the particle.

[0056] If df < 0, the new solution fit1 is a better solution, which is directly accepted and the particle velocity and position are updated; or when When taking, the new solution fit1 is also accepted, and the velocity and position of the particle are updated. Among them, r is a random number in the range [0,1), temp iter is the current adaptive temperature value.

[0057] Step 10:

[0058] Adaptively mutate the particles in the population, first set the basic mutation rate r b and the base mutation rate decay rate r d Then calculate the dynamic mutation rate r h The adaptive mutation rate can be gradually reduced as the iteration proceeds. The formula is as follows:

[0059]

[0060] Among them, iter is the current iteration number; iterations is the total iteration number.

[0061] Then calculate the fitness-based mutation adjustment factor r f The smaller the fitness value, the higher the mutation rate. The formula is as follows:

[0062]

[0063] Among them, fitness is the current fitness value; is the maximum fitness value in history.

[0064] Finally, combined with the dynamic mutation rate r h and the fitness-based mutation adjustment factor r f Get the adaptive mutation rate r m , the formula is as follows:

[0065] r m =r h *(1+0.5*r f ) (15)

[0066] And the adaptive mutation rate is limited to ensure that the calculated mutation rate remains within a reasonable range, that is, between 0 and 1. The formula is as follows:

[0067] r m '=min(max(r m ,0),1) (16)

[0068] Traverse the particles to mutate, first randomly select a dimension dim, and then calculate the variable step length m step , the formula is as follows:

[0069] m step =(pop dim -gbestdim )*r m ' (17)

[0070] Among them, pop dim is the value of the particle in the dim dimension; gbest dim is the historical maximum value of the particle in dim dimension; r m ' is the modified adaptive mutation rate.

[0071] The variation range is adjusted according to the fitness. The formula is as follows:

[0072]

[0073] Among them, m fb is the adjustment factor based on fitness; fitness is the current fitness value; is the maximum fitness value in history.

[0074] Mutate the particle population to change the step length m step Multiply by the fitness-based adjustment factor m fb , and then add it to the dim dimension of the particle to achieve mutation. The formula is as follows:

[0075] pop dim '=m step *m fb (19)

[0076] Among them, pop dim ' is the value of the particle in dim dimension after mutation; m step To change the asynchronous length; m fb is the adjustment factor based on fitness.

[0077] Check and correct the mutated value. The position of the mutated particle is in [pop min ,pop max ], and after mutation, the individual optimal and group optimal are updated and recorded.

[0078] Step 11:

[0079] Sort the fitness values, get the fitness values ​​from small to large, and record them. Set the initial step size of reflection to α, the initial step size of scaling to β, and set the attenuation ratio α that controls the reflection step size s , controls the attenuation ratio of the scaling step β s , and then perform a local search.

[0080] First, calculate the mean value x4 of the particle positions except the worst particle, then calculate the reflection point x5 of the worst particle and x4, correct x5 to ensure that it does not exceed the boundary, and calculate the fitness value of the reflection point x5 if Then calculate the expansion point, first calculate the adaptive step size α z , the formula is as follows:

[0081] α z =α*α s iter-1 (20)

[0082] Among them, fit worst is the worst fitness value; α is the initial step length of reflection; α s is the reflection step attenuation ratio; iter is the current iteration number.

[0083] Then calculate the expansion point x6, the calculation formula is as follows:

[0084] x6=x4+α z *(x worst -x4) (21)

[0085] Among them, x worst is the position of the worst particle in the particle swarm.

[0086] Then, x6 is corrected to ensure that it does not exceed the boundary, and the fitness value of the expansion point x6 is calculated. if Then replace the worst particle x with x6 worst ; Otherwise replace the worst particle x with x5 worst .

[0087] if Then calculate the scaling point, first calculate the adaptive step size β z , the formula is as follows:

[0088] β z =β*β s iter-1 (twenty two)

[0089] Among them, fit worst-1 is the second worst fitness value; β is the initial step size of scaling; β s is the scaling step attenuation ratio; iter is the current iteration number.

[0090] Then calculate the scaling point x7, the calculation formula is as follows:

[0091] x7=x4+β z *(x4-x worst ) (twenty three)

[0092] Among them, x worst is the position of the worst particle in the particle swarm.

[0093] Then, x7 is corrected to ensure that it does not exceed the boundary, and the fitness value of the expansion point x7 is calculated. if Then replace the worst particle x with x7 worst ; Otherwise continue to generate scaling point x8.

[0094] If the x8 position is not better than the worst particle, then the best particle and the penultimate particle x worst-1 Select a new particle x9, modify x9, and replace the worst particle x with x9 worst .

[0095] After the local search is completed, the particle swarm is reordered according to the fitness value. And the optimal particle is obtained

[0096] Step 12:

[0097] Update the array History to record the optimal value of the particle population and update the optimal value

[0098] Step 13:

[0099] Determine whether the number of iterations of the entire population has been reached. If yes, proceed to step 14; otherwise, return to step 6.

[0100] Step 14:

[0101] Output the optimal value.

[0102] The present invention has the following beneficial effects:

[0103] (1) The method of the present invention takes the entire path length of the UUV movement as the main part of the fitness value, and also considers the turning amplitude and heave height of the UUV movement. The path generated by the method of the present invention is significantly better than the traditional particle swarm and the fixed parameter particle swarm in terms of fitness value. The average fitness value is 176.1, which is about 19.7% lower than the traditional particle swarm and about 1.8% lower than the fixed parameter particle swarm. This shows that the method of the present invention is more effective in path optimization and can find a better path solution.

[0104] (2) The method of the present invention adjusts the inertia weight and learning factor adaptively. The inertia weight decreases as the number of iterations increases, ensuring that the algorithm has good exploratory ability in the early stage. As the iterations proceed, the development of the optimal solution is gradually increased to avoid premature convergence. The learning factor is randomly adjusted based on the normal distribution while ensuring that they are within a reasonable range. The introduction of randomness enhances the exploration ability of the algorithm, and the adaptive adjustment maintains the flexibility and robustness of the algorithm. In terms of fitness value, the standard deviation of the method of the present invention is 9.2, which is much lower than 35.4 of the traditional particle swarm and 11.4 of the fixed parameter particle swarm. The variance is 85.6, which is also significantly lower than 1251.3 of the traditional particle swarm and 129.2 of the fixed parameter particle swarm. This shows that the method of the present invention has higher stability and reliability.

[0105] (3) The method of the present invention performs mutation operations on particles with low fitness, and the mutation amplitude is inversely proportional to the fitness, which encourages particles with low fitness to explore new areas, increases the possibility of the algorithm jumping out of the local optimum, and maintains population diversity. Adaptive step-size local search is adopted, and the search intensity is flexibly adjusted according to the characteristics of the current search area. The execution probability of local search decreases with the increase of iteration number, which helps to find a better solution in the solution space.

[0106] (4) The method of the present invention has a more stable and efficient running speed. The average running time of the method of the present invention is 10.66 seconds, which is 7.44 seconds faster than the fixed parameter particle swarm. This shows that the method of the present invention has a relatively efficient running time while ensuring the optimization quality. In addition, the running time standard deviation and variance of the method of the present invention are 0.08 and 0.007, respectively, showing efficient and stable performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0107] Figure 1 It is a flow chart of a UUV particle swarm three-dimensional path planning method considering adaptive parameters;

[0108] Figure 2 Path diagrams generated for the three approaches;

[0109] Figure 3 The fitness value diagrams obtained by the three methods. DETAILED DESCRIPTION

[0110] Figure 1 The present invention is a flow chart of a UUV particle swarm three-dimensional path planning method with adaptive parameter adjustment, comprising the following steps:

[0111] Step 1:

[0112] First, create a grid, then get the grid coordinate data, generate a three-dimensional vector, set a mountain-shaped obstacle, form a three-dimensional map model with mountain obstacles, and then set the starting point coordinates [1,10,3] and the end point coordinates [93,83,4]. At this time, the three-dimensional map is built and the UUV environment initialization is completed.

[0113] Step 2:

[0114] Initialize the particle swarm parameters, set the population size pop = 100; set the maximum gene value pop max =1 and the minimum value of gene pop min = 0 to control the upper and lower limits of the particle position to prevent particles from crossing the boundary; set the total number of iterations = 100; set the maximum value of the cognitive factor c 1_max =2.5 and the maximum value of social factor c 2_max = 2.5, a larger c1 can encourage particles to explore new areas more actively, while a larger c2 can strengthen the movement of particles to the optimal solution of the group; set the maximum inertia weight w max = 0.9 and the minimum inertia weight w min = 0.4 controls the continuity of particle speed, balances global exploration and local development, affects convergence speed and avoids premature convergence; sets the speed range v min = -0.5 and v max =0.5 limits the range of particle velocity changes and ensures that the particle velocity is reasonable.

[0115] Step 3:

[0116] Calculate the initial fitness value and use the weighted method to linearly weight the following four aspects: distance d, height h, curvature mean m k And the penalty term res, combine the above calculation results, and use the weighted coefficient to get the objective function value fitness, the formula is as follows:

[0117]

[0118] fitness=0.9*d+0.05*h+0.05*m+res*10 3 (4)

[0119] Where d is the length of the path; h is the total height of the UUV during navigation; m k is the average curvature of the path; res is the penalty term; fitness is the objective function value, i.e., the fitness value.

[0120] Step 4:

[0121] Find the initial extreme value and set the initial optimal fitness value fitness best= +∞, traverse the fitness value of each individual in the population, if the fitness value of the individual is less than the current optimal fitness value fitness best , then update fitness best is the fitness value of the individual, and records the corresponding It is the extreme fitness value of the group, which means the fitness value of the individual with the best fitness value in the entire population.

[0122] Step 5:

[0123] Record the historical optimal solution, define an array History to record the optimal solution found in each iteration, and store the optimal solution of the current iteration Update this array.

[0124] Step 6:

[0125] Calculate the adaptive inertia weight using the following formula:

[0126]

[0127] Where w is the inertia weight; w max is the maximum value of inertia weight; w min is the minimum inertia weight; iter is the current number of iterations; iterations is the total number of iterations.

[0128] Calculate the learning factor, the formula is as follows:

[0129]

[0130] Among them, c1 is the cognitive factor; c 1_max is the maximum value of cognitive factor; c2 is the social factor; c 2_max is the maximum value of the social factor; is a normally distributed random number with a mean of 0 and a standard deviation of 0.2.

[0131] Then the range of the learning factors is limited. The learning factors c1 and c2 are limited to the range of 1 to 2.5 to prevent them from being too large or too small. The formula is as follows:

[0132]

[0133] Step 7:

[0134] Update the particle's velocity using the following formula:

[0135] V t+1 =wV t +c1r1(pbest-x t )+c2r2(zbest-x t ) (8)

[0136] Among them, V t+1 is the velocity of the particle at time t+1; w is the inertia weight; V t is the speed of the particle at time t; c1 is the cognitive factor, c2 is the social factor, c1 c2 are constants for adaptive adjustment; r1 and r2 are random numbers between [0,1]; pbest is the best historical position of the particle; zbest is the extreme value of the best historical position of the particle group; x t is the current position of the particle at time t.

[0137] To ensure that the speed value is maintained at v min and v max Any speed outside this range is adjusted appropriately, the formula is as follows:

[0138]

[0139] Among them, V t+1 is the velocity of the particle at time t+1; V t is the velocity of the particle at time t; v min is the lower bound of velocity; v max is the upper bound of the speed.

[0140] Update the position of the particle, the formula is as follows:

[0141] x t+1 =x t +η*v t+1 (10)

[0142] Among them, V t+1 is the velocity of the particle at time t+1; x t+1 is the position of the particle at time t+1; η is a random factor, usually drawn from a uniform distribution in [0,1] to introduce randomness.

[0143] In order to ensure that the particle position does not exceed the range, its position is adjusted. The formula is as follows:

[0144]

[0145] Among them, x t+1 is the position of the particle at time t+1; pop max The upper limit of the particle position is controlled by the maximum value of the gene; pop min The minimum value of the gene controls the lower bound of the particle position; r i is a random factor, usually drawn from a uniform distribution in the range [0,1], used to represent x t+1 Adds a small random offset.

[0146] Step 8:

[0147] Calculate the new fitness value fit1 according to the speed and position of the new particle, and then update the individual optimum.

[0148] Step 9:

[0149] First, calculate the difference in fitness. The formula is as follows:

[0150] df = fit1-fitness (11)

[0151] Among them, fit1 is the fitness value of the new particle; fitness is the fitness value of the particle.

[0152] If df < 0, the new solution fit1 is a better solution, which is directly accepted and the particle velocity and position are updated; or when When taking, the new solution fit1 is also accepted, and the velocity and position of the particle are updated. r is a random number in the range [0,1), temp iter is the current adaptive temperature value.

[0153] Step 10:

[0154] First, set the base mutation rate r b =0.1, set the basic mutation rate decay rate r d =0.001. Then calculate the dynamic mutation rate r h The adaptive mutation rate can be gradually reduced as the iteration proceeds. The formula is as follows:

[0155]

[0156] Among them, iter is the current iteration number; iterations is the total iteration number.

[0157] Then calculate the fitness-based mutation adjustment factor r f The smaller the fitness value, the higher the mutation rate. The formula is as follows:

[0158]

[0159] Among them, fitness is the current fitness value; is the maximum fitness value in history.

[0160] Finally, combined with the dynamic mutation rate r h and the fitness-based mutation adjustment factor r f Get the adaptive mutation rate r m , the formula is as follows:

[0161] r m =r h *(1+0.5*r f) (14)

[0162] And the adaptive mutation rate is limited to ensure that the calculated mutation rate remains within a reasonable range, that is, between 0 and 1. The formula is as follows:

[0163] r m '=min(max(r m ,0),1) (15)

[0164] Traverse the particles to mutate, first randomly select a dimension dim, and then calculate the variable step length m step , the formula is as follows:

[0165] m step =(pop dim -gbest dim )*r m ' (16)

[0166] Among them, pop dim is the value of the particle in the dim dimension; gbest dim is the historical maximum value of the particle in dim dimension; r m ' is the modified adaptive mutation rate.

[0167] The variation range is adjusted according to the fitness. The formula is as follows:

[0168]

[0169] Among them, m fb is the adjustment factor based on fitness; fitness is the current fitness value; is the maximum fitness value in history.

[0170] Mutate the particle population to change the step length m step Multiply by the fitness-based adjustment factor m fb , and then add it to the dim dimension of the particle to achieve mutation. The formula is as follows:

[0171] pop dim '=m step *m fb (18)

[0172] Among them, pop dim ' is the value of the particle in dim dimension after mutation; m step To change the asynchronous length; m fb is the adjustment factor based on fitness.

[0173] Check and correct the mutated value. The position of the mutated particle is in [pop min ,pop max]between.

[0174] After mutation, update and record the individual optimum and group optimum.

[0175] Step 11:

[0176] Sort the fitness values, get the fitness values ​​from small to large, and record them. Set the initial step size of reflection to α = 3, the initial step size of scaling to β = 0.3, and set the attenuation ratio α that controls the reflection step size s =0.98, controls the attenuation ratio of the scaling step β s = 0.98. Adaptive local search is performed with a probability of 0.6.

[0177] First, calculate the mean value x4 of the particle positions except the worst particle, then calculate the reflection point x5 of the worst particle and x4, correct x5 to ensure that it does not exceed the boundary, and calculate the fitness value of the reflection point x5 if Then calculate the expansion point, first calculate the adaptive step size α z , the formula is as follows:

[0178] α z =α*α s iter-1 (19)

[0179] Among them, fit worst is the worst fitness value; α is the initial step length of reflection; α s is the reflection step attenuation ratio; iter is the current iteration number.

[0180] Then calculate the expansion point x6, the calculation formula is as follows:

[0181] x6=x4+α z *(x worst -x4) (20)

[0182] Among them, x worst is the position of the worst particle in the particle swarm.

[0183] Then, x6 is corrected to ensure that it does not exceed the boundary, and the fitness value of the expansion point x6 is calculated. if Then replace the worst particle x with x6 worst ; Otherwise replace the worst particle x with x5 worst .

[0184] if Then calculate the scaling point, first calculate the adaptive step size β z , the formula is as follows:

[0185] β z =β*βs iter-1 (twenty one)

[0186] Among them, fit worst-1 is the second worst fitness value; β is the initial step size of scaling; β s is the scaling step attenuation ratio; iter is the current iteration number.

[0187] Then calculate the scaling point x7, the calculation formula is as follows:

[0188] x7=x4+β z *(x4-x worst ) (twenty two)

[0189] Among them, x worst is the position of the worst particle in the particle swarm.

[0190] Then, x7 is corrected to ensure that it does not exceed the boundary, and the fitness value fit of the expansion point x7 is calculated x7 , if fit x7 <fit worst , then replace the worst particle x with x7 worst ; Otherwise, continue to generate scaling point x8. If the x8 position is not better than the worst particle, then the best particle x zbest and the penultimate particle x worst-1 Select a new particle x9, modify x9, and replace the worst particle x with x9 worst .

[0191] After the local search is completed, the particle swarm is reordered according to the fitness value. And the optimal particle x is obtained zbest .

[0192] Step 12:

[0193] Update the array History to record the optimal value of the particle population and update the optimal value fitness zbest .

[0194] Step 13:

[0195] Determine whether the number of iterations of the entire population has reached 100. If so, proceed to step 14; otherwise, return to step 6.

[0196] Step 14:

[0197] Output the optimal value.

[0198] The method of the present invention is simulated by MATLAB software. Figure 2It is a path simulation diagram generated by the UUV from the starting point S[1,10,3] to the end point F[93,83,4] in a three-dimensional map with mountain obstacles. The unit of the coordinate axis is km. The solid line is the path generated by the present invention, the dotted line is the path generated by the traditional particle swarm algorithm, and the cross dotted line is the path generated by the fixed parameter particle swarm algorithm. By comparing different paths, it can be obtained that the path generated by the method of the present invention does not have redundant movement in the heave direction, while the paths generated by the traditional particle swarm and the fixed parameter particle swarm both have obvious "redundant" paths in the heave direction, and the path generated by the method of the present invention is more reasonable, shorter and smoother. Figure 3 The figure is a graph showing the fitness value changes of the three methods. When the number of iterations of the particle swarms of the three methods is the same, the running time of the method of the present invention is relatively efficient and the fitness value is the lowest. After 10 experiments were conducted on different methods to avoid the occurrence of accidental events, the following two tables were obtained: Table 1 is a comparison of the fitness values ​​of the three methods; Table 2 is a comparison of the running time of the three methods. Method 1 is a traditional particle swarm, and method 2 is a fixed parameter particle swarm. Since the fitness not only includes the length of the path, the fitness value has no unit. The smaller the fitness value, the better the method.

[0199] It can be intuitively obtained from Table 1 that the average fitness value of the path generated by 10 experiments of the traditional particle swarm is 219.3, the standard deviation is 35.4, and the variance is 1251.3. The average fitness value of the path generated by 10 experiments of the fixed parameter particle swarm is 179.4, the standard deviation is 11.4, and the variance is 129.2. The average fitness value of the path generated by the method of the present invention in 10 experiments is 176.1, the standard deviation is 9.2, and the variance is 85.6. According to the above analysis, the method of the present invention shows significant superiority in optimizing the path. The lowest fitness value of 176.1 is achieved in the average fitness value. In terms of stability, the method of the present invention also performs best, with the smallest standard deviation of 9.2 and variance of 85.6. It shows that the method of the present invention can stably generate high-quality solutions, and the volatility of the solutions is small.

[0200] Table 1 Comparison of fitness values ​​of three methods

[0201]

[0202] It can be intuitively obtained from Table 2 that the average running time of 10 experiments of the traditional particle swarm is 9.88 seconds, the standard deviation is 0.24, and the variance is 0.055. The average running time of 10 experiments of the fixed parameter particle swarm is 17.32 seconds, the standard deviation is 0.60, and the variance is 0.361. The average running time of 10 experiments of the method of the present invention is 10.66 seconds, the standard deviation is 0.08, and the variance is 0.007. According to the above analysis, the average running time of the method of the present invention is 10.66 seconds, which is between the traditional particle swarm and the fixed parameter particle swarm, but closer to the traditional particle swarm, indicating that the method of the present invention is relatively efficient in running time. And the running time of the method of the present invention has the smallest standard deviation of 0.1 and variance of 0.017, showing efficient and stable performance.

[0203] Combined with the above Table 1, the method of the present invention is only slightly slower than the traditional particle swarm in terms of running time, but the fitness value 176.1 generated by the method of the present invention is much lower than the fitness value 219.3 generated by the traditional particle swarm.

[0204] Table 2 Comparison of running time of three methods

[0205]

[0206] According to Table 1 and Table 2 and the above analysis, it can be concluded that the average fitness value of the method of the present invention is 176.1, which is about 19.7% lower than the average fitness value of the traditional particle swarm and about 1.8% lower than the average fitness value of the fixed parameter particle swarm. The standard deviation of the fitness value of the method of the present invention is 9.2, which is about 74.0% lower than the standard deviation of the fitness value of the traditional particle swarm and about 19.3% lower than the standard deviation of the fitness value of the fixed parameter particle swarm. The variance of the fitness value of the method of the present invention is 85.6, which is about 93.2% lower than the variance of the fitness value of the traditional particle swarm and about 33.8% lower than the variance of the fitness value of the fixed parameter particle swarm. This shows that the method of the present invention has higher stability and reliability while generating high-quality solutions.

[0207] The average running time of the method of the present invention is 10.66 seconds, which is about 7.89% slower than the running time of the traditional particle swarm, but about 42.96% faster than the running time of the fixed parameter particle swarm. The standard deviation of the running time of the method of the present invention is 0.08, which is about 66.67% lower than the standard deviation of the running time of the traditional particle swarm and 86.67% lower than the standard deviation of the running time of the fixed parameter particle swarm. The variance of the running time of the method of the present invention is 0.007, which is about 82.27% lower than the variance of the running time of the traditional particle swarm and 98.06% lower than the variance of the running time of the fixed parameter particle swarm. This shows that the method of the present invention is not only efficient but also stable in terms of running time.

[0208] The method of the present invention has a longer running time than the traditional particle swarm algorithm, but shows higher efficiency and stability than the fixed parameter particle swarm algorithm, which shows that the method of the present invention is more excellent in both efficiency and stability.

[0209] In summary, the method of the present invention improves the problems of low path quality and slow running time of fixed parameter particle swarm algorithm in path planning problems.

Claims

1. A UUV particle swarm three-dimensional path planning method with adaptive parameter adjustment, characterized in that: The following steps are involved: Step 1: Establish a three-dimensional map model with mountain obstacles, set the starting point and end point, and complete the initialization of the UUV's environment; Step 2: Initialize the particle swarm parameters, population size pop, gene maximum value pop max and the minimum value of gene pop min , total number of iterations, maximum value of cognitive factor c 1_max and the maximum value of social factor c 2_max , the maximum inertia weight w max and the minimum inertia weight w min , speed range v min and v max , initial temperature temp cooling rate r t ; Step 3: Calculate the initial fitness value and use the weighted method to linearly weight the following four aspects: distance d, height h, curvature mean m k And the penalty term res, combine the above calculation results, and use the weighted coefficient to get the objective function value fitness; Step 4: Find the initial extreme value and set the initial optimal fitness value fitness best , traverse the fitness value of each individual in the population, if the fitness value of the individual is less than the current optimal fitness value fitness best , then update fitness best is the fitness value of the individual, and records the corresponding is the extreme fitness value of the group; Step 5: Record the historical optimal solution, define an array History to record the optimal solution found in each iteration, and store the optimal solution of the current iteration Update to this array; Step 6: Calculate the adaptive inertia weight using the following formula: Among them, w is the inertia weight; w max is the maximum value of inertia weight; w min is the minimum value of inertia weight; iter is the current number of iterations; iterations is the total number of iterations; Calculate the learning factor, the formula is as follows: Among them, c1 is the cognitive factor; c 1_max is the maximum value of cognitive factor; c2 is the social factor; c 2_max is the maximum value of the social factor; is a normally distributed random number with a mean of 0 and a standard deviation of 0.2; Then, the range of the learning factor is limited to prevent the learning factor from being too large or too small; Step 7: Update and correct the particle's velocity to ensure that the velocity value remains within the normal range, and update and correct the particle's position to ensure that the particle position does not exceed the range; Step 8: Calculate the new fitness value according to the speed and position of the new particle, and then update the individual optimum; Step 9: To update the population according to the adaptive temperature, first calculate the difference in fitness, the formula is as follows: df = fit1 - fitness (3) Among them, fit1 is the fitness value of the new particle; fitness is the fitness value of the particle; If df < 0, the new solution fit1 is a better solution, directly accept it, and update the particle's velocity and position; or when When taking, the new solution fit1 is also accepted, and the velocity and position of the particle are updated; Step 10: Adaptively mutate the particles in the population, first set the basic mutation rate r b and the base mutation rate decay rate r d , and then calculate the dynamic mutation rate r h The adaptive mutation rate can be gradually reduced as the iteration proceeds. The formula is as follows: Among them, iter is the current iteration number; iterations is the total iteration number; Then calculate the fitness-based mutation adjustment factor r f The smaller the fitness value, the higher the mutation rate. The formula is as follows: Among them, fitness is the current fitness value; is the historical maximum fitness value; Finally, combined with the dynamic mutation rate r h and the fitness-based mutation adjustment factor r f Get the adaptive mutation rate r m , the formula is as follows: r m =r h *(1+0.5*r f ) (6) And the adaptive mutation rate is limited to ensure that the calculated mutation rate remains within a reasonable range, that is, between 0 and 1. The formula is as follows: r m '=min(max(r m ,0),1) (7) Traverse the particles to mutate, first randomly select a dimension dim, and then calculate the variable step length m step , the formula is as follows: m step =(pop dim -gbest dim )*r m ' (8) Among them, pop dim is the value of the particle in the dim dimension; gbest dim is the historical maximum value of the particle in dim dimension; r m ' is the modified adaptive mutation rate; The variation range is adjusted according to the fitness. The formula is as follows: Among them, m fb is the adjustment factor based on fitness; fitness is the current fitness value; is the historical maximum fitness value; Mutate the particle population to change the step length m step Multiply by the fitness-based adjustment factor m fb , and then add it to the dim dimension of the particle to achieve mutation. The formula is as follows: pop dim '=m step *m fb (10) Among them, pop dim ' is the value of the particle in dim dimension after mutation; m step To change the asynchronous length; m fb is the adjustment factor based on fitness; Check and correct the mutated value. The position of the mutated particle is in [pop min ,pop max ], after mutation, update and record the individual optimal and group optimal; Step 11: Sort the fitness values ​​to get the fitness values ​​from small to large, record and store them, set the initial step size of reflection to α, the initial step size of scaling to β, and set the attenuation ratio α that controls the reflection step size s , controls the attenuation ratio of the scaling step β s , and then perform a local search. First, calculate the mean x4 of the particle positions except the worst particle, then calculate the reflection point x5 of the worst particle and x4, and correct x5 to ensure that it does not exceed the boundary, and calculate the fitness value of the reflection point x5 if Then calculate the expansion point, first calculate the adaptive step size α z , the formula is as follows: α z =α*α s iter-1 (11) Among them, fit worst is the worst fitness value; α is the initial step length of reflection; α s is the reflection step attenuation ratio; iter is the current iteration number; Then calculate the expansion point x6, the calculation formula is as follows: x6=x4+α z *(x worst -x4) (12) Among them, x worst is the position of the worst particle in the particle group; Then, x6 is corrected to ensure that it does not exceed the boundary, and the fitness value of the expansion point x6 is calculated. if Then replace the worst particle x with x6 worst ; Otherwise replace the worst particle x with x5 worst ,if Then calculate the scaling point, first calculate the adaptive step size β z , the formula is as follows: β z =β*β s iter-1 (13) Among them, fit worst-1 is the second worst fitness value; β is the initial step size of scaling; β s is the scaling step attenuation ratio; iter is the current iteration number; Then calculate the scaling point x7, the calculation formula is as follows: x7=x4+β z *(x4-x worst ) (14) Among them, x worst is the position of the worst particle in the particle group; Then, x7 is corrected to ensure that it does not exceed the boundary, and the fitness value of the expansion point x7 is calculated. if Then replace the worst particle x with x7 worst ; Otherwise, continue to generate scaling point x8. If the x8 position is not better than the worst particle, then and the penultimate particle x worst-1 Select a new particle x9, modify x9, and replace the worst particle x with x9 worst After the local search is completed, the particle swarm is reordered according to the fitness value, and the optimal particle is obtained Step 12: Update the array History to record the optimal value of the particle population and update the optimal value Step 13: Determine whether the number of iterations of the entire population has been reached, if yes, go to step 14; otherwise, go back to step 6; Step 14: Output the optimal value.

Citation Information

Patent Citations

  • Temperature compensation method and system for silicon micro-accelerometer based on improved PSO (Particle Swarm Optimization) optimized neural network

    CN108120451A

  • UUV path planning method based on particle swarm algorithm

    CN111381600A

  • Multi-mode superposed light beam generation method for improving communication capacity

    CN114665971A

  • Improved particle filter target tracking method based on particle swarm

    CN116227533A

  • Two-stage multi-target-point global path planning method for intelligent unmanned ship

    CN117075471A