Skip to main content
. 2024 Oct 1;24(19):6375. doi: 10.3390/s24196375
Algorithm 2 Alternating Direction Genetic Algorithm
Input: ξ, η, P κ, Crossover probability Pcross, Mutation probability Pmutate
 Output: Channel allocation u; Power allocation p
Initialization: Initialize population size: 50, max generations: 100, Tolerance: 1 × 10−9 p(0), u(0); α and β randomly, let t=0;
  repeat
   t=t+1;
   According to fitness function (24) with p(t), update u(t), through crossover and mutation obtain u(t+1);
   According to fitness function (25) with u(t), update p(t), through crossover and muttion obtain p(t+1);
   Update p, u;
until tmax generations