home *** CD-ROM | disk | FTP | other *** search
-
- _O_n_e _D_i_m_e_n_s_i_o_n_a_l _O_p_t_i_m_i_z_a_t_i_o_n
-
- optimize(f=, interval=, lower=min(interval),
- upper=max(interval), maximum=FALSE,
- tol=.Machine$double.eps^0.25, ...)
-
- _A_r_g_u_m_e_n_t_s:
-
- f : the function to be optimized. The function is
- either minimized or maximized over its first
- argument depending on the value of maximum.
-
- interval : a vector containing the end-points of the
- interval to be searched for the minimum.
-
- lower : the lower end point of the interval to be
- searched.
-
- upper : the upper end point of the interval to be
- searched.
-
- tol : the desired accuracy.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- The function optimize searches the interval from lower
- to upper for a minimum or maximum of the function f
- with respect to its first argument.
-
- The function uses Fortran code (from Netlib) based on
- algorithms given in the reference.
-
- _V_a_l_u_e:
-
- A list with components minimum (or maximum) and objec-
- tive which give the location of the minimum (or max-
- imum) and the value of the function at that point.
-
- _R_e_f_e_r_e_n_c_e_s:
-
- Brent, R. (1973). Algorithms for Minimization without
- Derivatives. Englewood Cliffs N.J.: Prentice-Hall.
-
- _S_e_e _A_l_s_o:
-
- nlm, uniroot.
-
- _E_x_a_m_p_l_e_s:
-
- f <- function (x,a) (x-a)^2
- xmin <- optimize(f, c(0, 1), tol=0.0001, a=1/3)
-
-