Path planning method based on individual enhanced equilibrium optimization algorithm and computer equipment
By introducing particle swarm enhancement processing into the traditional equilibrium optimization algorithm and updating individual positions in the equilibrium state pool, the problem of the algorithm falling into local optimality is solved, and the global search capability of path planning is improved and the solution quality is improved.
Patent Information
- Application Number
- CN202410879428.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-25
AI Technical Summary
Traditional equilibrium optimization algorithms are prone to fall into local optima during path planning, resulting in non-global optimal path planning results.
During each iteration, the particle swarm velocity and position are updated for the better individuals used to determine the equilibrium state pool, and the better individuals are retained through fitness function evaluation to build an improved equilibrium state pool to enhance the global search of the algorithm. ability.
It effectively improves the global searchability of the algorithm, reduces the probability of falling into a local optimal solution, and ensures the accuracy and quality of path planning results.
Smart Images

Figure CN118839833A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of path planning, and in particular relates to a path planning method and computer equipment based on an individual enhanced equilibrium optimization algorithm. Background Art
[0002] Path planning is the core module of the intelligent unmanned equipment mission planning system. Its purpose is to plan a safe and reasonable path while achieving the optimal value in a given indicator.
[0003] There are many existing intelligent planning algorithms. Early researchers mostly used graph search algorithms such as the RRT algorithm and the A* algorithm to perform path planning. However, such methods have many problems. For example, when the RRT algorithm calculates the distance between a random sampling point and each path point in the path point set, it traverses each path point and calculates the distance between the random sampling point and each path point respectively. This method undoubtedly increases the time consumption of the overall path planning. Moreover, both the RRT algorithm and the A* algorithm face the problem of exponentially increasing running time as the map scale increases.
[0004] After that, researchers tend to model path planning as an optimization problem and use swarm intelligence algorithms for iterative solutions. The Equilibrium Optimizer (EO) algorithm is an advanced swarm intelligence optimization algorithm inspired by the law of conservation of mass in the control volume, in which the mass balance equation is used to describe the concentration of non-reactive components in the control volume. However, the traditional equilibrium optimization algorithm has poor global search performance and is prone to fall into local optimality due to this problem, making the final path planning result non-globally optimal. Summary of the invention
[0005] The purpose of the present invention is to provide a path planning method and computer device based on an individual enhanced balanced optimization algorithm, so as to solve the problem that when using a traditional balanced optimization algorithm for path planning, the path planning result obtained is not globally optimal and falls into local optimality.
[0006] In order to solve the above technical problems, the present invention provides a path planning method based on an individual enhanced balanced optimization algorithm, the method comprising: according to the starting point and the end point of the path planning task, using an improved balanced optimization algorithm obtained by improving a traditional balanced optimization algorithm to perform path planning to obtain an optimal path planning result between the starting point and the end point; the improvement of the improved balanced optimization algorithm comprises: before determining the equilibrium state pool in each iteration process, firstly performing an enhancement process on the selected better individuals for determining the equilibrium state pool, the enhancement process is firstly using a particle swarm speed update method to update the speed of the better individuals, and then using a particle swarm position update method to achieve position update of the better individuals according to the speed update result; then the better individuals after the enhancement process are respectively compared with the fitness values of the better individuals before the enhancement process, and the individuals with better fitness values are retained; and the equilibrium state pool in this iteration process is determined using the retained individuals.
[0007] Furthermore, the fitness function set in the improved equilibrium optimization algorithm is:
[0008]
[0009] In the formula, f represents the fitness value; (x i ,y i ) represents the coordinates of the path points on the path planning result corresponding to the individual, i = 1, 2, ..., N; n is the number of path points that collide with environmental obstacles, and k represents the penalty factor.
[0010] Furthermore, a B-spline curve is generated according to the path planning result corresponding to the individual, and the B-spline curve is discretized into a total of N equidistant path points.
[0011] Furthermore, the number of better individuals used to determine the equilibrium state pool is 4.
[0012] To solve the above technical problems, the present invention also provides a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the path planning method based on the individual enhanced equilibrium optimization algorithm introduced above.
[0013] The beneficial effects of the present invention are as follows: the present invention is an improved invention, which no longer uses the traditional equilibrium optimization algorithm for path planning, but improves the traditional equilibrium optimization algorithm and uses the improved equilibrium optimization algorithm for path planning. Considering that the individuals in the equilibrium state pool are the best individuals in this iteration process and are expected to be the global optimum, if these individuals fall into the local optimum, the solution accuracy of the entire algorithm will be greatly affected. Therefore, the specific improvement point is that before determining the equilibrium state pool, the better individuals used to determine the equilibrium state pool are enhanced. The specific enhancement process is to use the particle swarm speed and position update method to update the positions of the best individuals, and use the fitness function to evaluate the advantages and disadvantages between the individuals after the enhancement process and the individuals before the enhancement process, and retain the better individuals to determine the equilibrium state pool. Since the particle swarm algorithm refers to the individual optimal position and the global optimal position to update the individual position, the improved equilibrium optimization algorithm used in the present invention can refer to the position of the individual in the equilibrium state pool to update the individual position, so that it can jump out of the local optimum, and the global search ability of the solution space is stronger, which effectively enhances the global searchability of the algorithm, makes the probability of falling into the local optimal solution lower, and more effectively obtains the global optimal solution, improves the quality of the algorithm solution set, and ensures the accuracy of the path planning result. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of a path planning method introduced in an embodiment of the method of the present invention;
[0015] Figure 2 It is an optimal path diagram for solving the path planning problem using the traditional particle swarm algorithm (PSO) in the embodiment of the method of the present invention;
[0016] Figure 3 It is an optimal path diagram for solving the path planning problem using a traditional equilibrium optimization algorithm (EO) in the method embodiment of the present invention;
[0017] Figure 4 It is an optimal path diagram for solving the path planning problem using a particle swarm enhanced equilibrium optimization algorithm (PSEEO) in the method embodiment of the present invention;
[0018] Figure 5 It is a convergence curve diagram of the path planning problem solved by the traditional particle swarm algorithm (PSO), the traditional equilibrium optimization algorithm (EO) and the particle swarm enhanced equilibrium optimization algorithm (PSEEO) in the embodiment of the method of the present invention. DETAILED DESCRIPTION
[0019] The focus of the present invention is to use an improved balanced optimization algorithm for path planning. The improvement of the improved balanced optimization algorithm is that in order to avoid falling into the local optimum, before determining the equilibrium state pool in each iteration process, the better individuals used to determine the equilibrium state pool are first subjected to particle swarm enhancement processing. After these better individuals are enhanced, they are compared with the better individuals before the enhancement processing, and the individuals with better fitness values are retained, and then these retained individuals are used to determine the equilibrium state pool. This method introduces the particle swarm enhancement processing of individuals into the balanced optimization algorithm, effectively enhancing the global exploratory nature of the balanced optimization algorithm, so that the improved balanced optimization algorithm has better performance in path planning problems and avoids falling into the local optimum. In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0020] Method Example:
[0021] The present invention provides a path planning method embodiment based on an individual enhanced equilibrium optimization algorithm, which is a method for path planning using an improved equilibrium optimization algorithm, wherein the improved equilibrium optimization algorithm is a particle swarm enhanced equilibrium optimization algorithm (Particle Swarm Enhanced Equilibrium Optimizer, PSEEO). The specific implementation process of the method is as follows: Figure 1 The following is an application of this method to the unmanned equipment path planning task. The specific implementation process is as follows:
[0022] Step 1: Set the starting and ending positions of the path for the unmanned equipment path planning task and obtain environmental obstacle information.
[0023] Set the path starting point coordinates (x s ,y s ), the coordinates of the end point of the path (x t ,y t ), and model the obstacles in the map through sensing equipment or predicted environmental information. In this embodiment, (x s ,y s )=(5,5),(x t ,y t )=(45,45).
[0024] Step 2: Initialize the algorithm parameters, use the initial population as the current population and execute step 3.
[0025] The parameters to be set include: the maximum number of iterations MaxIter, the population size PopSize, the inertia factor w, the learning factors c1 and c2. And initialize the position of each individual in the population. The specific expression is shown in formula (1).
[0026] C=lb+(ub-lb)*rand (1)
[0027] Where C is the position of the individual in the initial population, lb is the lower boundary of the path planning problem, ub is the upper boundary of the path planning problem, and rand is used to generate a random number between 0 and 1.
[0028] In this embodiment, MaxIter=200, PopSize=200, (Iter is the number of iterations), c1=0.8, c2=0.8.
[0029] Step three, determine whether the iteration termination condition is met. The iteration termination condition here is that the number of iterations reaches the maximum number of iterations MaxIter: when the iteration termination condition is met, stop the iteration and output the individual with the smallest fitness value, which is the optimal path planning result. If it is not met, execute step four.
[0030] Step 4: Evaluate the fitness of each individual in the current population.
[0031] In this embodiment, for an individual, a corresponding B-spline curve is generated according to the path planning result corresponding to the individual, and the B-spline curve is discretized into N equidistant path points (x i ,y i )(i=1,2,...,N), and then use the fitness function shown in formula (2) to evaluate the individual fitness. The smaller the fitness value, the better the individual.
[0032]
[0033] Where n is the number of path points that collide with environmental obstacles; k is the penalty factor, which is used to process constraints and can be set to 10 5 .
[0034] Here, a B-spline curve is generated based on the path planning results corresponding to the individual, and then the B-spline curve is discretized. The purpose of this is to clarify the specific path and discretize the path to determine the length of the path, that is, To achieve this purpose, as another implementation, the path planning results corresponding to the individuals can be generated into Bezier curves and discretized to facilitate obtaining the path points on the path.
[0035] Step 5: Construct a candidate solution pool (i.e., equilibrium state pool) for particle swarm enhancement. The specific process is as follows:
[0036] 1) According to the fitness of each individual in the current population determined in step 4, select the four individuals with the highest fitness values and mark them as It should be noted that the four individuals selected here are the number obtained by balancing the calculation efficiency and calculation accuracy, and this value can be adjusted according to the actual situation.
[0037] 2) Use formula (3) to calculate the four individuals obtained in step 1) (i.e., four candidate solutions) are enhanced by particle swarm optimization, and the positions of the four optimal individuals after particle swarm optimization are obtained. The positions of the individuals after particle swarm optimization are updated according to formula (4), and the speeds are updated according to formula (3). The speed and position update formulas in the particle swarm algorithm are selected here to enhance the four individuals because the particle swarm algorithm refers to the optimal individual. And the global optimum The position of the i-th individual is updated by the position of the i-th individual, so that the algorithm proposed in the present invention can refer to With Ceq ave Iter The position of the i-th individual is updated according to its position, which has a stronger global exploration ability in the solution space and a lower probability of falling into the local optimal solution.
[0038]
[0039] In the formula, is the speed of the i-th individual after the Iter-th iteration update, is the speed of the i-th individual after the Iter-1th iteration update, w is the inertia factor, c1 and c2 are both learning factors, is the individual optimum in the Iter-1th iteration, It is the global optimum in the Iter-1th iteration, and rand is used to generate random numbers between 0 and 1.
[0040]
[0041] In the formula, is the position of the i-th individual after the particle swarm is enhanced, is the position of the i-th better individual before being enhanced by the particle swarm.
[0042] 3) Determine the fitness of the individual after particle swarm enhancement, and compare it with the fitness of the individual before particle swarm enhancement, and retain the better individual. The specific expression is shown in formula (5). In this process, the individuals with better fitness after evolution operation are selected mainly to speed up the convergence of the algorithm.
[0043]
[0044] In the formula, The position of the better individuals to be retained.
[0045] 4) Calculation The expression is shown in formula (6).
[0046]
[0047] 5) Construct a candidate solution pool for particle swarm enhancement The expression is shown in formula (7).
[0048]
[0049] Step 6: Update the position of each individual in the current population and re-execute step 3 for iterative calculation.
[0050] In this step, the positions of each individual are updated according to the traditional equilibrium optimization algorithm, and the expression is shown in (8).
[0051]
[0052] In the formula, represents the updated position of the individual, is the candidate solution pool enhanced from the particle swarm The position of the randomly selected individual in , F, G and λ are coefficients, and the update expression is formula (9).
[0053]
[0054] In the formula, sign represents the sign function, and r represents a random number in the interval [0,1].
[0055] The method of the present invention is experimentally verified below to illustrate the effectiveness and reliability of the method of the present invention. Figure 2 to Figure 5 As shown, the shortest path of the traditional particle swarm algorithm converges to 67.13, the traditional balanced optimization algorithm converges to 65.74, and the particle swarm enhanced balanced optimization algorithm proposed in the present invention converges to 57.87. The method of the present invention effectively improves the global exploratory nature of the balanced optimization algorithm, making it easier to obtain the global optimal solution.
[0056] In summary, the present invention introduces the process of particle swarm enhancement in the process of constructing a balanced state pool in the traditional equilibrium optimization algorithm. By improving the quality of solutions in the candidate solution pool, the global exploration of the traditional equilibrium optimization algorithm can be effectively enhanced, thereby planning a better path for the intelligent agent.
[0057] Computer equipment example:
[0058] A computer device embodiment of the present invention includes a memory, a processor, an internal bus and a computer program stored in the memory, and the processor and the memory communicate and exchange data with each other through the internal bus. The processor executes the computer program to implement the steps of a path planning method based on an individual enhanced equilibrium optimization algorithm introduced in the method embodiment of the present invention. Among them, the processor can be a processing device such as a microprocessor MCU, a programmable logic device FPGA, etc.; the memory can be various memories that use electrical energy to store information, such as RAM, ROM, etc., or it can be a memory that uses other methods. The specific implementation process, principle, and effect that can be achieved of the method have been described in detail in the method embodiment, and will not be repeated in this embodiment.
[0059] Specific implementation methods are given above, but the present invention is not limited to the described implementation methods. The basic idea of the present invention lies in the above basic scheme. For ordinary technicians in this field, it does not take creative work to design various deformed models, formulas, and parameters according to the teachings of the present invention. Changes, modifications, substitutions, and variations of the implementation methods without departing from the principles and spirit of the present invention still fall within the scope of protection of the present invention.
Claims
1. A path planning method based on individual enhanced equilibrium optimization algorithm, It is characterized in that The method comprises: according to the starting point and the end point of the path planning task, using an improved balanced optimization algorithm obtained by improving a traditional balanced optimization algorithm to perform path planning to obtain an optimal path planning result between the starting point and the end point; The improvements of the improved equilibrium optimization algorithm include: before determining the equilibrium state pool in each iteration process, firstly, the screened better individuals used to determine the equilibrium state pool are enhanced, and the enhancement process is to first use the particle swarm velocity update method to update the velocity of the better individuals, and then use the particle swarm position update method to achieve the position update of the better individuals according to the velocity update result; then the better individuals after the enhancement process are compared with the fitness values of the better individuals before the enhancement process, and the individuals with better fitness values are retained; the retained individuals are used to determine the equilibrium state pool in this iteration process.
2. The path planning method based on the individual enhanced balanced optimization algorithm according to claim 1, It is characterized in that The fitness function set in the improved equilibrium optimization algorithm is: In the formula, f represents the fitness value; (x i ,y i ) represents the coordinates of the path points on the path planning result corresponding to the individual, i = 1, 2, ..., N; n is the number of path points that collide with environmental obstacles; k represents the penalty factor.
3. The path planning method based on the individual enhanced balanced optimization algorithm according to claim 1, It is characterized in that A B-spline curve is generated according to the path planning results corresponding to the individual, and the B-spline curve is discretized into a total of N equidistant path points.
4. The path planning method based on the individual enhanced balanced optimization algorithm according to any one of claims 1 to 3, It is characterized in that The number of better individuals used to determine the equilibrium state pool is 4.
5. A computer device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the path planning method based on the individual enhanced balanced optimization algorithm according to any one of claims 1 to 4.
