Learn R Programming

fb4package (version 2.0.0)

run_robust_optimization: Run robust optimization with multiple fallback strategies

Description

Advanced optimization routine with automatic fallback strategies, multiple starting points, and comprehensive error handling. Works for both basic and hierarchical models.

Usage

run_robust_optimization(
  obj,
  method = "nlminb",
  lower = NULL,
  upper = NULL,
  max_iter = 1000,
  tolerance = 1e-06,
  n_restarts = 3,
  verbose = FALSE,
  ...
)

Value

Optimization result list

Arguments

obj

TMB objective function

method

Primary optimization method ("nlminb" or "optim")

lower

Lower parameter bounds (log scale)

upper

Upper parameter bounds (log scale)

max_iter

Maximum iterations

tolerance

Convergence tolerance

n_restarts

Number of random restarts if primary fails

verbose

Show optimization progress

...

Additional arguments passed to optimization function