Algorithm 2: Pseudocode for “the krill herd optimization algorithm”. |
Begin Define the population size () and the loop iteration ( ):Initialization Phase: Set the initial sequence ; Set up the population data and cluster information as input. Of krill arbitrarily. Fitness assessment: Analyze each krill following the location’s instructions. While do Sort the population or krill from best to worst. For do Calculate the three motions, (1) The krill drive action (2) Hunting behavior (3) Physical agglomeration The krill location in the inquiry space should be updated. Consider each krill in light of its proximity. End For Sort the current krill from best to worst, then identify the “best” ones with optimal metrics. . End While Predict (“The krill’s finest result”). End |