CN116050685A - Path planning method based on improved multi-factor optimization - Google Patents

Path planning method based on improved multi-factor optimization Download PDF

Info

Publication number
CN116050685A
CN116050685A CN202211728507.XA CN202211728507A CN116050685A CN 116050685 A CN116050685 A CN 116050685A CN 202211728507 A CN202211728507 A CN 202211728507A CN 116050685 A CN116050685 A CN 116050685A
Authority
CN
China
Prior art keywords
factor
population
cost
path planning
individuals
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.)
Pending
Application number
CN202211728507.XA
Other languages
Chinese (zh)
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.)
Xian University of Technology
Original Assignee
Xian University of Technology
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 Xian University of Technology filed Critical Xian University of Technology
Priority to CN202211728507.XA priority Critical patent/CN116050685A/en
Publication of CN116050685A publication Critical patent/CN116050685A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

The invention discloses a path planning method based on improved multi-factor optimization, which comprises the following steps: firstly, constructing a path planning map, then forming a parent population P in the constructed path planning map, randomly generating a T group task group, performing iterative optimization, and finally obtaining the shortest path distance of each task in the task group to complete path planning. According to the path planning method, the genetic algorithm is combined with the multi-factor evolution algorithm, the problem that the calculation speed of the genetic algorithm is reduced when the optimization operation is carried out on a plurality of path planning tasks with constraints is solved, the efficiency of the path planning tasks during the simultaneous optimization is improved, gaussian disturbance is added to part of individuals in the generated offspring population, the diversity of the algorithm is increased, and the situation that the partial optimization is involved is avoided.

Description

