parallel#

parallel(*args, **kwargs)[source]#

A shortcut to ss.MultiSim(), allowing the quick running of multiple simulations at once.

Parameters:
  • args (list) – The simulations to run

  • kwargs (dict) – passed to multi_run()

Returns:

A run MultiSim object.

Examples:

s1 = ss.Sim(n_agents=1000, label='Small', diseases='sis', networks='random')
s2 = ss.Sim(n_agents=2000, label='Large', diseases='sis', networks='random')
ss.parallel(s1, s2).plot()
msim = ss.parallel([s1, s2], shrink=False)