View source: R/SOptim_RandSearchAlgorithm.R
iterateFitnessFunc | R Documentation |
A wrapper function used to iterate an input fitness/objective function in sequential or parallel form. Uses as input a matrix of parameters which represent points randomly drawn for a certain range of parameter values.
iterateFitnessFunc(fitFunc, paramGrid, parallel = FALSE, ...)
fitFunc |
A fitness/objective function object to iterate (the first input of
this function must be a vector of parameters to be tested (named |
paramGrid |
A matrix object containing random parameters to be tested generated by drawRandom. |
parallel |
Use parallel loop? (default: FALSE). Uses %dorng% as the foreach backend. |
... |
Additional parameters passed to the fitness function. |
A vector with the fitness/objective function values. In case of error it will return NA
as
output.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.