Skip to content

IDE model simulation does not work under some conditions #1034

@lenaploetzke

Description

@lenaploetzke

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

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::improvementCleanup that doesn't affect functionalityloc::backendThis issue concerns the C++ backend implementation.model::ideThis issue concerns any kind of integro differential equations-based model.prio::moderateThe priority of this task is moderate.

Type

No type

Projects

Status

Done (Total)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions