def test_lbfgs_quadratic():
    obj = Quadratic()
    opt = Lbfgs(obj.pars, obj.f, obj.fprime)
    for i, info in enumerate(opt):
        if i > 50:
            break
    assert obj.solved(), 'did not find solution'
dataset/ETHPy150Open BRML/climin/test/test_lbfgs.py/test_lbfgs_quadratic/original