-
Notifications
You must be signed in to change notification settings - Fork 100
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
Optimization get stuck + "poss" fails + additional arguments #27
Comments
Question 1From your statement, I think there may be two possible reasons.
If the objective function is invoked normally, the reason is just zoopt doesn't find a better solution in many iterations. If this is the case, try to increase the exploration rate. See https://zoopt.readthedocs.io/en/latest/ZOOpt/Practical-Parameter-Settings-and-fine-tuning-tricks.html#customize-a-stopping-criterion for more parameter tuning methods.
Question 2I've verified that the poss optimization example works properly. Could you please be more specific? It would help a lot if you can paste some code. Question 3If the additional arguments are not be optimized, yang has gives a solution in the email. Being more specific will help. |
Thanks, |
To see whether the optimization gets stuck, a simple method is to add a "print("The objective function is invoked")" statement into the objective function you implemented. If this sentence is not printed for an unusually long time, the optimization is stuck. If so, please paste more prompts that zoopt prints or some details in your code, mainly about the definitions of key parameters and how zoopt is used. |
If the parameter has been set as follows, could you see the intermediate result that ZOOpt prints? ZOOpt should have printed the best solution so far for each iteration.
|
Hi, E.g. I define it as:
|
Hi all,
1 - sometimes optimization just get stuck at some point and does not end (with dimension size < 50 - it's always the case). Don't know, maybe it is doing something, but after 10 minutes I just gave up (
2 - Moreover, 'poss' optimization fails with an error "AttributeError: 'NoneType' object has no attribute 'print_solution'" at different places.
3 - is there a way to pass additional arguments to objective function?
Best regards,
Oleg
The text was updated successfully, but these errors were encountered: