getLoggedValues: Extracts the logged values of a function wrapped by a logging...

View source: R/getLoggedValues.R

getLoggedValuesR Documentation

Extracts the logged values of a function wrapped by a logging wrapper.

Description

Extracts the logged values of a function wrapped by a logging wrapper.

Usage

getLoggedValues(fn, compact = FALSE)

Arguments

fn

[wrapped_smoof_function]
Wrapped smoof function.

compact

[logical(1)]
Wrap all logged values in a single data frame? Default is FALSE.

Value

[list || data.frame] If compact is TRUE, a single data frame. Otherwise the function returns a list containing the following values:

pars

Data frame of parameter values, i.e., x-values or the empty data frame if x-values were not logged.

obj.vals

Numeric vector of objective values in the single-objective case respectively a matrix of objective values for multi-objective functions.

See Also

addLoggingWrapper


jakobbossek/smoof documentation built on Feb. 17, 2024, 2:23 a.m.