build_initial: Unified function call for initial parameter specifications

View source: R/helper.R

build_initialR Documentation

Unified function call for initial parameter specifications

Description

This helper function turns various formats of initial parameter specifications into a unified function call.

Usage

build_initial(initial, npar, fail_bad_initial = TRUE)

Arguments

initial, npar, fail_bad_initial

See documentation of method $optimize() from Nop object.

Value

A function that returns a numeric of length npar. The function has two integer arguments:

  1. run_id, which selects the run,

  2. optimizer_id, which selects the optimizer.


ino documentation built on Sept. 29, 2023, 5:09 p.m.