Research Article

Electricity Load Forecasting Using Support Vector Regression with Memetic Algorithms

Algorithm 2

Pseudocode of proposed firefly algorithm based memetic algorithm.
Begin
Initialize the parameters in MA, such as, swarm size , scaling parameters , the maximum iteration
 number, and default search step in PS;
 Generate the initial population of fireflies , using Latin Hypercube Sampling (LHS)
 method;
 Evaluate the fitness of each firefly in the population: use each firefly to train the SVR based forecasting
 model and calculate the fitness (MAPE);
While (Termination conditions are not satisfied)
  For   : in all fireflies
   For   : in all fireflies
    If ( ) firefly move to a new position according to (11); End If
    Evaluate the fitness of each firefly and update its light intensity;
   End For
  End For
  Rank the fireflies and find the current best;
  %%%% Conduct individual learning with pattern search with a probability pl
  For   : in all fireflies
   If ( )
    Conduct individual learning for firefly with pattern search (as shown in Algorithm 1);
   End If
  End For
End While
 Output the best firefly as the final optimal solution
End