
Returns the results (thus far) of the optimal design search
Source:R/optimal_search.R
resultsOptimalSearch.RdReturns the results (thus far) of the optimal design search
Arguments
- obj
The
optimal_experimental_designobject that is currently running the search- num_vectors
How many allocation vectors you wish to return. The default is 1 meaning the best vector. If
Inf, it means all vectors.- form
Which form should it be in? The default is
one_zerofor 1/0's orpos_one_min_onefor +1/-1's.
Examples
if (FALSE) { # \dontrun{
set.seed(1)
X = matrix(rnorm(12), nrow = 6)
obj = initOptimalExperimentalDesignObject(
X,
objective = "abs_sum_diff",
num_cores = 1,
start = TRUE,
wait = TRUE,
verbose = FALSE
)
res = resultsOptimalSearch(obj, num_vectors = 2, form = "one_zero")
res$opt_obj_val
} # }