In an earlier post, I introduced the golden section search method – a modification of the bisection method for numerical optimization that saves computation time by using the golden ratio to set its test points. This post contains the R function that implements this method, the R functions that contain the 3 functions that were minimized by this method, and the R script that ran the minimization.
I learned some new R functions while learning this new algorithm.
– the curve() function for plotting curves
– the cat() function for concatenating strings and variables and, hence, for printing debugging statements
View original post 553 more words