| optimLHD | R Documentation |
This uses Latin Hypercube Sampling (LHS) to optimize a specified target function.
A Latin Hypercube Design (LHD) is created with designLHD, then evaluated
by the objective function. All results are reported, including the best (minimal)
objective value, and corresponding design point.
optimLHD(x = NULL, fun, lower, upper, control = list(), ...)
x |
optional matrix of points to be included in the evaluation |
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
|
... |
passed to |
list, with elements
xarchive of evaluated solutions
yarchive of observations
xbestbest solution
ybestbest observation
countnumber of evaluations of fun
messagesuccess message
res <- optimLHD(,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.