guofei9987 / scikit-opt

Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization Algorithm,Immune Algorithm, Artificial Fish Swarm Algorithm, Differential Evolution and TSP(Traveling salesman)
https://scikit-opt.github.io/scikit-opt/#/en/
MIT License
5.27k stars 991 forks source link

Add early stop feature for GA #164

Closed samueljsluo closed 2 years ago

guofei9987 commented 2 years ago

Thanks for this. Very helpful.
It is necessary to support earlier version.
Let early_stop=None by default. The code does not use early stopping, unless explicitly assigned .

codecov-commenter commented 2 years ago

Codecov Report

Merging #164 (b0676d5) into master (ceeca2a) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #164   +/-   ##
=======================================
  Coverage   91.95%   91.95%           
=======================================
  Files          18       18           
  Lines         485      485           
=======================================
  Hits          446      446           
  Misses         39       39           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ceeca2a...b0676d5. Read the comment docs.

samueljsluo commented 2 years ago

Got it, that makes more sense. I have set the default value to None. Please let me know if there is room for improvement.

guofei9987 commented 2 years ago

Very helpful and thank you!