Skip to contents

Plots the objective value by iteration

Usage

plot_obj_val_by_iter(res, runs = NULL)

Arguments

res

Results from a greedy search object

runs

A vector of run indices you would like to see plotted (default is to plot the first up to 9)

Author

Adam Kapelner

Examples

if (FALSE) { # \dontrun{
set.seed(1)
X = matrix(rnorm(20), nrow = 10)
ged = initGreedyExperimentalDesignObject(
  X,
  max_designs = 5,
  num_cores = 1,
  diagnostics = TRUE,
  objective = "abs_sum_diff",
  start = TRUE,
  wait = TRUE,
  verbose = FALSE
)
res = resultsGreedySearch(ged, max_vectors = 2)
plot_obj_val_by_iter(res)
} # }