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
#> 117        as           3 3.8799 2.5467 0.9491    5   16 NA   1      NA
#> 119       ras           3 3.2040 1.9474 0.9529    6   13 NA   1      92
#> 147       ras           3 3.7898 2.8028 0.6867    5   16 NA   0      81
#> 158       ras           3 2.3916 1.0655 0.7257    9   10 NA   1      82
#> 162        as           3 4.9169 3.9196 0.8228    5   19 NA   1      NA
#> 163        as           3 3.0685 2.0363 0.7901    9   12 NA   1      NA
#> 165        as           3 4.9286 3.4619 0.8553    5   18 NA   1      NA
#> 169       ras           3 2.1667 0.3732 0.6495    6    9 NA   1      68
#> 170        as           3 3.0328 2.9667 0.7722    8   14 NA   1      NA
#>     elitistants time
#> 117          NA    5
#> 119          NA    5
#> 147          NA    5
#> 158          NA    5
#> 162          NA    5
#> 163          NA    5
#> 165          NA    5
#> 169          NA    5
#> 170          NA    5