Path planning method based on improved multi-factor optimization
Technical Field
The invention belongs to the technical field of path planning, and relates to a path planning method based on improved multi-factor optimization.
Background
Genetic algorithm is a typical evolutionary method and is widely applied to path planning. The genetic algorithm utilizes the biological genetic viewpoint, and realizes the improvement of the adaptability of each individual through natural selection, crossover, mutation and other action mechanisms. However, when optimizing a plurality of path planning tasks at the same time, the genetic algorithm cannot solve the path planning tasks with high efficiency, so that the addition of the multi-factor evolution algorithm on the basis of the genetic algorithm is considered, and the efficiency is improved during iterative optimization.
Multi-factor evolutionary algorithm (MFEA) is inspired by a multi-factor genetic model, which utilizes a single population to simultaneously solve multiple optimization tasks across domains. In a multitasking environment, the MFEA algorithm simulates genetic processes of genes and cultural factors through a special knowledge migration mechanism, namely, recessive gene transfer through chromosome crossover. In the evolution process of a single population, each task provides a unique factor to influence the evolution direction of the whole population, the genetic characters of offspring individuals are influenced by genes and cultural factors from a plurality of tasks, and research shows that the MFEA algorithm can potentially promote the knowledge migration of the cross-tasks in the optimization process, so that a plurality of cross-domain tasks are simultaneously optimized.
Therefore, the genetic algorithm and the multi-factor evolution algorithm are combined in the method and the device for optimizing the path planning tasks.
Disclosure of Invention
The invention aims to provide a path planning method based on improved multi-factor optimization, which solves the problem of low efficiency when a path planning method adopted in the prior art optimizes a plurality of path planning tasks simultaneously.
The technical scheme adopted by the invention is that the path planning method based on improved multi-factor optimization comprises the following specific steps: firstly, constructing a path planning map, then randomly generating T groups of task groups in the constructed path planning map, performing iterative optimization in a population, and finally obtaining the shortest path distance of each task in the task groups to complete path planning.
The present invention is also characterized in that,
the specific steps of the path planning map construction are as follows:
step 1.1, selecting W cities in a national geographic library, wherein each city is given a number in a range of 1-W, and the numbers of the cities are different;
step 1.2, using a python crawler to climb the distance between any two cities with different numbers, setting a distance threshold, setting the distance to infinity if the distance is greater than M and no direct passage exists between the default cities, and storing the distance into an adjacent matrix if the distance is less than or equal to M, wherein the adjacent matrix is the distance between the two cities, so as to finally obtain the path planning map.
The iterative optimization method comprises the following steps:
individuals are defined as a set of 1-W numbered random sequences;
task ti is defined as: ti= [ si, ei ] (1)
In the formula (1), si is the starting city number of the task ti, and ei is the ending city number of the task ti;
step 2.1, randomly acquiring N individuals in a constructed path planning map to form a parent population P; simultaneously, randomly acquiring T task groups;
step 2.2, adding time constraint and cost constraint to each individual Pi in the parent population P;
step 2.3, evaluating all individuals Pi in the parent population P;
step 2.4, iteratively generating a child population C by utilizing a multi-factor evolution algorithm;
step 2.5, adding Gaussian disturbance to part of individuals Ci in the sub-generation population C;
step 2.6, merging the parent population P and the offspring population C to form a population R;
step 2.7, updating scalar fitness and factor cost of all individuals Ri in the population R;
step 2.8, selecting F elite individuals in the population R to construct a new parent population P1;
and 2.9, repeating the steps 2.3-2.8 until the current algebra GEN is more than or equal to MAXGEN, obtaining a population Pn, wherein the population Pn is the shortest path distance set, and completing the optimization of path planning, wherein MAXGEN is the maximum iteration algebra, and MAXGEN is 200.
The specific steps of the step 2.1 are as follows:
step 2.1.1, randomly generating a population P containing N individuals in a constructed path planning map, wherein each individual Pi in the population P has W dimensions, each dimension stores the number of a city, and N individuals are random sequences of N numbers 1-W;
step 2.1.2, randomly generating T different task groups, and defining a skill factor tau for each task in each task group;
the definition of the skill factor τ is: τ= [1, 2..t ] (2)
In the formula (2), tau is a skill factor, and t is a task number;
the relationship of task group T to task T is defined as: ti= [ t1, t 2..ti ].
The specific steps of step 2.2 are as follows:
defining a time constraint two-dimensional matrix as:
Figure BDA0004030728990000031
in equation (3), each element t in the Time matrix ij ∈[a,b],t ij Defined as the time spent, t ij Is a real number; setting the time constraint range from a to b, a, b being the time spent;
defining a cost constraint two-dimensional matrix as:
Figure BDA0004030728990000041
in formula (4), each element p in the Price matrix ij ∈[a',b'],p ij Defined as cost, refers to the cost of oil and high speed required for the road distance between actual cities, p ij The range of spending constraints a 'to b', a 'and b' is set for integers, which is the cost.
The evaluation process for all individuals in the parent population P is as follows:
step 2.3.1, randomly assigning a skill factor τ to each individual Pi in the parent population P, wherein τ= [1, 2..t ], t being the task number;
step 2.3.2, calculating the skill factor tau ranking of each individual Pi in the population P and the ranking of each individual Pi on different tasks;
step 2.3.3, calculating a scalar fitness value ScalFit of each individual Pi in the population P, wherein a calculation formula of the scalar fitness value is as follows:
ScalFit=len+cost time +cost price (5)
in equation (5), scalFit is a scalar fitness value, len is a path length, cost time Cost as a time factor cost price To cost a factor cost;
time factor cost time The formula is:
cost time =cost time +(time-maxtime)*M (6)
in the formula (6), M is a penalty factor, cost time For the time factor cost, the part of maxtime that is the maximum time will multiply the penalty factor to add to the time factor cost time In (a) and (b);
the cost factor cost is:
cost price =cost price +(price-maxprice)*M (7)
in the formula (7), M is a penalty factor, cost price Maxpace is the maximum cost to spend a factor cost;
step 2.3.4, updating the individual Pi factor ranking and scalar fitness value according to the factor cost;
the factor cost is defined as: cost pi =len(8)
In formula (8), cost pi At the cost of a factor, len is the path length.
The specific process of step 2.4 is as follows:
step 2.4.1, randomly selecting two individuals in the population P as parents, and generating a child population C by utilizing the mating probability rmp mating in a multi-factor evolution algorithm if the skill factors tau of the two parents are different or the probability is smaller than the random mating probability 1 The method comprises the steps of carrying out a first treatment on the surface of the If the skill factors tau of the parent and the parent are the same or the probability is larger than the random mating probability, generating a offspring population C by using a self mutation method 2 Offspring population c=c 1 +C 2
And 2.4.2, carrying out vertical culture propagation operation of a multi-factor evolution algorithm on the individuals Ci in the child population C, and inheriting the skill factor tau of the parent.
Step 2.5, adding Gaussian disturbance to the position of the end point for child individuals generated by utilizing self variation, wherein the Gaussian distribution is centered on a certain random variable, and the specific steps are as follows:
the formula of the gaussian distribution is:
Figure BDA0004030728990000051
mu in equation (9) is all that is expected, σ 2 Is the variance, equation (9) can also be written as:
x~N(μ,σ 2 )(10)
in the formula (10), μ is mathematical expectation, σ 2 Is variance, where μ is the mean of the distribution, in this algorithm the standard deviation is the position of the endpoint, σ is the standard deviation, and the formula of the standard deviation is:
Figure BDA0004030728990000061
in the formula (11), leftlen is the length of the left side of the end point, right tlen is the length of the right side of the end point, r obeys normal distribution with the average value of 0 and the standard deviation of 1, a position meeting the formula (11) is found near the end point position e, and the position is exchanged with the end point position, so that Gaussian disturbance addition is completed.
Generating a offspring population C in step 2.4.1 by utilizing mating probability rmp in a multi-factor evolution algorithm 1 The specific steps of (1) selecting operation, cross operation and mutation operation are carried out on both parents;
the selection operation adopts a tournament selection method, and the specific steps of the selection operation are as follows: selecting the first 60% of individuals Pi from the population P with the replaced tournament selection method for subsequent crossover operations;
the crossing operation adopts partial matching crossing, and comprises the following specific steps: randomly selecting two crossing points in the individual gene sequences in the first 60% of individuals Pi selected by the selection operation to determine a crossing region, and executing matching crossing;
the mutation operation comprises the following specific steps: combining 60% of individuals generated by the crossover operation and 40% of individuals not subjected to the crossover operation into a new population Cn (P), and carrying out mutation operation on the new population Cn with the probability of 0.45 to obtain a child population C 1
The self mutation operation comprises the following specific steps: and carrying out mutation operation on the individual, randomly selecting two points in the gene sequence of the individual, and randomly sequencing the sequence between the two points.
The specific process of step 2.4.2 is as follows:
the individuals Ci in the offspring population C are subjected to model selection mating by a genetic algorithm, if the skill factors tau of the parent and the parent are different, the individuals Ci inherit the skill factors of the parent with the probability of 0.5, and if the skill factors tau of the parent and the parent of the individuals Ci are the same, the skill factors are directly inherited; if the individual Ci is generated by direct variation to the parent Pi, the skills factors of the parent are directly inherited.
The beneficial effects of the invention are as follows:
(1) The method combines the genetic algorithm with the multi-factor evolution algorithm by utilizing the characteristic of high iterative optimization efficiency of the genetic algorithm on the discrete optimization problem, so that the problem that the calculation speed is reduced when the genetic algorithm performs optimization operation on a plurality of constrained path planning tasks is solved, and the efficiency of the simultaneous optimization of the plurality of path planning tasks is improved;
(2) According to the method, gaussian disturbance is added to part of individuals in the generated offspring population, so that the diversity of the algorithm is increased, and the situation that the offspring population falls into local optimum is avoided.
Drawings
FIG. 1 is a flow chart of a path planning method based on improved multi-factor optimization of the present invention;
FIG. 2 is a convergent comparison of the MFGA algorithm of the present invention with a genetic algorithm.
Detailed Description
The invention will be described in detail below with reference to the drawings and the detailed description.
The path planning method based on improved multi-factor optimization of the invention is characterized in that, as shown in figure 1,
the method comprises the following specific steps: firstly, constructing a path planning map, then randomly generating T groups of task groups in the constructed path planning map, performing iterative optimization in a population, and finally obtaining the shortest path distance of each task in the task groups to complete path planning.
The specific steps of the path planning map construction are as follows:
step 1.1, selecting W cities in a national geographic library, wherein each city is given a number in a range of 1-W, and the numbers of the cities are different;
step 1.2, using a python crawler to climb the distance between any two cities with different numbers, setting a distance threshold, setting the distance to infinity if the distance is greater than M and no direct passage exists between the default cities, and storing the distance into an adjacent matrix if the distance is less than or equal to M, wherein the adjacent matrix is the distance between the two cities, so as to finally obtain the path planning map.
The iterative optimization method comprises the following steps:
individuals are defined as a set of 1-W numbered random sequences;
task ti is defined as: ti= [ si, ei ] (1)
In the formula (1), si is the starting city number of the task ti, and ei is the ending city number of the task ti;
step 2.1, randomly acquiring N individuals in a constructed path planning map to form a parent population P; simultaneously, randomly acquiring T task groups;
the method comprises the following specific steps:
step 2.1.1, randomly generating a population P containing N individuals in a constructed path planning map, wherein each individual Pi in the population P has W dimensions, each dimension stores the number of a city, and N individuals are random sequences of N numbers 1-W;
step 2.1.2, randomly generating T different task groups, and defining a skill factor tau for each task in each task group;
the definition of the skill factor τ is: τ= [1, 2..t ] (2)
In the formula (2), tau is a skill factor, and t is a task number;
the relationship of task group T to task T is defined as: ti= [ t1, t 2..ti ].
Step 2.2, adding time constraint and cost constraint to each individual Pi in the parent population P;
the method comprises the following specific steps:
defining a time constraint two-dimensional matrix as:
Figure BDA0004030728990000081
in equation (3), each element t in the Time matrix ij ∈[a,b],t ij Defined as the time spent, t ij Is a real number; setting the time constraint range from a to b, a, b being the time spent;
defining a cost constraint two-dimensional matrix as:
Figure BDA0004030728990000091
in formula (4), each element p in the Price matrix ij ∈[a',b'],p ij Defined as cost, refers to the cost of oil and high speed required for the road distance between actual cities, p ij The range of spending constraints a 'to b', a 'and b' is set for integers, which is the cost.
Step 2.3, evaluating all individuals Pi in the parent population P;
the specific evaluation process is as follows:
the evaluation process for all individuals in the parent population P is as follows:
step 2.3.1, randomly assigning a skill factor τ to each individual Pi in the parent population P, wherein τ= [1, 2..t ], T being the task number;
step 2.3.2, calculating the skill factor tau ranking of each individual Pi in the population P and the ranking of each individual Pi on different tasks;
step 2.3.3, calculating a scalar fitness value ScalFit of each individual Pi in the population P, wherein a calculation formula of the scalar fitness value is as follows:
ScalFit=len+cost time +cost price (5)
in equation (5), scalFit is a scalar fitness value, len is a path length, cost time Cost as a time factor cost price To cost a factor cost;
time factor cost time The formula is:
cost time =cost time +(time-maxtime)*M (6)
in the formula (6), M is a penalty factor, cost time For the time factor cost, the part of maxtime that is the maximum time will multiply the penalty factor to add to the time factor cost time In (a) and (b);
the cost factor cost is:
cost price =cost price +(price-maxprice)*M (7)
in the formula (7), M is a penalty factor, cost price Maxpace is the maximum cost to spend a factor cost;
step 2.3.4, updating the individual Pi factor ranking and the scalar fitness value according to the individual factor cost; factor cost of individual Pi: cost pi =len(8)
In formula (8), cost pi Cost of factor cost pi Len is the path length.
Step 2.4, iteratively generating a child population C by utilizing a multi-factor evolution algorithm;
the method comprises the following specific steps:
step 2.4.1, randomly selecting two individuals in the population P as parents, and generating a child population C by utilizing the mating probability rmp mating in a multi-factor evolution algorithm if the skill factors tau of the two parents are different or the probability is smaller than the random mating probability 1 The method comprises the steps of carrying out a first treatment on the surface of the If the skill factors tau of the parent and the parent are the same or the probability is larger than the random mating probability, generating a offspring population C by using a self mutation method 2 Offspring population c=c 1 +C 2
Generation of offspring using mating probability rmp mating in a multi-factor evolutionary algorithmPopulation C 1 The specific steps of (1) selecting operation, cross operation and mutation operation are carried out on both parents;
the selection operation adopts a tournament selection method, which comprises the following specific steps: selecting the first 60% of individuals Pi from the population P with the replaced tournament selection method for subsequent crossover operations;
the crossing operation adopts partial matching crossing, and comprises the following specific steps: randomly selecting two crossing points in the individual gene sequences from the first 60% of individuals selected by the selection operation to determine a crossing region, and executing matching crossing;
the mutation operation comprises the following specific steps: combining 60% of individuals generated by the crossover operation and 40% of individuals not subjected to the crossover operation into a new population Cn (P), and carrying out mutation operation on the new population Cn with the probability of 0.45 to obtain a child population C 1
The self mutation operation comprises the following specific steps: the mutation operation is carried out on the individual, the individual randomly selects two points in the own gene sequence, and the sequence between the two points is randomly ordered.
2.4.2, carrying out vertical culture propagation operation of a multi-factor evolution algorithm on the individuals Ci in the child population C, and inheriting the skill factor tau of the parent;
considering that the individuals Ci in the offspring population C are subjected to model selection mating by a genetic algorithm, if the two parents of the individuals Ci come from different tasks, inheriting the skill factors of the parents with the probability of 0.5, and if the two parents of the individuals Ci come from the same task, directly inheriting the skill factors; if the individual Ci is generated by direct variation to the parent Pi, the skills factors of the parent are directly inherited.
Step 2.5, adding Gaussian disturbance to part of individuals Ci in the sub-generation population C;
considering the problem of reduced post diversity of an algorithm, in order to increase the diversity of the population and prevent the post population from converging to local optimum, gaussian disturbance on the position of a terminal point is added to child individuals generated by utilizing self variation, wherein the Gaussian disturbance is random disturbance of Gaussian distribution;
the gaussian distribution is centered on a certain random variable, and comprises the following specific steps:
the formula of the gaussian distribution is:
Figure BDA0004030728990000111
mu in equation (9) is all that is expected, σ 2 Is the variance, equation (9) can also be written as:
x~N(μ,σ 2 )(10)
in the formula (10), μ is mathematical expectation, σ 2 Is variance, where μ is the mean of the distribution, in this algorithm the standard deviation is the position of the endpoint, σ is the standard deviation, and the formula of the standard deviation is:
Figure BDA0004030728990000112
in the formula (11), leftlen is the length of the left side of the end point, right tlen is the length of the right side of the end point, r obeys normal distribution with the average value of 0 and the standard deviation of 1, a position meeting the formula (11) is found near the end point position e, and the position is exchanged with the end point position, so that Gaussian disturbance addition is completed.
Step 2.6, merging the parent population P and the offspring population C to form a population R;
step 2.7, updating scalar fitness and factor cost of all individuals Ri in the population R;
the specific steps are carried out according to the step 2.3;
step 2.8, selecting F elite individuals in the population R to construct a new parent population P1;
and 2.9, repeating the steps 2.3-2.8 until the current algebra GEN is more than or equal to MAXGEN, obtaining a population Pn, wherein the population Pn is the shortest path distance set, and completing the optimization of path planning, wherein MAXGEN is the maximum iteration algebra, and MAXGEN is 200.
The process according to the invention is illustrated by the following examples:
example 1
Step 1, path planning map construction
Step 1.1, firstly, selecting 300 cities in a national geographic library, wherein each city is provided with a number, the range of the number is 1-300, and the numbers of the cities are different;
step 1.2, using a python crawler to climb the distance between 300 cities, storing the distance between 300 cities into an adjacent matrix, setting a distance threshold value to be 2000 in the process of constructing the matrix, setting the distance to be infinity if no direct passage exists between the default cities with the distance being more than 2000, storing the distance into the adjacent matrix if the distance is less than or equal to 2000, and finally obtaining a path planning map by the adjacent matrix. The method comprises the steps of carrying out a first treatment on the surface of the
Step 2, forming a parent population P in the constructed path planning map, randomly generating T groups of task groups, and performing iterative optimization
Step 2.1, randomly acquiring N individuals in a constructed path planning map to form a parent population P; simultaneously, randomly acquiring T task groups;
step 2.1.1, randomly generating a population P containing N individuals in a constructed path planning map, wherein each individual Pi in the population P has 300 dimensions; each dimension stores the number of the city, and the N individuals are randomly ordered from 1 to 300 numbers;
step 2.1.2, randomly generating T different task groups, defining a skill factor tau for each task, wherein the definition formula of the task is as follows:
task ti is defined as: ti= [ si, ei ] (1)
The definition of the skill factor τ is: τ= [1, 2..t ] (2)
Where si is the starting city number of task ti and ei is the ending city number of task ti.
Step 2.2 adding a time constraint and a cost constraint to each individual Pi in the parent population P
Defining a time constraint two-dimensional matrix as:
Figure BDA0004030728990000131
in equation (3), each element t in the Time matrix ij ∈[0,6],t ij Defined as the time spent, t ij Is a real number; the time constraint is set here in the range of 0 to 6 because the time expenditure required is about so much in consideration of the road situation between actual cities;
defining a cost constraint two-dimensional matrix as:
Figure BDA0004030728990000132
in formula (4), each element p in the Price matrix ij ∈[50,900],p ij Defined as the oil cost and the high-speed cost required for the road distance between actual cities, p ij The range of spending constraints 50 to 900 is set here for integers because of the oil costs required and the high speed costs that are considered for the road distance between actual cities.
Step 2.3, evaluating all individuals Pi in the parent population P;
step 2.3.1, randomly assigning a skill factor τ to each individual Pi in the parent population P, wherein τ= [1, 2..t ], t being the task number;
step 2.3.2, calculating the skill factor tau ranking of each individual Pi in the population P and the ranking of each individual Pi on different tasks;
step 2.3.3, calculating a scalar fitness value ScalFit of each individual Pi in the population P, wherein a calculation formula of the scalar fitness value is as follows:
ScalFit=len+cost time +cost price (5)
in equation (5), scalFit is a scalar fitness value, len is a path length, cost time Cost as a time factor cost price To cost a factor cost;
time factor cost time The formula is:
cost time =cost time +(time-maxtime)*M (6)
in the formula (6), M is penalty factorPenalty factor value is set to 50, cost time As a time factor cost, maxtime is the maximum time;
the cost factor cost is:
cost price =cost price +(price-maxprice)*M (7)
in the formula (7), M is a penalty factor, the penalty factor value is set to be 50, and the cost price Maxpace is the maximum cost to spend a factor cost;
step 2.3.4, updating the individual Pi factor rank and scalar fitness value according to the factor cost.
Step 2.4, iteratively generating a child population C by utilizing a multi-factor evolution algorithm;
step 2.4.1, randomly selecting two individuals in the population P as parents, and generating a child population C by utilizing the mating probability rmp mating in a multi-factor evolution algorithm if the skill factors tau of the two parents are different or the probability is smaller than the random mating probability 1 The method comprises the steps of carrying out a first treatment on the surface of the If the skill factors tau of the parent and the parent are the same or the probability is larger than the random mating probability, generating a offspring population C by using a self mutation method 2 Offspring population c=c 1 +C 2
Generation of offspring population C by mating probability rmp in multi-factor evolutionary algorithm 1 The specific steps of (1) selecting operation, cross operation and mutation operation are carried out on both parents;
the selection operation adopts a tournament selection method, and the specific steps of the selection operation are as follows: selecting the first 60% of individuals from the population P by using a replaced tournament selection method to perform subsequent crossing operations;
the crossing operation adopts partial matching crossing, and comprises the following specific steps: randomly selecting two crossing points in the individual gene sequences from the first 60% of individuals selected by the selection operation to determine a crossing region, and executing matching crossing; partial matched crossover (PMX) is used, ensuring that genes in each chromosome occur only once, and by this crossover strategy, no repeated genes occur in one chromosome, PMX is similar to two-point crossover, and two crossover points in individual gene sequences are randomly selected to determine crossover regions. After crossing is performed, two invalid chromosomes are generally obtained, the situation that individual genes are repeated is generally obtained, in order to repair the chromosomes, a matching relation of each chromosome is established in a crossing area, then the matching relation is applied to the repeated genes outside the crossing area, so that the conflict can be eliminated, and in the process of crossing operation, invisible knowledge transfer of individuals among different tasks is realized to accelerate convergence.
The mutation operation comprises the following specific steps: combining 60% of individuals generated by the crossover operation and 40% of individuals without crossover operation into a new population Pn, and carrying out mutation operation on the new population Pn with the probability of 0.45 to obtain a child population C 1
And 2.4.2, carrying out vertical culture propagation operation of a multi-factor evolution algorithm on the individuals Ci in the child population C, and inheriting the skill factor tau of the parent.
Considering that the individuals Ci in the offspring population C are subjected to model selection mating by a genetic algorithm, if the two parents of the individuals Ci come from different tasks, inheriting the skill factors of the parents with the probability of 0.5, and if the two parents of the individuals Ci come from the same task, directly inheriting the skill factors; if the individual Ci is generated by direct variation to the parent Pi, the skills factors of the parent are directly inherited.
Step 2.5, adding Gaussian disturbance to part of individuals Ci in the sub-generation population C;
step 2.6, merging the parent population P and the offspring population C to form a population R;
step 2.7, updating scalar fitness and factor cost of all individuals Ri in the population R;
step 2.8, selecting F elite individuals in the population R to construct a new parent population P1;
and 2.9, repeating the steps 2.3-2.8 until the current algebra GEN is more than or equal to MAXGEN, obtaining a population Pn, wherein the population Pn is the shortest path distance set, and completing the optimization of path planning, wherein MAXGEN is the maximum iteration algebra, and MAXGEN is 200.
The effects of the present invention are further illustrated by the following simulation experiments.
First, the city is given, along with the city number, as shown in table 1.
TABLE 1 City numbering information
Figure BDA0004030728990000161
/>
Figure BDA0004030728990000171
/>
Figure BDA0004030728990000181
Then, given a discrete task group, as shown in table 2, the performance of the proposed algorithm is tested in 10 discrete task groups, and in this simulation, the population size of the discrete task group is 100, and the maximum function iteration algebra MAXGEN is 200.
TABLE 2 discrete task group information
Figure BDA0004030728990000191
And performing simulation experiments on the discrete task groups according to the specific flow of the MFGA, so as to obtain test results corresponding to the discrete task groups. To better illustrate the effect of the present invention, a genetic algorithm proposed by John h.holland in 1975 was chosen to also perform simulation experiments on discrete task groups, the performance of which was compared to that of the MFGA of the present invention, and the best values in the comparison algorithm and MFGA for each task group are marked in bold as shown in fig. 2, table 3.
As can be seen from fig. 2, the MFGA performs better than the genetic algorithm alone in optimizing multiple discrete path planning tasks simultaneously;
TABLE 3 comparison of GA and MFGA algorithms
Figure BDA0004030728990000192
Figure BDA0004030728990000201
From the data in table 3, it can be seen that: over these ten discrete task groups, the performance of the MFGA was better than the GA algorithm over tasks 1,2, 3, 8, 10, worse than the GA algorithm over tasks 4, 5, 9, and similar to GA over tasks 6, 7, as seen from the average ranking.
From fig. 2, it can be seen that the convergence algebra of MFGA is in most cases smaller than that of GA algorithm.

