Golden Section Search Algorithm
Minimising a continuous univariate function using the golden section search algorithm.
goldensearch(fn, interval, tol = 1)
fn
: the function; should be scalar valuedinterval
: a vector containing the lower and upper bounds of searchtol
: tolerance level for convergencea list of objects
fn = function(x) (x-1)^2; goldensearch(fn=fn,interval=c(-2,3),tol=1)
Useful links