-
Notifications
You must be signed in to change notification settings - Fork 23
IDE model simulation does not work under some conditions #1034
Copy link
Copy link
Closed
Labels
class::improvementCleanup that doesn't affect functionalityCleanup that doesn't affect functionalityloc::backendThis issue concerns the C++ backend implementation.This issue concerns the C++ backend implementation.model::ideThis issue concerns any kind of integro differential equations-based model.This issue concerns any kind of integro differential equations-based model.prio::moderateThe priority of this task is moderate.The priority of this task is moderate.
Metadata
Metadata
Assignees
Labels
class::improvementCleanup that doesn't affect functionalityCleanup that doesn't affect functionalityloc::backendThis issue concerns the C++ backend implementation.This issue concerns the C++ backend implementation.model::ideThis issue concerns any kind of integro differential equations-based model.This issue concerns any kind of integro differential equations-based model.prio::moderateThe priority of this task is moderate.The priority of this task is moderate.
Type
Projects
Status
Done (Total)
Motivation / Current Behaviour
Currently, we have that in the function compute_compartment_from_flows(), the idx_TransitionDistribution2 is set to 0 if not stated otherwise. On the other hand, it is not necessary nor specified in the check_constraints() function that the TransitionDistribution for SusceptibleToExposed is a StateAgeFunction of Type b).
For example, if you use ConstantFunction for TransitionDistribution[0], the simulation will not work properly because the maximum support of the ConstantFunction is used.
Enhancement description
A quick fix should be to include an if clause for the calculation of calc_time in compute_compartment_from_flows().
Additional context
No response
Checklist