| optimLBFGSB | R Documentation |
For minimization, this function uses the "L-BFGS-B" method from the optim function,
which is part of the codestats package. It is basically a wrapper, to enable L-BFGS-B for usage
in SPOT.
optimLBFGSB(x = NULL, fun, lower, upper, control = list(), ...)
x |
optional matrix of points. Only first point (row) is used as startpoint. |
fun |
objective function, which receives a matrix x and returns observations y |
lower |
boundary of the search space |
upper |
boundary of the search space |
control |
list of control parameters
All other |
... |
passed to |
list, with elements
xNA, not used
yNA, not used
xbestbest solution
ybestbest observation
countnumber of evaluations of fun
(estimated from the more complicated "counts" variable returned by optim)
messagetermination message returned by optim
res <- optimLBFGSB(,fun = funSphere,lower = c(-10,-20),upper=c(20,8)) res$ybest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.