Learn R Programming

ParamHelpers (version 1.1-36)

makeOptPathDF: Create optimization path.

Description

Optimizers can iteratively log their evaluated points into this object. Can be converted into a data.frame with as.data.frame(x, discrete.as.factor = TRUE / FALSE).

Usage

makeOptPathDF(par.set, y.names, minimize,
    add.transformed.x = FALSE)

Arguments

par.set
[ParamSet] Parameter set for the decision variables that are optimized.
y.names
[character] Names of performance measures that are optimized or logged.
minimize
[logical] Which of the performance measures in y.names should be minimized? Vector of booleans in the same order as y.names.
add.transformed.x
[logical(1)] If some parameters have associated transformations, are you going to add x values after they have been transformed? Default is FALSE.

Details

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 and the end-of-life (eol) of this point.

For discrete parameters always the name of the value is stored as a character. When you retrieve an element with 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 add.transformed.x and trafoOptPath.

The S3 class is a list which stores at least these elements: [object Object],[object Object],[object Object],[object Object],[object Object]

See Also

getOptPathLength, getOptPathEl, addOptPathEl, getOptPathY, setOptPathElDOB, setOptPathElEOL