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 eitherlist()
if the run has been removed or alist
of results for each optimizer. The results for each optimizer is alist
, the output ofapply_optimizer
.- run_ids
A
vector
of indices. Selects the first layer ofresults
.- optimizer_ids
A
vector
of indices. Selects the second layer ofresults
.- which_element
A
character
(vector). Selects the third layer ofresults
.- only_comparable
See documentation of method
$results()
fromNop
object.- keep_empty
Set to
TRUE
(FALSE
, the default) to keep (discard) empty entries.