File: OptPath.Rd

package info (click to toggle)
r-cran-paramhelpers 1.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 992 kB
  • sloc: ansic: 102; sh: 13; makefile: 2
file content (98 lines) | stat: -rw-r--r-- 3,697 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OptPath.R, R/OptPathDF.R
\name{OptPath}
\alias{OptPath}
\alias{makeOptPathDF}
\alias{OptPathDF}
\title{Create optimization path.}
\usage{
makeOptPathDF(
  par.set,
  y.names,
  minimize,
  add.transformed.x = FALSE,
  include.error.message = FALSE,
  include.exec.time = FALSE,
  include.extra = FALSE
)
}
\arguments{
\item{par.set}{\link{ParamSet}\cr
Parameter set.}

\item{y.names}{(\code{character})\cr
Names of performance measures that are optimized or logged.}

\item{minimize}{(\code{logical})\cr
Which of the performance measures in y.names should be minimized?
Vector of booleans in the same order as \code{y.names}.}

\item{add.transformed.x}{(\code{logical(1)})\cr
If some parameters have associated transformations, are you going to add x
values after they have been transformed? Default is \code{FALSE}.}

\item{include.error.message}{(\code{logical(1)})\cr
Should it be possible to include an error message string (or NA if no error
occurred) into the path for each evaluation? This is useful if you have
complex, long running objective evaluations that might fail. Default is
\code{FALSE}.}

\item{include.exec.time}{(\code{logical(1)})\cr
Should it be possible to include execution time of evaluations into the
path for each evaluation? Note that execution time could also be entered in
\code{y.names} as a direct performance measure. If you use this option here,
time is regarded as an extra measurement you might be curious about.
Default is \code{FALSE}.}

\item{include.extra}{(\code{logical(1)})\cr
Should it be possible to include extra info
into the path for each evaluation?
Default is \code{FALSE}.}
}
\description{
Optimizers can iteratively log their evaluated points into this
object. Can be converted into a data.frame with \code{as.data.frame(x, discretes.as.factor = TRUE / FALSE)}.

A optimization path has a number of path elements, where each element
consists of: the value of the decision variables at this point, the values of
the performance measures at this point, the date-of-birth (dob) of this
point, the end-of-life (eol) of this point and possibly an error message. See
also \code{\link[=addOptPathEl]{addOptPathEl()}}.

For discrete parameters always the name of the value is stored as a
character. When you retrieve an element with \code{\link[=getOptPathEl]{getOptPathEl()}}, this name is
converted to the actual discrete value.

If parameters have associated transformation you are free to decide whether
you want to add x values before or after transformation, see argument
\code{add.transformed.x} and \code{\link[=trafoOptPath]{trafoOptPath()}}.

The S3 class is a list which stores at least these elements:
\describe{
\item{par.set \code{\link[=ParamSet]{ParamSet()}}}{See argument of same name.}
\item{y.names \code{\link{character}}}{See argument of same name.}
\item{minimize \code{\link{logical}}}{See argument of same name.}
\item{add.transformed.x \code{logical(1)}}{See argument of same name.}
\item{env \code{\link{environment}}}{Environment which stores the optimization path.
Contents depend on implementation.}
}
}
\seealso{
Other optpath: 
\code{\link{addOptPathEl}()},
\code{\link{getOptPathBestIndex}()},
\code{\link{getOptPathCol}()},
\code{\link{getOptPathCols}()},
\code{\link{getOptPathDOB}()},
\code{\link{getOptPathEOL}()},
\code{\link{getOptPathEl}()},
\code{\link{getOptPathErrorMessages}()},
\code{\link{getOptPathExecTimes}()},
\code{\link{getOptPathLength}()},
\code{\link{getOptPathParetoFront}()},
\code{\link{getOptPathX}()},
\code{\link{getOptPathY}()},
\code{\link{setOptPathElDOB}()},
\code{\link{setOptPathElEOL}()}
}
\concept{optpath}