Skip to contents

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.