Description Usage Arguments Details Value Author(s) See Also
Performs a grid search to minimize the objective function
1 | grid.search(obj, lower, upper, ngrid, ...)
|
obj |
objective function to be minimized |
lower |
numeric vector giving the lower bound of grid for each dimension |
upper |
numeric vector giving the upper bound of grid for each dimension |
ngrid |
numeric vector giving the number of points each dimension |
... |
other arguments passed to |
This function first call expand.grid
then evaluate obj
to find a minimum. The number of calls to obj
is prod(ngrid)
.
This is useful for finding a good starting values for many optimization routines.
a numeric vector of the parameter that minimizes obj
Long Qu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.