pub fn bounded_least_squares<F, J, D, S1, S2>(
residuals: F,
x0: &ArrayBase<S1, Ix1>,
bounds: Option<Bounds>,
jacobian: Option<J>,
data: &ArrayBase<S2, Ix1>,
options: Option<BoundedOptions>,
) -> OptimizeResult<OptimizeResults<f64>>Expand description
Solve a bounded least squares problem
This function minimizes the sum of squares of residuals subject to box constraints on the variables.
ยงArguments
residuals- Function that returns the residualsx0- Initial guess for the parametersbounds- Optional bounds on variablesjacobian- Optional Jacobian functiondata- Additional data to pass to residuals and jacobianoptions- Options for the optimization