use smac for r functions
devtools::install_github("jakob-r/rsmac")
# if smac is not installed you can run:
rsmac:::installSmac()
fun = makeSingleObjectiveFunction(
name = "my_sphere",
fn = function(x) {
sum(x*x) + 7
},
par.set = makeParamSet(
makeNumericVectorParam("x", len = 2L, lower = -5, upper = 5)
),
minimize = TRUE
)
scenario = list("use-instances" = "false", runObj = "QUALITY", numberOfRunsLimit = 10)
res = rsmac(fun, scenario = scenario)
To see how to set up your scenario check the smac manual.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.