You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 StringThis 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
The text was updated successfully, but these errors were encountered: