Table 2

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 X(0)
Output: the optimal values of r
Set the maximum number of iterations itermax
Initialize the particle count N, the dimension D of each particle, the learning factors c1, c2,the inertia weight wmin, wmax
Set the initial values for position p and corresponding velocity v
While k<itermax do 
for i = 1: N do
 Calculate the parameters aˆ and bˆ 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:
vijk+1=vijk×w+ci×rand()×(pbestijkpijk)+c2×rand()×(globebestjkpijk) 
pijk=vijk+1+pijk,w=wmaxwmaxwminitermax×k
End for 
k=k+1.
End while
Return the optimal values of r
Source(s): Author’s own creation

or Create an Account

Close Modal
Close Modal