Thirdparty bfgs