
Returns the results (thus far) of the greedy design search
Source:R/greedy_search.R
resultsGreedySearch.RdReturns the results (thus far) of the greedy design search
Arguments
- obj
The
greedy_experimental_designobject that is currently running the search- max_vectors
The number of design vectors you wish to return.
NULLreturns all of them. This is not recommended as returning over 1,000 vectors is time-intensive. The default is 9.- 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(20), nrow = 10)
ged = initGreedyExperimentalDesignObject(
X,
max_designs = 5,
num_cores = 1,
objective = "abs_sum_diff",
start = TRUE,
wait = TRUE,
verbose = FALSE
)
res = resultsGreedySearch(ged, max_vectors = 2)
res$obj_vals
} # }