Negative Compartments in stochastic models #1101
Labels
class::bug
Bugs found in the software
loc::backend
This issue concerns the C++ backend implementation.
model::sde
This issue concerns any kind of stochastic differential equation-based model.
Bug description
The current implementation of the stochastic compartment models can result in negative compartments. This is problematic for multiple reasons:
Version
Windows
To reproduce
in "memilio\cpp\examples\sde_seirvv.cpp" set
model.populations[{mio::sseirvv::InfectionState::InfectedV2}] = 0.1;
in "memilio\cpp\models\sde_seirvv\model.h" set
(3. Use your favorite way to watch compartment values, for example the following before flow calculation)
Relevant log output
No response
Add any relevant information, e.g. used compiler, screenshots.
Checklist
The text was updated successfully, but these errors were encountered: