Joint Optimization in Intelligent Reflecting Surface-Aided UAV Communication for Multiaccess Edge Computing
Algorithm 1
GA process.
Input: initial variable
Output: suboptimal solution
(1) Randomly generate an initial population with a certain number of individuals
(2) Use the fitness function to evaluate the population to determine whether the stopping condition is met; if so, stop and output the optimal solution; otherwise, continue to operate
(3) Individuals that can be updated are selected according to their fitness. Individuals with high fitness have a high probability of being selected, and individuals with low fitness may be eliminated
(4) Generate new individuals according to a certain crossover probability and method
(5) Generate new individuals according to a certain mutation probability and method
(6) Generate a new generation of population by crossover and mutation; return to step 2