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
x
NA, not used
y
NA, not used
xbest
best solution
ybest
best observation
count
number of evaluations of fun
(estimated from the more complicated "counts"
variable returned by optim
)
message
termination 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.