registerECROperator {ecr}R Documentation

Register operators to control object.


In ecr the control object stores information on the fitness function and serves as a storage for evolutionary components used by your evluationary algorithm. This function handles the registration process.


registerECROperator(control, slot, fun, ...)



Control object.


Name of the field in the control object where to store the operator.


Actual operator. In order to use the various helper functions of ecr one needs to stick to a simple convention: The first argument of function should be the individual to mutate, a list of individuals for recombination or a matrix of fitness values for recombination. If one does not want to use the corresponding helpers, e.g., mutate, the signature of the function does not matter. However, in this case you are responsable to pass arguments correctly.


Further arguments for fun. These arguments are stored in the control object and passed on to fun.



[Package ecr version 2.1.0 Index]