{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/39","labels_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/39/comments","events_url":"https://api.github.com/repos/JuliaOpt/NLopt.jl/issues/39/events","html_url":"https://github.com/JuliaOpt/NLopt.jl/issues/39","id":93915240,"number":39,"title":"Unrecognized function abs`","user":{"login":"zenna","id":313946,"avatar_url":"https://avatars.githubusercontent.com/u/313946?v=3","gravatar_id":"","url":"https://api.github.com/users/zenna","html_url":"https://github.com/zenna","followers_url":"https://api.github.com/users/zenna/followers","following_url":"https://api.github.com/users/zenna/following{/other_user}","gists_url":"https://api.github.com/users/zenna/gists{/gist_id}","starred_url":"https://api.github.com/users/zenna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenna/subscriptions","organizations_url":"https://api.github.com/users/zenna/orgs","repos_url":"https://api.github.com/users/zenna/repos","events_url":"https://api.github.com/users/zenna/events{/privacy}","received_events_url":"https://api.github.com/users/zenna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-08T23:50:31Z","updated_at":"2015-07-09T00:55:01Z","closed_at":"2015-07-09T00:55:01Z","body":"I am trying to use NLOpt from JuMP.  Whenever I have tried to use an objective function with `abs` I get\r\n\r\n```julia\r\nm_nl = Model(solver=NLoptSolver(algorithm=:LN_COBYLA))\r\n@defVar(m_nl, 0 <= x <= 1)\r\n@setNLObjective(m_nl, :Min, abs(x))\r\n```\r\n\r\n```\r\nERROR: Unrecognized function abs\r\n in error at ./error.jl:21\r\n```\r\n\r\nSurely, at least some of the algorithms should be able to handle expressions with `abs`"}}