barcaroli / QGA

https://barcaroli.github.io/QGA/
GNU General Public License v3.0
0 stars 0 forks source link

Does QGA has the argument?which is the number of consecutive generations without any improvement in the best fitness value before the GA is stopped. #1

Open A-Pai opened 3 weeks ago

A-Pai commented 3 weeks ago

Does QGA has the argument?which is the number of consecutive generations without any improvement in the best fitness value before the GA is stopped. Just as the package GA does

barcaroli commented 3 weeks ago

Currently, there is no stopping rule based on the number of consecutive generations without any improvement in the best fitness value. I could implement it. I will let you know

barcaroli commented 3 weeks ago

I have just updated the github version of QGA. If you install it (devtools::install_github("barcaroli/QGA") you get this new version (1.1) where you can add the parameter stop_iters. This parameter indicates the number of iterations after which to stop if there has been no improvement in the fitness. See the example at https://barcaroli.github.io/QGA/reference/QGA.html

A-Pai commented 3 weeks ago

Thank you very much, I like this package very much too You are a very diligent and loving author