Return the elite configurations of the final iteration.
Source:R/parameterAnalysis.R
getFinalElites.RdReturn the elite configurations of the final iteration.
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 theiraceResultsobject will be loaded.- n
integer(1)
Number of elite configurations to return, ifnis larger than the number of configurations, then only the existing ones are returned. The default (n=0) returns all of them.- 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)
print(removeConfigurationsMetaData(getFinalElites(log_file, n=1)))
#> algorithm localsearch alpha beta rho ants nnls q0 dlb rasrank
#> 113 ras 3 4.1042 1.531 0.8104 16 12 NA 1 24
#> elitistants time
#> 113 NA 5