Add Safeguards to EulerCore to reduce undefined behavior for SDE models #1165
Labels
class::feature
A feature to be implemented for some part of the software
class::performance
Performance related issues
loc::backend
This issue concerns the C++ backend implementation.
model::ode
This issue concerns any kind of ODE-based model.
model::sde
This issue concerns any kind of stochastic differential equation-based model.
Motivation / Current Behaviour
As of now SDE models have to implement checks for whether flows/derivatives result in overflows in the compartments (negative compartments or compartments greater than population size). The current implementation can also result in undefined behavior by floating point operations (see Issue #1009)
Enhancement description
Adapting the EulerCore (potentially writing a EulerMaruyamaCore) one can use vectorized functions to add those safeguards and other modifications into the core. Potential modifications are:
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: