Introduction - If you have any usage issues, please Google them yourself
The basic steps of the genetic algorithm are as follows:
1) under certain coding schemes, an initial population is randomly generated;
2) use the corresponding decoding method to convert the encoded individuals into questions
The decision variable of the problem space is obtained and the fitness value of the individual is obtained;
3) according to the size of individual fitness, the fitness is selected from the population
Larger individuals constitute mating pools;
4) by crossover and mutation, these two genetic operators are pairs of mating pools
Individuals operate and form a new generation of populations;
5) repeat step 2-4 until the convergence criterion is satisfied.