pub fn minimize_lbfgsb(
fg: impl FnMut(&[f64]) -> (f64, Vec<f64>),
x0: &[f64],
lb: &[f64],
ub: &[f64],
options: LbfgsbOptions,
) -> Result<BoundedResult, ErrorsJSL>Expand description
Minimises f subject to lb ≤ x ≤ ub by L-BFGS-B (SciPy’s minimize(method='L-BFGS-B')).
fg returns the value and gradient. Infinite bounds are allowed.