lbfgsb.base#

Base functions used by the L-BFGS-B routine.

Functions#

get_bounds(x0, bounds)

Return the lower and upper bounds arrays.

is_any_inf(arrs)

Return whether any of the values in the given arrays is inf.

clip2bounds(x0, lb, ub)

Impose the bounds to x0.

count_var_at_bounds(x, lb, ub)

Count the number of variables exactly at the bounds.

projgr(x, grad, lb, ub)

Computes the infinity norm of the projected gradient.

display_start(epsmch, n, m, nvar_at_b, iprint)

Display information at solver start.

display_iter(niter, sbgnrm, f, iprint[, logger])

Display the objective function and the projected gradient for the iteration.

display_results(n_iterations, max_iter, x, ...)

Display the optimization results on the fly.