Research Article

Crowdsensing Task Assignment Based on Particle Swarm Optimization in Cognitive Radio Networks

Algorithm 3

Procedure of optimizing the sensing task assignment of the particle.
for each particle
  for each mobile user
   if its remaining energy satisfies formula (3)
    Maintain the matrix;
    else set the corresponding row vector to zero;
   end if
  end for
  Then the current matrix T 1 is derived;
   Evaluate the crowdsensing effect function of this particle;
  Obtainthis particle’s P id (matrix T 2) based on crowdsensing effect function;
  Obtain (matrix T 3) with the optimal ;
  Merge matrix T 1, T 2, T 3;
  Optimize the column vectors of the merging matrix;
  Optimize row vectors of the merging matrix with specific probability using (9);
  Evaluate the crowdsensing effect function of merging matrix according to (6);
end for