| spotLoop | R Documentation |
SPOT is usually started via the function spot. However, SPOT runs can be continued
(i.e., with a larger budget specified in control$funEvals) by using spotLoop.
This is the main loop of SPOT iterations. It requires the user to give the same inputs as
specified for spot. Note: control$funEvals must be larger than the value
used in the previous run, because it specifies the total number of function evaluations and
not the additional number of evalutions.
spotLoop(x, y, fun, lower, upper, control, ...)
x |
|
y |
|
fun |
|
lower |
is a vector that defines the lower boundary of search space. This determines also the dimension of the problem. |
upper |
is a vector that defines the upper boundary of search space. |
control |
is a list with control settings for spot. See |
... |
additional parameters passed to |
This function returns a list with:
Parameters of the best found solution (matrix).
ybestObjective function value of the best found solution (matrix).
xArchive of all evaluation parameters (matrix).
yArchive of the respective objective function values (matrix).
countNumber of performed objective function evaluations.
msgMessage specifying the reason of termination.
modelFitThe fit of the last build model, i.e.,
an object returned by the last call to the function specified by control$model.
## Most simple example: Kriging + LHS + predicted ## mean optimization (not expected improvement) control <- list(funEvals=20) res <- spot(,funSphere,c(-2,-3),c(1,2),control) ## now continue with larger budget. ## 5 additional runs will be performed. control$funEvals <- 25 res2 <- spotLoop(res$x,res$y,funSphere,c(-2,-3),c(1,2),control) res2$xbest res2$ybest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.