Professional Documents
Culture Documents
1586746168particle Swarm Optimization
1586746168particle Swarm Optimization
ISSN 2582-5437
component is restricted to following closest velocity global best position achieved so far among all particles
bound: at iteration 𝑡. 𝑅 and 𝑅 are random values, which are
mutually independent and uniformly distributed over
𝑉 (𝑡 + 1) = −𝑉 if 𝑉 (𝑡 + 1) < −𝑉 [0,1], 𝛽 is a constraint factor used to control velocity
= 𝑉 If, 𝑉 (𝑡 + 1) > 𝑉 weight, whose value is usually set equal to 1. Positive
constants 𝑐 and 𝑐 are usually called “acceleration
After updating its velocity, each particle moves to a new factors”. Factor 𝑐 is sometimes referred to as
potential solution by updating its position as follows “cognitive” parameter, while 𝑐 is referred to as
“social” parameter. Inertia weight at iteration 𝑡 is 𝑤(𝑡)
𝑋 (𝑡 + 1) = 𝑋 if 𝑋 (𝑡 + 1) < 𝑋
and is used to balance global exploration and local
= 𝑋 (𝑡)+𝛽𝑉 (𝑡 + 1) , if 𝑋 ≤ exploitation. This can be determined by:
𝑋 (𝑡 + 1) ≤ 𝑋 𝑤(𝑡) = 𝑤 − 𝑤 −𝑤 𝑡/𝑇
=𝑋 , if 𝑋 (𝑡 + 1) > 𝑋 Where,𝑡 is current iteration number, 𝑤 and 𝑤 are
Where,𝑖 = 1,2, … , 𝑀; 𝑗 = 1,2, … , 𝑑. In the above desirable lower and upper limits of 𝑤 and 𝑇 is
equations𝑉 ,𝑋 and 𝑝𝑏𝑒𝑠𝑡 are respectively velocity, maximum number of iterations (Dai et al (2018), Gilli et
al (2011) and Mohanty 2018).
current position and personal best position of particle 𝑖
on the 𝑗 dimension, and 𝑔𝑏𝑒𝑠𝑡 is the 𝑗 dimension Frame work of PSO:
Step 8: Set the iteration number: Now set up the Multivariate Box-Pierce Non Correlation Test of
iteration number from 1 to maximum number of residuals: Chi-square=67.12 (p=0.36). Values in the
iterations and evaluate inertia weight 𝑤(𝑡) generation parenthesis indicates the standard error.
by generation.
Table 3: Modeling Performance (MAPE) under
Step 9: Compute and update velocity of each particle training data set
as explained in methodology section.
Sl. Location STARMA STARMA-
Step 10: Compute and update position of each particle. No PSO
1 Gulbarga 1.30 1.21
Step 11: Termination: Repeat the search process from 2 Bijapur 1.29 1.17
Step (6) to Step (10) until stop conditions, such as 3 Raichur 1.24 1.09
maximum iteration, are met. 4 Bagalkot 1.49 1.30
5 Belgaum 2.07 1.39
Step 12: Finally, optimal parameters are utilized to 6 Dharwad 1.69 1.42
build STARMA-PSO model on training data set and test 7 Gadag 1.56 1.40
data (Validation set) sets. 8 Koppal 1.41 1.28
9 Bellary 1.24 1.08
Step 13: Modelling and forecasting performance:
Modeling performance of proposed STARMA-PSO
Table 4: Modeling Performance (MAPE) under testing
model are performance by calculating MAPE under
data set
both training and testing data set (For model validation
purpose). Sl. Location STARMA STARMA-
No PSO
Table 1: PSO Parameter Specifications 1 Gulbarga 3.89 1.53
2 Bijapur 3.28 2.42
Cost Function CostFunction=@(x) rathod(x); 3 Raichur 3.93 1.76
Number of decision nVar=6 4 Bagalkot 2.77 1.10
Variables 5 Belgaum 3.08 1.57
Variable Size VarSize=[1 nVar] 6 Dharwad 3.63 1.05
Lower bound VarMin=[0.5, -0.19, -0.0090, - 7 Gadag 2.92 1.44
0.15, 0.10, -0.040] 8 Koppal 3.19 1.33
Upper bound VarMax= [1, -0.09, -0.0010, - 9 Bellary 3.10 1.25
0.10, 0.30, -0.020]
The mean absolute percentage error (MAPE) has been
Maximum Iteration MaxIt=200
computed to compare the forecasting performance of all
Swarm nPop=100
the models under considerations in both training and
size/Population size
validation data set for all the locations separately. The
Personal Learning c1=1.5
MAPE values under training and testing data set for
Coefficient
maximum temperature series of north Karnataka MAPE
Global Learning c2=2.0
values under training and testing data set STARMA-
Coefficient
PSO model was less and it has outperformed over
Velocity Limits VelMax=0.1*(VarMax-VarMin)
traditional STARMA model in both training and testing
VelMin=-VelMax data set.