Learn R Programming

irace (version 1.07)

hook.run.default: hook.run.default

Description

hook.run.default is the default hookRun function. You can use it as an advanced example of how to create your own hooRun function.

Usage

hook.run.default(experiment, config)

Arguments

experiment
A list describing the experiment. It should contain at least:
  • instanceA string containing the name of the instance (or filename and full path in case the instance is a file).
  • idA numeric identifier for the candidate that is evaluated.
  • candidateThe candidate configuration that must be run.
  • seedA random seed
  • extra.paramsExtra parameters (like instance-specific ones) to be passed when evaluating this candidate.
  • switchesCommand-line switches that correspond to each parameter
config
options passed when invoking irace.

Value

If hookEvaluate is NULL, then this function returns the output of evaluating the candidate, which must be a numerical value.Otherwise, it returns a string. By the default, this string is the actual command-line call to the hook-run program. This information is only used for debugging purposes if hookEvaluate fails later.