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 10
#>  $ scenario         :List of 59
#>   ..$ 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 0
#>   ..$ capping                  : logi FALSE
#>   ..$ cappingAfterFirstTest    : 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.2.0.ee928b9"
#>  $ iterationElites  : int [1:8] 31 31 75 113 118 118 149 113
#>  $ allElites        :List of 8
#>   ..$ : int [1:3] 31 9 22
#>   ..$ : int [1:5] 31 61 37 41 9
#>   ..$ : int 75
#>   ..$ : int [1:5] 113 117 92 102 93
#>   ..$ : int [1:5] 118 124 113 117 133
#>   ..$ : int [1:5] 118 113 149 117 124
#>   ..$ : int [1:5] 149 113 118 117 124
#>   ..$ : int [1:3] 113 118 149
#>  $ experiments      : num [1:16, 1:155] 42220233 39533155 41303115 40251195 39741584 ...
#>   ..- attr(*, "dimnames")=List of 2
#>   .. ..$ : chr [1:16] "1" "2" "3" "4" ...
#>   .. ..$ : chr [1:155] "1" "2" "3" "4" ...
#>  $ allConfigurations:'data.frame':	155 obs. of  14 variables:
#>   ..$ .ID.       : int [1:155] 1 2 3 4 5 6 7 8 9 10 ...
#>   ..$ algorithm  : chr [1:155] "as" "mmas" "ras" "acs" ...
#>   ..$ localsearch: chr [1:155] "0" "2" "0" "3" ...
#>   ..$ alpha      : num [1:155] 1 0.365 2.865 1.615 4.115 ...
#>   ..$ beta       : num [1:155] 1 6.22 1.22 8.72 3.72 ...
#>   ..$ rho        : num [1:155] 0.95 0.967 0.472 0.225 0.72 ...
#>   ..$ ants       : num [1:155] 10 19 86 41 9 6 28 59 13 5 ...
#>   ..$ nnls       : num [1:155] NA 50 NA 39 16 NA 44 10 33 47 ...
#>   ..$ q0         : num [1:155] NA NA NA 0.762 NA ...
#>   ..$ dlb        : chr [1:155] NA "1" NA "0" ...
#>   ..$ rasrank    : num [1:155] NA NA 42 NA NA NA NA NA NA NA ...
#>   ..$ elitistants: num [1:155] NA NA NA NA 602 NA 508 NA NA 649 ...
#>   ..$ time       : chr [1:155] "5" "5" "5" "5" ...
#>   ..$ .PARENT.   : int [1:155] NA NA NA NA NA NA NA NA NA NA ...
#>  $ softRestart      : logi [1:7] FALSE FALSE FALSE FALSE FALSE FALSE ...
#>  $ state            :Classes 'RaceState', 'R6' <RaceState>
#>   Public:
#>     clone: function (deep = FALSE) 
#>     cluster: NULL
#>     completed: Not enough budget to race more than the minimum configur ...
#>     elapsed: 5414.035 79.259 2866.547
#>     elapsed_recovered: 5397.903 78.97 2855.561
#>     elitist_new_instances: 0
#>     experiment_log: data.table, data.frame
#>     initialize: function (scenario, new = TRUE, recover = FALSE) 
#>     instances_log: data.table, data.frame
#>     minSurvival: 5
#>     next_instance: 16
#>     print_mem_used: function (objects) 
#>     race_experiment_log: NULL
#>     recover_output: function (instance_idx, configuration_id) 
#>     recovery_info: NULL
#>     recovery_mode: FALSE
#>     rejected_ids: NULL
#>     reset_race_experiment_log: function () 
#>     rng: list
#>     save_recovery: function (iraceResults, logfile) 
#>     seed: 687542627
#>     session_info: sessionInfo
#>     start_parallel: function (scenario) 
#>     stop_parallel: function () 
#>     target_evaluator: NULL
#>     target_runner: function (experiment, scenario) 
#>     timeUsed: 0
#>     time_elapsed: function () 
#>     time_next_save: 2876.888
#>     timer: Timer, R6
#>     update_experiment_log: function (output, instances, scenario) 
#>     update_race_experiment_log: function (experiment_log, scenario) 
#>     update_rejected: function (rejected_ids, configurations)  
#>  $ psrace_log       :List of 5
#>   ..$ configurations :'data.frame':	3 obs. of  16 variables:
#>   .. ..$ .ID.       : int [1:3] 113 118 149
#>   .. ..$ algorithm  : chr [1:3] "ras" "ras" "ras"
#>   .. ..$ localsearch: chr [1:3] "3" "3" "3"
#>   .. ..$ alpha      : num [1:3] 4.1 4.05 3.71
#>   .. ..$ beta       : num [1:3] 1.531 2.543 0.487
#>   .. ..$ rho        : num [1:3] 0.81 0.752 0.945
#>   .. ..$ ants       : num [1:3] 16 17 8
#>   .. ..$ nnls       : num [1:3] 12 20 11
#>   .. ..$ q0         : num [1:3] NA NA NA
#>   .. ..$ dlb        : chr [1:3] "1" "1" "1"
#>   .. ..$ rasrank    : num [1:3] 24 9 50
#>   .. ..$ elitistants: num [1:3] NA NA NA
#>   .. ..$ time       : chr [1:3] "5" "5" "5"
#>   .. ..$ .PARENT.   : int [1:3] 75 113 117
#>   .. ..$ .RANK.     : num [1:3] 31 32 33
#>   .. ..$ .WEIGHT.   : num [1:3] 0.5 0.333 0.167
#>   ..$ instances      :Classes ‘data.table’ and 'data.frame':	16 obs. of  2 variables:
#>   .. ..$ instanceID: int [1:16] 48 49 9 33 31 2 25 39 22 36 ...
#>   .. ..$ seed      : int [1:16] 1498426593 1324006684 156117387 2123556176 975149182 657774990 1688886839 1722597766 545710096 685987118 ...
#>   .. ..- attr(*, ".internal.selfref")=<externalptr> 
#>   ..$ max_experiments: int 3
#>   ..$ experiments    : num [1:16, 1:3] 32762670 32912465 32756215 32895169 32605819 ...
#>   .. ..- attr(*, "dimnames")=List of 2
#>   .. .. ..$ : chr [1:16] "8" "7" "12" "15" ...
#>   .. .. ..$ : chr [1:3] "113" "118" "149"
#>   ..$ elites         : int [1:3] 113 118 149
#>  $ testing          :List of 2
#>   ..$ experiments: num [1:50, 1:16] 33098140 32954263 33313400 33021447 32944849 ...
#>   .. ..- attr(*, "dimnames")=List of 2
#>   .. .. ..$ : chr [1:50] "1t" "2t" "3t" "4t" ...
#>   .. .. ..$ : chr [1:16] "31" "9" "22" "61" ...
#>   ..$ seeds      : Named int [1:50] 2046302398 827626108 978077451 1348269770 243391689 1588668262 423372130 652122407 317806051 747706567 ...
#>   .. ..- attr(*, "names")= chr [1:50] "1t" "2t" "3t" "4t" ...