Execute steps until a given criterion.
run(.env, until = 1000, progress = NULL, steps = 10) onestep(.env)
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
Returns the simulation environment.