Use it as an advanced example of how to create your own targetRunner function.
Arguments
- experiment
A list describing the experiment. It contains at least:
id_configurationAn alphanumeric string that uniquely identifies a configuration;
id_instanceAn alphanumeric string that uniquely identifies an instance;
seedSeed for the random number generator to be used for this evaluation, ignore the seed for deterministic algorithms;
instanceString giving the instance to be used for this evaluation;
bound(only when
cappingis enabled) Time bound for the execution;configuration1-row data frame with a column per parameter name;
- scenario
list()
Data structure containing irace settings. The data structure has to be the one returned by the functiondefaultScenario()orreadScenario().
Value
If targetEvaluator is NULL, then the targetRunner
function must return a list with at least one element "cost",
the numerical value corresponding to the evaluation of the given
configuration on the given instance.
If the scenario option maxTime is non-zero or if capping is enabled
then the list must contain at least another element "time" that reports the
execution time for this call to targetRunner.
The return list may also contain the following optional elements that are used
by irace for reporting errors in targetRunner:
erroris a string used to report an error;
outputRawis a string used to report the raw output of calls to an external program or function;
callis a string used to report how
targetRunnercalled an external program or function.