goldensearch: Golden Section Search Algorithm

Description Usage Arguments Value Examples

Description

Minimising a continuous univariate function using the golden section search algorithm.

Usage

1
goldensearch(fn, interval, tol = 1)

Arguments

fn

the function; should be scalar valued

interval

a vector containing the lower and upper bounds of search

tol

tolerance level for convergence

Value

a list of objects

Examples

1
fn = function(x) (x-1)^2; goldensearch(fn=fn,interval=c(-2,3),tol=1)

estsyawo/cluscov documentation built on June 9, 2019, 1:47 a.m.