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

Implement a check for the results of the initialization #958

Closed lenaploetzke closed 3 months ago

lenaploetzke commented 4 months ago

Motivation / Current Behaviour

Currently, especially when initializing with the force-of-infection method, the condition S(0)<N is sometimes not satisfied and compartments are initialized with negative numbers. In these cases, at least a warning/error should be displayed.

Enhancement description

Implement a check in the IDE model to see if the initialization produces valid results.

Additional context

No response

Checklist