Advanced optimization routine with automatic fallback strategies, multiple starting points, and comprehensive error handling. Works for both basic and hierarchical models.
run_robust_optimization(
obj,
method = "nlminb",
lower = NULL,
upper = NULL,
max_iter = 1000,
tolerance = 1e-06,
n_restarts = 3,
verbose = FALSE,
...
)Optimization result list
TMB objective function
Primary optimization method ("nlminb" or "optim")
Lower parameter bounds (log scale)
Upper parameter bounds (log scale)
Maximum iterations
Convergence tolerance
Number of random restarts if primary fails
Show optimization progress
Additional arguments passed to optimization function