Changes the argument in-place. Note that when adding parameters that have associated transformations, it is probably best to add the untransformed values to the path. Otherwise you have to switch off the feasibility check, as constraints might now not hold anymore.
Dependent parameters whose requirements are not satisfied must be represented by a scalar NA in the input.
addOptPathEl( op, x, y, dob = getOptPathLength(op) + 1L, eol = as.integer(NA), error.message = NA_character_, exec.time = NA_real_, extra = NULL, check.feasible = !op$add.transformed.x )
op | OptPath |
---|---|
x | ( |
y | ( |
dob | ( |
eol | ( |
error.message | ( |
exec.time | ( |
extra | ( |
check.feasible | ( |
Nothing.
Other optpath:
OptPath
,
getOptPathBestIndex()
,
getOptPathCols()
,
getOptPathCol()
,
getOptPathDOB()
,
getOptPathEOL()
,
getOptPathEl()
,
getOptPathErrorMessages()
,
getOptPathExecTimes()
,
getOptPathLength()
,
getOptPathParetoFront()
,
getOptPathX()
,
getOptPathY()
,
setOptPathElDOB()
,
setOptPathElEOL()
ps = makeParamSet( makeNumericParam("p1"), makeDiscreteParam("p2", values = c("a", "b")) ) op = makeOptPathDF(par.set = ps, y.names = "y", minimize = TRUE) addOptPathEl(op, x = list(p1 = 7, p2 = "b"), y = 1) addOptPathEl(op, x = list(p1 = -1, p2 = "a"), y = 2) as.data.frame(op)#> p1 p2 y dob eol #> 1 7 b 1 1 NA #> 2 -1 a 2 2 NA