h_get_optimizers {mmrm}R Documentation

Obtain Optimizer according to Optimizer String Value

Description

This function creates optimizer functions with arguments.

Usage

h_get_optimizers(
  optimizer = c("L-BFGS-B", "BFGS", "CG", "nlminb"),
  optimizer_fun = h_optimizer_fun(optimizer),
  optimizer_args = list(),
  optimizer_control = list()
)

Arguments

optimizer

(character)
names of built-in optimizers to try, subset of "L-BFGS-B", "BFGS", "CG" and "nlminb".

optimizer_fun

(function or list of function)
alternatively to optimizer, an optimizer function or a list of optimizer functions can be passed directly here.

optimizer_args

(list)
additional arguments for optimizer_fun.

optimizer_control

(list)
passed to argument control in optimizer_fun.

Details

If you want to use only the built-in optimizers:

If you want to use your own optimizer function:

Value

Named list of optimizers created by h_partial_fun_args().


[Package mmrm version 0.3.11 Index]