Save the simulation state in an R object, allowing it to be resumed later using restore_simulation_state.

save_simulation_state(timesteps, variables, events)

Arguments

timesteps

the number of time steps that have already been simulated

variables

the list of Variables

events

the list of Events

Value

the saved simulation state.