| dict_scalors_one | R Documentation |
Scalor that returns a the fitness value of a single objective dimension as scale.
objective :: integer(1)
objective to return as scale, ranges from 1 (the default, first objective) to the number of objectives
of the function being optimized.
Supported Domain classes are: p_lgl ('ParamLgl'), p_int ('ParamInt'), p_dbl ('ParamDbl'), p_fct ('ParamFct')
This Scalor can be created with the short access form scl()
(scls() to get a list), or through the the dictionary
dict_scalors in the following way:
# preferred:
scl("one")
scls("one") # takes vector IDs, returns list of Scalors
# long form:
dict_scalors$get("one")
miesmuschel::MiesOperator -> miesmuschel::Scalor -> ScalorOne
new()Initialize the ScalorOne object.
ScalorOne$new()
clone()The objects of this class are cloneable with this method.
ScalorOne$clone(deep = FALSE)
deepWhether to make a deep clone.
Other scalors:
Scalor,
dict_scalors_aggregate,
dict_scalors_domcount,
dict_scalors_fixedprojection,
dict_scalors_hypervolume,
dict_scalors_nondom,
dict_scalors_proxy,
dict_scalors_single
so = scl("one")
p = ps(x = p_dbl(-5, 5))
# dummy data; note that ScalorOne does not depend on data content
data = data.frame(x = rep(0, 5))
fitnesses = matrix(c(1, 5, 2, 3, 0, 3, 1, 0, 10, 8), ncol = 2)
so$prime(p)
so$operate(data, fitnesses)
so$param_set$values$objective = 2
so$operate(data, fitnesses)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.