prtools.backend.jax.lbfgs#

lbfgs(fun, x0, tol, maxiter, callback=None)[source]#

Minimize a scalar function of one or more variables using the L-BFGS algorithm

Parameters:
  • fun (callable) – The objective function to be minimied

  • x0 (array_like) – Initial starting guess

  • tol (float) – Termination tolerance

  • maxiter (int) – Maximum number of iterations

  • callback (callable, optional) – Not currently implemented

Returns:

  • final_params

  • final_state