Skip to contents

This helper function filters optimization results.

Usage

filter_results(
  results,
  run_ids,
  optimizer_ids,
  which_element,
  only_comparable,
  keep_empty = FALSE
)

Arguments

results

A nested list of optimization results. Each element corresponds to one optimization run. It is either list() if the run has been removed or a list of results for each optimizer. The results for each optimizer is a list, the output of apply_optimizer.

run_ids

A vector of indices. Selects the first layer of results.

optimizer_ids

A vector of indices. Selects the second layer of results.

which_element

A character (vector). Selects the third layer of results.

only_comparable

See documentation of method $results() from Nop object.

keep_empty

Set to TRUE (FALSE, the default) to keep (discard) empty entries.

Value

A list.