-
Notifications
You must be signed in to change notification settings - Fork 46
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
returns :XTOL_REACHED but doesn't modify the input values #136
Comments
Can you post your code? As a side remark, unless you are reporting a bug, you should post on discourse, first. |
Since with the same inputs in works in JuMP 0.18.6 I guess it is a bug.
|
There are two mistakes in the gradient calculation:
What you were doing was creating a new
and verify that |
Can this issue be closed? |
Yes.
I was assigning values to the grad vector in a wrong way.
Thank you for the support!
Il mer 18 set 2019, 08:40 Michele Zaffalon <[email protected]> ha
scritto:
… Can this issue be closed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#136>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIBXOCRF6VMPLGO2Z4CJY2DQKHENFANCNFSM4IULHNYA>
.
|
Can I open a related issue? function ps(x::Vector,grad::Vector) function ps_con(z::Vector,x::Vector,grad::Matrix,w::Vector) opt=Opt(:LD_MMA,3) inequality_constraint!(opt, (z,x,g) -> ps_con(z,x,g,[1,1]), [1e-8,1e-8]::AbstractVector) but now I get: |
There are two errors I can see:
Could you please:
|
Closing because this is not a bug in NLopt. Please ask usage questions like this on the community forum: https://discourse.julialang.org/c/domain/opt/13 |
I don't know what's wrong with my code.
I'm using the low-level nlopt wrapper because I need to define custom functions to be optimized on a vector of variables and JuMP doesn't allow it.
If I choose the algorithm LD_SLSQP I get ROUNDOFF error, instead, if I use LD_MMA I get Xtol and Ftol reached but the values of the variables don't change from the starting values.
Do you know which can be the problem?
I tested all the functions I implemented and all of them work outside the nlopt optimization.
Thank you in advance for your support
Giada
The text was updated successfully, but these errors were encountered: