Learn R Programming

SPOT (version 2.5.18)

objectiveFunctionEvaluation: objectiveFunctionEvaluation Objective Function Evaluation

Description

This function handles the evaluation of the objective function in spot. This includes handling of the random number generator stream as well as the actual evaluation.

Usage

objectiveFunctionEvaluation(
  x = NULL,
  xnew,
  fun,
  seedFun = NA,
  noise = FALSE,
  ...
)

Arguments

x

matrix of already known solutions, to determine whether RNG seeds for new solutions need to be incremented.

xnew

matrix of new solutions.

fun

objective function to evaluate the solutions in xnew.

seedFun

initial seed to be used for the random number generator seed. Set to NA to avoid using a fixed seed.

noise

logical parameter specifying whether the target function is noisy.

...

parameters passed to fun.

Value

the matrix ynew, which are the observations for fun(xnew)

See Also

spot for more details on the parameters, e.g., fun