nls_optimize function

Optimizer for non-linear least square problems