ddd_optimizer: Optimizer functions from package DDD

View source: R/ddd_imports.R

ddd_optimizerR Documentation

Optimizer functions from package DDD

Description

See DDD::optimizer() documentation. I have frozen argument optimmethod to subplex, and added an early exit if the first subplex cycle evaluates to -Inf.

Usage

ddd_optimizer(
  optimpars = c(1e-04, 1e-04, 1e-06, 1000),
  num_cycles = 1,
  fun,
  trparsopt,
  ...
)

Arguments

optimpars

Parameters of the optimization: relative tolerance in function arguments, relative tolerance in function value, absolute tolerance in function arguments, and maximum number of iterations

num_cycles

Number of cycles of the optimization. When set to Inf, the optimization will be repeated until the result is, within the tolerance, equal to the starting values, with a maximum of 10 cycles.

fun

Function to be optimized

trparsopt

Initial guess of the parameters to be optimized

...

Any other arguments of the function to be optimimzed, or settings of the optimization routine

Value

out

A list containing optimal function arguments (par, the optimal function value (fvalues) and whether the optimization converged (conv)

.


TheoPannetier/comrad documentation built on April 8, 2023, 8:06 a.m.