Description Usage Arguments Value Examples
View source: R/evaluateMissingCandidateSolutions.R
evaluateMissingCandidateSolutions evaluates all non-evaluated
candidate solutions in a gived data.frame. This function is used as a convenience function
for codes that are automatically generated by the SPOT-GUI.
| 1 | evaluateMissingCandidateSolutions(currX, currY = NULL, fun)
 | 
| currX | A matrix containing all candidate solutions. One candidate per row. | 
| currY | A column vector with all known objective function results for the given matrix of candidate solutions. Default = NULL (In this case all candidate solutions will be evaluated). Missing values have to be marked as NA. | 
| fun | The objective function on which the given candidate solutions shall be evaluated. | 
y An updated column vector with evaluation results for all candidate soltuions given in currX
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | library(SPOT)
spotData <- NULL
#Generating DOE
spotData$x <- designLHD(x = NULL, lower = c(-5, -5), upper = c(5, 5),
                        control = list(size = 10,
                             types = c("numeric", "numeric")))
#Evaluating Candidate Solutions
spotData$y <- evaluateMissingCandidateSolutions(
        currX = spotData$x, currY = spotData$y, fun = funSphere)
#Build model on evaluated data
spotData$modelFit <- buildKriging(as.matrix(spotData$x),as.matrix(spotData$y))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.