Here, the terms , and indicates search agent’s movement induction, foraging behavior and random diffusion, respectively. The optimization commences by initializing the parameters such as maximum diffusion speed , krill position , maximal foraging speed , maximal induced speed , the maximal number of iterations and numbers of krill . Compute the movement for every krill. The communal effects between krill individuals lead to movements and they attempt to conserve the higher density. denote the motion induction direction and which is evaluated with the local target and the density of the repulsive swarm. Then it is expressed as;
The inertia weight is represented by , the last motion is denoted by and maximal induced speed is represented as .
The worst and best krill individuals are represented by and . The smaller positive number is represented by . The numbers of neighbors are denoted by . Also, the terms and denote target direction effect and local effect offered by neighbors, respectively; and depicts fitness function of krill and neighbor, respectively; and indicates the corresponding positions of krill and neighbor, respectively.
represents the krill individual efficient individual through best fitness is expressed in the below equation; where depicts random value which lies in the range [0,1], signifies current iteration, indicates sensing distance.
The foraging movement is defined as which is according to food location and previous experiences with the food location. Then it is expressed as;
Inertia weight with foraging movement is represented by , signifies fitness value of krill and the krill best objective is represented by .
The food coefficients are represented by and it is expressed as;
The krill individual best objectives are determined by and it is expressed in the below equation
The food centers for iterations are computed and it is expressed as;
The physical diffusion movement is described on the basis of the diffusion speed for maximum and the random direction vectors are expressed in the below equation;
The random direction vector is represented by which lies between − 1 and 1.
To enhance the performance of KHO, the genetic reproduction mechanisms mutation and crossover are merged through KHO.
The below expression represents the crossover function of component,
Then, crossover probability
The mutation probability is denoted by and it is set to .
The krill’s position vector in the interval is found using below expression,