The function compiles the code to C++ and uses Armadillo and ensmallen to optimize it.
compile_optimization_problem(data = list(), evaluate, gradient, optimizer = optimizer_SA())
data | a named list of prior data you would like to supply to the evaluate function. |
---|---|
evaluate | a function that is to be minimized. It should return a single numeric. |
gradient | optional, a function computing the gradient of |
optimizer | one of the many optimizers |