add_response: Add a response to the experiment

Description Usage Arguments Details Value

View source: R/setup_experiment.R

Description

Add a response to the experiment

Usage

1
2
add_response(name = paste0("y", length(self$responses) + 1),
  range = NULL, value = NULL, weight = 3)

Arguments

name

a unique length 1 character vector giving the name of a response

range

optional length 2 numeric vector giving boundaries on possible response levels

value

function to compute the value of a particular response point, the algorithm will maximize the response of this function

weight

relative weighting factor used to prioritize some responses over others

Details

The value function must accept two positional arguments. The first is for the 'current' response value while the second is for a vector of all input response values. These two inputs can then be used however you like to return a numeric value. e.g. 'function(y, hist)100 - y'

Value

invisible


bmewing/simplexExperiments documentation built on Aug. 9, 2019, 11:01 p.m.