Learn R Programming

SPOT (version 2.11.10)

runOptim: 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

Run this code
# NOT RUN {
summary(runOptim(k=1)$y)
summary(runOptim(k=1, method="CG")$y)

# }

Run the code above in your browser using DataLab