-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop optimisation once fitness converged #207
Comments
There is already such a default value but it is much higher, 1000 consecutive without improvement, I think. Or you can limit the time the optimisation takes. Hope this helps. |
I also have the same question. I am finding that I can only specify a |
Yes, I agree but you can also do this with the existing callback interface. Have you tried this? For an example see here: and by setting a higher |
Thanks for response! However, I might not be fully understanding because the example looks like it accomplishes nearly the same thing that using the |
Yes, you have full control so just save the previous value and compare them. If there is no change for some time, then shutdown. You can implement any stopping criteria in this way. |
If you are still confused just ask and I can put together a concrete example. No problem. |
I tried something like this that seems to work. My saving method might not be the best but it works.
Then I passed in |
Yes, this is what I meant. I agree you shouldn't use |
Do you think there might be any issues with using the |
Hmm, not sure, the part that checks and calls the callback is done in a single / the main thread so depending on how you mean to use it it might work or not. Please report back so we can debug if not. We need to ramp up the support / simplicity of using multithreads anyway. |
Hello. I have a function which returns values between -2 and -14. I do not know to optimal value a priori.
Using bboptimize converges towards what seems to be the correct minimum (say -4) but never stops. Is there a way to put a stopping condition on the fitness convergence?
Say for example if after 20 steps its constant then stop.
The text was updated successfully, but these errors were encountered: