Skip to contents

Explore scenarios using gridding with sampling for parameters not in the grid. Parameters that are included in the grid are currently hard coded. Use the future package to control parallisation outside of the function.

Usage

parameter_sweep(
  scenarios = NULL,
  n_sim = 1,
  sim_fn = NULL,
  show_progress = TRUE
)

Arguments

scenarios

A data.frame containing all gridded scenarios.

n_sim

The number of simulations to make per scenario. Numeric, defaults to 1.

sim_fn

The vectorised model simulation function.

show_progress

Show the progress of the parameter sweep. Logical, defaults to TRUE.

Value

A nested tibble containing the parameters for each scenario and a nested list of output from sim_fn.

Author

Sam Abbott, Sophie Meakin, Joel Hellewell