Stop condition

To determine when the search algorithm has to stop you can set following parameters.

Number of similar consecutive solutions before restart

After a while the best solutions will all be very similar. A local optimum has been found. This optimum is not necessarily the the same as the global optimum. It is best that the algorithm is restarted to find more than one local optimum and in the end determine the global optimum. To determine if a local optimum has been reached the number of similar consecutive solutions is checked. When this number is reached a restart will be issued.

Number of restarts

The algorithm can be restarted a number of times before global optimum is determined.