{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/121","labels_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/121/comments","events_url":"https://api.github.com/repos/JuliaOpt/Optim.jl/issues/121/events","html_url":"https://github.com/JuliaOpt/Optim.jl/issues/121","id":86893382,"number":121,"title":"assertion failed: B > A (in hz_linesearch!)","user":{"login":"oxinabox","id":5127634,"avatar_url":"https://avatars.githubusercontent.com/u/5127634?v=3","gravatar_id":"","url":"https://api.github.com/users/oxinabox","html_url":"https://github.com/oxinabox","followers_url":"https://api.github.com/users/oxinabox/followers","following_url":"https://api.github.com/users/oxinabox/following{/other_user}","gists_url":"https://api.github.com/users/oxinabox/gists{/gist_id}","starred_url":"https://api.github.com/users/oxinabox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxinabox/subscriptions","organizations_url":"https://api.github.com/users/oxinabox/orgs","repos_url":"https://api.github.com/users/oxinabox/repos","events_url":"https://api.github.com/users/oxinabox/events{/privacy}","received_events_url":"https://api.github.com/users/oxinabox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T08:50:30Z","updated_at":"2015-06-10T08:50:30Z","closed_at":null,"body":"I hit an assert while using \r\n\r\nOn [this line](https://github.com/JuliaOpt/Optim.jl/blob/6f0be0643d2795c5e9169e63283c2cc5ab7cd309/src/linesearch/hz_linesearch.jl#L341)\r\n\r\n```\r\nres = optimize(f, θ, method=:l_bfgs, show_trace = true, store_trace = true, iterations = 50);\r\n```\r\n\r\n`f` is a loss function (and its gradient), for a special type of neural network. I know this type of network has historically been trained with LBFGS, and indeed it normally works quiet well for me. but this time, it does not. I can reproduce it by running again with same parameters.\r\n\r\n**Does the assert check part of Optim's logic?**\r\n\r\nOr can it be triggered by a pathological enough `f`?"}}