Helper function to create numeric multi-objective optimization test function.
This is a simplifying wrapper around makeMultiObjectiveFunction
.
It can be used if the function to generate is purely numeric to save some lines
of code.
mnof(name = NULL, id = NULL, par.len = NULL, par.id = "x", par.lower = NULL, par.upper = NULL, n.objectives, description = NULL, fn, vectorized = FALSE, noisy = FALSE, fn.mean = NULL, minimize = rep(TRUE, n.objectives), constraint.fn = NULL, ref.point = NULL)
name |
[ |
id |
[ |
par.len |
[ |
par.id |
[ |
par.lower |
[ |
par.upper |
[ |
n.objectives |
[ |
description |
[ |
fn |
[ |
vectorized |
[ |
noisy |
[ |
fn.mean |
[ |
minimize |
[ |
constraint.fn |
[ |
ref.point |
[ |
# first we generate the 10d sphere function the long way fn = makeMultiObjectiveFunction( name = "Testfun", fn = function(x) c(sum(x^2), exp(sum(x^2))), par.set = makeNumericParamSet( len = 10L, id = "a", lower = rep(-1.5, 10L), upper = rep(1.5, 10L) ), n.objectives = 2L ) # ... and now the short way fn = mnof( name = "Testfun", fn = function(x) c(sum(x^2), exp(sum(x^2))), par.len = 10L, par.id = "a", par.lower = -1.5, par.upper = 1.5, n.objectives = 2L )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.