Skip to contents

Returns the configurations by the iteration in which they were executed.

Usage

getConfigurationByIteration(iraceResults, iterations, drop.metadata = FALSE)

Arguments

iraceResults

list()|character(1)
Object created by irace and typically saved in the log file irace.Rdata. If a character string is given, then it is interpreted as the path to the log file from which the iraceResults object will be loaded.

iterations

integer()
The iteration number or a vector of iteration numbers from where the configurations should be obtained. Negative values start counting from the last iteration.

drop.metadata

logical(1)
Remove metadata, such as the configuration ID and the ID of the parent, from the returned configurations. See removeConfigurationsMetaData().

Value

A data frame containing the elite configurations required.

Author

Manuel López-Ibáñez and Leslie Pérez Cáceres

Examples

log_file <- system.file("exdata/irace-acotsp.Rdata", package="irace", mustWork=TRUE)
getConfigurationByIteration(log_file, iterations = c(-2, -1), drop.metadata = TRUE)
#>     algorithm localsearch  alpha   beta    rho ants nnls q0 dlb rasrank
#> 111        as           3 4.2370 2.4678 0.8228    7   25 NA   1      NA
#> 158        as           3 4.0814 1.8930 0.8547    8   15 NA   1      NA
#> 139        as           3 2.9692 1.2846 0.8017    7   12 NA   1      NA
#> 134        as           3 3.9507 2.6450 0.7168    7   22 NA   1      NA
#> 161        as           3 3.7278 2.5374 0.7533    6   21 NA   1      NA
#> 166        as           3 3.9750 0.9634 0.7155    8   21 NA   1      NA
#> 167        as           3 4.5177 4.2528 0.9361    8   25 NA   1      NA
#>     elitistants time
#> 111          NA    5
#> 158          NA    5
#> 139          NA    5
#> 134          NA    5
#> 161          NA    5
#> 166          NA    5
#> 167          NA    5