Description Usage Arguments Value Methods (by class) Examples
This function conducts a random search on the given function with the support of parallelization and multiple termination criteria.
| 1 2 3 4 5 6 7 8 9 10 11 12 | randomsearch(fun, ...)
## S3 method for class 'smoof_function'
randomsearch(fun, design = NULL,
  max.evals = 20, max.execbudget = NULL, target.fun.value = NULL,
  design.y.cols = NULL, par.dir = NULL, par.jobs = NULL, ...)
## S3 method for class 'function'
randomsearch(fun, minimize = TRUE, lower, upper,
  design = NULL, max.evals = 20, max.execbudget = NULL,
  target.fun.value = NULL, design.y.cols = NULL, par.dir = NULL,
  par.jobs = NULL, ...)
 | 
| fun | [ | 
| ... | [any]  | 
| design | [ | 
| max.evals | [ | 
| max.execbudget | [ | 
| target.fun.value | [ | 
| design.y.cols | [ | 
| par.dir | [ | 
| par.jobs | [ | 
| minimize | [ | 
| lower | [ | 
| upper | [ | 
[OptPath]
smoof_function: optimize smoof function
function: optimize generic function
| 1 2 3 4 5 6 | obj.fun = makeSingleObjectiveFunction(
 fn = function(x) x[1]^2 + sin(x[2]),
 par.set = makeNumericParamSet(id = "x", lower = -1, upper = 1, len = 2)
)
res = randomsearch(obj.fun, max.evals = 10)
summary(res)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.