Returns the configurations by the iteration in which they were executed.
Source:R/parameterAnalysis.R
getConfigurationByIteration.Rd
Returns the configurations by the iteration in which they were executed.
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.- 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. SeeremoveConfigurationsMetaData()
.
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
#> 108 acs 3 1.7392 1.9072 0.7255 41 11 0.4645 1 NA
#> 119 acs 3 1.8415 1.5342 0.2492 41 10 0.7389 1 NA
#> 138 acs 3 1.2856 0.5537 0.7490 38 9 0.8335 1 NA
#> 141 acs 3 1.8949 0.1375 0.7172 41 8 0.2731 1 NA
#> 146 acs 3 2.7520 1.2268 0.4055 56 6 0.6684 1 NA
#> 153 acs 3 2.1161 0.2775 0.2473 39 10 0.5921 1 NA
#> 154 acs 3 1.5518 0.0633 0.9153 46 12 0.1593 1 NA
#> 155 acs 3 1.8244 2.5240 0.4763 24 7 0.5403 1 NA
#> elitistants time
#> 108 NA 5
#> 119 NA 5
#> 138 NA 5
#> 141 NA 5
#> 146 NA 5
#> 153 NA 5
#> 154 NA 5
#> 155 NA 5