Research Article
Simulated Annealing-Based Krill Herd Algorithm for Global Optimization
Algorithm 2
Simulated annealing-based krill herd algorithm.
Begin | Step 1: Initialization. Set the generation counter the population P of krill, the foraging | speed , the diffusion speed , and the maximum speed , | temperature , Boltzmann constant , cooling factor , and an acceptance threshold number , | and elitism parameter KEEP. | Step 2: Fitness calculation. Calculate the fitness for each krill based on their initial position. | Step 3: While < MaxGeneration do | Sort all the krill according to their fitness. | Store the KEEP best krill. | for (all krill) do | Implement three motion as described in Section 2.1. | Update position for krill by krill selecting operator in Algorithm 1. | Calculate the fitness for each krill based on its new position . | end for | Substitute the KEEP best krill for the KEEP worst krill. | Sort all the krill according to their fitness and find the current best. | ; | Step 4: end while | Step 5: Output the best solution. | End. |
|