Learn R Programming

irace (version 2.1)

target.evaluator.default: target.evaluator.default

Description

target.evaluator.default is the default targetEvaluator function that is invoked if targetEvaluator is a string (by default targetEvaluator is NULL and this function is not invoked). You can use it as an advanced example of how to create your own targetEvaluator function.

Usage

target.evaluator.default(experiment, num.configurations, all.conf.id, scenario, target.runner.call)

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 configuration that is evaluated. This must match the one passed earlier to target.runner.
num.configurations
The total number of candidate configurations evaluated in this iteration.
all.conf.id
List of configuration ids that have been evaluated in the instance This is used, for example, when calculating the bounds for the hyper volume evaluation.
scenario
options passed when invoking irace.
target.runner.call
a string describing the call to targetRunner that corresponds to this call to targetEvaluator. This is used only for providing extra information to the user, for example, in case targetEvaluator fails.

Value

This function returns the output of evaluating the candidate configuration, which must be a numerical value.