Research Article

Multitask Allocation to Heterogeneous Participants in Mobile Crowd Sensing

Algorithm 2

GDPSOGA.
Input: The result of Algorithm 1
Output: Number of completed tasks
Initialize the relative parameters;
Iteration = 1;
Get the particle by operation of mutation and crossover;
Compute the number of completed tasks and update the and g if necessary;
Iteration++;
If the value of gbest keeps the same for twenty times, terminate the iteration;
If iteration < Maximum iteration, go to ;
Output the number of completed tasks.