-
Notifications
You must be signed in to change notification settings - Fork 79
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
Results of a minimization are out of bound #244
Comments
Hi, can you show the exact code output ? what value is 1.1, the best solution or the edm ? Also look at this comment and issue #231 (comment) |
Hi, I updated the text of the question, with the output. I looked at the issue you linked, and it appears to me that I should try as well Also, it seems there's a discrepancy between |
You may want to show the code for this last line. |
My bad, it was in the updated message, but unformatted. Now it should appear properly. |
Then I believe you have found the answer in the linked comment above: apply pheno to the best_candidate() output. |
Thanks! I mark the issue as closed |
Hi all, I started using CMA-ES recently, and I wanted to thank you for this remarkable work!
I have a question about bounds to parameters. I am now doing a minimization of a function in 1 variable, imposing a bound on it. I followed the guide, and my code (at least its relevant part) is the following:
where
function_to_minimize
is defined as a lambda function.The problem is that the result I have is 1.1 for the minimum, which is out of the bound [1.0e-20, 1.0] that I provided. So I wanted to ask you what am I missing.
I have also another question, in case I will open another topic, but it is very simple. Is there a way to "impose" the value of the function at minimum? For instance, I want this function to be 0.0 (because I expect 0 to be its minimum), but instead the f-value is around 30.
Thanks in advance for your answers :)
EDIT The output is:
I notice now a mismatch between the parameter in the last line and the one in the
best solution
line.EDIT 2 I tried to "free" another parameter of the function (it actually has 3 parameters, but I wanted to fix 2 and vary just one), and by minimising with 2 parameters I get consistent points (i.e. withn the bounds, and with a value close to 0)
The text was updated successfully, but these errors were encountered: