
Conclusion 247
Finally, the global best individual will be updated accordingly:
X
gb
= {1.2900, 0.3870, −0.1650, 4.6788, 2.6148}
K
gb
= 1.6641
After determination of the main loop of the algorithm, the global best solution
found in the previous step will be proposed as the final result of the algorithm.
18.6 Conclusion
In this chapter, the strategy behind the KH algorithm to handle a given
objective function has been explained. Therefore, all the steps for handling the
objective function through a pseudo-code were provided. To better conveyance
of the concept, we presented the source-codes for the original KH algorithm
in both Matlab and C++ programming language ...