Skip to contents

Reoptimizes selected cells from a legacy run_grid() result, starting from each cell's last parameter vector.

Usage

rerun_grid(
  grid,
  bounds,
  cells = NULL,
  control = list(eval.max = 10000L, iter.max = 10000L),
  n_passes = 3L
)

Arguments

grid

A list of fitted model objects from a previous run_grid call.

bounds

A list with lower and upper elements defining parameter bounds, created using the get_bounds function.

cells

Integer vector specifying which grid cells to rerun. Default is NULL, which reruns all cells.

control

A list of control parameters passed to nlminb. Default is list(eval.max = 10000, iter.max = 10000).

n_passes

Integer number of repeated nlminb passes per grid cell. Default is 3.

Value

A list of refitted model objects (RTMB ADFun objects).

Legacy status

These helpers predate canonical portable sbt_fit grid cells and the current provenance and biological-state gates. They are retained for compatibility and exploratory work. Production posterior grids should use run_grid_mcmc() and grid_mcmc_to_tmbfit().