Skip to contents

Returns the results (thus far) of the optimal design search

Usage

resultsOptimalSearch(obj, num_vectors = 2, form = "one_zero")

Arguments

obj

The optimal_experimental_design object 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_zero for 1/0's or pos_one_min_one for +1/-1's.

Author

Adam Kapelner

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
} # }