{"action":"opened","issue":{"url":"https://api.github.com/repos/gonum/optimize/issues/48","labels_url":"https://api.github.com/repos/gonum/optimize/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/gonum/optimize/issues/48/comments","events_url":"https://api.github.com/repos/gonum/optimize/issues/48/events","html_url":"https://github.com/gonum/optimize/issues/48","id":54962548,"number":48,"title":"Consider adding Method.Supports(Function) (bool, error)","user":{"login":"vladimir-ch","id":1837502,"avatar_url":"https://avatars.githubusercontent.com/u/1837502?v=3","gravatar_id":"","url":"https://api.github.com/users/vladimir-ch","html_url":"https://github.com/vladimir-ch","followers_url":"https://api.github.com/users/vladimir-ch/followers","following_url":"https://api.github.com/users/vladimir-ch/following{/other_user}","gists_url":"https://api.github.com/users/vladimir-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimir-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimir-ch/subscriptions","organizations_url":"https://api.github.com/users/vladimir-ch/orgs","repos_url":"https://api.github.com/users/vladimir-ch/repos","events_url":"https://api.github.com/users/vladimir-ch/events{/privacy}","received_events_url":"https://api.github.com/users/vladimir-ch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-21T00:47:52Z","updated_at":"2015-01-21T00:47:52Z","closed_at":null,"body":"@btracey 's comment from #45 : Given we do use some magic, I can see the need for support. It seems like the better case is for the optimizer to have a Support function that either returns a boolean (if it supports), or an error which is nil if it supports, and provides a detailed explanation if it isn't, i.e. \"Bfgs requires the Function to have a Gradient. Function does not implement either Gradient or FunctionGradient.\""}}