xii Contents
18 Krill Herd Algorithm 231
Ali R. Kashani, Charles V. Camp, Hamed Tohidi, and Adam Slowik
18.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
18.2 Original KH algorithm . . . . . . . . . . . . . . . . . . . . . 232
18.2.1 Pseudo-code of the original version of KH algorithm . 232
18.2.2 Description of the original version of KH algorithm . . 233
18.3 Source-code of the KH algorithm in Matlab . . . . . . . . . . 234
18.4 Source-code of the KH algorithm in C++ . . . . . . . . . . . 237
18.5 Step-by-step numerical example of KH algorithm . . . . . . . 240
18.6 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
19 Monarch