{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/231","repository_url":"https://api.github.com/repos/JuliaOpt/Optim.jl","labels_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/231/comments","events_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/231/events","html_url":"https://github.com/JuliaOpt/Optim.jl/issues/231","id":162284995,"number":231,"title":"LBFGS fails locally","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-25T15:00:36Z","updated_at":"2016-06-25T16:48:37Z","closed_at":null,"body":"If I run the LBFGS test in the terminal it passes:\r\n\r\n```jl\r\n\r\n   julia> results = Optim.optimize(d, initial_x, method=LBFGS())\r\nResults of Optimization Algorithm\r\n * Algorithm: L-BFGS\r\n * Starting Point: [10.0,10.0]\r\n * Minimizer: [61.800000000000004,17.0]\r\n * Minimum: 0.000000e+00\r\n * Iterations: 2\r\n * Convergence: true\r\n   * |x - x'| < 1.0e-32: false\r\n   * |f(x) - f(x')| / |f(x)| < 1.0e-32: false\r\n   * |g(x)| < 1.0e-08: true\r\n   * Reached Maximum Number of Iterations: false\r\n * Objective Function Calls: 9\r\n * Gradient Calls: 9\r\n```\r\n\r\nHowever, if I run Pkg.test it fails:\r\n\r\n```jl\r\nResults of Optimization Algorithm\r\n * Algorithm: L-BFGS\r\n * Starting Point: [10.0,10.0]\r\n * Minimizer: [-8.849379004077524e-5,10.0]\r\n * Minimum: 6.132692e-17\r\n * Iterations: 7\r\n * Convergence: true\r\n   * |x - x'| < 1.0e-32: false\r\n   * |f(x) - f(x')| / |f(x)| < 1.0e-32: false\r\n   * |g(x)| < 1.0e-08: true\r\n   * Reached Maximum Number of Iterations: false\r\n * Objective Function Calls: 32\r\n * Gradient Calls: 32\r\n\r\n Test Failed\r\n  Expression: norm(Optim.minimizer(results) - [309.0 / 5.0,17.0]) < 0.01\r\n   Evaluated: 62.19526459337784 < 0.01\r\n```\r\n\r\nIt seems to converge to some other very shallow region..?"},"comment":{"url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/comments/228556525","html_url":"https://github.com/JuliaOpt/Optim.jl/issues/231#issuecomment-228556525","issue_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/231","id":228556525,"user":{"login":"pkofod","id":8431156,"avatar_url":"https://avatars.githubusercontent.com/u/8431156?v=3","gravatar_id":"","url":"https://api.github.com/users/pkofod","html_url":"https://github.com/pkofod","followers_url":"https://api.github.com/users/pkofod/followers","following_url":"https://api.github.com/users/pkofod/following{/other_user}","gists_url":"https://api.github.com/users/pkofod/gists{/gist_id}","starred_url":"https://api.github.com/users/pkofod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkofod/subscriptions","organizations_url":"https://api.github.com/users/pkofod/orgs","repos_url":"https://api.github.com/users/pkofod/repos","events_url":"https://api.github.com/users/pkofod/events{/privacy}","received_events_url":"https://api.github.com/users/pkofod/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T16:48:37Z","updated_at":"2016-06-25T16:48:37Z","body":"Is it just the test you're running directly? Seems odd that it hasn't failed on travis then..."}}
{"actor":{"display_login":"pkofod"}}