SciCompMod / memilio

Modular spatio-temporal models for epidemic and pandemic simulations
https://scicompmod.github.io/memilio/
Apache License 2.0
51 stars 15 forks source link

Allow contact increase for simulation of larger events #945

Closed mknaranja closed 3 months ago

mknaranja commented 4 months ago

Motivation / Current Behaviour

Practically, we have realized the opportunity of modeling a local increase of contacts per day, e.g. through major events like Karneval or Oktoberfest. Technically, however, we currently prohibit this setting by asserting on damping factors larger than 1 (https://github.com/SciCompMod/memilio/blob/main/cpp/memilio/epidemiology/damping.h#L98)

Enhancement description

In order to allow increases in contact patterns, the technical restriction should be reduced and for dampings it should only be checked if their factors are nonnegative/positive.

Additional context

No response

Checklist