goldensearch.Rd
Minimising a continuous univariate function using the golden section search algorithm.
goldensearch(fn, interval, tol = 1)
fn | the function; should be scalar valued |
---|---|
interval | a vector containing the lower and upper bounds of search |
tol | tolerance level for convergence |
a list of objects
k: minimiser
value: mimimum value
iter: number of iterations before convergence
iterfn: number of function evaluations
#>#> $k #> [1] 1 #> #> $value #> [1] 0 #> #> $iter #> [1] 1 #> #> $iterfn #> [1] 4 #>