set.seed(123)
makeOneMinFunction = function(dimensions) {
assertInteger(dimensions, len = 1L, lower = 2L, upper = 100L)
smoof::makeSingleObjectiveFunction(
fn = function(x) {
sum(x)
},
par.set = makeParamSet(
makeIntegerVectorParam("x", lower = 0L, upper = 1L, len = dimensions)
),
name = "OneMin"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.