Skip to main content
. 2020 Jun 16;8(6):911. doi: 10.3390/microorganisms8060911
Algorithm 1 The pseudo model algorithm
#constants shared between scenarios
K = 10
βim
#constants within scenario
SIM (number of simulation)
Deep (number of days to be simulated)
NTW (Commuting network: weighted links among municipalities of the corresponding scenario)
I (number of officially infected)

For each simulation
Sample infected according to scenario
For each day
If during weekend, switch the correspondence between active period and population
For each sub-day period
  For each infected municipality
      find new infected according to ODE equations
End