Description Usage Arguments Details Value See Also Examples
This function allows greedy/full grid search in any dimension.
1 2 | cleversearch(fn, lower, upper, ngrid, startvalue, logscale = TRUE,
clever = TRUE, verbose = FALSE)
|
fn |
a function to be minimized (or maximized), with the only argument being the parameter over which minimization is to take place. The return value must be scalar. |
lower |
numeric vector containing the lower bounds on the parameter grid |
upper |
numeric vector containing the upper bounds on the parameter grid |
ngrid |
integer number determining the grid length in every dimension |
startvalue |
optional initial value for the parameter to be optimized over |
logscale |
logical, whether to construct the grid on logarithmic scale |
clever |
logical, whether to perform a greedy grid search with lookup-table or a full grid evaluation. The latter is only available up to 3d. |
verbose |
logical. Should the search process be monitored? |
Unless startvalue
is specified, the search starts at the lower
bound of the 1d parameter space or at the middle of the 2d/3d grid.
A list with components
par |
optimal parameter value that was found. |
value |
|
counts |
number of calls to 'fn'. |
1 2 |
Loading required package: Matrix
Loading required package: splines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.