Skip to contents

Read the log file produced by irace (irace.Rdata).

Usage

read_logfile(filename, name = "iraceResults")

Arguments

filename

Filename that contains the log file saved by irace. Example: irace.Rdata.

name

Optional argument that allows overriding the default name of the object in the file.

Value

(list())

Examples

irace_results <- read_logfile(system.file("exdata/irace-acotsp.Rdata", package="irace",
                                          mustWork=TRUE))
str(irace_results)
#> List of 9
#>  $ scenario         :List of 58
#>   ..$ scenarioFile             : chr "/home/manu/work/irace/git/devel-examples/vignette-example/scenario.txt"
#>   ..$ configurationsFile       : chr "/home/manu/work/irace/git/devel-examples/vignette-example/default.txt"
#>   ..$ logFile                  : chr "./irace-acotsp.Rdata"
#>   ..$ trainInstancesDir        : chr "./instances"
#>   ..$ trainInstancesFile       : chr "./tsp-2000-50-training.txt"
#>   ..$ testInstancesDir         : chr "./instances"
#>   ..$ testInstancesFile        : chr "./tsp-2000-50-testing.txt"
#>   ..$ testNbElites             : int 5
#>   ..$ testIterationElites      : logi TRUE
#>   ..$ maxExperiments           : int 1000
#>   ..$ seed                     : int 687542627
#>   ..$ execDir                  : chr "./"
#>   ..$ parameterFile            : chr "./parameters.txt"
#>   ..$ parameters               :Classes 'ParameterSpace', 'R6' <ParameterSpace>
#>   Public:
#>     .params: list
#>     as_character: function () 
#>     clone: function (deep = FALSE) 
#>     conditions: list
#>     depends: list
#>     domains: list
#>     forbid_configurations: function (x) 
#>     forbidden: list
#>     get: function (x) 
#>     get_ordered: function () 
#>     hierarchy: 1 1 1 1 1 1 2 2 2 2 2 1
#>     initialize: function (..., forbidden = NULL, verbose = 0L) 
#>     isFixed: FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FA ...
#>     names: algorithm localsearch alpha beta rho ants nnls q0 dlb ra ...
#>     names_fixed: time
#>     names_numeric: alpha beta rho ants nnls q0 rasrank elitistants
#>     names_variable: algorithm localsearch alpha beta rho ants nnls q0 dlb ra ...
#>     nbFixed: 1
#>     nbParameters: 12
#>     nbVariable: 11
#>     switches: -- --localsearch  --alpha  --beta  --rho   --ants  --nnl ...
#>     types: c c r r r i i r c i i c 
#>   ..$ recoveryFile             : chr ""
#>   ..$ instances                : chr [1:50] "./instances/2000-511.tsp" "./instances/2000-512.tsp" "./instances/2000-513.tsp" "./instances/2000-514.tsp" ...
#>   ..$ sampleInstances          : logi TRUE
#>   ..$ testInstances            : chr [1:50] "./instances/2000-101.tsp" "./instances/2000-102.tsp" "./instances/2000-103.tsp" "./instances/2000-104.tsp" ...
#>   ..$ testType                 : chr "friedman"
#>   ..$ firstTest                : int 5
#>   ..$ blockSize                : int 1
#>   ..$ eachTest                 : int 1
#>   ..$ targetRunner             : chr "./target-runner"
#>   ..$ targetRunnerLauncher     : chr ""
#>   ..$ targetCmdline            : chr "{configurationID} {instanceID} {seed} {instance} {bound} {targetRunnerArgs}"
#>   ..$ targetRunnerRetries      : int 0
#>   ..$ targetRunnerTimeout      : int 0
#>   ..$ targetRunnerData         : chr ""
#>   ..$ deterministic            : logi FALSE
#>   ..$ minExperiments           : chr NA
#>   ..$ maxTime                  : int 0
#>   ..$ budgetEstimation         : num 0.05
#>   ..$ minMeasurableTime        : num 0.01
#>   ..$ parallel                 : int 2
#>   ..$ loadBalancing            : logi TRUE
#>   ..$ mpi                      : logi FALSE
#>   ..$ batchmode                : chr "0"
#>   ..$ quiet                    : logi FALSE
#>   ..$ debugLevel               : int 0
#>   ..$ softRestart              : logi TRUE
#>   ..$ softRestartThreshold     : num 1e-04
#>   ..$ elitist                  : logi TRUE
#>   ..$ elitistNewInstances      : int 1
#>   ..$ elitistLimit             : int 2
#>   ..$ capping                  : logi FALSE
#>   ..$ cappingType              : chr "median"
#>   ..$ boundType                : chr "candidate"
#>   ..$ boundDigits              : int 0
#>   ..$ boundPar                 : int 1
#>   ..$ boundAsTimeout           : logi TRUE
#>   ..$ postselection            : logi TRUE
#>   ..$ aclib                    : logi FALSE
#>   ..$ nbIterations             : int 0
#>   ..$ nbExperimentsPerIteration: int 0
#>   ..$ minNbSurvival            : int 0
#>   ..$ nbConfigurations         : int 0
#>   ..$ mu                       : int 5
#>   ..$ confidence               : num 0.95
#>  $ irace_version    : chr "4.1.38b59f7"
#>  $ iterationElites  : int [1:8] 31 31 68 111 139 111 158 158
#>  $ allElites        :List of 8
#>   ..$ : int 31
#>   ..$ : int [1:4] 31 54 60 61
#>   ..$ : int [1:2] 68 88
#>   ..$ : int [1:5] 111 112 105 117 68
#>   ..$ : int [1:5] 139 111 134 112 129
#>   ..$ : int [1:5] 111 158 139 134 161
#>   ..$ : int [1:5] 158 111 139 161 134
#>   ..$ : int [1:3] 158 111 139
#>  $ experiments      : num [1:15, 1:167] 42220233 39533155 41303115 40251195 39741584 ...
#>   ..- attr(*, "dimnames")=List of 2
#>   .. ..$ : chr [1:15] "1" "2" "3" "4" ...
#>   .. ..$ : chr [1:167] "1" "2" "3" "4" ...
#>  $ allConfigurations:'data.frame':	167 obs. of  14 variables:
#>   ..$ .ID.       : int [1:167] 1 2 3 4 5 6 7 8 9 10 ...
#>   ..$ algorithm  : chr [1:167] "as" "mmas" "ras" "acs" ...
#>   ..$ localsearch: chr [1:167] "0" "2" "0" "3" ...
#>   ..$ alpha      : num [1:167] 1 0.365 2.865 1.615 4.115 ...
#>   ..$ beta       : num [1:167] 1 6.22 1.22 8.72 3.72 ...
#>   ..$ rho        : num [1:167] 0.95 0.967 0.472 0.225 0.72 ...
#>   ..$ ants       : num [1:167] 10 19 86 41 9 6 28 59 13 5 ...
#>   ..$ nnls       : num [1:167] NA 50 NA 39 16 NA 44 10 33 47 ...
#>   ..$ q0         : num [1:167] NA NA NA 0.762 NA ...
#>   ..$ dlb        : chr [1:167] NA "1" NA "0" ...
#>   ..$ rasrank    : num [1:167] NA NA 42 NA NA NA NA NA NA NA ...
#>   ..$ elitistants: num [1:167] NA NA NA NA 602 NA 508 NA NA 649 ...
#>   ..$ time       : chr [1:167] "5" "5" "5" "5" ...
#>   ..$ .PARENT.   : int [1:167] NA NA NA NA NA NA NA NA NA NA ...
#>  $ state            :Classes 'RaceState', 'R6' <RaceState>
#>   Public:
#>     clone: function (deep = FALSE) 
#>     cluster: NULL
#>     completed: Not enough budget to race more than the minimum configur ...
#>     elapsed: 5430.848 81.992 2848.956
#>     elapsed_recovered: 5414.816 81.82 2838.16
#>     elite_configurations: data.frame
#>     elitist_new_instances: 0
#>     experiment_log: data.table, data.frame
#>     initialize: function (scenario, new = TRUE) 
#>     instances_log: data.table, data.frame
#>     model: list
#>     next_instance: 15
#>     print_mem_used: function (objects) 
#>     recover: function (scenario) 
#>     recovery_info: list
#>     rejected_ids: NULL
#>     rng: list
#>     save_recovery: function (elite_configurations, model, ...) 
#>     seed: 687542627
#>     session_info: sessionInfo
#>     start_parallel: function (scenario) 
#>     stop_parallel: function () 
#>     target_evaluator: NULL
#>     target_runner: function (experiment, scenario) 
#>     time_elapsed: function () 
#>     timer: Timer, R6
#>     update_experiment_log: function (output, instances, configurations_id, scenario, iteration) 
#>     update_rejected: function (rejected_ids, configurations)  
#>  $ softRestart      : logi [1:7] FALSE FALSE FALSE FALSE FALSE FALSE ...
#>  $ testing          :List of 2
#>   ..$ experiments: num [1:50, 1:15] 33071103 32616274 33290804 32799631 32929864 ...
#>   .. ..- attr(*, "dimnames")=List of 2
#>   .. .. ..$ : chr [1:50] "1t" "2t" "3t" "4t" ...
#>   .. .. ..$ : chr [1:15] "31" "54" "60" "61" ...
#>   ..$ seeds      : Named int [1:50] 970167052 367988162 311957681 1953515952 1442559780 1672370688 1259178808 320112194 920203612 1581935708 ...
#>   .. ..- attr(*, "names")= chr [1:50] "1t" "2t" "3t" "4t" ...