noir: Run an optimizer on an objective function.

Description Usage Arguments Value Examples

View source: R/noir.R

Description

Expects an noir_optimizer and a smoof_function and applies the optimizer to the function.

Usage

1
noir(optimizer, obj.fn, ...)

Arguments

optimizer

[noir_optimizer | character(1)]
Noir optimizer or string short name of an optimizer.

obj.fn

[smoof_function]
Objective function.

...

[any]

Value

[noir_result]

Examples

1
2
3
4
5
6
7
8
9
library(smoof)
obj.fn = smoof::makeSphereFunction(2L)

# setting up the optimizer by hand
optimizer = setUpOptimizer("neldermead")
res = noir(optimizer, obj.fn, alpha = 1.5)

# alternatively pass the string representation of the optimizer
res = noir("neldermead", obj.fn, alpha = 1.5)

jakobbossek/noir documentation built on May 18, 2019, 10:10 a.m.