Returns the configurations selected by ID.
Arguments
- iraceResults
(
list()
|character(1)
)
Object created by irace and typically saved in the log fileirace.Rdata
. If a character string is given, then it is interpreted as the path to the log file from which theiraceResults
object will be loaded.- ids
(
integer()
)
The id or a vector of ids of the candidates configurations to obtain.- drop.metadata
(
logical(1)
)
Remove metadata, such as the configuration ID and the ID of the parent, from the returned configurations. SeeremoveConfigurationsMetaData()
.
Examples
log_file <- system.file("exdata/irace-acotsp.Rdata", package="irace", mustWork=TRUE)
getConfigurationById(log_file, ids = c(1,2), drop.metadata = TRUE)
#> algorithm localsearch alpha beta rho ants nnls q0 dlb rasrank
#> 1 as 0 1.0000 1.0000 0.9500 10 NA NA <NA> NA
#> 2 acs 3 1.1275 3.3469 0.6471 36 43 0.9053 0 NA
#> elitistants
#> 1 NA
#> 2 NA