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. Returns the time step at which the simulation should resume.

restore_state(state, variables, events, restore_random_state)

Arguments

state

the simulation state to restore, as returned by restore_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.