Execute steps until a given criterion.
run(.env, until = Inf, progress = NULL, steps = 10) stepn(.env, n = 1)
the simulation environment.
optional callback to show the progress of the simulation. The completed ratio is periodically passed as argument to the callback.
number of steps to show as progress (it takes effect only if
number of events to simulate.
Returns the simulation environment.