Computational Intelligence and Neuroscience / 2016 / Article / Alg 3

Research Article

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

Algorithm 3

Subroutine for mutation.
pop = sort(pop);
if abs(bestfit(gen) − bestfit(gen − 1)) < then ; else ;
  if ( == )
     ;
     for  : popsize
       if rand(1) < p c
        = ceil(rand(1) dimsize);
        pop() = pop() +  rands();
        if pop() > then pop) = ;
        if pop() < then pop() = ;
       end
     end
  end
end