Learn R Programming

irace (version 1.05)

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(instance, candidate, num.candidates, extra.params,
config, hook.run.call)

Arguments

instance
A string containing the name of the instance (or filename and full path in case the instance is a file).
candidate
The candidate configuration that must be run.
num.candidates
The total number of candidates evaluated in this iteration.
extra.params
Extra parameters (like instance-specific ones) to be passed when evaluating this candidate.
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.