Research Article

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

Algorithm 1

Overall procedure of proposed PSO-CTA.
  Input:
Objective function according to formula (6);
A local constraint ;
The number of mobile users ;
The number of locations ;
The number of channels in location ;
The number of sub-locations in location ;
The maximum cost ;
The maximal generation ;
  Output: The maximum sensing effect function and sensing task assignment
  Initialization:
  Randomly generate each particle;
  Optimization:
  () repeat
  () for each particle
  ()  Optimizing the crowdsensing task assignment of the particle;
  ()  Update the ;
  ()  Update the ;
  () end for
  () until stopping criterion is satisfied