Skip to main content

least_squares_dogbox

Function least_squares_dogbox 

Source
pub fn least_squares_dogbox(
    fun: impl Fn(&[f64]) -> Vec<f64>,
    jac: impl Fn(&[f64]) -> Array2<f64>,
    x0: &[f64],
    lb: &[f64],
    ub: &[f64],
    options: LeastSquaresOptions,
) -> Result<BoundedLeastSquaresResult, ErrorsJSL>
Expand description

Bounded nonlinear least squares by the dogbox method (SciPy’s least_squares(method="dogbox")), Voglis and Lagaris’s rectangular trust region. Variables on a bound whose gradient pushes further out are fixed; for the others the Gauss-Newton step and the Cauchy point define a dogleg, followed inside the intersection of the box-shaped trust region with the bounds. It suits small problems with bounds, and is SciPy’s port step for step; same options and result as least_squares_bounded.