restore_simulation_state: Restore the simulation state

View source: R/simulation.R

restore_simulation_stateR Documentation

Restore the simulation state

Description

Restore the simulation state from a previous checkpoint. The state of passed events and variables is overwritten to match the state they had when the simulation was checkpointed.

Usage

restore_simulation_state(state, variables, events, restore_random_state)

Arguments

state

the simulation state to restore, as returned by save_simulation_state.

variables

the list of Variables

events

the list of Events

restore_random_state

if TRUE, restore R's global random number generator's state from the checkpoint.

Value

the time step at which the simulation should resume.


mrc-ide/individual documentation built on Aug. 17, 2024, 2:10 p.m.