1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trafo.R
\name{trafoOptPath}
\alias{trafoOptPath}
\title{Transform optimization path.}
\usage{
trafoOptPath(opt.path)
}
\arguments{
\item{opt.path}{[\code{\link[=OptPath]{OptPath()}}]\cr
Optimization path.}
}
\value{
[\code{\link[=OptPath]{OptPath()}}].
}
\description{
Transform optimization path with associated transformation functions of parameters.
Can only be done when x values where added \dQuote{untransformed}.
}
\examples{
ps = makeParamSet(
makeIntegerParam("u", trafo = function(x) 2 * x),
makeNumericVectorParam("v", len = 2, trafo = function(x) x / sum(x)),
makeDiscreteParam("w", values = c("a", "b"))
)
op = makeOptPathDF(ps, y.names = "y", minimize = TRUE)
addOptPathEl(op, x = list(3, c(2, 4), "a"), y = 0, dob = 1, eol = 1)
addOptPathEl(op, x = list(4, c(5, 3), "b"), y = 2, dob = 5, eol = 7)
as.data.frame(op)
op = trafoOptPath(op)
as.data.frame(op)
}
|