swifco_rs.terminate module¶
- swifco_rs.terminate.callback(callback)¶
Terminate simulation based on the return value of a callback
Parameters:
callback - callback passed the current tick and returning a bool whether the simulation should terminate
- swifco_rs.terminate.fixed_tick(num_ticks=520)¶
Terminate simulation after a fixed number of model ticks
Parameters:
num_ticks - number of ticks (weeks) to run the model