Claims (10)

1. The path planning method based on improved multi-factor optimization is characterized by comprising the following specific steps: firstly, constructing a path planning map, then randomly generating T groups of task groups in the constructed path planning map, performing iterative optimization in a population, and finally obtaining the shortest path distance of each task in the task groups to complete path planning.
2. The path planning method based on improved multi-factor optimization according to claim 1, wherein the specific steps of the path planning map construction are as follows:
step 1.1, selecting W cities in a national geographic library, wherein each city is given a number in a range of 1-W, and the numbers of the cities are different;
step 1.2, using a python crawler to climb the distance between any two cities with different numbers, setting a distance threshold, setting the distance to infinity if the distance is greater than M and no direct passage exists between the default cities, and storing the distance into an adjacent matrix if the distance is less than or equal to M, wherein the adjacent matrix is the distance between the two cities, so as to finally obtain the path planning map.
3. The path planning method based on improved multi-factor optimization of claim 1, wherein the iterative optimization comprises the following steps:
individuals are defined as a set of 1-W numbered random sequences;
task ti is defined as: ti= [ si, ei ] (1) in formula (1), si is the starting city number of the task ti, ei is the ending city number of the task ti;
step 2.1, randomly acquiring N individuals in a constructed path planning map to form a parent population P; simultaneously, randomly acquiring T task groups;
step 2.2, adding time constraint and cost constraint to each individual Pi in the parent population P;
step 2.3, evaluating all individuals Pi in the parent population P;
step 2.4, iteratively generating a child population C by utilizing a multi-factor evolution algorithm;
step 2.5, adding Gaussian disturbance to part of individuals Ci in the sub-generation population C;
step 2.6, merging the parent population P and the offspring population C to form a population R;
step 2.7, updating scalar fitness and factor cost of all individuals Ri in the population R;
step 2.8, selecting F elite individuals in the population R to construct a new parent population P1;
and 2.9, repeating the steps 2.3-2.8 until the current algebra GEN is more than or equal to MAXGEN, obtaining a population Pn, wherein the population Pn is the shortest path distance set, and completing the optimization of path planning, wherein MAXGEN is the maximum iteration algebra, and MAXGEN is 200.
4. A path planning method based on improved multi-factor optimization according to claim 3, wherein the specific steps of step 2.1 are as follows:
step 2.1.1, randomly generating a population P containing N individuals in a constructed path planning map, wherein each individual Pi in the population P has W dimensions, each dimension stores the number of a city, and N individuals are random sequences of N numbers 1-W;
step 2.1.2, randomly generating T different task groups, and defining a skill factor tau for each task in each task group;
the definition of the skill factor τ is: τ= [1, 2..t ] (2) in formula (2), τ is a skill factor, t is a task number;
the relationship of task group T to task T is defined as: ti= [ t ] 1 ,t 2 ...t i ]。
5. A path planning method based on improved multi-factor optimization according to claim 3, characterized in that the specific steps of step 2.2 are as follows:
defining a time constraint two-dimensional matrix as:
Figure FDA0004030728980000031
in equation (3), each element t in the Time matrix ij ∈[a,b],t ij Defined as the time spent, t ij Is a real number; setting the time constraint range from a to b, a, b being the time spent;
defining a cost constraint two-dimensional matrix as:
Figure FDA0004030728980000032
in formula (4), each element p in the Price matrix ij ∈[a',b'],p ij Defined as cost, refers to the cost of oil and high speed required for the road distance between actual cities, p ij The range of spending constraints a 'to b', a 'and b' is set for integers, which is the cost.
6. A path planning method based on improved multi-factor optimization according to claim 3, characterized in that the evaluation procedure of all individuals in the parent population P is as follows:
step 2.3.1, randomly assigning a skill factor τ to each individual Pi in the parent population P, wherein τ= [1, 2..t ], t being the task number;
step 2.3.2, calculating the skill factor tau ranking of each individual Pi in the population P and the ranking of each individual Pi on different tasks;
step 2.3.3, calculating a scalar fitness value ScalFit of each individual Pi in the population P, wherein a calculation formula of the scalar fitness value is as follows:
ScalFit=len+cost time +cost price (5)
in equation (5), scalFit is a scalar fitness value, len is a path length, cost time Cost as a time factor cost price To cost a factor cost;
time factor cost time The formula is:
cost time =cost time +(time-maxtime)*M (6)
in the formula (6), M is a penalty factor, cost time For the time factor cost, the part of maxtime that is the maximum time will multiply the penalty factor to add to the time factor cost time In (a) and (b);
the cost factor cost is:
cost price =cost price +(price-maxprice)*M (7)
in the formula (7), M is a penalty factor, cost price Maxpace is the maximum cost to spend a factor cost;
step 2.3.4, updating the individual Pi factor ranking and scalar fitness value according to the factor cost;
the factor cost is defined as: cost pi In expression (8) =len (8), cost pi At the cost of a factor, len is the path length.
7. A path planning method based on improved multi-factor optimization according to claim 3, wherein the specific procedure of step 2.4 is as follows:
step 2.4.1, randomly selecting two individuals in the population P as parents, and generating a child population C by utilizing the mating probability rmp mating in a multi-factor evolution algorithm if the skill factors tau of the two parents are different or the probability is smaller than the random mating probability 1 The method comprises the steps of carrying out a first treatment on the surface of the If the skill factor tau of both parents is the same or the probability is larger than the random mating probability, the self mutation method is utilizedGeneration of offspring population C 2 Offspring population c=c 1 +C 2
And 2.4.2, carrying out vertical culture propagation operation of a multi-factor evolution algorithm on the individuals Ci in the child population C, and inheriting the skill factor tau of the parent.
8. A path planning method based on improved multi-factor optimization according to claim 3, wherein said step 2.5 of adding gaussian disturbances adds gaussian disturbances to the position of the end point to child individuals generated by self variation, wherein the gaussian distribution is centered on a random variable, and comprises the following specific steps:
the formula of the gaussian distribution is:
Figure FDA0004030728980000051
mu in equation (9) is all that is expected, σ 2 Is the variance, equation (9) can also be written as:
x~N(μ,σ 2 ) (10) in equation (10), μ is mathematical expectation, σ 2 Is variance, where μ is the mean of the distribution, in this algorithm the standard deviation is the position of the endpoint, σ is the standard deviation, and the formula of the standard deviation is:
Figure FDA0004030728980000052
in the formula (11), leftlen is the length of the left side of the end point, right tlen is the length of the right side of the end point, r obeys normal distribution with the average value of 0 and the standard deviation of 1, a position meeting the formula (11) is found near the end point position e, and the position is exchanged with the end point position, so that Gaussian disturbance addition is completed.
9. The path planning method according to claim 7, wherein the generating offspring seed in step 2.4.1 uses the mating probability rmp mating in the multi-factor evolutionary algorithmGroup C 1 The specific steps of (1) selecting operation, cross operation and mutation operation are carried out on both parents;
the selection operation adopts a tournament selection method, and the specific steps of the selection operation are as follows: selecting the first 60% of individuals Pi from the population P with the replaced tournament selection method for subsequent crossover operations;
the crossing operation adopts partial matching crossing, and comprises the following specific steps: randomly selecting two crossing points in the individual gene sequences in the first 60% of individuals Pi selected by the selection operation to determine a crossing region, and executing matching crossing;
the mutation operation comprises the following specific steps: combining 60% of individuals generated by the crossover operation and 40% of individuals not subjected to the crossover operation into a new population Cn (P), and carrying out mutation operation on the new population Cn with the probability of 0.45 to obtain a child population C 1
The self mutation operation specifically comprises the following steps: and carrying out mutation operation on the individual, randomly selecting two points in the gene sequence of the individual, and randomly sequencing the sequence between the two points.
10. The path planning method based on improved multi-factor optimization according to claim 7, wherein the specific process of step 2.4.2 is as follows:
the individuals Ci in the offspring population C are obtained by carrying out type selection mating through a genetic algorithm, if the skill factors tau of the parent and the parent are different, the individuals Ci inherit the skill factors of the parent with the probability of 0.5, and if the skill factors tau of the parent and the parent of the individuals Ci are the same, the skill factors are directly inherited; if the individual Ci is generated by direct variation to the parent Pi, the skills factors of the parent are directly inherited.
CN202211728507.XA 2022-12-30 2022-12-30 Path planning method based on improved multi-factor optimization Pending CN116050685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211728507.XA CN116050685A (en) 2022-12-30 2022-12-30 Path planning method based on improved multi-factor optimization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211728507.XA CN116050685A (en) 2022-12-30 2022-12-30 Path planning method based on improved multi-factor optimization

