Research Article
Concise and Informative Article Title Throughput Maximization through Joint User Association and Power Allocation for a UAV-Integrated H-CRAN
Algorithm 1
Genetic convex optimization algorithm.
| 1: Initialization: | | 2: Calculate the channel gain. | | 3: Produce the first generation genetic factors. | | 4: Use convex optimization to calculate the best power allocation . | | 5: Calculate the fitness function . | | 6: Set the maximum number of iterations . | | 7: while | | 8: Calculate the selection probability of each genetic factor. | | 9: Select the best 1/4 of genetic factors to retain into the next generation. | | 10: According to , select genetic factors to for crossover. | | 11: Cross the selected genetic factors in pairs. | | 12: Generate mutated random integer . | | 13: if then | | 14: No changed. | | 15: else | | 16: if then | | 17: Randomly select a gene point on the chromosome for 0,1 transformation. | | 18: else | | 19: Flip the whole chromosome. | | 20: end if | | 21: end if | | 22: Calculate the optimal power allocation for each new genetic factor. | | 23: Calculate the fitness function . | | 24: | | 25: end while | | 26: Output: | | 27: Calculate maximum sum rate. |
|