[go: up one dir, main page]

CN114995390B - A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment - Google Patents

A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment Download PDF

Info

Publication number
CN114995390B
CN114995390B CN202210507599.2A CN202210507599A CN114995390B CN 114995390 B CN114995390 B CN 114995390B CN 202210507599 A CN202210507599 A CN 202210507599A CN 114995390 B CN114995390 B CN 114995390B
Authority
CN
China
Prior art keywords
female
algorithm
male
mayflies
adaptive parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210507599.2A
Other languages
Chinese (zh)
Other versions
CN114995390A (en
Inventor
邹阿威
王雷
蔡劲草
李伟民
李凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Polytechnic University
Original Assignee
Anhui Polytechnic University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Polytechnic University filed Critical Anhui Polytechnic University
Priority to CN202210507599.2A priority Critical patent/CN114995390B/en
Publication of CN114995390A publication Critical patent/CN114995390A/en
Application granted granted Critical
Publication of CN114995390B publication Critical patent/CN114995390B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Feedback Control In General (AREA)

Abstract

本发明公开一种基于动态自适应参数调整的蜉蝣算法的移动机器人路径规划方法,包括以下步骤:S1、采用栅格法创建机器人环境地图;S2、初始化动态自适应参数调整的蜉蝣算法的相关参数;S3、更新算法中自适应参数数值S4、评估个体适应度,找到个体最优与群体最优位置;S5、更新雄雌蜉蝣位置速度,评估适应值;S6、对雄雌蜉蝣进行排序,依次序进行雄雌交配;S7、将子代随机分为雄性雌性;S8、对雄雌蜉蝣进行排序,保留前n个优秀个体,更新个体最优与群体最优位置;S9、判断是否满足迭代停止条件,若是,则执行S10;否则,循环次数增加1,执行S3;S10、输出保存的最优路径。本发明不仅提高了算法的全局最优解而且提高了算法收敛速度。

The present invention discloses a mobile robot path planning method based on a mayfly algorithm with dynamic adaptive parameter adjustment, comprising the following steps: S1, creating a robot environment map by using a grid method; S2, initializing relevant parameters of the mayfly algorithm with dynamic adaptive parameter adjustment; S3, updating the adaptive parameter values in the algorithm; S4, evaluating individual fitness, finding the individual optimal position and the group optimal position; S5, updating the position speed of male and female mayflies, and evaluating the fitness value; S6, sorting male and female mayflies, and performing male and female mating in sequence; S7, randomly dividing the offspring into male and female; S8, sorting male and female mayflies, retaining the first n excellent individuals, and updating the individual optimal position and the group optimal position; S9, judging whether the iteration stop condition is met, if so, executing S10; otherwise, the number of cycles is increased by 1, and S3 is executed; S10, outputting the saved optimal path. The present invention not only improves the global optimal solution of the algorithm but also improves the convergence speed of the algorithm.

Description

Dynamic adaptive parameter adjustment-based dayfish algorithm mobile robot path planning method
Technical Field
The invention relates to the technical field of robot path planning, in particular to a method for planning a mobile robot path based on a dayf algorithm for dynamic self-adaptive parameter adjustment.
Background
Along with the progress of technology, internet technology is continuously developed, robots are increasingly widely applied, and mobile robots play a great role in various fields such as production and life. In the use process of the mobile robot, the path planning plays a great role, and is an important ring for realizing the functions of the mobile robot. Path planning refers to that a mobile robot realizes a feasible path from a starting point to a target point under a certain constraint condition, wherein the feasible path meets a specific optimization criterion. Path planning research has been continuously developed in recent years, and there are many excellent optimization methods, such as a traditional artificial potential field method, an a-algorithm, a rapid expansion random tree method, and emerging intelligent algorithms, such as a particle swarm algorithm, an ant colony algorithm, a genetic algorithm, a dada algorithm, and the like.
The method is a novel intelligent optimization algorithm proposed by Konstantinos Zervoudakis in 2020, simulates the flight behavior and mating process of the dayf, integrates the advantages of the population intelligent and evolutionary algorithm, can be regarded as an improvement of the particle swarm optimization algorithm, and integrates the advantages of the particle swarm, the genetic algorithm and the firefly algorithm. However, the f-law algorithm has various advantages and also has some disadvantages, such as slow convergence speed, easy sinking into a locally optimal solution, poor solution accuracy, and the like. While many students at home and abroad try to improve the traditional f-law algorithm, a large number of simulation results show that some improvement strategies on the basic f-law algorithm are feasible and effective, some defects still exist, such as imbalance between global searching and local searching caused by fixed inertia weight and learning factors, so that the early optimizing capability is insufficient, local optimization is easy to generate, and the optimal area is easy to punch out in the later stage, so that the precision is insufficient.
Disclosure of Invention
The invention aims to provide a mobile robot path planning method based on dynamic self-adaptive parameter adjustment, which can overcome the defects of slow convergence speed, easy sinking into local optimum and the like of the traditional mayday algorithm, and not only improves the quality of obtaining the global optimal solution of the robot path planning, but also improves the convergence speed.
The technical scheme adopted for solving the technical problems is as follows:
a mobile robot path planning method based on a dayfish algorithm of dynamic self-adaptive parameter adjustment comprises the following steps:
Initializing an environment, digitally encoding a motion environment, and mapping a 0-1 matrix obtained by encoding into a raster pattern model;
Step 2, initializing fixed parameters of the algorithm, namely the position x, the speed v, the number n, the positive attraction coefficient a 3, the vision coefficient beta, the random walk coefficient fl, the speed maximum value Velmax, the speed minimum value Velmin, the iteration number T and the dance coefficient dance of the male-female-type;
Step 3, updating the self-adaptive parameter value, namely positive suction coefficient a 1,a2 and inertia weight g
Step 4, evaluating individual fitness, finding out an individual optimal pbest and a group optimal position gbest, and calculating the fitness according to a formula (1);
Step 5, updating the male and female position speeds through formulas (2) - (5), and evaluating the fitness;
Where r p,rg is the Cartesian distance between x i and local and global optima, e is a random number of [ -1,1], and r mf is the Cartesian distance between male and female.
Step 6, sequencing male and female dayfles according to the fitness from low to high, and sequentially carrying out male and female mating through formulas (6) and (7);
offspring1=L*male+(1-L)*female (6)
offspring2=L*female+(1-L)*male (7)
where males are male parents, female is female parent, and L is a random value of [0,1 ].
Step 7, randomly dividing the offspring into male and female;
step 8, sorting male and female parents according to the fitness, reserving the first n excellent individuals, and updating the optimal positions of the individuals and the optimal positions of groups;
step 9, judging whether the iteration stop condition is met, if yes, executing step 10, otherwise, increasing the cycle number by 1, and executing step 3;
step 10 outputs the saved optimal path.
The method has the advantages that the method improves the f-type algorithm based on a dynamic self-adaptive parameter adjustment strategy, can obtain the global optimal solution, improves the efficiency and stability of path planning and solving, improves the balance of local searching capability and global searching capability through dynamic self-adaptive parameter adjustment, accelerates the execution efficiency of the algorithm, and improves the optimizing capability of the algorithm. Simulation experiment results show that the performance of the Alfa algorithm is obviously improved by adopting the novel dynamic self-adaptive parameter adjustment improvement strategy.
Drawings
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
FIG. 1 is a schematic diagram of a grid pattern model;
The optimal path obtained by the two algorithms in fig. 2;
FIG. 3 is an iterative convergence comparison of two algorithms;
The optimal path obtained by the two algorithms in FIG. 4;
Fig. 5 is an iterative convergence comparison of two algorithms.
Detailed Description
The invention aims to provide a mobile robot path planning method of a dynamic self-adaptive parameter adjustment strategy, which overcomes the defects of slow convergence speed, easy local optimization and the like of the traditional dayf algorithm, improves the quality of obtaining the global optimal solution of the robot path planning, and improves the convergence speed.
In path planning research, environmental modeling is the primary work, and so far, there are many related environmental modeling methods applied to path planning problems, such as a grid graph method, a topology graph method, a visual graph method, and the like. The grid pattern method is widely applied due to the characteristics of simple modeling and easy realization, so the grid pattern method is selected as an environment modeling method. In the raster pattern model, a blank grid is typically used to represent a movable grid, and a black grid is used to represent an obstacle grid, i.e., a non-passable. FIG. 1 is a schematic diagram of a raster image environment.
In the process of path planning by the traditional dayfish algorithm, the inertia weight and the positive attraction coefficient are usually set to a fixed value, which makes the local searching capability and the global searching capability unbalanced, is easy to sink into local optimum and limits the iteration speed. After the inertia weight is set as the self-adaptive parameter, the particle can be given a larger speed in the early period of optimization, the capacity of searching the global optimal solution can be improved, and when the optimal solution is approached in the later period, the speed is reduced, so that the particle speed is not excessively high and deviates from an optimal position area, and the global optimal solution is missed and falls into local optimal. And after the positive attraction coefficient is also set as the self-adaptive parameter, the local optimization and the global optimization of the algorithm are kept balanced, the experience obtained from the algorithm is increased in the early stage, the diversity of the algorithm result is increased, the situation of being trapped into the local optimization is avoided, the later-stage experience is more from the group, and the accuracy of the result is increased.
In the improved dayf algorithm of dynamic adaptive parameter adjustment strategy, the adaptive parameters are set as in formulas (8) - (10)
The technical scheme adopted for solving the technical problems is as follows:
A mobile robot path planning method for an improved dayf algorithm for dynamic adaptive parameter adjustment strategy, comprising the steps of:
Initializing an environment, digitally encoding a motion environment, and mapping a 0-1 matrix obtained by encoding into a raster pattern model;
Step 2, initializing fixed parameters of the algorithm, namely the position x, the speed v, the number n, the positive attraction coefficient a 3, the vision coefficient beta, the random walk coefficient fl, the speed maximum value Velmax, the speed minimum value Velmin, the iteration number T and the dance coefficient dance of the male-female-type;
Step 3, updating the self-adaptive parameter value, namely positive suction coefficient a 1,a2 and inertia weight g
Step 4, evaluating individual fitness, finding out an individual optimal pbest and a group optimal position gbest, and calculating the fitness according to a formula (1);
Step 5, updating the male and female position speeds through formulas (2) - (5), and evaluating the fitness;
Where r p,rg is the Cartesian distance between x i and local and global optima, e is a random number of [ -1,1], and r mf is the Cartesian distance between male and female.
Step 6, sorting male and female dayfles according to the fitness from low to high, and carrying out male and female mating by the formulas (6) and (7) in sequence
offspring1=L*male+(1-L)*female (6)
offspring2=L*female+(1-L)*male (7)
Where males are male parents, female is female parent, and L is a random value of [0,1 ].
Step 7, randomly dividing the offspring into male and female;
step 8, sorting male and female parents according to the fitness, reserving the first n excellent individuals, and updating the optimal positions of the individuals and the optimal positions of groups;
step 9, judging whether the iteration stop condition is met, if yes, executing step 10, otherwise, increasing the cycle number by 1, and executing step 3;
step 10 outputs the saved optimal path.
The method has the advantages that the method improves the f-type algorithm based on a dynamic self-adaptive parameter adjustment strategy, can obtain the global optimal solution, improves the efficiency and stability of path planning and solving, improves the balance of local searching capability and global searching capability through dynamic self-adaptive parameter adjustment, accelerates the execution efficiency of the algorithm, and improves the optimizing capability of the algorithm.
The effect of the invention can be further illustrated by the following simulation experiments:
To verify the correctness and rationality of the method, the algorithm is simulated under a 20 x 20 grid environment model using python language programming and compared to a basic f-algorithm. The algorithm parameters are set to 10 for the male and female population sizes in the traditional mayday algorithm, the inertia weight g=0.8, the positive attraction coefficient a1=1.0, a2=1.5, a3=1.5, the random walk coefficient fl=0.5, the speed maximum Velmax =20, the speed minimum Velmin = -20, the maximum iteration number T=100, the dance coefficient dance =0.5, and the algorithm g, a1 and a2 are set to the adaptive parameters, and the rest parameters are the same as above.
The simulation results are shown in fig. 2 and 3. The analysis of the simulation result data shows that the optimal path length obtained by the traditional Algorithm is 32.6427, the minimum iteration number is 45 generations, the path length obtained by the dynamic self-adaptive parameter adjustment Algorithm is 28.3583, and the minimum iteration number is 11 generations.
In order to further verify the stability of the improved algorithm provided by the invention, an improved ant colony algorithm recorded in an article of an intelligent trolley path planning based on the ant colony algorithm published in 2021 by journal computer simulation is selected, and the simulation is performed by using the method of the invention under a more complex grid environment of 30 multiplied by 30 recorded in the article.
The simulation results are shown in fig. 4 and 5. It can be seen from the figure that 60 generations of improved dayf algorithm are needed in the literature to converge to the optimal solution 42, while the adaptive parameter adjustment dayf algorithm of the present invention can find the optimal solution 41.7812 only by 18 generations, and in addition, the number of angles of the optimal path obtained by the two algorithms is 8 and 3 respectively.
The comparison simulation can be used for obtaining the conclusion that the dynamic self-adaptive parameter adjustment strategy is adopted to improve the traditional dayf algorithm, so that the early-stage searching effect of the algorithm can be effectively improved, the convergence rate of the algorithm is improved, and the optimizing result and smoothness are better than those of the traditional dayf algorithm and the literature improvement algorithm.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the invention in any way, and any person skilled in the art may make many possible variations and modifications to the technical solution of the present invention or modify the same into equivalent embodiments without departing from the scope of the technical solution of the present invention. Therefore, any simple modification, equivalent substitution, equivalent variation and modification of the above embodiments according to the technical substance of the present invention, which do not depart from the technical solution of the present invention, still fall within the scope of the technical solution of the present invention.

Claims (1)

1.一种基于动态自适应参数调整的蜉蝣算法的移动机器人路径规划方法,包括以下步骤:1. A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment, comprising the following steps: 步骤1初始化环境,对运动环境进行数字编码,编码得到的0-1矩阵映射为栅格图模型;Step 1: Initialize the environment, digitally encode the motion environment, and map the encoded 0-1 matrix into a grid graph model; 步骤2初始化算法的固定参数:雄雌蜉蝣的位置x,速度v,数量n,雌性蜉蝣正吸引系数a3,视力系数β,随机游走系数fl,速度最大值Velmax,速度最小值Velmin,迭代次数T,舞蹈系数dance;Step 2: Initialize the fixed parameters of the algorithm: the position x, speed v, number n of male and female mayflies, positive attraction coefficient a 3 of female mayflies, visual coefficient β, random walk coefficient fl, maximum speed Velmax, minimum speed Velmin, number of iterations T, and dance coefficient dance; 步骤3更新自适应参数数值:正吸引系数a1,a2,惯性权重g,自适应参数的设置如公式(8)-(10)Step 3: Update the adaptive parameter values: positive attraction coefficient a 1 , a 2 , inertia weight g. The settings of the adaptive parameters are as shown in formulas (8)-(10) 步骤4评估个体适应度,找到个体最优pbest与群体最优位置gbest,适应度依公式(1)计算;Step 4: Evaluate individual fitness, find the individual optimal pbest and the group optimal position gbest, and calculate the fitness according to formula (1); 步骤5通过公式(2)-(5)更新雄雌蜉蝣位置速度,评估适应度;Step 5: Update the position and speed of male and female mayflies through formulas (2)-(5) to evaluate fitness; 其中rp,rg是xi和局部最优和全局最优间的笛卡尔距离,e是[-1,1]的随机数,rmf是雄性和雌性之间的笛卡尔距离;Where r p , r g are the Cartesian distances between xi and the local optimum and the global optimum, e is a random number in [-1,1], and r mf is the Cartesian distance between males and females; 步骤6依适应度从低到高对雄雌蜉蝣进行排序,依次序通过公式(6),(7)进行雄雌交配;Step 6: Sort the male and female mayflies according to their fitness from low to high, and mate them in order according to formulas (6) and (7); offspring1=L*male+(1-L)*female (6)offspring1=L*male+(1-L)*female (6) offspring2=L*female+(1-L)*male (7)offspring2=L*female+(1-L)*male (7) 其中male是雄性父代,female是雌性父代,L是[0,1]的随机值;Where male is the male parent, female is the female parent, and L is a random value in [0,1]; 步骤7将子代随机分为雄性雌性;Step 7: randomly divide the offspring into males and females; 步骤8对雄雌蜉蝣依适应度进行排序,保留前n个优秀个体,更新个体最优与群体最优位置;Step 8: Sort the male and female mayflies according to their fitness, retain the top n excellent individuals, and update the optimal positions of the individuals and the group; 步骤9判断是否满足迭代停止条件,若是,则执行步骤10;否则,循环次数增加1,执行步骤3;Step 9 determines whether the iteration stop condition is met. If so, execute step 10; otherwise, increase the number of loops by 1 and execute step 3; 步骤10输出保存的最优路径。Step 10 outputs the saved optimal path.
CN202210507599.2A 2022-05-10 2022-05-10 A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment Active CN114995390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210507599.2A CN114995390B (en) 2022-05-10 2022-05-10 A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210507599.2A CN114995390B (en) 2022-05-10 2022-05-10 A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment

Publications (2)

Publication Number Publication Date
CN114995390A CN114995390A (en) 2022-09-02
CN114995390B true CN114995390B (en) 2025-02-07

Family

ID=83025006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210507599.2A Active CN114995390B (en) 2022-05-10 2022-05-10 A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment

Country Status (1)

Country Link
CN (1) CN114995390B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357028B (en) * 2022-09-23 2024-05-10 桂林电子科技大学 Mobile robot path planning method for sorting wild horse optimization algorithm
CN116191616B (en) * 2023-03-07 2023-10-20 淮阴工学院 A wireless charge and discharge adjustment device suitable for welding production lines

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017215044A1 (en) * 2016-06-14 2017-12-21 广东技术师范学院 Automatic path planning method for mobile robot and mobile robot
CN113485451A (en) * 2021-08-19 2021-10-08 金陵科技学院 Robot multi-target path planning based on improved mayflies optimization algorithm

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017215044A1 (en) * 2016-06-14 2017-12-21 广东技术师范学院 Automatic path planning method for mobile robot and mobile robot
CN113485451A (en) * 2021-08-19 2021-10-08 金陵科技学院 Robot multi-target path planning based on improved mayflies optimization algorithm

Also Published As

Publication number Publication date
CN114995390A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN109945881B (en) A mobile robot path planning method based on ant colony algorithm
CN115113628B (en) A path planning method for inspection robots based on improved grey wolf algorithm
CN114995390B (en) A mobile robot path planning method based on the mayfly algorithm with dynamic adaptive parameter adjustment
CN110794842A (en) Reinforced learning path planning algorithm based on potential field
CN107253195B (en) A kind of carrying machine human arm manipulation ADAPTIVE MIXED study mapping intelligent control method and system
CN108037758A (en) A kind of method for planning path for mobile robot based on improvement AFSA
CN112327876B (en) Robot path planning method based on terminal distance index
CN111310885A (en) A chaotic beetle herd search algorithm with mutation strategy
CN108036790A (en) Robot path planning method and system based on mutillid algorithm under a kind of obstacle environment
CN113485451A (en) Robot multi-target path planning based on improved mayflies optimization algorithm
CN111222286A (en) A Parameter Optimization Method Based on Transmission Line State Estimation
CN110095788A (en) A kind of RBPF-SLAM improved method based on grey wolf optimization algorithm
CN115933669B (en) Mobile robot path planning method based on improved butterfly optimization algorithm
CN101740029B (en) Three-particle cooperative optimization method applied to vector quantization-based speaker recognition
CN113110490A (en) Robot multi-target path planning based on improved goblet sea squirt group algorithm
CN111080035A (en) Global Path Planning Method Based on Improved Quantum Particle Swarm Optimization Algorithm
CN116362010A (en) Electromagnetic transient simulation parameter optimization method based on improved dayfish algorithm
CN113722980A (en) Ocean wave height prediction method, system, computer equipment, storage medium and terminal
CN115933693A (en) Robot path planning method based on adaptive chaotic particle swarm algorithm
CN113791613A (en) Improved slime optimization algorithm and robot multi-target path planning based on algorithm
CN116795098A (en) Spherical amphibious robot path planning method based on improved sparrow search algorithm
CN116834037A (en) Dynamic multi-objective optimization-based picking mechanical arm track planning method and device
CN112633455A (en) Random inertial weight particle swarm optimization method
Lee et al. Time-dependent genetic algorithm and its application to quadruped’s locomotion
CN114734446B (en) High-precision position control method of manipulator based on improved reinforcement learning algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant