Computational Intelligence and Neuroscience / 2016 / Article / Alg 1

Research Article

An Improved Teaching-Learning-Based Optimization with the Social Character of PSO for Global Optimization

Algorithm 1

LDWPSO algorithm.
Initialize:
  Initialize , , , , , , Population size (Ps), Dimension size () and the initial swarm
Optimize:
  for gen = 1 : 
    Calculate the the inertia weight according to (3)
    for  : Ps
      Calculate fitness of all particles;
      Calculate the best position of current generation;
      Calculate the best position of th particle which it has achieved so far;
      for  : 
        Update the velocity of th particle according to (1)
        If then
        If then
        Update the position of th particle according to (2)
        If then
        If then
      end
    end
  end