hi everyone I have written a genetic algorithm in matlab and I need to define a stop criterion in which :
if after 100 iteration the produced answer is the same as previous answers, the algorithm must be stopped
how can I write this? can someone help?
Best Answer