Learn R Programming

irace (version 1.07)

hook.evaluate.default: hook.evaluate.default

Description

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

Usage

hook.evaluate.default(experiment, num.candidates, config, hook.run.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 that is evaluated. This must match the one passed earlier to hook.run.
num.candidates
The total number of candidates evaluated in this iteration.
config
options passed when invoking irace.
hook.run.call
a string describing the call to hookRun that corresponds to this call to hookEvaluate. This is used only for providing extra information to the user, for example, in case hookEvaluate fails.

Value

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