The termination condition for the algorithm is when either the maximum number of iterations is reached or the
objective function assumes a preset value [20]. In this work, the algorithm searches for a solution until a certain
number of iterations is reached without any further improvement of the best cost obtained