Krill herd algorithm
What Is the Krill Herd Algorithm?
The krill herd algorithm, sometimes written as the krill herd optimization algorithm and abbreviated KH, is a population-based metaheuristic for global optimization that models the herding behavior of Antarctic krill. It was introduced by Amir Hossein Gandomi and Amir Hossein Alavi in 2012 in Communications in Nonlinear Science and Numerical Simulation, and it belongs to the swarm intelligence family alongside particle swarm optimization, ant colony optimization, and artificial bee colony methods. Each candidate solution is treated as an individual krill whose position in the search space evolves under a Lagrangian motion model, with fitness defined by the distance to a food source and by the density of surrounding herd members.
The biological premise is that krill aggregations are disrupted by predation and then re-form. Two objectives drive that re-formation: increasing local density and reaching food. Because those objectives push individuals toward each other and toward promising regions respectively, they map naturally onto the exploration and exploitation pressures that any optimizer must balance.
The Motion Model
Position updates combine three additive terms. Induced motion represents the influence of neighboring krill and of the best individual found so far, providing the attraction that draws the herd together and supplying the exploitation component. Foraging motion is computed from the current food location, estimated as a fitness-weighted centroid of the population, together with each individual's own best previous position. Physical diffusion is a random term whose magnitude decays as the run proceeds, giving broad exploration early and fine local search later. Summing the three gives a velocity that is integrated with a scaled time step to produce the next position, a formulation described in the original presentation of krill herd as a bio-inspired optimization algorithm. A distinguishing feature relative to earlier swarm methods is that the algorithm requires few control parameters beyond the maximum induced speed, foraging speed, and diffusion speed.
Genetic Operators and Variants
The base method is frequently augmented with operators borrowed from evolutionary computation. Crossover mixes components between a krill and a randomly chosen partner with a probability tied to relative fitness, and mutation perturbs components toward the global best, producing the four standard KH variants distinguished by which operators are enabled. Later work has proposed many refinements: linearly decreasing step size to sharpen convergence, chaotic maps in place of uniform random draws, opposition-based initialization, and the stud krill herd variant that replaces stochastic partner selection with the fittest individual. Hybrids couple KH with differential evolution, harmony search, biogeography-based optimization, and local refinement operators to correct the premature convergence that the plain algorithm can show on multimodal landscapes.
Performance and Assessment
Benchmark studies report competitive results against particle swarm optimization, differential evolution, and genetic algorithms on standard unconstrained test functions, and a review of krill herd and its applications catalogs its variants, hybrids, and published uses across engineering and computer science. As with other bio-inspired metaheuristics, the algorithm carries no convergence guarantee, and its advantage over well-tuned alternatives is problem dependent. Critics of the wider metaheuristic literature note that behavioral metaphors sometimes obscure algorithmic similarity to existing methods, so comparative studies now emphasize parameter-fair benchmarking and statistical significance testing rather than headline averages.
Applications
The krill herd algorithm has been applied in a range of fields, including:
- Structural and mechanical design optimization
- Economic load dispatch and power system unit commitment
- Feature selection and classifier parameter tuning
- Image segmentation and multilevel thresholding
- Wireless sensor network deployment and routing
- Job shop and cloud task scheduling
- Water resources and reservoir operation planning