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.
objectiveFunctionEvaluation(x = NULL, xnew, fun, seedFun = NA,
noise = FALSE, ...)
matrix of already known solutions, to determine whether RNG seeds for new solutions need to be incremented.
matrix of new solutions.
objective function to evaluate the solutions in xnew
.
initial seed to be used for the random number generator seed. Set to NA to avoid using a fixed seed.
parameter specifying whether the target function is noisy.
parameters passed to fun
.
the matrix ynew, which are the observations for fun(xnew)
spot
for more details on the parameters, e.g., fun