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.

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.