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 "./instances.txt"
#>   ..$ testInstancesDir         : chr "./instances"
#>   ..$ testInstancesFile        : chr "./instances-test.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:10] "./instances/1000-1.tsp" "./instances/1000-2.tsp" "./instances/1000-3.tsp" "./instances/1000-4.tsp" ...
#>   ..$ sampleInstances          : logi TRUE
#>   ..$ testInstances            : chr [1:10] "./instances/1000-10.tsp" "./instances/1000-11.tsp" "./instances/1000-12.tsp" "./instances/1000-13.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 "3.9.0.9000.08fb612d"
#>  $ iterationElites  : int [1:8] 10 45 45 108 108 108 108 108
#>  $ allElites        :List of 8
#>   ..$ : int [1:2] 10 5
#>   ..$ : int [1:2] 45 44
#>   ..$ : int [1:5] 45 65 76 85 44
#>   ..$ : int [1:5] 108 45 112 103 94
#>   ..$ : int [1:5] 108 119 141 138 45
#>   ..$ : int [1:5] 108 119 141 138 146
#>   ..$ : int [1:5] 108 119 146 138 141
#>   ..$ : int [1:2] 108 119
#>  $ experiments      : num [1:17, 1:155] 28407696 28402347 29166659 28417102 28823388 ...
#>   ..- attr(*, "dimnames")=List of 2
#>   .. ..$ : chr [1:17] "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" "as" "eas" "mmas" ...
#>   ..$ localsearch: chr [1:155] "0" "3" "1" "0" ...
#>   ..$ alpha      : num [1:155] 1 4.487 1.987 0.737 3.237 ...
#>   ..$ beta       : num [1:155] 1 3.393 8.393 5.893 0.893 ...
#>   ..$ rho        : num [1:155] 0.95 0.878 0.383 0.631 0.136 ...
#>   ..$ ants       : num [1:155] 10 90 20 42 9 29 6 62 13 16 ...
#>   ..$ nnls       : num [1:155] NA 38 15 NA 49 9 32 43 NA 29 ...
#>   ..$ q0         : num [1:155] NA NA NA NA 0.122 ...
#>   ..$ dlb        : chr [1:155] NA "1" "0" NA ...
#>   ..$ rasrank    : num [1:155] NA NA NA NA NA NA 100 NA NA NA ...
#>   ..$ elitistants: num [1:155] NA NA 107 NA NA NA NA 201 NA NA ...
#>   ..$ time       : chr [1:155] "5" "5" "5" "5" ...
#>   ..$ .PARENT.   : int [1:155] 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: 5075.465 47.431 2676.009
#>     elapsed_recovered: 5065.315 47.329 2670.861
#>     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: 17
#>     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:10, 1:15] 23428468 23392230 23086793 23104893 23247804 ...
#>   .. ..- attr(*, "dimnames")=List of 2
#>   .. .. ..$ : chr [1:10] "1t" "2t" "3t" "4t" ...
#>   .. .. ..$ : chr [1:15] "10" "5" "45" "44" ...
#>   ..$ seeds      : Named int [1:10] 1569194624 2141208548 1648754028 1116160272 1682044763 1200580020 652316604 371492673 1144046723 754704287
#>   .. ..- attr(*, "names")= chr [1:10] "1t" "2t" "3t" "4t" ...