aitoa.load.inst.dir: Load an Instance Directory

Description Usage Arguments Value

View source: R/load_instance_dir.R

Description

Load all the log files in a directory

Usage

1
2
3
4
5
6
7
aitoa.load.inst.dir(
  inst.dir,
  keep.columns = c("fes", "t", "f"),
  make.time.unique = FALSE,
  f.must.be.improving = TRUE,
  max.runs.to.load = NA_integer_
)

Arguments

inst.dir

the instance directory

keep.columns

the columns to keep, any vector containing elements "t" (for time), "f" (for the objective value), and "fes" (for the consumed FEs)

make.time.unique

should we make the time indices unique (except maybe for the first and last point)? This makes sense when we want to plot diagrams over a time axis, as we then have removed redundant points right away. If make.time.unique==FALSE, then there may be multiple improvements at the same time index due to the resolution of the computer clock (while each improvement will definitely have a unique FE).

f.must.be.improving

true if the logged objective values must be strictly improving? This is the default way logs are generated by aitoa. However, you can also create a log where every single sampled solution is logged, so then you must set f.must.be.improving=FALSE to load the data.

max.runs.to.load

an optional limit for the maximum number of runs to load

Value

a list of data frames, each loaded with aitoa.load.log.file, where the "names" are the random seeds


thomasWeise/aitoaEvaluate documentation built on Dec. 6, 2020, 1:22 p.m.