library(multiDoE)
## To check the number of digits to be printed.
backup_options <- options()
options(digits = 10)
## Definition of parameters for experimental setup
facts <- list(1, 2:5)
units <- list(21, 2)
level <- 3
etas <- list(1)
model2 <- "quadratic"
## Single-objective optimization
criteria_S <- c('I')
msopt_S <- MSOpt(facts, units, level, etas, criteria_S, model2)
# \donttest{
mssearch_S <- MSSearch(msopt_S, alpha = 1, "Restarts", 100)
# }
## Multi-objective optimization
criteria_M <- c('Id', 'Ds', 'As')
msopt_M <- MSOpt(facts, units, level, etas, criteria_M, model2)
# \donttest{
mssearch_M <- MSSearch(msopt_M, alpha = c(1/2, 1/4, 1/4), "Restarts", 100)
# }
options(backup_options)
## To reduce the computational cost of MSSearch function, you may reduce the number of restarts.
Run the code above in your browser using DataLab