nls_optimize: Optimizer for non-linear least square problems

View source: R/PCODE.R

nls_optimizeR Documentation

Optimizer for non-linear least square problems

Description

Obtain the solution to minimize the sum of squared errors of the defined function fun by levenberg-marquardt method. Adapted from PRACMA package.

Usage

nls_optimize(fun, x0, ..., options,verbal)

Arguments

fun

The function returns the vector of weighted residuals.

x0

The initial value for optimization.

...

Parameters to be passed for fun

options

Additional optimization controls.

verbal

Default = 1 for printing iteration and other for suppressing

Value

par

The solution to the non-linear least square problem, the same size as x0


pCODE documentation built on Sept. 8, 2022, 9:06 a.m.