View source: R/make_vectorized_smoof.R
| make_vectorized_smoof | R Documentation | 
Make a vectorized version of test functions available in package "smoof".
make_vectorized_smoof(prob.name, ...)
| prob.name | name of the problem to build | 
| ... | other parameters passed to each specific function | 
This routine builds MOEADr-compliant versions of the classic multiobjective test functions available in package smoof. The most commonly used ones are:
prob.name = ZDT1, ... , ZDT6, in which case the function
requires additional parameter dimensions (positive integer)
prob.name = DTLZ1, ..., DTLZ7, in which case the function
requires additional parameters dimensions (positive integer),
n.objectives (= 2 or 3) and, for DTLZ4, alpha
(positive integer, defaults to 100).
prob.name = UF, in which case the function requires
additional parameters dimensions (positive integer) and
id (= 1, ..., 10).
## Not run: 
  library(smoof)
  DTLZ2 <- make_vectorized_smoof(prob.name    = "DTLZ2",
                                 dimensions   = 10,
                                 n.objectives = 2)
  DTLZ2(X = matrix(runif(100), ncol = 10))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.