|
Algorithm 1 SRPSMTO. |
| Input: |
| n (population size) |
| k (number of tasks) |
| (PSO parameters) |
| Output: |
| (the best solution achieved on each of the k component tasks) |
| 1: Randomly generate a population of size n. |
| 2: Evenly separate into k subgroups and evaluate each subgroup on one corresponding task. |
| 3: Update the and , and the ability vector of individual in . |
| 4: while (stopping conditions are not satisfied) do
|
| 5: Update positions (see Equation (2)). |
| 6: Update velocities (see Algorithm 2 and 3). |
| 7: Evaluate all individuals and Update the and (see Algorithm 4). |
| 8: Update the ability vector of every individual. |
| 9: end while
|