| addAlgorithm {batchtools} | R Documentation |
Define Algorithms for Experiments
Description
Algorithms are functions which get the codedata part as well as the problem instance (the return value of the
function defined in Problem) and return an arbitrary R object.
This function serializes all components to the file system and registers the algorithm in the ExperimentRegistry.
removeAlgorithm removes all jobs from the registry which depend on the specific algorithm.
reg$algorithms holds the IDs of already defined algorithms.
Usage
addAlgorithm(name, fun = NULL, reg = getDefaultRegistry())
removeAlgorithms(name, reg = getDefaultRegistry())
Arguments
name |
[ |
fun |
[ If you do not provide a function, it defaults to a function which just returns the instance. |
reg |
[ |
Value
[Algorithm]. Object of class “Algorithm”.