The pseudo code of PSO
| Algorithm 1 PSO algorithm to solve the accumulation order in the FGM(1,1) model |
|---|
| Input: the original system behaviors Output: the optimal values of Set the maximum number of iterations |
| Initialize the particle count N, the dimension D of each particle, the learning factors , ,the inertia weight , |
| Set the initial values for position p and corresponding velocity v |
| While do for i = 1: N do Calculate the parameters and by Eq. (4), Evaluate the simulated data by Eq. (6), Compute the value of fitness function by Eq. (7), Update p and v according to: End for |
| End while |
| Return the optimal values of |
| Algorithm 1 PSO algorithm to solve the accumulation order in the FGM(1,1) model |
|---|