Research Article
Forecasting Electrical Energy Consumption of Equipment Maintenance Using Neural Network and Particle Swarm Optimization
Algorithm 2
The pseudocode of the sub-PSO procedure.
(1) Randomly initialize a sub-swarm of particles, each of which representing the weights of the th ANN; | (2) Let ; set the pbest of each particle to its original position; | (3) For to do | (4) For each particle in the th sub-swarm do | (5) Move the particle in the sub search space according to (4) and (5); | (6) Update the pbest of the particle; | (7) Update the gbest of the th sub-swarm; | (8) Update the control parameters of the inner loop according to (6)~(9); | (9) return the gbest of the th sub-swarm as the th ANN; |
|