simulation_loop_safir: Simulation loop for safir models

View source: R/simulation_loop_safir.R

simulation_loop_safirR Documentation

Simulation loop for safir models

Description

This is a replacement for individual::simulation_loop for models where not all values in variables need to be updated, and also adds an optional progress bar

Usage

simulation_loop_safir(
  variables = list(),
  events = list(),
  processes = list(),
  timesteps,
  variables_dont_update,
  progress = FALSE
)

Arguments

variables

a list of Variables

events

a list of Events

processes

a list of processes to execute on each timestep

timesteps

the number of timesteps to simulate

variables_dont_update

character vector of variables that won't be updated

progress

dispaly a progress bar?


mrc-ide/safir documentation built on Aug. 2, 2022, 10:47 a.m.