{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/121","repository_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl","labels_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/121/comments","events_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/121/events","html_url":"https://github.com/JuliaOpt/NLopt.jl/issues/121","id":365283454,"node_id":"MDU6SXNzdWUzNjUyODM0NTQ=","number":121,"title":"Use of NLopt for complex numbers","user":{"login":"rkumar-slim","id":2191432,"node_id":"MDQ6VXNlcjIxOTE0MzI=","avatar_url":"https://avatars0.githubusercontent.com/u/2191432?v=4","gravatar_id":"","url":"https://api.github.com/users/rkumar-slim","html_url":"https://github.com/rkumar-slim","followers_url":"https://api.github.com/users/rkumar-slim/followers","following_url":"https://api.github.com/users/rkumar-slim/following{/other_user}","gists_url":"https://api.github.com/users/rkumar-slim/gists{/gist_id}","starred_url":"https://api.github.com/users/rkumar-slim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkumar-slim/subscriptions","organizations_url":"https://api.github.com/users/rkumar-slim/orgs","repos_url":"https://api.github.com/users/rkumar-slim/repos","events_url":"https://api.github.com/users/rkumar-slim/events{/privacy}","received_events_url":"https://api.github.com/users/rkumar-slim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-01T01:41:32Z","updated_at":"2018-10-01T02:11:08Z","closed_at":"2018-10-01T02:11:08Z","author_association":"NONE","body":"Hello,\r\n\r\nI am trying to use NLopt for a non-linear problem where my unknown is complex in nature. I get this error. Can I use NLopt for complex numbers?\r\n\r\nBest Regards,\r\n\r\n\r\n (minf, minx, ret) = optimize(opt, vec(Z))\r\nERROR: MethodError: no method matching optimize(::NLopt.Opt, ::Array{Complex{Float64},1})\r\nClosest candidates are:\r\n  optimize(::NLopt.Opt, ::AbstractArray{T<:Real,1}) where T<:Real at /d/home/rajivk/.julia/v0.6/NLopt/src/NLopt.jl:532\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/comments/425772464","html_url":"https://github.com/JuliaOpt/NLopt.jl/issues/121#issuecomment-425772464","issue_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/121","id":425772464,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc3MjQ2NA==","user":{"login":"stevengj","id":2913679,"node_id":"MDQ6VXNlcjI5MTM2Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/2913679?v=4","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T02:11:08Z","updated_at":"2018-10-01T02:11:08Z","author_association":"CONTRIBUTOR","body":"The optimization parameters have to be real, but you can just make the parameters from the real and imaginary parts of the complex numbers: `reinterpret(Float64, vec(Z))`."}}
{"actor":{"display_login":"stevengj"}}