Simple Random Search function for the smoof and ParamHelpers ecosystem with termination criteria and parallelization.
We recommend to install the official release version:
For experimental use you can install the latest development version:
library(randomsearch)
fun = function(x) x[1]^2 + sin(x[2])
res = randomsearch(fun, lower = c(-1, -2), upper = c(2,4), minimize = TRUE, max.evals = 30)
summary(res)
## Randomsearch Result:
## Eval no.: 9
## x: x=-0.262,-1.75
## y: -0.9158972
For a more detailed documentation you can check the Vignette.