Publications (1)

Publication Number Publication Date
CN116050685A true CN116050685A (en) 2023-05-02

Family

ID=86126788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211728507.XA Pending CN116050685A (en) 2022-12-30 2022-12-30 Path planning method based on improved multi-factor optimization

Country Status (1)

Country Link
CN (1) CN116050685A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627101A (en) * 2023-07-20 2023-08-22 北京东方泰阳科技有限公司 Control method and system for composite substrate production line

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627101A (en) * 2023-07-20 2023-08-22 北京东方泰阳科技有限公司 Control method and system for composite substrate production line
CN116627101B (en) * 2023-07-20 2023-09-19 北京东方泰阳科技有限公司 Control method and system for composite substrate production line

Similar Documents

Publication Publication Date Title
Gong et al. A novel hybrid multi-objective artificial bee colony algorithm for blocking lot-streaming flow shop scheduling problems
US8250007B2 (en) Method of generating precedence-preserving crossover and mutation operations in genetic algorithms
Ma et al. Evolutionary computation with biogeography-based optimization
CN116050685A (en) Path planning method based on improved multi-factor optimization
CN111784072A (en) Optimization method and device for vehicle path problem
Anwaar et al. Genetic algorithms: Brief review on genetic algorithms for global optimization problems
Chen et al. A method for solving optimization problem in continuous space using improved ant colony algorithm
Deffner et al. Effective population size for culturally evolving traits
Wang et al. Penalty and prediction methods for dynamic constrained multi-objective optimization
Zhou et al. A novel mission planning method for UAVs’ course of action
Schwefel Deep insight from simple models of evolution
Dong et al. Ant colony optimization for VRP and mail delivery problems
CN114943278A (en) Continuous online group incentive method and device based on reinforcement learning and storage medium
Singh et al. Binary particle swarm optimization with crossover operation for discrete optimization
Yalçınkaya et al. Maximum likelihood and maximum product of spacings estimations for the parameters of skew-normal distribution under doubly type II censoring using genetic algorithm
CN113487031A (en) Multi-unmanned aerial vehicle task allocation method based on improved simulated annealing fusion genetic algorithm
CN113141272A (en) Network security situation analysis method based on iteration optimization RBF neural network
Peng et al. A hybrid particle swarm optimizer for curriculum sequencing problem
CN115277445B (en) Micro-service system scheduling optimization method based on QoS (quality of service) target
Fidanova et al. ACO and GA for parameter settings of E. coli fed-batch cultivation model
Xu et al. An Improved Biogeography-Based Optimization Algorithm
Rabee et al. Quaternary-Child Crossover for Genetic Algorithm in Real-Time Scheduling Optimization.
Zhang Derivative-free global optimization algorithms: population based methods and random search approaches
Sözen Solving Travelling Salesman Problem: A Hybrid Optimization Algorithm
CN113741482B (en) Multi-agent path planning method based on asynchronous genetic 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