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:
run_id, which selects the run,
optimizer_id, which selects the optimizer.