preset_moead {MOEADr} | R Documentation |
preset_moead
Description
Generate a preset configuration for moead()].
Usage
preset_moead(name = NULL)
Arguments
name |
name of the preset to be generated. Use |
Details
This function returns a list of configuration presets taken from
the literature to be used with the moead()
function in package MOEADr
.
Use these configurations as a starting point. We strongly recommend that you play around with the particular configurations (see example).
Value
List object containing the preset, to be used as an input to moead()
;
or, if name == NULL
(the default), returns a logical flag invisibly.
References
F. Campelo, L.S. Batista, C. Aranha (2020): The MOEADr Package: A
Component-Based Framework for Multiobjective Evolutionary Algorithms Based on
Decomposition. Journal of Statistical Software doi:10.18637/jss.v092.i06
Examples
# Generate list of available presets
preset_moead(name = NULL)
## Not run:
library(smoof) # < Install package smoof if needed
ZDT1 <- make_vectorized_smoof(prob.name = "ZDT1",
dimensions = 30)
problem <- list(name = "ZDT1",
xmin = rep(0, 30),
xmax = rep(1, 30),
m = 2)
# Get preset configuration for original MOEA/D
configuration <- preset_moead("original")
# Modify whatever you fancy:
stopcrit <- list(list(name = "maxiter", maxiter = 50))
showpars <- list(show.iters = "dots", showevery = 10)
seed <- 42
output <- moead(problem = problem,
preset = configuration,
showpars = showpars,
stopcrit = stopcrit,
seed = seed)
## End(Not run)