Last chance! 50% off unlimited learning
Sale ends in
emmacheck(x, graph, fn1 = NULL, fn2 = NULL, fn3 = NULL, fn4 = NULL, nresp)
emmatn
.
fn1 = NULL
if the function is unknown (e.g. when designing experiments in
applied problems).
fn2 = NULL
if the function is unknown (e.g. when designing experiments in
applied problems).
fn3 = NULL
if the function is unknown (e.g. when designing experiments in
applied problems).
fn4 = NULL
if the function is unknown (e.g. when designing experiments in
applied problems).
nresp = 1
to plot the first response...
emmatn
with the components listed below:
xpop
. The rownames uniquely identify the experimental points and are reported
also in xpop
.ypop
. Predicted response values are obtained using a MARS model fitted to
the available data.t=0
).t>0
).xspace[Gb,]
to visualise the
best experimental point and use yspace[Gb,]
to visualise the measured response value(s).
Gb
identifies the experimental point whose response values are closest to the target. The
target is a set of desirable response values which are automatically selected on the basis of
the measured and predicted response values.weight = 1
; if multiple responses are investigated, the sum of the values in weight
must
be 1.emma
are implemented, the observed response values, the predicted
response values, the target and the scalar distances from the target are updated. The
solution with the response values closest to the target is thus identified. If such a solution has
not been tested yet, emmacheck
selects it as an additional experimental point that needs
to be investigated.Carta D., Villanova L., Costacurta S., Patelli A., Poli I., Vezzu' S., Scopece P., Lisi F., Smith-Miles K., Hyndman R. J., Hill A. J., Falcaro P. (2011) 'Method for Optimizing Coating Properties Based on an Evolutionary Algorithm Approach', Analytical Chemistry 83 (16), 6373-6380.
Friedman J. H. (1991) 'Multivariate adaptive regression splines' (with discussion), The Annals of Statistics 19, 1:141.
## define the problem variables
in.name <- c("x1", "x2")
nlev <- c(20, 20)
lower <- c(-2.048, -2.048)
upper <- c(2.048, 2.048)
out.name <- "y"
weight <- 1
C <- 10
pr.mut <- c(0.1, 0.07, 0.04, rep(0.01, C-3))
## Not run:
# #######################################################
# ## simulated problem (with known objective function) ##
# #######################################################
# ## identify the initial set of experimental runs (initialization)
# tn <- emmat0(in.name, nlev, lower, upper, out.name, nd = 10, fn1 = ackley)
#
# ## identify the experimental runs during subsequent steps of the
# ## EMMA procedure
# for(t in 1:(C - 1))
# {
# tn <- emmatn(t, tn, na = 5, opt = "mn", weight, pr.mut = pr.mut,
# graph = "yes", fn1 = ackley)
# tn <- emmacheck(tn, graph = "no", fn1 = ackley)
# }
# ## End(Not run)
###########################################################
## applicative problem (with unknown objective function) ##
###########################################################
## identify the initial set of experimental runs (initialization)
tn <- emmat0(in.name, nlev, lower, upper, out.name, nd = 10)
## perform the experiments in \code{tn$xpop} and measure the response
## values, then load the measured response values in \code{tn$ypop}
tn$ypop <- ackley(tn$xpop)
## identify the experimental runs during subsequent steps of the
## EMMA procedure
for(t in 1:(C-1))
{
tn <- emmatn(t, tn, na = 5, opt = "mn", weight, pr.mut = pr.mut,
graph = "no")
tn$ypop <- ackley(tn$xpop)
tn <- emmacheck(tn, graph = "no")
if(tn$add==1) tn$ypop <- ackley(tn$xpop)
}
Run the code above in your browser using DataLab