runOptim: runOptim

View source: R/benchOptim.R

runOptimR Documentation

runOptim

Description

Run optim on a list of spot benchmark functions

Usage

runOptim(
  fl = makeMoreFunList(),
  method = "Nelder-Mead",
  n = 2,
  k = 1:length(makeMoreFunList()$funList),
  verbosity = 0
)

Arguments

fl

function list. Generated with one of the function list generators in spot, e.g., makeSpotFunList or makeMoreFunList. Default: makeMoreFunList.

method

The method used by optim: "Nelder-Mead", "BFGS", "CG", "L-BFGS-B", "SANN", or "Brent". Default: "Nelder-Mead".

n

repeats. If n >1 , different start points (randomized) will be used. Default: n=2.

k

subset of benchmark functions. Default: 1:length(makeMoreFunList()$funList), i.e., all implemented functions.

verbosity

Level 0 shows no output (default).

Value

res. data.frame with results: c("f", "r", "y")

Examples

summary(runOptim(k=1)$y)
summary(runOptim(k=1, method="CG")$y)


SPOT documentation built on June 26, 2022, 1:06 a.m.