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

View source: R/optimal_search.R

resultsOptimalSearchR Documentation

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

Description

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(s)

Adam Kapelner

Examples

## Not run: 
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

## End(Not run)

GreedyExperimentalDesign documentation built on Jan. 9, 2026, 5:07 p.m.