Learn R Programming

gss (version 2.2-8)

nlm0: Minimizing Univariate Functions on Finite Intervals

Description

Minimize univariate functions on finite intervals using 3-point quadratic fit, with golden-section safe-guard.

Usage

nlm0(fun, range, prec=1e-7)

Value

nlm0 returns a list object with the following elements.

estimate

Minimizer.

minimum

Minimum.

evaluations

Number of function evaluations.

Arguments

fun

Function to be minimized.

range

Interval on which the function to be minimized.

prec

Desired precision of the solution.