Skip to content
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

with nlopt-2.4.2, algorithm_name() fails in Julia 0.6 #89

Closed
ko56 opened this issue Sep 10, 2017 · 1 comment
Closed

with nlopt-2.4.2, algorithm_name() fails in Julia 0.6 #89

ko56 opened this issue Sep 10, 2017 · 1 comment

Comments

@ko56
Copy link

ko56 commented Sep 10, 2017

julia> using NLopt
julia> optG = NLopt.Opt(:LD_SLSQP, 2)
Opt(:LD_SLSQP, 2)

julia> algorithm_name(optG)
ERROR: MethodError: Cannot convert an object of type Ptr{UInt8} to an object of type String
This may have arisen from a call to the constructor String(...),
since type constructors fall back to convert methods.
Stacktrace:
[1] algorithm_name(::Int32) at /usr/home/ko/.julia/v0.6/NLopt/src/NLopt.jl:393
[2] algorithm_name(::Symbol) at /usr/home/ko/.julia/v0.6/NLopt/src/NLopt.jl:398
[3] algorithm_name(::NLopt.Opt) at /usr/home/ko/.julia/v0.6/NLopt/src/NLopt.jl:400

@odow
Copy link
Member

odow commented Mar 3, 2022

Closing as fixed:

julia> using NLopt

julia> optG = NLopt.Opt(:LD_SLSQP, 2)
Opt(LD_SLSQP, 2)

julia> algorithm_name(optG)
"Sequential Quadratic Programming (SQP) (local, derivative)"

@odow odow closed this as completed Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants