# NOT RUN {
simplex <- labsimplex(n = 3, centroid = c(320, 7, 0.4),
stepsize = c(35, 2, 0.3))
## The experiments must be performed and the responses passed to qflv.
## Here we get the responses by using an example response surface
## included in the package:
##
## Initially, the response must be provided for all the vertexes
response <- exampleSurfaceR3(x1 = simplex$coords[, 1],
x2 = simplex$coords[, 2],
x3 = simplex$coords[, 3])
simplex <- generateVertex(simplex = simplex, qflv = response)
## After this, the last vertex is the only one that must be evaluated
response <- exampleSurfaceR3(x1 = simplex$coords[nrow(simplex$coords), 1],
x2 = simplex$coords[nrow(simplex$coords), 2],
x3 = simplex$coords[nrow(simplex$coords), 3])
simplex <- generateVertex(simplex = simplex, qflv = response)
## Alternatively the simplex object can overwrite the older one:
generateVertex(simplex = simplex, qflv = response, overwrite = TRUE)
# }
Run the code above in your browser using DataLab